@mapsindoors/map-template 1.44.2 → 1.45.0

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 (50) hide show
  1. package/dist/{_commonjsHelpers-ba3f0406-1b43c1be.mjs → _commonjsHelpers-ba3f0406-72d857ff.mjs} +2 -2
  2. package/dist/combo-box-item.entry-f1249d1f.mjs +22 -0
  3. package/dist/{icon-b8d01d6f-706e205a.mjs → icon-b8d01d6f-ded4f888.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +15 -15
  6. package/dist/mapsindoors-webcomponent.es.js +14 -14
  7. package/dist/mapsindoors-webcomponent.umd.js +5 -5
  8. package/dist/{mi-card_2.entry-c26b382b.mjs → mi-card_2.entry-9931918a.mjs} +2 -2
  9. package/dist/{mi-chip.entry-75dd30a9.mjs → mi-chip.entry-87747d88.mjs} +2 -2
  10. package/dist/{mi-column.entry-9f727037.mjs → mi-column.entry-6f0da091.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-f7ef9c45.mjs → mi-combo-box.entry-5f7c1cfd.mjs} +4 -4
  12. package/dist/{mi-data-table.entry-ee80a9b0.mjs → mi-data-table.entry-872b3f89.mjs} +3 -3
  13. package/dist/{mi-distance_2.entry-393cf3d1.mjs → mi-distance_2.entry-588ecbfe.mjs} +3 -3
  14. package/dist/mi-dropdown-item.entry-4d5bfd90.mjs +22 -0
  15. package/dist/{mi-dropdown.entry-60f99b89.mjs → mi-dropdown.entry-f7a156fa.mjs} +33 -33
  16. package/dist/{mi-floor-selector.entry-7ea03e26.mjs → mi-floor-selector.entry-2bcdc989.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-882b206f.mjs → mi-keyboard.entry-3c63bdea.mjs} +3 -3
  18. package/dist/{mi-list-item-category.entry-e5898ac7.mjs → mi-list-item-category.entry-fd0b8edf.mjs} +4 -4
  19. package/dist/{mi-list-item-location.entry-6973b0f7.mjs → mi-list-item-location.entry-77a74a81.mjs} +4 -4
  20. package/dist/{mi-list.entry-7e44aa9c.mjs → mi-list.entry-dd45fbf6.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-9f5b3bd1.mjs → mi-location-booking.entry-10199dfa.mjs} +3 -3
  22. package/dist/{mi-location-info.entry-e7dc52bf.mjs → mi-location-info.entry-784d0d66.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-b9f27e6c.mjs → mi-map-googlemaps.entry-452fd2d3.mjs} +3 -3
  24. package/dist/{mi-map-mapbox.entry-4f03ccd2.mjs → mi-map-mapbox.entry-32dd19c5.mjs} +3 -3
  25. package/dist/{mi-metric-card.entry-e07f13ee.mjs → mi-metric-card.entry-e1e9c7ac.mjs} +3 -3
  26. package/dist/{mi-my-position.entry-55a9ef1f.mjs → mi-my-position.entry-037c8622.mjs} +3 -3
  27. package/dist/{mi-notification.entry-25c9848c.mjs → mi-notification.entry-f3740aff.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-0e294bd2.mjs → mi-route-instructions-heading.entry-50dca19e.mjs} +4 -4
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-963d825e.mjs → mi-route-instructions-maneuver-legacy.entry-7aa2b8ac.mjs} +3 -3
  30. package/dist/{mi-route-instructions-maneuver.entry-6448a6c3.mjs → mi-route-instructions-maneuver.entry-f8ed5670.mjs} +3 -3
  31. package/dist/{mi-route-instructions-step-legacy.entry-334c9f25.mjs → mi-route-instructions-step-legacy.entry-050abdbf.mjs} +4 -4
  32. package/dist/{mi-route-instructions-step.entry-f9e5400b.mjs → mi-route-instructions-step.entry-a224cb35.mjs} +4 -4
  33. package/dist/{mi-route-instructions.entry-409fe31f.mjs → mi-route-instructions.entry-94b456de.mjs} +5 -5
  34. package/dist/{mi-scroll-buttons.entry-243df826.mjs → mi-scroll-buttons.entry-e3200862.mjs} +2 -2
  35. package/dist/{mi-search.entry-c4186039.mjs → mi-search.entry-ff272e34.mjs} +3 -3
  36. package/dist/{mi-share-sms.entry-fbf1284f.mjs → mi-share-sms.entry-f61114d1.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-60c2ee91.mjs → mi-step-switcher.entry-b8b45fcb.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-78a58653.mjs → mi-tab-panel.entry-c9633da2.mjs} +2 -2
  39. package/dist/{mi-tab.entry-448065dd.mjs → mi-tab.entry-a496f084.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-354cd598.mjs → mi-tabs.entry-b35beaf5.mjs} +2 -2
  41. package/dist/{mi-time.entry-04f92ae6.mjs → mi-time.entry-74663321.mjs} +2 -2
  42. package/dist/{mi-variables-9a6c8d4d-31b02b92.mjs → mi-variables-9a6c8d4d-c147e5df.mjs} +2 -2
  43. package/dist/{reactcomponent-06b957e9.mjs → reactcomponent-f65d6d4d.mjs} +7 -7
  44. package/dist/{route-travel-mode.enum-7f4ce9c7-2aa97bf4.mjs → route-travel-mode.enum-7f4ce9c7-3e5c77dd.mjs} +2 -2
  45. package/dist/{sort-order.enum-64ce8998-6fc39032.mjs → sort-order.enum-64ce8998-966c82c0.mjs} +3 -3
  46. package/dist/{unit-system.enum-eaefb53e-351965d0.mjs → unit-system.enum-eaefb53e-477c37c6.mjs} +2 -2
  47. package/dist/{utils-ae714467-27d525da.mjs → utils-ae714467-9f630521.mjs} +2 -2
  48. package/package.json +1 -1
  49. package/dist/combo-box-item.entry-9294ada5.mjs +0 -22
  50. package/dist/mi-dropdown-item.entry-d78bf191.mjs +0 -22
@@ -1,5 +1,5 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#6b7280;transition:background-color .3s ease}.mi-toggle:disabled{opacity:.48}.mi-toggle:checked{background-color:#22c55e}.mi-toggle:after{content:"";display:inline-block;width:20px;height:20px;transform:translate(0);border-radius:50%;background-color:#fcfcfc;box-shadow:0 2px 2px #0003,0 1px 1px #0003;transition:.3s ease}.mi-toggle:checked:after{transform:translate(24px)}}.mapsindoors-map{--z-index-top: 999999;--z-index-popup: 950;--z-index-modal: 900;--z-index-spinner: 800;--z-index-overlay: 700;--z-index-dropdown: 600;--z-index-toast: 500;--z-index-header: 400;--z-index-sticky: 300;--z-index-mask: 200;--z-index-masked: 100;--z-index-default: 1;--z-index-deep: -999999;--transition-slowly: .6s ease;--transition-quickly: .3s ease;--tailwind-colors-rose-900: #881337;--tailwind-colors-rose-800: #9f1239;--tailwind-colors-rose-700: #be123c;--tailwind-colors-rose-600: #e11d48;--tailwind-colors-rose-500: #f43f5e;--tailwind-colors-rose-400: #fb7185;--tailwind-colors-rose-300: #fda4af;--tailwind-colors-rose-200: #fecdd3;--tailwind-colors-rose-100: #ffe4e6;--tailwind-colors-rose-50: #fff1f2;--tailwind-colors-pink-900: #831843;--tailwind-colors-pink-800: #9d174d;--tailwind-colors-pink-700: #be185d;--tailwind-colors-pink-600: #db2777;--tailwind-colors-pink-500: #ec4899;--tailwind-colors-pink-400: #f472b6;--tailwind-colors-pink-300: #f9a8d4;--tailwind-colors-pink-200: #fbcfe8;--tailwind-colors-pink-100: #fce7f3;--tailwind-colors-pink-50: #fdf2f8;--tailwind-colors-fuchsia-900: #701a75;--tailwind-colors-fuchsia-800: #86198f;--tailwind-colors-fuchsia-700: #a21caf;--tailwind-colors-fuchsia-600: #c026d3;--tailwind-colors-fuchsia-500: #d946ef;--tailwind-colors-fuchsia-400: #e879f9;--tailwind-colors-fuchsia-300: #f0abfc;--tailwind-colors-fuchsia-200: #f5d0fe;--tailwind-colors-fuchsia-100: #fae8ff;--tailwind-colors-fuchsia-50: #fdf4ff;--tailwind-colors-purple-900: #581c87;--tailwind-colors-purple-800: #6b21a8;--tailwind-colors-purple-700: #7e22ce;--tailwind-colors-purple-600: #9333ea;--tailwind-colors-purple-500: #a855f7;--tailwind-colors-purple-400: #c084fc;--tailwind-colors-purple-300: #d8b4fe;--tailwind-colors-purple-200: #e9d5ff;--tailwind-colors-purple-100: #f3e8ff;--tailwind-colors-purple-50: #faf5ff;--tailwind-colors-violet-900: #4c1d95;--tailwind-colors-violet-800: #5b21b6;--tailwind-colors-violet-700: #6d28d9;--tailwind-colors-violet-600: #7c3aed;--tailwind-colors-violet-500: #8b5cf6;--tailwind-colors-violet-400: #a78bfa;--tailwind-colors-violet-300: #c4b5fd;--tailwind-colors-violet-200: #ddd6fe;--tailwind-colors-violet-100: #ede9fe;--tailwind-colors-violet-50: #f5f3ff;--tailwind-colors-indigo-900: #312e81;--tailwind-colors-indigo-800: #3730a3;--tailwind-colors-indigo-700: #4338ca;--tailwind-colors-indigo-600: #4f46e5;--tailwind-colors-indigo-500: #6366f1;--tailwind-colors-indigo-400: #818cf8;--tailwind-colors-indigo-300: #a5b4fc;--tailwind-colors-indigo-200: #c7d2fe;--tailwind-colors-indigo-100: #e0e7ff;--tailwind-colors-indigo-50: #eef2ff;--tailwind-colors-blue-900: #1e3a8a;--tailwind-colors-blue-800: #1e40af;--tailwind-colors-blue-700: #1d4ed8;--tailwind-colors-blue-600: #2563eb;--tailwind-colors-blue-500: #3b82f6;--tailwind-colors-blue-400: #60a5fa;--tailwind-colors-blue-300: #93c5fd;--tailwind-colors-blue-200: #bfdbfe;--tailwind-colors-blue-100: #dbeafe;--tailwind-colors-blue-50: #eff6ff;--tailwind-colors-sky-900: #0c4a6e;--tailwind-colors-sky-800: #075985;--tailwind-colors-sky-700: #0369a1;--tailwind-colors-sky-600: #0284c7;--tailwind-colors-sky-500: #0ea5e9;--tailwind-colors-sky-400: #38bdf8;--tailwind-colors-sky-300: #7dd3fc;--tailwind-colors-sky-200: #bae6fd;--tailwind-colors-sky-100: #e0f2fe;--tailwind-colors-sky-50: #f0f9ff;--tailwind-colors-cyan-900: #164e63;--tailwind-colors-cyan-800: #155e75;--tailwind-colors-cyan-700: #0e7490;--tailwind-colors-cyan-600: #0891b2;--tailwind-colors-cyan-500: #06b6d4;--tailwind-colors-cyan-400: #22d3ee;--tailwind-colors-cyan-300: #67e8f9;--tailwind-colors-cyan-200: #a5f3fc;--tailwind-colors-cyan-100: #cffafe;--tailwind-colors-cyan-50: #ecfeff;--tailwind-colors-teal-900: #134e4a;--tailwind-colors-teal-800: #115e59;--tailwind-colors-teal-700: #0f766e;--tailwind-colors-teal-600: #0d9488;--tailwind-colors-teal-500: #14b8a6;--tailwind-colors-teal-400: #2dd4bf;--tailwind-colors-teal-300: #5eead4;--tailwind-colors-teal-200: #99f6e4;--tailwind-colors-teal-100: #ccfbf1;--tailwind-colors-teal-50: #f0fdfa;--tailwind-colors-emerald-900: #064e3b;--tailwind-colors-emerald-800: #065f46;--tailwind-colors-emerald-700: #047857;--tailwind-colors-emerald-600: #059669;--tailwind-colors-emerald-500: #10b981;--tailwind-colors-emerald-400: #34d399;--tailwind-colors-emerald-300: #6ee7b7;--tailwind-colors-emerald-200: #a7f3d0;--tailwind-colors-emerald-100: #d1fae5;--tailwind-colors-emerald-50: #ecfdf5;--tailwind-colors-green-900: #14532d;--tailwind-colors-green-800: #166534;--tailwind-colors-green-700: #15803d;--tailwind-colors-green-600: #16a34a;--tailwind-colors-green-500: #22c55e;--tailwind-colors-green-400: #4ade80;--tailwind-colors-green-300: #86efac;--tailwind-colors-green-200: #bbf7d0;--tailwind-colors-green-100: #dcfce7;--tailwind-colors-green-50: #f0fdf4;--tailwind-colors-lime-900: #365314;--tailwind-colors-lime-800: #3f6212;--tailwind-colors-lime-700: #4d7c0f;--tailwind-colors-lime-600: #65a30d;--tailwind-colors-lime-500: #84cc16;--tailwind-colors-lime-400: #a3e635;--tailwind-colors-lime-300: #bef264;--tailwind-colors-lime-200: #d9f99d;--tailwind-colors-lime-100: #ecfccb;--tailwind-colors-lime-50: #f7fee7;--tailwind-colors-yellow-900: #713f12;--tailwind-colors-yellow-800: #854d0e;--tailwind-colors-yellow-700: #a16207;--tailwind-colors-yellow-600: #ca8a04;--tailwind-colors-yellow-500: #eab308;--tailwind-colors-yellow-400: #facc15;--tailwind-colors-yellow-300: #fde047;--tailwind-colors-yellow-200: #fef08a;--tailwind-colors-yellow-100: #fef9c3;--tailwind-colors-yellow-50: #fefce8;--tailwind-colors-amber-900: #78350f;--tailwind-colors-amber-800: #92400e;--tailwind-colors-amber-700: #b45309;--tailwind-colors-amber-600: #d97706;--tailwind-colors-amber-500: #f59e0b;--tailwind-colors-amber-400: #fbbf24;--tailwind-colors-amber-300: #fcd34d;--tailwind-colors-amber-200: #fde68a;--tailwind-colors-amber-100: #fef3c7;--tailwind-colors-amber-50: #fffbeb;--tailwind-colors-orange-900: #7c2d12;--tailwind-colors-orange-800: #9a3412;--tailwind-colors-orange-700: #c2410c;--tailwind-colors-orange-600: #ea580c;--tailwind-colors-orange-500: #f97316;--tailwind-colors-orange-400: #fb923c;--tailwind-colors-orange-300: #fdba74;--tailwind-colors-orange-200: #fed7aa;--tailwind-colors-orange-100: #ffedd5;--tailwind-colors-orange-50: #fff7ed;--tailwind-colors-red-900: #7f1d1d;--tailwind-colors-red-800: #991b1b;--tailwind-colors-red-700: #b91c1c;--tailwind-colors-red-600: #dc2626;--tailwind-colors-red-500: #ef4444;--tailwind-colors-red-400: #f87171;--tailwind-colors-red-300: #fca5a5;--tailwind-colors-red-200: #fecaca;--tailwind-colors-red-100: #fee2e2;--tailwind-colors-red-50: #fef2f2;--tailwind-colors-stone-900: #1c1917;--tailwind-colors-stone-800: #292524;--tailwind-colors-stone-700: #44403c;--tailwind-colors-stone-600: #57534e;--tailwind-colors-stone-500: #78716c;--tailwind-colors-stone-400: #a8a29e;--tailwind-colors-stone-300: #d6d3d1;--tailwind-colors-stone-200: #e7e5e4;--tailwind-colors-stone-100: #f5f5f4;--tailwind-colors-stone-50: #fafaf9;--tailwind-colors-neutral-900: #171717;--tailwind-colors-neutral-800: #262626;--tailwind-colors-neutral-700: #404040;--tailwind-colors-neutral-600: #525252;--tailwind-colors-neutral-500: #737373;--tailwind-colors-neutral-400: #a3a3a3;--tailwind-colors-neutral-300: #d4d4d4;--tailwind-colors-neutral-200: #e5e5e5;--tailwind-colors-neutral-100: #f5f5f5;--tailwind-colors-neutral-50: #fafafa;--tailwind-colors-zinc-900: #18181b;--tailwind-colors-zinc-800: #27272a;--tailwind-colors-zinc-700: #3f3f46;--tailwind-colors-zinc-600: #52525b;--tailwind-colors-zinc-500: #71717a;--tailwind-colors-zinc-400: #a1a1aa;--tailwind-colors-zinc-300: #d4d4d8;--tailwind-colors-zinc-200: #e4e4e7;--tailwind-colors-zinc-100: #f4f4f5;--tailwind-colors-zinc-50: #fafafa;--tailwind-colors-gray-900: #111827;--tailwind-colors-gray-800: #1f2937;--tailwind-colors-gray-700: #374151;--tailwind-colors-gray-600: #4b5563;--tailwind-colors-gray-500: #6b7280;--tailwind-colors-gray-400: #9ca3af;--tailwind-colors-gray-300: #d1d5db;--tailwind-colors-gray-200: #e5e7eb;--tailwind-colors-gray-100: #f3f4f6;--tailwind-colors-gray-50: #f9fafb;--tailwind-colors-slate-900: #0f172a;--tailwind-colors-slate-800: #1e293b;--tailwind-colors-slate-700: #334155;--tailwind-colors-slate-600: #475569;--tailwind-colors-slate-500: #64748b;--tailwind-colors-slate-400: #94a3b8;--tailwind-colors-slate-300: #cbd5e1;--tailwind-colors-slate-200: #e2e8f0;--tailwind-colors-slate-100: #f1f5f9;--tailwind-colors-slate-50: #f8fafc;--tailwind-colors-black: #000000;--tailwind-colors-white: #ffffff;--spacing-xxxx-large: 64px;--spacing-xxx-large: 48px;--spacing-xx-large: 40px;--spacing-x-large: 32px;--spacing-large: 24px;--spacing-medium: 16px;--spacing-small: 12px;--spacing-x-small: 8px;--spacing-xx-small: 4px;--spacing-xxx-small: 2px;--rounding-circle: 50%;--rounding-pill: 9999px;--rounding-x-large: 16px;--rounding-large: 8px;--rounding-medium: 4px;--rounding-small: 2px;--rounding-x-small: 1px;--rounding-xx-small: 0px;--opacity-xxx-large: 1;--opacity-xx-large: .88;--opacity-x-large: .72;--opacity-large: .48;--opacity-medium: .24;--opacity-small: .16;--opacity-x-small: .08;--opacity-xx-small: 0;--icon-size-xx-large: 64px;--icon-size-x-large: 48px;--icon-size-large: 32px;--icon-size-medium: 24px;--icon-size-small: 16px;--font-measure-large: 34rem;--font-measure-medium: 30rem;--font-measure-small: 20rem;--font-tracking-x-large: .25rem;--font-tracking-large: .1rem;--font-tracking-medium: normal;--font-tracking-small: -.05rem;--font-weight-xx-large: 700;--font-weight-x-large: 600;--font-weight-large: 500;--font-weight-medium: 400;--font-weight-small: 300;--font-size-xxxx-large: 4.5rem;--font-size-xxx-large: 3rem;--font-size-xx-large: 2.25rem;--font-size-x-large: 1.5rem;--font-size-large: 1.25rem;--font-size-medium: 1rem;--font-size-small: .875rem;--font-size-x-small: .75rem;--font-family-serif: Georgia, Times, Times New Roman, serif;--font-family-monospace: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large: 0px 20px 20px rgba(0, 0, 0, .2), 0px 16px 16px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .16), 0px 8px 8px rgba(0, 0, 0, .12);--elevation-large: 0px 16px 16px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .16), 0px 8px 8px rgba(0, 0, 0, .12);--elevation-medium: 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .18), 0px 8px 8px rgba(0, 0, 0, .16);--elevation-small: 0px 4px 4px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .18), 0px 1px 1px rgba(0, 0, 0, .2);--elevation-x-small: 0px 2px 2px rgba(0, 0, 0, .2), 0px 1px 1px rgba(0, 0, 0, .2);--color-transparent-base: rgba(0, 0, 0, 0);--color-white-base: #fcfcfc;--breakpoints-xx-large: only screen and (min-width: 1220px);--breakpoints-x-large: only screen and (min-width: 1025px);--breakpoints-large: only screen and (min-width: 992px);--breakpoints-medium: only screen and (min-width: 768px);--breakpoints-small: only screen and (min-width: 576px);--breakpoints-x-small: only screen and (max-width: 575px);--breakpoints-xx-small: only screen and (max-width: 360px);--brand-colors-black-100: #000000;--brand-colors-black-80: #323232;--brand-colors-black-60: #666666;--brand-colors-black-40: #999999;--brand-colors-black-20: #cccccc;--brand-colors-white-100: #ffffff;--brand-colors-dark-pine-100: #005655;--brand-colors-dark-pine-80: #327676;--brand-colors-dark-pine-60: #669999;--brand-colors-dark-pine-40: #99bbbb;--brand-colors-dark-pine-20: #ccdddd;--brand-colors-sky-blue-100: #abddff;--brand-colors-sky-blue-80: #c3e5ff;--brand-colors-sky-blue-60: #d2ebff;--brand-colors-sky-blue-40: #e1f2ff;--brand-colors-sky-blue-20: #f0f8ff;--brand-colors-sand-100: #ffefd7;--brand-colors-sand-80: #fff2df;--brand-colors-sand-60: #fff5e7;--brand-colors-brand-lime-100: #cdff00;--brand-colors-brand-lime-80: #d7ff32;--brand-colors-brand-lime-60: #e1ff66;--brand-colors-brand-lime-40: #ebff99;--brand-colors-brand-lime-20: #f5ffcc;--brand-colors-electric-purple-100: #7d49f3;--brand-colors-electric-purple-80: #976df5;--brand-colors-electric-purple-60: #b191f7;--brand-colors-electric-purple-40: #cbb6fa;--brand-colors-electric-purple-20: #e5dafc;--font-family-sans-serif: Figtree, var(--font-family-system);--color-dusk-base: var(--tailwind-colors-violet-500);--color-dusk-100: var(--tailwind-colors-violet-900);--color-dusk-90: var(--tailwind-colors-violet-800);--color-dusk-80: var(--tailwind-colors-violet-700);--color-dusk-70: var(--tailwind-colors-violet-600);--color-dusk-60: var(--tailwind-colors-violet-500);--color-dusk-50: var(--tailwind-colors-violet-400);--color-dusk-40: var(--tailwind-colors-violet-300);--color-dusk-30: var(--tailwind-colors-violet-200);--color-dusk-20: var(--tailwind-colors-violet-100);--color-dusk-10: var(--tailwind-colors-violet-50);--color-slate-base: var(--tailwind-colors-slate-500);--color-slate-100: var(--tailwind-colors-slate-900);--color-slate-90: var(--tailwind-colors-slate-800);--color-slate-80: var(--tailwind-colors-slate-700);--color-slate-70: var(--tailwind-colors-slate-600);--color-slate-60: var(--tailwind-colors-slate-500);--color-slate-50: var(--tailwind-colors-slate-400);--color-slate-40: var(--tailwind-colors-slate-300);--color-slate-30: var(--tailwind-colors-slate-200);--color-slate-20: var(--tailwind-colors-slate-100);--color-slate-10: var(--tailwind-colors-slate-50);--color-teal-base: var(--tailwind-colors-teal-500);--color-teal-100: var(--tailwind-colors-teal-900);--color-teal-90: var(--tailwind-colors-teal-800);--color-teal-80: var(--tailwind-colors-teal-700);--color-teal-70: var(--tailwind-colors-teal-600);--color-teal-60: var(--tailwind-colors-teal-500);--color-teal-50: var(--tailwind-colors-teal-400);--color-teal-40: var(--tailwind-colors-teal-300);--color-teal-30: var(--tailwind-colors-teal-200);--color-teal-20: var(--tailwind-colors-teal-100);--color-teal-10: var(--tailwind-colors-teal-50);--color-sky-base: var(--tailwind-colors-sky-500);--color-sky-100: var(--tailwind-colors-sky-900);--color-sky-90: var(--tailwind-colors-sky-800);--color-sky-80: var(--tailwind-colors-sky-700);--color-sky-70: var(--tailwind-colors-sky-600);--color-sky-60: var(--tailwind-colors-sky-500);--color-sky-50: var(--tailwind-colors-sky-400);--color-sky-40: var(--tailwind-colors-sky-300);--color-sky-30: var(--tailwind-colors-sky-200);--color-sky-20: var(--tailwind-colors-sky-100);--color-sky-10: var(--tailwind-colors-sky-50);--color-indigo-base: var(--tailwind-colors-indigo-500);--color-indigo-100: var(--tailwind-colors-indigo-900);--color-indigo-90: var(--tailwind-colors-indigo-800);--color-indigo-80: var(--tailwind-colors-indigo-700);--color-indigo-70: var(--tailwind-colors-indigo-600);--color-indigo-60: var(--tailwind-colors-indigo-500);--color-indigo-50: var(--tailwind-colors-indigo-400);--color-indigo-40: var(--tailwind-colors-indigo-300);--color-indigo-30: var(--tailwind-colors-indigo-200);--color-indigo-20: var(--tailwind-colors-indigo-100);--color-indigo-10: var(--tailwind-colors-indigo-50);--color-magenta-base: var(--tailwind-colors-pink-500);--color-magenta-100: var(--tailwind-colors-pink-900);--color-magenta-90: var(--tailwind-colors-pink-800);--color-magenta-80: var(--tailwind-colors-pink-700);--color-magenta-70: var(--tailwind-colors-pink-600);--color-magenta-60: var(--tailwind-colors-pink-500);--color-magenta-50: var(--tailwind-colors-pink-400);--color-magenta-40: var(--tailwind-colors-pink-300);--color-magenta-30: var(--tailwind-colors-pink-200);--color-magenta-20: var(--tailwind-colors-pink-100);--color-magenta-10: var(--tailwind-colors-pink-50);--color-purple-base: var(--tailwind-colors-purple-500);--color-purple-100: var(--tailwind-colors-purple-900);--color-purple-90: var(--tailwind-colors-purple-800);--color-purple-80: var(--tailwind-colors-purple-700);--color-purple-70: var(--tailwind-colors-purple-600);--color-purple-60: var(--tailwind-colors-purple-500);--color-purple-50: var(--tailwind-colors-purple-400);--color-purple-40: var(--tailwind-colors-purple-300);--color-purple-30: var(--tailwind-colors-purple-200);--color-purple-20: var(--tailwind-colors-purple-100);--color-purple-10: var(--tailwind-colors-purple-50);--color-bronze-base: var(--tailwind-colors-amber-500);--color-bronze-100: var(--tailwind-colors-amber-900);--color-bronze-90: var(--tailwind-colors-amber-800);--color-bronze-80: var(--tailwind-colors-amber-700);--color-bronze-70: var(--tailwind-colors-amber-600);--color-bronze-60: var(--tailwind-colors-amber-500);--color-bronze-50: var(--tailwind-colors-amber-400);--color-bronze-40: var(--tailwind-colors-amber-300);--color-bronze-30: var(--tailwind-colors-amber-200);--color-bronze-20: var(--tailwind-colors-amber-100);--color-bronze-10: var(--tailwind-colors-amber-50);--color-blue-base: var(--tailwind-colors-blue-500);--color-blue-100: var(--tailwind-colors-blue-900);--color-blue-90: var(--tailwind-colors-blue-800);--color-blue-80: var(--tailwind-colors-blue-700);--color-blue-70: var(--tailwind-colors-blue-600);--color-blue-60: var(--tailwind-colors-blue-500);--color-blue-50: var(--tailwind-colors-blue-400);--color-blue-40: var(--tailwind-colors-blue-300);--color-blue-30: var(--tailwind-colors-blue-200);--color-blue-20: var(--tailwind-colors-blue-100);--color-blue-10: var(--tailwind-colors-blue-50);--color-green-base: var(--tailwind-colors-green-500);--color-green-100: var(--tailwind-colors-green-900);--color-green-90: var(--tailwind-colors-green-800);--color-green-80: var(--tailwind-colors-green-700);--color-green-70: var(--tailwind-colors-green-600);--color-green-60: var(--tailwind-colors-green-500);--color-green-50: var(--tailwind-colors-green-400);--color-green-40: var(--tailwind-colors-green-300);--color-green-30: var(--tailwind-colors-green-200);--color-green-20: var(--tailwind-colors-green-100);--color-green-10: var(--tailwind-colors-green-50);--color-red-base: var(--tailwind-colors-red-500);--color-red-100: var(--tailwind-colors-red-900);--color-red-90: var(--tailwind-colors-red-800);--color-red-80: var(--tailwind-colors-red-700);--color-red-70: var(--tailwind-colors-red-600);--color-red-60: var(--tailwind-colors-red-500);--color-red-50: var(--tailwind-colors-red-400);--color-red-40: var(--tailwind-colors-red-300);--color-red-30: var(--tailwind-colors-red-200);--color-red-20: var(--tailwind-colors-red-100);--color-red-10: var(--tailwind-colors-red-50);--color-gray-base: var(--tailwind-colors-gray-500);--color-gray-100: var(--tailwind-colors-gray-900);--color-gray-90: var(--tailwind-colors-gray-800);--color-gray-80: var(--tailwind-colors-gray-700);--color-gray-70: var(--tailwind-colors-gray-600);--color-gray-60: var(--tailwind-colors-gray-500);--color-gray-50: var(--tailwind-colors-gray-400);--color-gray-40: var(--tailwind-colors-gray-300);--color-gray-30: var(--tailwind-colors-gray-200);--color-gray-20: var(--tailwind-colors-gray-100);--color-gray-10: var(--tailwind-colors-gray-50);--color-hotorchid-base: var(--tailwind-colors-pink-500);--color-white-white: var(--tailwind-colors-white);--color-black-black: var(--tailwind-colors-black);--color-black-base: var(--tailwind-colors-stone-900)}.mapsindoors-map{position:relative;width:100%;height:100%;overflow-y:hidden}.mapsindoors-map *{box-sizing:border-box;font-family:var(--font-family-system)}.mapsindoors-map--show-elements mi-floor-selector{visibility:visible}.mapsindoors-map--show-elements .venue-selector__button{display:block}.mapsindoors-map--hide-elements mi-floor-selector{visibility:hidden}.mapsindoors-map--hide-elements .venue-selector__button{display:none}.mapsindoors-map--show-my-position mi-my-position{display:block}.mapsindoors-map--hide-my-position mi-my-position{display:none}.mapsindoors-map .mi-floor-selector__list{box-sizing:unset}.map-container{width:100%;height:100%;position:relative}.map-container #mi_map_logo{z-index:var(--z-index-dropdown)!important}.prevent-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:none}.gm-style .gmnoprint{right:44px!important}.gm-style .gmnoprint div{border-radius:var(--rounding-large)!important}.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:rgba(0,0,0,.7);color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-control-container .mapboxgl-ctrl-group{margin:10px var(--spacing-small) 10px 0!important;border-radius:var(--rounding-large);box-shadow:0 0 0 var(--spacing-xxx-small) #e5e7eb!important}.mapboxgl-control-container .mapboxgl-ctrl-group button{padding:var(--spacing-large)}.mapboxgl-control-container .mapboxgl-ctrl-zoom-in{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODMzMzQ0IDEwQzAuODMzMzQ0IDEwLjMzMTUgMC45NjUwNCAxMC42NDk1IDEuMTk5NDYgMTAuODgzOUMxLjQzMzg4IDExLjExODMgMS43NTE4MiAxMS4yNSAyLjA4MzM0IDExLjI1SDguNTQxNjhDOC41OTY5MyAxMS4yNSA4LjY0OTkyIDExLjI3MTkgOC42ODg5OSAxMS4zMTFDOC43MjgwNiAxMS4zNTAxIDguNzUwMDEgMTEuNDAzMSA4Ljc1MDAxIDExLjQ1ODNWMTcuOTE2N0M4Ljc1MDAxIDE4LjI0ODIgOC44ODE3MSAxOC41NjYxIDkuMTE2MTMgMTguODAwNUM5LjM1MDU1IDE5LjAzNSA5LjY2ODQ5IDE5LjE2NjcgMTAgMTkuMTY2N0MxMC4zMzE1IDE5LjE2NjcgMTAuNjQ5NSAxOS4wMzUgMTAuODgzOSAxOC44MDA1QzExLjExODMgMTguNTY2MSAxMS4yNSAxOC4yNDgyIDExLjI1IDE3LjkxNjdWMTEuNDU4M0MxMS4yNSAxMS40MDMxIDExLjI3MiAxMS4zNTAxIDExLjMxMSAxMS4zMTFDMTEuMzUwMSAxMS4yNzE5IDExLjQwMzEgMTEuMjUgMTEuNDU4MyAxMS4yNUgxNy45MTY3QzE4LjI0ODIgMTEuMjUgMTguNTY2MSAxMS4xMTgzIDE4LjgwMDYgMTAuODgzOUMxOS4wMzUgMTAuNjQ5NSAxOS4xNjY3IDEwLjMzMTUgMTkuMTY2NyAxMEMxOS4xNjY3IDkuNjY4NDggMTkuMDM1IDkuMzUwNTQgMTguODAwNiA5LjExNjEyQzE4LjU2NjEgOC44ODE2OSAxOC4yNDgyIDguNzUgMTcuOTE2NyA4Ljc1SDExLjQ1ODNDMTEuNDAzMSA4Ljc1IDExLjM1MDEgOC43MjgwNSAxMS4zMTEgOC42ODg5OEMxMS4yNzIgOC42NDk5MSAxMS4yNSA4LjU5NjkyIDExLjI1IDguNTQxNjdWMi4wODMzM0MxMS4yNSAxLjc1MTgxIDExLjExODMgMS40MzM4NyAxMC44ODM5IDEuMTk5NDVDMTAuNjQ5NSAwLjk2NTAyOSAxMC4zMzE1IDAuODMzMzMzIDEwIDAuODMzMzMzQzkuNjY4NDkgMC44MzMzMzMgOS4zNTA1NSAwLjk2NTAyOSA5LjExNjEzIDEuMTk5NDVDOC44ODE3MSAxLjQzMzg3IDguNzUwMDEgMS43NTE4MSA4Ljc1MDAxIDIuMDgzMzNWOC41NDE2N0M4Ljc1MDAxIDguNTk2OTIgOC43MjgwNiA4LjY0OTkxIDguNjg4OTkgOC42ODg5OEM4LjY0OTkyIDguNzI4MDUgOC41OTY5MyA4Ljc1IDguNTQxNjggOC43NUgyLjA4MzM0QzEuNzUxODIgOC43NSAxLjQzMzg4IDguODgxNjkgMS4xOTk0NiA5LjExNjEyQzAuOTY1MDQgOS4zNTA1NCAwLjgzMzM0NCA5LjY2ODQ4IDAuODMzMzQ0IDEwWiIgZmlsbD0iIzc4NzE2QyIvPgo8L3N2Zz4K);background-repeat:no-repeat;background-size:20px 20px;background-position:center center}.mapboxgl-control-container .mapboxgl-ctrl-zoom-out{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDgzMzMgMTEuNjY2N0gxNy45MTY3QzE4LjI0ODIgMTEuNjY2NyAxOC41NjYxIDExLjUzNSAxOC44MDA1IDExLjMwMDZDMTkuMDM1IDExLjA2NjEgMTkuMTY2NyAxMC43NDgyIDE5LjE2NjcgMTAuNDE2N0MxOS4xNjY3IDEwLjA4NTEgMTkuMDM1IDkuNzY3MiAxOC44MDA1IDkuNTMyNzhDMTguNTY2MSA5LjI5ODM2IDE4LjI0ODIgOS4xNjY2NyAxNy45MTY3IDkuMTY2NjdIMi4wODMzM0MxLjc1MTgxIDkuMTY2NjcgMS40MzM4NyA5LjI5ODM2IDEuMTk5NDUgOS41MzI3OEMwLjk2NTAyOSA5Ljc2NzIgMC44MzMzMzMgMTAuMDg1MSAwLjgzMzMzMyAxMC40MTY3QzAuODMzMzMzIDEwLjc0ODIgMC45NjUwMjkgMTEuMDY2MSAxLjE5OTQ1IDExLjMwMDZDMS40MzM4NyAxMS41MzUgMS43NTE4MSAxMS42NjY3IDIuMDgzMzMgMTEuNjY2N1oiIGZpbGw9IiM3ODcxNkMiLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:20px 20px;background-position:center center}.mapboxgl-control-container .mapboxgl-ctrl-icon{background-image:none}.splash-screen{will-change:transform,rotate;display:grid;width:100%;height:100%;position:absolute;z-index:var(--z-index-top);background-color:var(--brand-colors-white-100)}.splash-screen__logo{width:100%;max-height:100%}.splash-screen__loader{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);border-radius:50%;position:relative;animation:loader 1s infinite linear}.splash-screen__container{display:grid;justify-self:center;grid-auto-flow:row;grid-auto-rows:300px min-content;align-content:center;grid-template-columns:300px;justify-items:center;align-items:center;gap:var(--spacing-xxx-large);animation:slideIn 1s}@keyframes loader{0%{rotate:0deg}to{rotate:360deg}}@keyframes slideIn{0%{transform:translateY(100%)}to{transform:translateY(0)}}.venue-selector__content{position:absolute;background-color:#fff;z-index:var(--z-index-popup);overflow-y:hidden;display:grid;grid-template-rows:var(--spacing-xxxx-large) 1fr}.venue-selector__content h1{color:var(--color-gray-90);font-size:var(--font-size-small);margin:0;height:calc(var(--spacing-xx-large) + 2 * var(--spacing-small));display:flex;align-items:center;justify-content:center}.venue-selector__content-enter{top:var(--spacing-small);bottom:calc(100% - var(--spacing-xxxx-large));left:var(--spacing-x-small);width:var(--spacing-xx-large);transition:all .4s ease;opacity:0}.venue-selector__content-enter-active,.venue-selector__content-enter-done{top:0;bottom:0;left:0;width:100%;opacity:1}.venue-selector__content-exit{top:var(--spacing-xxxx-large);bottom:0;left:0;width:100%;transition:all .4s ease;opacity:1}.venue-selector__content-exit-active{top:var(--spacing-small);bottom:calc(100% - var(--spacing-xxxx-large));left:var(--spacing-x-small);width:var(--spacing-xx-large);opacity:0}.venue-selector__list{overflow-y:auto}.venue-selector__button{background-color:var(--tailwind-colors-white);border-radius:var(--rounding-large);border:1px solid #E6E6E6;position:absolute;width:var(--spacing-xx-large);height:var(--spacing-xx-large);top:var(--spacing-small);left:var(--spacing-x-small);z-index:var(--z-index-sticky)}.venue-selector__button--open{z-index:calc(var(--z-index-popup) + 1)}.venue-selector__button svg{display:block;margin:0 auto}.venue-selector__button:hover{background-color:var(--tailwind-colors-gray-100);border:1px solid var(--tailwind-colors-gray-200)}@media (min-width: 992px){.venue-selector__content{width:568px;left:var(--spacing-large);bottom:var(--spacing-large);top:var(--spacing-large);border-radius:var(--rounding-large)}.venue-selector__button{top:var(--spacing-x-large);left:var(--spacing-x-large)}}.venue{all:unset;width:calc(100% - var(--spacing-medium));margin:0 var(--spacing-x-small) var(--spacing-x-small) var(--spacing-x-small);border-radius:var(--rounding-x-large);color:var(--color-white-base);position:relative;background:linear-gradient(#b8b8b8,#5e5e5e)}.venue__image{position:relative;width:100%;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:50% 50%;border-radius:var(--rounding-x-large)}.venue__image:hover{border:2px solid var(--brand-colors-dark-pine-100)}.venue__content{position:absolute;bottom:0;top:50%;padding:var(--spacing-medium);border-radius:var(--rounding-x-large);font-size:var(--font-size-small);background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.6));width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:var(--spacing-medium)}.venue__current{border:1px solid white;border-radius:var(--rounding-large);padding:var(--spacing-x-small)}@media (min-width: 992px){.venue{margin:0 72px var(--spacing-medium) 72px;width:calc(100% - 144px)}}.sheet{pointer-events:none;opacity:0;transition:all .25s;position:absolute;bottom:0;width:100%;max-height:100%;transform:translateY(100%);background-color:var(--color-white-white);border-top-left-radius:var(--rounding-large);border-top-right-radius:var(--rounding-large)}.sheet:before{position:absolute;content:" ";top:var(--spacing-xx-small);left:50%;transform:translate(-50%);width:28px;height:var(--spacing-xx-small);border-radius:var(--spacing-xx-small);background-color:var(--color-gray-20)}.sheet--active{pointer-events:all;opacity:1;transform:translateY(0)}.sheet--dragging{transition:none}.sheet--dragging *{user-select:none}.sheet__content{height:100%;overflow-y:auto}.bottom-sheets{pointer-events:none;position:absolute;inset:0;z-index:var(--z-index-overlay);overflow:hidden}.location-details{padding:var(--spacing-medium);color:var(--color-black-base);display:grid;height:100%;overflow-y:hidden;grid-template-rows:min-content 1fr 64px}.location-details--content-below{position:relative}.location-details--content-below:before{content:"";position:absolute;bottom:calc(64px + var(--spacing-medium));left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.location-details--content-above{position:relative}.location-details--content-above:after{content:"";position:absolute;top:56px;left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(white,rgba(255,255,255,0))}.location-details__details{display:flex;flex-direction:column;gap:var(--spacing-medium);overflow-y:auto}.location-details__details>*:first-child{margin-top:var(--spacing-medium)}.location-details__image{width:100%;border-radius:var(--rounding-large);object-fit:contain;margin:var(--spacing-medium) 0}.location-details__categories{font-size:var(--font-size-small);margin:0}.location-details__description{white-space:pre-wrap;overflow-wrap:break-word}.location-details__description div{font-size:var(--font-size-small);color:var(--color-gray-70);line-height:1.5;overflow-y:hidden;max-height:var(--spacing-xxxx-large)}.location-details__description button{all:unset;font-size:var(--font-size-small);color:var(--color-blue-base);margin-top:var(--spacing-x-small);cursor:pointer}.location-details__description--full div{max-height:none}.location-details__wayfinding{margin-top:var(--spacing-medium);color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;font-weight:var(--font-weight-x-large)}.location-details__wayfinding:hover{filter:brightness(90%)}.location-details--no-route{opacity:.5;cursor:not-allowed}.location-info{display:grid;align-items:center;font-size:var(--font-size-small);grid-template-columns:min-content 1fr var(--spacing-xx-large);gap:var(--spacing-x-small)}.location-info__icon{margin-right:var(--spacing-medium)}.location-info__icon img{height:var(--spacing-x-large);display:block}.location-info__close{background:none;border:1px solid var(--tailwind-colors-gray-200);margin-left:auto;width:var(--spacing-xx-large);height:var(--spacing-xx-large);border-radius:var(--rounding-large);display:grid;justify-content:center;align-items:center;align-self:start}.location-info__close:hover{background-color:var(--tailwind-colors-gray-50);cursor:pointer}.location-info__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.location-info__content{display:grid;gap:var(--spacing-xx-small)}.wayfinding{color:var(--brand-colors-black-100);display:grid;grid-template-rows:238px min-content;min-height:435px}.wayfinding__directions{background-color:var(--color-gray-20);border-bottom:1px solid var(--color-gray-30);padding:var(--spacing-medium);position:relative;border-radius:var(--rounding-large) var(--rounding-large) 0 0}.wayfinding__title{font-size:var(--font-size-small);text-align:center;font-weight:var(--font-weight-large);color:var(--color-gray-70);padding-bottom:var(--spacing-medium)}.wayfinding__close{position:absolute;top:var(--spacing-x-small);right:var(--spacing-x-small);background-color:var(--tailwind-colors-gray-100);border:1px solid var(--tailwind-colors-gray-200);margin-left:auto;width:var(--spacing-xx-large);height:var(--spacing-xx-large);border-radius:var(--rounding-large);display:grid;justify-content:center;align-items:center}.wayfinding__close:hover{background-color:var(--tailwind-colors-gray-200)}.wayfinding__locations{display:grid;gap:var(--spacing-medium);position:relative}.wayfinding__label{display:grid;gap:var(--spacing-x-small);font-size:var(--font-size-small);color:var(--color-gray-70);font-weight:var(--font-weight-large)}.wayfinding__use-current-position{padding:var(--spacing-medium);font-size:var(--font-size-medium);font-weight:var(--font-weight-large);line-height:1rem;transition:all .3s ease 0s;border-radius:var(--rounding-large);background-color:#f9fafb;display:grid;grid-template-columns:var(--spacing-x-large) 1fr;align-items:center;cursor:pointer;gap:var(--spacing-medium);border:1px solid rgb(229,231,235);margin:var(--spacing-x-small) var(--spacing-x-small) 0 var(--spacing-x-small);height:fit-content;justify-items:start}.wayfinding__use-current-position svg{justify-self:center}.wayfinding__details{padding:var(--spacing-large) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium)}.wayfinding__results{display:grid;gap:var(--spacing-x-small);padding:var(--spacing-x-small);grid-auto-rows:min-content}.wayfinding__results p{text-align:center}.wayfinding__info{display:grid;gap:var(--spacing-x-small)}.wayfinding__distance,.wayfinding__time{display:grid;grid-auto-flow:column;grid-template-columns:20px 1fr 1fr;gap:var(--spacing-x-small);align-items:center;color:var(--color-gray-70);width:fit-content}.wayfinding__distance svg{width:20px;height:20px}.wayfinding__time svg{width:var(--spacing-medium);height:var(--spacing-medium)}.wayfinding__minutes,.wayfinding__meters{font-weight:var(--font-weight-large)}.wayfinding hr{margin:var(--spacing-large) 0 var(--spacing-x-small) 0;background-color:var(--color-gray-30);border:none;height:1px}.wayfinding__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large)}.wayfinding__button:hover{filter:brightness(90%)}.wayfinding__scrollable{overflow:auto}.wayfinding__error{text-align:center}.wayfinding__switch{border:none;background:transparent;position:absolute;right:0;top:80px}.wayfinding__switch:hover{opacity:.8}.wayfinding__google{justify-self:center;width:110px}.wayfinding__settings{display:grid;grid-auto-flow:column;justify-content:space-between;width:100%;align-items:center}.wayfinding mi-dropdown::part(dropdown-container){overflow-y:auto;left:unset;right:var(--spacing-medium);top:unset;bottom:unset;min-width:160px;margin-top:0;margin-bottom:0}.wayfinding mi-dropdown::part(button){border-radius:var(--spacing-x-small);padding:0 var(--spacing-small);height:36px;background:var(--color-gray-10);border:1px solid var(--color-gray-30)}.non-selectable{pointer-events:none;opacity:.5}.tooltip{display:grid;position:relative}.tooltip:hover .tooltip__text{display:block}.tooltip__text{min-width:200px;top:-20px;left:50%;transform:translate(-50%,-100%);padding:0 var(--spacing-medium);color:var(--color-gray-70);background-color:var(--brand-colors-white-100);font-size:var(--font-size-small);border-radius:var(--rounding-large);position:absolute;z-index:10000;box-shadow:0 1px var(--spacing-x-small) #0003;display:none}.tooltip__text i{position:absolute;top:100%;left:50%;margin-left:-12px;width:var(--spacing-large);height:var(--spacing-small);overflow:hidden}.tooltip__text i:after{content:"";position:absolute;width:var(--spacing-small);height:var(--spacing-small);left:50%;transform:translate(-50%,-50%) rotate(45deg);background-color:var(--brand-colors-white-100);box-shadow:0 1px var(--spacing-x-small) #0003}.accessibility{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);align-items:center;width:fit-content}.directions{color:var(--brand-colors-black-100);height:100%;grid-template-rows:1fr}.directions__details{padding:var(--spacing-medium) 0}.directions__cancel,.directions__finish{background-color:var(--tailwind-colors-gray-100);border:none;border-radius:var(--rounding-large);width:100%;height:fit-content;padding:var(--spacing-medium);text-transform:uppercase;font-weight:var(--font-weight-x-large);color:var(--color-gray-70)}.directions__cancel:hover,.directions__finish:hover{background-color:var(--tailwind-colors-gray-200)}.directions__finish{color:var(--color-white-white)}.directions__minutes{font-weight:var(--font-weight-large);color:var(--color-gray-60);position:sticky;top:0;background:var(--color-white-white);z-index:10000;padding-bottom:var(--spacing-medium);padding-top:var(--spacing-medium)}.directions__info{display:flex;align-items:center;font-size:var(--font-size-small)}.directions__icon{margin-right:var(--spacing-medium)}.directions__icon img{height:var(--spacing-x-large);display:block}.directions__name{display:grid;grid-auto-flow:column;gap:var(--spacing-xx-small);font-size:var(--font-size-small)}.directions mi-location-info{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.directions__content{display:grid;gap:var(--spacing-xx-small)}.directions__qr-code{width:fit-content;display:grid;gap:var(--spacing-medium);grid-auto-flow:column;align-items:center;padding:var(--spacing-medium);background-color:var(--tailwind-colors-gray-100);border:none;border-radius:var(--rounding-large);font-weight:var(--font-weight-x-large);color:var(--color-gray-90)}.directions__qr-code:hover{background-color:var(--tailwind-colors-gray-200)}.directions__kiosk{display:grid;grid-auto-flow:column;align-items:center;justify-content:space-between;padding:var(--spacing-x-small) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium)}.directions hr{width:100%;background-color:var(--color-gray-30);height:1px;border:none}.directions__steps{padding:0 var(--spacing-medium)}.directions__actions{padding:0 var(--spacing-medium) var(--spacing-medium) var(--spacing-medium);position:sticky;bottom:0;background:var(--color-white-white);border-top:1px solid var(--color-gray-30)}@media (max-width: 992px){.directions{min-height:273px}}.route-instructions{height:100%;display:grid;grid-template-rows:1fr min-content}.route-instructions__footer{position:sticky;bottom:134px;background:white;padding-bottom:var(--spacing-medium)}.route-instructions__footer:before{content:"";position:absolute;pointer-events:none;bottom:var(--spacing-xx-large);left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.route-instructions__footer--kiosk:before{background:transparent}.route-instructions__actions{display:grid;grid-auto-flow:column;justify-content:space-between;align-items:center}.route-instructions__overview{color:var(--color-gray-90);font-weight:var(--font-weight-large)}.route-instructions__button{display:grid;justify-content:center;background:none;border:none;width:var(--icon-size-medium);height:var(--icon-size-medium);align-content:center}.route-instructions__button--kiosk{border-radius:var(--rounding-large);border:1px solid var(--color-gray-30);padding:18px}.route-instructions button:disabled,.route-instructions button[disabled]{cursor:not-allowed;opacity:.3}.route-instructions mi-route-instructions-step{height:100%}.search{padding:var(--spacing-medium)}.search__error{text-align:center}.search__results{display:grid;gap:var(--spacing-x-small);overflow:auto;flex:1 1 auto;margin-top:var(--spacing-x-small)}.search__results>*{height:fit-content}.search__scroll-buttons{position:fixed;left:calc(50% + 304px);bottom:var(--spacing-x-large)}.search__info{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small)}.search__legend{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);border:1px solid var(--color-gray-30);border-radius:var(--rounding-large);background-color:#fff}@media (max-width: 992px){.search{padding:var(--spacing-medium) var(--spacing-x-small) var(--spacing-medium) var(--spacing-x-small)}}.categories{overflow:auto hidden;flex-shrink:0;display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);margin-top:var(--spacing-x-small)}.categories ::-webkit-scrollbar{width:0;height:0;background:transparent}.categories__list{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);overflow:auto hidden;grid-auto-columns:min-content;scrollbar-width:none}.categories__scroll-button{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);background-color:var(--brand-colors-white-100);border:1px solid var(--color-gray-30);border-radius:var(--spacing-x-small)}.categories__scroll-button:disabled{cursor:not-allowed;opacity:.3}.locations-list{display:grid;grid-template-rows:50px 1fr;height:100%}.locations-list__header{padding:var(--spacing-medium)}.locations-list__title{font-size:var(--font-size-medium);text-align:center;font-weight:var(--font-weight-large);color:var(--color-gray-90)}.locations-list__close{position:absolute;top:var(--spacing-x-small);right:var(--spacing-x-small);background:none;border:none}.locations-list__list{display:grid;gap:var(--spacing-x-small);overflow:auto;grid-auto-rows:min-content;padding:var(--spacing-x-small)}.locations-list__scrollable{overflow:auto}@media (max-width: 992px){.locations-list{min-height:200px}}.modal{position:absolute;z-index:var(--z-index-overlay);width:568px;left:var(--spacing-x-large);bottom:var(--spacing-x-large);border-radius:var(--spacing-x-small);border:1px solid var(--color-gray-30);background:var(--color-white-white);transform:translateY(calc(100% + var(--spacing-large)));overflow:auto;display:none;max-height:80%}.modal--open{transform:translateY(0);display:block}.modal--full:not(.modal--kiosk){height:100%}.modal--full:not(.modal--kiosk) .modal__content{height:100%}.modal--substeps,.modal--substeps .modal__content{height:100%}.modal--kiosk{left:0;right:0;margin-left:auto;margin-right:auto;max-height:none}.notification{z-index:10000000;min-width:320px}.background{z-index:var(--z-index-spinner);background-color:var(--color-black-black);opacity:.5;position:fixed;width:100%;height:100%;top:0px;left:0px;overflow:hidden}.qr-code{position:absolute;background:white;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;border-radius:var(--rounding-large);padding:var(--spacing-medium);z-index:var(--z-index-modal);display:grid}.qr-code__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large);text-transform:uppercase}.qr-code__button:hover{filter:brightness(90%)}.qr-code__image{justify-self:center;padding-top:var(--spacing-medium)}.qr-code p{font-weight:var(--font-weight-large)}.legend{position:absolute;background:white;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:var(--rounding-large);padding:var(--spacing-medium);z-index:var(--z-index-modal);display:grid;width:500px}.legend__background{z-index:var(--z-index-spinner);background-color:var(--color-black-black);opacity:.5;position:fixed;width:100%;height:100%;top:0px;left:0px;overflow:hidden}.legend__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large);text-transform:uppercase}.legend__button:hover{filter:brightness(90%)}.legend__heading{font-size:var(--spacing-x-large);font-weight:var(--font-weight-xx-large);color:var(--color-gray-90);padding-top:var(--spacing-medium)}.legend__section{display:grid;gap:var(--spacing-medium);word-break:break-all}.legend__sections--scrollable:before{content:"";position:absolute;bottom:calc(56px + var(--spacing-small));left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.legend__sections--scrollable:after{content:"";position:absolute;top:0;left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(white,rgba(255,255,255,0))}.legend__content{padding-bottom:var(--spacing-medium)}.legend .scroll-buttons{position:fixed;left:520px;bottom:0}`)),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- (function(){try{var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lc=new Error().stack;Lc&&(Ga._sentryDebugIds=Ga._sentryDebugIds||{},Ga._sentryDebugIds[Lc]="9583ba9b-e1b7-4da5-80f7-059648eeacd9",Ga._sentryDebugIdIdentifier="sentry-dbid-9583ba9b-e1b7-4da5-80f7-059648eeacd9")}catch{}})();(function(Ga,Lc){typeof exports=="object"&&typeof module<"u"?module.exports=Lc():typeof define=="function"&&define.amd?define(Lc):(Ga=typeof globalThis<"u"?globalThis:Ga||self,Ga.MapTemplate=Lc())})(this,function(){"use strict";var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ga.SENTRY_RELEASE={id:"94efb75c530ddd057846bf4c65442e9c6012f329"};var Lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PD={exports:{}},rV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oV=rV,sV=oV;function UD(){}function BD(){}BD.resetWarningCache=UD;var aV=function(){function e(s,u,f,m,a,v){if(v!==sV){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BD,resetWarningCache:UD};return r.PropTypes=r,r};PD.exports=aV();var lV=PD.exports;const Tr=Rd(lV);var FD={exports:{}},Bi={};/**
2
+ (function(){try{var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lc=new Error().stack;Lc&&(Ga._sentryDebugIds=Ga._sentryDebugIds||{},Ga._sentryDebugIds[Lc]="5ba15543-ce1f-4da8-aa04-07d6c5316f60",Ga._sentryDebugIdIdentifier="sentry-dbid-5ba15543-ce1f-4da8-aa04-07d6c5316f60")}catch{}})();(function(Ga,Lc){typeof exports=="object"&&typeof module<"u"?module.exports=Lc():typeof define=="function"&&define.amd?define(Lc):(Ga=typeof globalThis<"u"?globalThis:Ga||self,Ga.MapTemplate=Lc())})(this,function(){"use strict";var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ga.SENTRY_RELEASE={id:"5da5ca0d1ca288fde68bb02545ab37cbf6cd1d0f"};var Lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PD={exports:{}},rV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oV=rV,sV=oV;function UD(){}function BD(){}BD.resetWarningCache=UD;var aV=function(){function e(s,u,f,m,a,v){if(v!==sV){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BD,resetWarningCache:UD};return r.PropTypes=r,r};PD.exports=aV();var lV=PD.exports;const Tr=Rd(lV);var FD={exports:{}},Bi={};/**
3
3
  * @license React
4
4
  * react.production.min.js
5
5
  *
@@ -79,7 +79,7 @@ Sentry.init({ replaysOnErrorSampleRate: ${D} })`),this._initialOptions.errorSamp
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */var Eo=typeof Symbol=="function"&&Symbol.for,R5=Eo?Symbol.for("react.element"):60103,P5=Eo?Symbol.for("react.portal"):60106,Ev=Eo?Symbol.for("react.fragment"):60107,Dv=Eo?Symbol.for("react.strict_mode"):60108,Av=Eo?Symbol.for("react.profiler"):60114,Cv=Eo?Symbol.for("react.provider"):60109,Nv=Eo?Symbol.for("react.context"):60110,U5=Eo?Symbol.for("react.async_mode"):60111,Lv=Eo?Symbol.for("react.concurrent_mode"):60111,zv=Eo?Symbol.for("react.forward_ref"):60112,kv=Eo?Symbol.for("react.suspense"):60113,qX=Eo?Symbol.for("react.suspense_list"):60120,Ov=Eo?Symbol.for("react.memo"):60115,jv=Eo?Symbol.for("react.lazy"):60116,KX=Eo?Symbol.for("react.block"):60121,XX=Eo?Symbol.for("react.fundamental"):60117,JX=Eo?Symbol.for("react.responder"):60118,eJ=Eo?Symbol.for("react.scope"):60119;function Fs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R5:switch(e=e.type,e){case U5:case Lv:case Ev:case Av:case Dv:case kv:return e;default:switch(e=e&&e.$$typeof,e){case Nv:case zv:case jv:case Ov:case Cv:return e;default:return t}}case P5:return t}}}function Fz(e){return Fs(e)===Lv}hr.AsyncMode=U5,hr.ConcurrentMode=Lv,hr.ContextConsumer=Nv,hr.ContextProvider=Cv,hr.Element=R5,hr.ForwardRef=zv,hr.Fragment=Ev,hr.Lazy=jv,hr.Memo=Ov,hr.Portal=P5,hr.Profiler=Av,hr.StrictMode=Dv,hr.Suspense=kv,hr.isAsyncMode=function(e){return Fz(e)||Fs(e)===U5},hr.isConcurrentMode=Fz,hr.isContextConsumer=function(e){return Fs(e)===Nv},hr.isContextProvider=function(e){return Fs(e)===Cv},hr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R5},hr.isForwardRef=function(e){return Fs(e)===zv},hr.isFragment=function(e){return Fs(e)===Ev},hr.isLazy=function(e){return Fs(e)===jv},hr.isMemo=function(e){return Fs(e)===Ov},hr.isPortal=function(e){return Fs(e)===P5},hr.isProfiler=function(e){return Fs(e)===Av},hr.isStrictMode=function(e){return Fs(e)===Dv},hr.isSuspense=function(e){return Fs(e)===kv},hr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ev||e===Lv||e===Av||e===Dv||e===kv||e===qX||typeof e=="object"&&e!==null&&(e.$$typeof===jv||e.$$typeof===Ov||e.$$typeof===Cv||e.$$typeof===Nv||e.$$typeof===zv||e.$$typeof===XX||e.$$typeof===JX||e.$$typeof===eJ||e.$$typeof===KX)},hr.typeOf=Fs,Bz.exports=hr;var tJ=Bz.exports,B5=tJ,nJ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},iJ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F5={};F5[B5.ForwardRef]=rJ,F5[B5.Memo]=Vz;function $z(e){return B5.isMemo(e)?Vz:F5[e.$$typeof]||nJ}var oJ=Object.defineProperty,sJ=Object.getOwnPropertyNames,Qz=Object.getOwnPropertySymbols,aJ=Object.getOwnPropertyDescriptor,lJ=Object.getPrototypeOf,Hz=Object.prototype;function Yz(e,t,r){if(typeof t!="string"){if(Hz){var s=lJ(t);s&&s!==Hz&&Yz(e,s,r)}var u=sJ(t);Qz&&(u=u.concat(Qz(t)));for(var f=$z(e),m=$z(t),a=0;a<u.length;++a){var v=u[a];if(!iJ[v]&&!(r&&r[v])&&!(m&&m[v])&&!(f&&f[v])){var S=aJ(t,v);try{oJ(e,v,S)}catch{}}}}return e}var cJ=Yz;const uJ=Rd(cJ),hJ="ui.react.render",dJ="ui.react.update",fJ="ui.react.mount",Gz="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",pJ="unknown";class Zz extends Oe.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:r,disabled:s=!1}=this.props;s||(this._mountSpan=dg({name:`<${r}>`,onlyIfParent:!0,op:fJ,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":r}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:r=!0}){if(r&&this._mountSpan&&t!==this.props.updateProps){const s=Object.keys(t).filter(u=>t[u]!==this.props.updateProps[u]);if(s.length>0){const u=wh();this._updateSpan=aL(this._mountSpan,()=>dg({name:`<${this.props.name}>`,onlyIfParent:!0,op:dJ,origin:"auto.ui.react.profiler",startTimestamp:u,attributes:{"ui.component_name":this.props.name,"ui.react.changed_props":s}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=wh(),{name:r,includeRender:s=!0}=this.props;if(this._mountSpan&&s){const u=Yr(this._mountSpan).timestamp;aL(this._mountSpan,()=>{const f=dg({onlyIfParent:!0,name:`<${r}>`,op:hJ,origin:"auto.ui.react.profiler",startTimestamp:u,attributes:{"ui.component_name":r}});f&&f.end(t)})}}render(){return this.props.children}}Zz.__initStatic();function mJ(e,t){const r=t&&t.name||e.displayName||e.name||pJ,s=u=>Oe.createElement(Zz,{...t,name:r,updateProps:u,__self:this,__source:{fileName:Gz,lineNumber:159}},Oe.createElement(e,{...u,__self:this,__source:{fileName:Gz,lineNumber:160}}));return s.displayName=`profiler(${r})`,uJ(s,e),s}function gJ(e){const t=vZ({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:s,useNavigationType:u,createRoutesFromChildren:f,matchRoutes:m,stripBasename:a,instrumentPageLoad:v=!0,instrumentNavigation:S=!0}=e;return{...t,afterAllSetup(D){t.afterAllSetup(D);const N=ir&&ir.location&&ir.location.pathname;v&&N&&s8(D,{name:N,attributes:{[nl]:"url",[fg]:"pageload",[Sh]:"auto.pageload.react.reactrouter_v6"}})}}}function yJ(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var _J=yJ,Li=_J;function vJ(e){return!!e&&typeof e.then=="function"}var Dr=vJ;function xJ(e,t){if(e!=null)return e;throw Li(t??"Got unexpected null or undefined")}var zr=xJ;function Ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Rv{getValue(){throw Li("BaseLoadable")}toPromise(){throw Li("BaseLoadable")}valueMaybe(){throw Li("BaseLoadable")}valueOrThrow(){throw Li(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Li("BaseLoadable")}promiseOrThrow(){throw Li(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Li("BaseLoadable")}errorOrThrow(){throw Li(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Li("BaseLoadable")}}class bJ extends Rv{constructor(t){super(),Ai(this,"state","hasValue"),Ai(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const r=t(this.contents);return Dr(r)?Dh(r):Uf(r)?r:Cg(r)}catch(r){return Dr(r)?Dh(r.next(()=>this.map(t))):Pv(r)}}}class MJ extends Rv{constructor(t){super(),Ai(this,"state","hasError"),Ai(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class Wz extends Rv{constructor(t){super(),Ai(this,"state","loading"),Ai(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Dh(this.contents.then(r=>{const s=t(r);if(Uf(s)){const u=s;switch(u.state){case"hasValue":return u.contents;case"hasError":throw u.contents;case"loading":return u.contents}}return s}).catch(r=>{if(Dr(r))return r.then(()=>this.map(t).contents);throw r}))}}function Cg(e){return Object.freeze(new bJ(e))}function Pv(e){return Object.freeze(new MJ(e))}function Dh(e){return Object.freeze(new Wz(e))}function qz(){return Object.freeze(new Wz(new Promise(()=>{})))}function wJ(e){return e.every(t=>t.state==="hasValue")?Cg(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Pv(zr(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Dh(Promise.all(e.map(t=>t.contents)))}function Kz(e){const r=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(u=>e[u])).map(u=>Uf(u)?u:Dr(u)?Dh(u):Cg(u)),s=wJ(r);return Array.isArray(e)?s:s.map(u=>Object.getOwnPropertyNames(e).reduce((f,m,a)=>({...f,[m]:u[a]}),{}))}function Uf(e){return e instanceof Rv}var Ah={loadableWithValue:Cg,loadableWithError:Pv,loadableWithPromise:Dh,loadableLoading:qz,loadableAll:Kz,isLoadable:Uf,RecoilLoadable:{of:e=>Dr(e)?Dh(e):Uf(e)?e:Cg(e),error:e=>Pv(e),loading:()=>qz(),all:Kz,isLoadable:Uf}},IJ=Ah.loadableWithValue,TJ=Ah.loadableWithError,SJ=Ah.loadableWithPromise,EJ=Ah.loadableLoading,DJ=Ah.loadableAll,AJ=Ah.isLoadable,CJ=Ah.RecoilLoadable,Ng=Object.freeze({__proto__:null,loadableWithValue:IJ,loadableWithError:TJ,loadableWithPromise:SJ,loadableLoading:EJ,loadableAll:DJ,isLoadable:AJ,RecoilLoadable:CJ});const V5={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function NJ(e,t){var r,s;const u=(r=process.env[e])===null||r===void 0||(s=r.toLowerCase())===null||s===void 0?void 0:s.trim();if(u==null||u==="")return;if(!["true","false"].includes(u))throw Li(`process.env.${e} value must be 'true', 'false', or empty: ${u}`);t(u==="true")}function LJ(e,t){var r;const s=(r=process.env[e])===null||r===void 0?void 0:r.trim();s==null||s===""||t(s.split(/\s*,\s*|\s+/))}function zJ(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(NJ("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{V5.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),LJ("RECOIL_GKS_ENABLED",t=>{t.forEach(r=>{V5.RECOIL_GKS_ENABLED.add(r)})}))}zJ();var Bf=V5;function Uv(e){return Bf.RECOIL_GKS_ENABLED.has(e)}Uv.setPass=e=>{Bf.RECOIL_GKS_ENABLED.add(e)},Uv.setFail=e=>{Bf.RECOIL_GKS_ENABLED.delete(e)},Uv.clear=()=>{Bf.RECOIL_GKS_ENABLED.clear()};var vr=Uv;function kJ(e,t,{error:r}={}){return null}var OJ=kJ,$5=OJ,Q5,H5,Y5;const jJ=(Q5=Vi.createMutableSource)!==null&&Q5!==void 0?Q5:Vi.unstable_createMutableSource,Xz=(H5=Vi.useMutableSource)!==null&&H5!==void 0?H5:Vi.unstable_useMutableSource,Jz=(Y5=Vi.useSyncExternalStore)!==null&&Y5!==void 0?Y5:Vi.unstable_useSyncExternalStore;function RJ(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:r}=Vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:r.currentDispatcher).useSyncExternalStore!=null}function PJ(){return vr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:vr("recoil_sync_external_store")&&Jz!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:vr("recoil_mutable_source")&&Xz!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?vr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:vr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function UJ(){return!1}var Lg={createMutableSource:jJ,useMutableSource:Xz,useSyncExternalStore:Jz,currentRendererSupportsUseSyncExternalStore:RJ,reactMode:PJ,isFastRefreshEnabled:UJ};class G5{constructor(t){Ai(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class ek extends G5{}class tk extends G5{}function BJ(e){return e instanceof ek||e instanceof tk}var Bv={AbstractRecoilValue:G5,RecoilState:ek,RecoilValueReadOnly:tk,isRecoilValue:BJ},FJ=Bv.AbstractRecoilValue,VJ=Bv.RecoilState,$J=Bv.RecoilValueReadOnly,QJ=Bv.isRecoilValue,Ff=Object.freeze({__proto__:null,AbstractRecoilValue:FJ,RecoilState:VJ,RecoilValueReadOnly:$J,isRecoilValue:QJ});function HJ(e,t){return function*(){let r=0;for(const s of e)yield t(s,r++)}()}var Fv=HJ;class nk{}const YJ=new nk,Ch=new Map,Z5=new Map;function GJ(e){return Fv(e,t=>zr(Z5.get(t)))}function ZJ(e){if(Ch.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
81
81
  production. But it is safe to ignore this warning if it occurred because of
82
- hot module replacement.`;console.warn(t)}}function WJ(e){Bf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&ZJ(e.key),Ch.set(e.key,e);const t=e.set==null?new Ff.RecoilValueReadOnly(e.key):new Ff.RecoilState(e.key);return Z5.set(e.key,t),t}class ik extends Error{}function qJ(e){const t=Ch.get(e);if(t==null)throw new ik(`Missing definition for RecoilValue: "${e}""`);return t}function KJ(e){return Ch.get(e)}const Vv=new Map;function XJ(e){var t;if(!vr("recoil_memory_managament_2020"))return;const r=Ch.get(e);if(r!=null&&(t=r.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(r)){var s;Ch.delete(e),(s=rk(e))===null||s===void 0||s(),Vv.delete(e)}}function JJ(e,t){vr("recoil_memory_managament_2020")&&(t===void 0?Vv.delete(e):Vv.set(e,t))}function rk(e){return Vv.get(e)}var vs={nodes:Ch,recoilValues:Z5,registerNode:WJ,getNode:qJ,getNodeMaybe:KJ,deleteNodeConfigIfPossible:XJ,setConfigDeletionHandler:JJ,getConfigDeletionHandler:rk,recoilValuesForKeys:GJ,NodeMissingError:ik,DefaultValue:nk,DEFAULT_VALUE:YJ};function eee(e,t){t()}var tee={enqueueExecution:eee};function nee(e,t){return t={exports:{}},e(t,t.exports),t.exports}var iee=nee(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},r={},s=5,u=Math.pow(2,s),f=u-1,m=u/2,a=u/4,v={},S=function(Pe){return function(){return Pe}},D=r.hash=function(Fe){var Pe=typeof Fe>"u"?"undefined":t(Fe);if(Pe==="number")return Fe;Pe!=="string"&&(Fe+="");for(var St=0,Xt=0,Dt=Fe.length;Xt<Dt;++Xt){var kt=Fe.charCodeAt(Xt);St=(St<<5)-St+kt|0}return St},N=function(Pe){return Pe-=Pe>>1&1431655765,Pe=(Pe&858993459)+(Pe>>2&858993459),Pe=Pe+(Pe>>4)&252645135,Pe+=Pe>>8,Pe+=Pe>>16,Pe&127},C=function(Pe,St){return St>>>Pe&f},O=function(Pe){return 1<<Pe},R=function(Pe,St){return N(Pe&St-1)},V=function(Pe,St,Xt,Dt){var kt=Dt;if(!Pe){var Ft=Dt.length;kt=new Array(Ft);for(var Vt=0;Vt<Ft;++Vt)kt[Vt]=Dt[Vt]}return kt[St]=Xt,kt},q=function(Pe,St,Xt){var Dt=Xt.length-1,kt=0,Ft=0,Vt=Xt;if(Pe)kt=Ft=St;else for(Vt=new Array(Dt);kt<St;)Vt[Ft++]=Xt[kt++];for(++kt;kt<=Dt;)Vt[Ft++]=Xt[kt++];return Pe&&(Vt.length=Dt),Vt},H=function(Pe,St,Xt,Dt){var kt=Dt.length;if(Pe){for(var Ft=kt;Ft>=St;)Dt[Ft--]=Dt[Ft];return Dt[St]=Xt,Dt}for(var Vt=0,tn=0,Sn=new Array(kt+1);Vt<St;)Sn[tn++]=Dt[Vt++];for(Sn[St]=Xt;Vt<kt;)Sn[++tn]=Dt[Vt++];return Sn},Y=1,W=2,ee=3,fe=4,pe={__hamt_isEmpty:!0},he=function(Pe){return Pe===pe||Pe&&Pe.__hamt_isEmpty},oe=function(Pe,St,Xt,Dt){return{type:Y,edit:Pe,hash:St,key:Xt,value:Dt,_modify:Ye}},Ve=function(Pe,St,Xt){return{type:W,edit:Pe,hash:St,children:Xt,_modify:qe}},De=function(Pe,St,Xt){return{type:ee,edit:Pe,mask:St,children:Xt,_modify:Ie}},Ae=function(Pe,St,Xt){return{type:fe,edit:Pe,size:St,children:Xt,_modify:Te}},Ge=function(Pe){return Pe===pe||Pe.type===Y||Pe.type===W},it=function(Pe,St,Xt,Dt,kt){for(var Ft=[],Vt=Dt,tn=0,Sn=0;Vt;++Sn)Vt&1&&(Ft[Sn]=kt[tn++]),Vt>>>=1;return Ft[St]=Xt,Ae(Pe,tn+1,Ft)},Ee=function(Pe,St,Xt,Dt){for(var kt=new Array(St-1),Ft=0,Vt=0,tn=0,Sn=Dt.length;tn<Sn;++tn)if(tn!==Xt){var Xn=Dt[tn];Xn&&!he(Xn)&&(kt[Ft++]=Xn,Vt|=1<<tn)}return De(Pe,Vt,kt)},Ze=function Fe(Pe,St,Xt,Dt,kt,Ft){if(Xt===kt)return Ve(Pe,Xt,[Ft,Dt]);var Vt=C(St,Xt),tn=C(St,kt);return De(Pe,O(Vt)|O(tn),Vt===tn?[Fe(Pe,St+s,Xt,Dt,kt,Ft)]:Vt<tn?[Dt,Ft]:[Ft,Dt])},ze=function(Pe,St,Xt,Dt,kt,Ft,Vt,tn){for(var Sn=kt.length,Xn=0;Xn<Sn;++Xn){var ai=kt[Xn];if(Xt(Vt,ai.key)){var Ei=ai.value,Wi=Ft(Ei);return Wi===Ei?kt:Wi===v?(--tn.value,q(Pe,Xn,kt)):V(Pe,Xn,oe(St,Dt,Vt,Wi),kt)}}var qi=Ft();return qi===v?kt:(++tn.value,V(Pe,Sn,oe(St,Dt,Vt,qi),kt))},Le=function(Pe,St){return Pe===St.edit},Ye=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(St(Ft,this.key)){var tn=Dt(this.value);return tn===this.value?this:tn===v?(--Vt.value,pe):Le(Pe,this)?(this.value=tn,this):oe(Pe,kt,Ft,tn)}var Sn=Dt();return Sn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Sn)))},qe=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(kt===this.hash){var tn=Le(Pe,this),Sn=ze(tn,Pe,St,this.hash,this.children,Dt,Ft,Vt);return Sn===this.children?this:Sn.length>1?Ve(Pe,this.hash,Sn):Sn[0]}var Xn=Dt();return Xn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Xn)))},Ie=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.mask,Sn=this.children,Xn=C(Xt,kt),ai=O(Xn),Ei=R(tn,ai),Wi=tn&ai,qi=Wi?Sn[Ei]:pe,Zn=qi._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(qi===Zn)return this;var Ki=Le(Pe,this),Mt=tn,It=void 0;if(Wi&&he(Zn)){if(Mt&=~ai,!Mt)return pe;if(Sn.length<=2&&Ge(Sn[Ei^1]))return Sn[Ei^1];It=q(Ki,Ei,Sn)}else if(!Wi&&!he(Zn)){if(Sn.length>=m)return it(Pe,Xn,Zn,tn,Sn);Mt|=ai,It=H(Ki,Ei,Zn,Sn)}else It=V(Ki,Ei,Zn,Sn);return Ki?(this.mask=Mt,this.children=It,this):De(Pe,Mt,It)},Te=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.size,Sn=this.children,Xn=C(Xt,kt),ai=Sn[Xn],Ei=(ai||pe)._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(ai===Ei)return this;var Wi=Le(Pe,this),qi=void 0;if(he(ai)&&!he(Ei))++tn,qi=V(Wi,Xn,Ei,Sn);else if(!he(ai)&&he(Ei)){if(--tn,tn<=a)return Ee(Pe,tn,Xn,Sn);qi=V(Wi,Xn,pe,Sn)}else qi=V(Wi,Xn,Ei,Sn);return Wi?(this.size=tn,this.children=qi,this):Ae(Pe,tn,qi)};pe._modify=function(Fe,Pe,St,Xt,Dt,kt,Ft){var Vt=Xt();return Vt===v?pe:(++Ft.value,oe(Fe,Dt,kt,Vt))};function le(Fe,Pe,St,Xt,Dt){this._editable=Fe,this._edit=Pe,this._config=St,this._root=Xt,this._size=Dt}le.prototype.setTree=function(Fe,Pe){return this._editable?(this._root=Fe,this._size=Pe,this):Fe===this._root?this:new le(this._editable,this._edit,this._config,Fe,Pe)};var X=r.tryGetHash=function(Fe,Pe,St,Xt){for(var Dt=Xt._root,kt=0,Ft=Xt._config.keyEq;;)switch(Dt.type){case Y:return Ft(St,Dt.key)?Dt.value:Fe;case W:{if(Pe===Dt.hash)for(var Vt=Dt.children,tn=0,Sn=Vt.length;tn<Sn;++tn){var Xn=Vt[tn];if(Ft(St,Xn.key))return Xn.value}return Fe}case ee:{var ai=C(kt,Pe),Ei=O(ai);if(Dt.mask&Ei){Dt=Dt.children[R(Dt.mask,Ei)],kt+=s;break}return Fe}case fe:{if(Dt=Dt.children[C(kt,Pe)],Dt){kt+=s;break}return Fe}default:return Fe}};le.prototype.tryGetHash=function(Fe,Pe,St){return X(Fe,Pe,St,this)};var ie=r.tryGet=function(Fe,Pe,St){return X(Fe,St._config.hash(Pe),Pe,St)};le.prototype.tryGet=function(Fe,Pe){return ie(Fe,Pe,this)};var Me=r.getHash=function(Fe,Pe,St){return X(void 0,Fe,Pe,St)};le.prototype.getHash=function(Fe,Pe){return Me(Fe,Pe,this)},r.get=function(Fe,Pe){return X(void 0,Pe._config.hash(Fe),Fe,Pe)},le.prototype.get=function(Fe,Pe){return ie(Pe,Fe,this)};var xe=r.has=function(Fe,Pe,St){return X(v,Fe,Pe,St)!==v};le.prototype.hasHash=function(Fe,Pe){return xe(Fe,Pe,this)};var $e=r.has=function(Fe,Pe){return xe(Pe._config.hash(Fe),Fe,Pe)};le.prototype.has=function(Fe){return $e(Fe,this)};var He=function(Pe,St){return Pe===St};r.make=function(Fe){return new le(0,0,{keyEq:Fe&&Fe.keyEq||He,hash:Fe&&Fe.hash||D},pe,0)},r.empty=r.make();var Ue=r.isEmpty=function(Fe){return Fe&&!!he(Fe._root)};le.prototype.isEmpty=function(){return Ue(this)};var Xe=r.modifyHash=function(Fe,Pe,St,Xt){var Dt={value:Xt._size},kt=Xt._root._modify(Xt._editable?Xt._edit:NaN,Xt._config.keyEq,0,Fe,Pe,St,Dt);return Xt.setTree(kt,Dt.value)};le.prototype.modifyHash=function(Fe,Pe,St){return Xe(St,Fe,Pe,this)};var ut=r.modify=function(Fe,Pe,St){return Xe(Fe,St._config.hash(Pe),Pe,St)};le.prototype.modify=function(Fe,Pe){return ut(Pe,Fe,this)};var _t=r.setHash=function(Fe,Pe,St,Xt){return Xe(S(St),Fe,Pe,Xt)};le.prototype.setHash=function(Fe,Pe,St){return _t(Fe,Pe,St,this)};var et=r.set=function(Fe,Pe,St){return _t(St._config.hash(Fe),Fe,Pe,St)};le.prototype.set=function(Fe,Pe){return et(Fe,Pe,this)};var bt=S(v),Ot=r.removeHash=function(Fe,Pe,St){return Xe(bt,Fe,Pe,St)};le.prototype.removeHash=le.prototype.deleteHash=function(Fe,Pe){return Ot(Fe,Pe,this)};var Rt=r.remove=function(Fe,Pe){return Ot(Pe._config.hash(Fe),Fe,Pe)};le.prototype.remove=le.prototype.delete=function(Fe){return Rt(Fe,this)};var dn=r.beginMutation=function(Fe){return new le(Fe._editable+1,Fe._edit+1,Fe._config,Fe._root,Fe._size)};le.prototype.beginMutation=function(){return dn(this)};var Bn=r.endMutation=function(Fe){return Fe._editable=Fe._editable&&Fe._editable-1,Fe};le.prototype.endMutation=function(){return Bn(this)};var Tt=r.mutate=function(Fe,Pe){var St=dn(Pe);return Fe(St),Bn(St)};le.prototype.mutate=function(Fe){return Tt(Fe,this)};var kn=function(Pe){return Pe&&An(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4])},An=function(Pe,St,Xt,Dt,kt){for(;Xt<Pe;){var Ft=St[Xt++];if(Ft&&!he(Ft))return Cn(Ft,Dt,[Pe,St,Xt,Dt,kt])}return kn(kt)},Cn=function(Pe,St,Xt){switch(Pe.type){case Y:return{value:St(Pe),rest:Xt};case W:case fe:case ee:var Dt=Pe.children;return An(Dt.length,Dt,0,St,Xt);default:return kn(Xt)}},$n={done:!0};function ni(Fe){this.v=Fe}ni.prototype.next=function(){if(!this.v)return $n;var Fe=this.v;return this.v=kn(Fe.rest),Fe},ni.prototype[Symbol.iterator]=function(){return this};var st=function(Pe,St){return new ni(Cn(Pe._root,St))},se=function(Pe){return[Pe.key,Pe.value]},ce=r.entries=function(Fe){return st(Fe,se)};le.prototype.entries=le.prototype[Symbol.iterator]=function(){return ce(this)};var Ne=function(Pe){return Pe.key},ht=r.keys=function(Fe){return st(Fe,Ne)};le.prototype.keys=function(){return ht(this)};var vt=function(Pe){return Pe.value},pt=r.values=le.prototype.values=function(Fe){return st(Fe,vt)};le.prototype.values=function(){return pt(this)};var Ct=r.fold=function(Fe,Pe,St){var Xt=St._root;if(Xt.type===Y)return Fe(Pe,Xt.value,Xt.key);for(var Dt=[Xt.children],kt=void 0;kt=Dt.pop();)for(var Ft=0,Vt=kt.length;Ft<Vt;){var tn=kt[Ft++];tn&&tn.type&&(tn.type===Y?Pe=Fe(Pe,tn.value,tn.key):Dt.push(tn.children))}return Pe};le.prototype.fold=function(Fe,Pe){return Ct(Fe,Pe,this)};var mt=r.forEach=function(Fe,Pe){return Ct(function(St,Xt,Dt){return Fe(Xt,Dt,Pe)},null,Pe)};le.prototype.forEach=function(Fe){return mt(Fe,this)};var an=r.count=function(Fe){return Fe._size};le.prototype.count=function(){return an(this)},Object.defineProperty(le.prototype,"size",{get:le.prototype.count}),e.exports?e.exports=r:(void 0).hamt=r});class ree{constructor(t){Ai(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,r){return this._map.set(t,r),this}delete(t){return this._map.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._map)}}class W5{constructor(t){if(Ai(this,"_hamt",iee.empty.beginMutation()),t instanceof W5){const r=t._hamt.endMutation();t._hamt=r.beginMutation(),this._hamt=r.beginMutation()}else if(t)for(const[r,s]of t.entries())this._hamt.set(r,s)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,r){return this._hamt.set(t,r),this}delete(t){return this._hamt.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._hamt)}}function q5(e){return vr("recoil_hamt_2020")?new W5(e):new ree(e)}var oee={persistentMap:q5},see=oee.persistentMap,aee=Object.freeze({__proto__:null,persistentMap:see});function lee(e,...t){const r=new Set;e:for(const s of e){for(const u of t)if(u.has(s))continue e;r.add(s)}return r}var zg=lee;function cee(e,t){const r=new Map;return e.forEach((s,u)=>{r.set(u,t(s,u))}),r}var $v=cee;function uee(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function hee(e){return{nodeDeps:$v(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:$v(e.nodeToNodeSubscriptions,t=>new Set(t))}}function K5(e,t,r,s){const{nodeDeps:u,nodeToNodeSubscriptions:f}=r,m=u.get(e);if(m&&s&&m!==s.nodeDeps.get(e))return;u.set(e,t);const a=m==null?t:zg(t,m);for(const v of a)f.has(v)||f.set(v,new Set),zr(f.get(v)).add(e);if(m){const v=zg(m,t);for(const S of v){if(!f.has(S))return;const D=zr(f.get(S));D.delete(e),D.size===0&&f.delete(S)}}}function dee(e,t,r,s){var u,f,m,a;const v=r.getState();s===v.currentTree.version||s===((u=v.nextTree)===null||u===void 0?void 0:u.version)||((f=v.previousTree)===null||f===void 0||f.version);const S=r.getGraph(s);if(K5(e,t,S),s===((m=v.previousTree)===null||m===void 0?void 0:m.version)){const N=r.getGraph(v.currentTree.version);K5(e,t,N,S)}if(s===((a=v.previousTree)===null||a===void 0?void 0:a.version)||s===v.currentTree.version){var D;const N=(D=v.nextTree)===null||D===void 0?void 0:D.version;if(N!==void 0){const C=r.getGraph(N);K5(e,t,C,S)}}}var kg={cloneGraph:hee,graph:uee,saveDepsToStore:dee};let fee=0;const pee=()=>fee++;let mee=0;const gee=()=>mee++;let yee=0;var Qv={getNextTreeStateVersion:pee,getNextStoreID:gee,getNextComponentID:()=>yee++};const{persistentMap:ok}=aee,{graph:_ee}=kg,{getNextTreeStateVersion:sk}=Qv;function ak(){const e=sk();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ok(),nonvalidatedAtoms:ok()}}function vee(){const e=ak();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,_ee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var lk={makeEmptyTreeState:ak,makeEmptyStoreState:vee,getNextTreeStateVersion:sk};class ck{}function xee(){return new ck}var Hv={RetentionZone:ck,retentionZone:xee};function bee(e,t){const r=new Set(e);return r.add(t),r}function Mee(e,t){const r=new Set(e);return r.delete(t),r}function wee(e,t,r){const s=new Map(e);return s.set(t,r),s}function Iee(e,t,r){const s=new Map(e);return s.set(t,r(s.get(t))),s}function Tee(e,t){const r=new Map(e);return r.delete(t),r}function See(e,t){const r=new Map(e);return t.forEach(s=>r.delete(s)),r}var uk={setByAddingToSet:bee,setByDeletingFromSet:Mee,mapBySettingInMap:wee,mapByUpdatingInMap:Iee,mapByDeletingFromMap:Tee,mapByDeletingMultipleFromMap:See};function*Eee(e,t){let r=0;for(const s of e)t(s,r++)&&(yield s)}var X5=Eee;function Dee(e,t){return new Proxy(e,{get:(s,u)=>(!(u in s)&&u in t&&(s[u]=t[u]()),s[u]),ownKeys:s=>Object.keys(s)})}var hk=Dee;const{getNode:Og,getNodeMaybe:Aee,recoilValuesForKeys:dk}=vs,{RetentionZone:fk}=Hv,{setByAddingToSet:Cee}=uk,Nee=Object.freeze(new Set);class Lee extends Error{}function zee(e,t,r){if(!vr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:s}=e.getState().retention;function u(f){let m=s.get(f);m||s.set(f,m=new Set),m.add(t)}if(r instanceof fk)u(r);else if(Array.isArray(r))for(const f of r)u(f);return()=>{if(!vr("recoil_memory_managament_2020"))return;const{retention:f}=e.getState();function m(a){const v=f.nodesRetainedByZone.get(a);v==null||v.delete(t),v&&v.size===0&&f.nodesRetainedByZone.delete(a)}if(r instanceof fk)m(r);else if(Array.isArray(r))for(const a of r)m(a)}}function J5(e,t,r,s){const u=e.getState();if(u.nodeCleanupFunctions.has(r))return;const f=Og(r),m=zee(e,r,f.retainedBy),a=f.init(e,t,s);u.nodeCleanupFunctions.set(r,()=>{a(),m()})}function kee(e,t,r){J5(e,e.getState().currentTree,t,r)}function Oee(e,t){var r;const s=e.getState();(r=s.nodeCleanupFunctions.get(t))===null||r===void 0||r(),s.nodeCleanupFunctions.delete(t)}function jee(e,t,r){return J5(e,t,r,"get"),Og(r).get(e,t)}function pk(e,t,r){return Og(r).peek(e,t)}function Ree(e,t,r){var s;const u=Aee(t);return u==null||(s=u.invalidate)===null||s===void 0||s.call(u,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,r),dirtyAtoms:Cee(e.dirtyAtoms,t)}}function Pee(e,t,r,s){const u=Og(r);if(u.set==null)throw new Lee(`Attempt to set read-only RecoilValue: ${r}`);const f=u.set;return J5(e,t,r,"set"),f(e,t,s)}function Uee(e,t,r){const s=e.getState(),u=e.getGraph(t.version),f=Og(r).nodeType;return hk({type:f},{loadable:()=>pk(e,t,r),isActive:()=>s.knownAtoms.has(r)||s.knownSelectors.has(r),isSet:()=>f==="selector"?!1:t.atomValues.has(r),isModified:()=>t.dirtyAtoms.has(r),deps:()=>{var m;return dk((m=u.nodeDeps.get(r))!==null&&m!==void 0?m:[])},subscribers:()=>{var m,a;return{nodes:dk(X5(mk(e,t,new Set([r])),v=>v!==r)),components:Fv((m=(a=s.nodeToComponentSubscriptions.get(r))===null||a===void 0?void 0:a.values())!==null&&m!==void 0?m:[],([v])=>({name:v}))}}})}function mk(e,t,r){const s=new Set,u=Array.from(r),f=e.getGraph(t.version);for(let a=u.pop();a;a=u.pop()){var m;s.add(a);const v=(m=f.nodeToNodeSubscriptions.get(a))!==null&&m!==void 0?m:Nee;for(const S of v)s.has(S)||u.push(S)}return s}var du={getNodeLoadable:jee,peekNodeLoadable:pk,setNodeValue:Pee,initializeNode:kee,cleanUpNode:Oee,setUnvalidatedAtomValue_DEPRECATED:Ree,peekNodeInfo:Uee,getDownstreamNodes:mk};let gk=null;function Bee(e){gk=e}function Fee(){var e;(e=gk)===null||e===void 0||e()}var yk={setInvalidateMemoizedSnapshot:Bee,invalidateMemoizedSnapshot:Fee};const{getDownstreamNodes:Vee,getNodeLoadable:_k,setNodeValue:$ee}=du,{getNextComponentID:Qee}=Qv,{getNode:Hee,getNodeMaybe:vk}=vs,{DefaultValue:eI}=vs,{reactMode:Yee}=Lg,{AbstractRecoilValue:Gee,RecoilState:Zee,RecoilValueReadOnly:Wee,isRecoilValue:qee}=Ff,{invalidateMemoizedSnapshot:Kee}=yk;function Xee(e,{key:t},r=e.getState().currentTree){var s,u;const f=e.getState();r.version===f.currentTree.version||r.version===((s=f.nextTree)===null||s===void 0?void 0:s.version)||(r.version,(u=f.previousTree)===null||u===void 0||u.version);const m=_k(e,r,t);return m.state==="loading"&&m.contents.catch(()=>{}),m}function Jee(e,t){const r=e.clone();return t.forEach((s,u)=>{s.state==="hasValue"&&s.contents instanceof eI?r.delete(u):r.set(u,s)}),r}function ete(e,t,{key:r},s){if(typeof s=="function"){const u=_k(e,t,r);if(u.state==="loading"){const f=`Tried to set atom or selector "${r}" using an updater function while the current state is pending, this is not currently supported.`;throw Li(f)}else if(u.state==="hasError")throw u.contents;return s(u.contents)}else return s}function tte(e,t,r){if(r.type==="set"){const{recoilValue:u,valueOrUpdater:f}=r,m=ete(e,t,u,f),a=$ee(e,t,u.key,m);for(const[v,S]of a.entries())tI(t,v,S)}else if(r.type==="setLoadable"){const{recoilValue:{key:u},loadable:f}=r;tI(t,u,f)}else if(r.type==="markModified"){const{recoilValue:{key:u}}=r;t.dirtyAtoms.add(u)}else if(r.type==="setUnvalidated"){var s;const{recoilValue:{key:u},unvalidatedValue:f}=r,m=vk(u);m==null||(s=m.invalidate)===null||s===void 0||s.call(m,t),t.atomValues.delete(u),t.nonvalidatedAtoms.set(u,f),t.dirtyAtoms.add(u)}else $5(`Unknown action ${r.type}`)}function tI(e,t,r){r.state==="hasValue"&&r.contents instanceof eI?e.atomValues.delete(t):e.atomValues.set(t,r),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function xk(e,t){e.replaceState(r=>{const s=bk(r);for(const u of t)tte(e,s,u);return Mk(e,s),Kee(),s})}function Yv(e,t){if(jg.length){const r=jg[jg.length-1];let s=r.get(e);s||r.set(e,s=[]),s.push(t)}else xk(e,[t])}const jg=[];function nte(){const e=new Map;return jg.push(e),()=>{for(const[t,r]of e)xk(t,r);jg.pop()}}function bk(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Mk(e,t){const r=Vee(e,t,t.dirtyAtoms);for(const f of r){var s,u;(s=vk(f))===null||s===void 0||(u=s.invalidate)===null||u===void 0||u.call(s,t)}}function wk(e,t,r){Yv(e,{type:"set",recoilValue:t,valueOrUpdater:r})}function ite(e,t,r){if(r instanceof eI)return wk(e,t,r);Yv(e,{type:"setLoadable",recoilValue:t,loadable:r})}function rte(e,t){Yv(e,{type:"markModified",recoilValue:t})}function ote(e,t,r){Yv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:r})}function ste(e,{key:t},r,s=null){const u=Qee(),f=e.getState();f.nodeToComponentSubscriptions.has(t)||f.nodeToComponentSubscriptions.set(t,new Map),zr(f.nodeToComponentSubscriptions.get(t)).set(u,[s??"<not captured>",r]);const m=Yee();if(m.early&&(m.mode==="LEGACY"||m.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&r(a)}return{release:()=>{const a=e.getState(),v=a.nodeToComponentSubscriptions.get(t);v===void 0||!v.has(u)||(v.delete(u),v.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function ate(e,t){var r;const{currentTree:s}=e.getState(),u=Hee(t.key);(r=u.clearCache)===null||r===void 0||r.call(u,e,s)}var al={RecoilValueReadOnly:Wee,AbstractRecoilValue:Gee,RecoilState:Zee,getRecoilValueAsLoadable:Xee,setRecoilValue:wk,setRecoilValueLoadable:ite,markRecoilValueModified:rte,setUnvalidatedRecoilValue:ote,subscribeToRecoilValue:ste,isRecoilValue:qee,applyAtomValueWrites:Jee,batchStart:nte,writeLoadableToTreeState:tI,invalidateDownstreams:Mk,copyTreeState:bk,refreshRecoilValue:ate};function lte(e,t,r){const s=e.entries();let u=s.next();for(;!u.done;){const f=u.value;if(t.call(r,f[1],f[0],e))return!0;u=s.next()}return!1}var cte=lte;const{cleanUpNode:ute}=du,{deleteNodeConfigIfPossible:hte,getNode:Ik}=vs,{RetentionZone:Tk}=Hv,dte=12e4,Sk=new Set;function Ek(e,t){const r=e.getState(),s=r.currentTree;if(r.nextTree)return;const u=new Set;for(const m of t)if(m instanceof Tk)for(const a of gte(r,m))u.add(a);else u.add(m);const f=fte(e,u);for(const m of f)mte(e,s,m)}function fte(e,t){const r=e.getState(),s=r.currentTree,u=e.getGraph(s.version),f=new Set,m=new Set;return a(t),f;function a(v){const S=new Set,D=pte(e,s,v,f,m);for(const R of D){var N;if(Ik(R).retainedBy==="recoilRoot"){m.add(R);continue}if(((N=r.retention.referenceCounts.get(R))!==null&&N!==void 0?N:0)>0){m.add(R);continue}if(Dk(R).some(q=>r.retention.referenceCounts.get(q))){m.add(R);continue}const V=u.nodeToNodeSubscriptions.get(R);if(V&&cte(V,q=>m.has(q))){m.add(R);continue}f.add(R),S.add(R)}const C=new Set;for(const R of S)for(const V of(O=u.nodeDeps.get(R))!==null&&O!==void 0?O:Sk){var O;f.has(V)||C.add(V)}C.size&&a(C)}}function pte(e,t,r,s,u){const f=e.getGraph(t.version),m=[],a=new Set;for(;r.size>0;)v(zr(r.values().next().value));return m;function v(S){if(s.has(S)||u.has(S)){r.delete(S);return}if(a.has(S))return;const D=f.nodeToNodeSubscriptions.get(S);if(D)for(const N of D)v(N);a.add(S),r.delete(S),m.push(S)}}function mte(e,t,r){if(!vr("recoil_memory_managament_2020"))return;ute(e,r);const s=e.getState();s.knownAtoms.delete(r),s.knownSelectors.delete(r),s.nodeTransactionSubscriptions.delete(r),s.retention.referenceCounts.delete(r);const u=Dk(r);for(const v of u){var f;(f=s.retention.nodesRetainedByZone.get(v))===null||f===void 0||f.delete(r)}t.atomValues.delete(r),t.dirtyAtoms.delete(r),t.nonvalidatedAtoms.delete(r);const m=s.graphsByVersion.get(t.version);if(m){const v=m.nodeDeps.get(r);if(v!==void 0){m.nodeDeps.delete(r);for(const S of v){var a;(a=m.nodeToNodeSubscriptions.get(S))===null||a===void 0||a.delete(r)}}m.nodeToNodeSubscriptions.delete(r)}hte(r)}function gte(e,t){var r;return(r=e.retention.nodesRetainedByZone.get(t))!==null&&r!==void 0?r:Sk}function Dk(e){const t=Ik(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Tk?[t]:t}function yte(e,t){const r=e.getState();r.nextTree?r.retention.retainablesToCheckForRelease.add(t):Ek(e,new Set([t]))}function _te(e,t,r){var s;if(!vr("recoil_memory_managament_2020"))return;const u=e.getState().retention.referenceCounts,f=((s=u.get(t))!==null&&s!==void 0?s:0)+r;f===0?Ak(e,t):u.set(t,f)}function Ak(e,t){if(!vr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),yte(e,t)}function vte(e){if(!vr("recoil_memory_managament_2020"))return;const t=e.getState();Ek(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function xte(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:dte,updateRetainCount:_te,updateRetainCountToZero:Ak,releaseScheduledRetainablesNow:vte,retainedByOptionWithDefault:xte};const{unstable_batchedUpdates:bte}=og;var Mte={unstable_batchedUpdates:bte};const{unstable_batchedUpdates:wte}=Mte;var Ite={unstable_batchedUpdates:wte};const{batchStart:Tte}=al,{unstable_batchedUpdates:Ste}=Ite;let nI=Ste||(e=>e());var Gv={getBatcher:()=>nI,setBatcher:e=>{nI=e},batchUpdates:e=>{nI(()=>{let t=()=>{};try{t=Tte(),e()}finally{t()}})}};function*Ete(e){for(const t of e)for(const r of t)yield r}var Ck=Ete;const Nk=typeof Window>"u"||typeof window>"u",Dte=e=>!Nk&&(e===window||e instanceof Window),Ate=typeof navigator<"u"&&navigator.product==="ReactNative";var Zv={isSSR:Nk,isReactNative:Ate,isWindow:Dte};function Cte(e,t){let r;return(...s)=>{r||(r={});const u=t(...s);return Object.hasOwnProperty.call(r,u)||(r[u]=e(...s)),r[u]}}function Nte(e,t){let r,s;return(...u)=>{const f=t(...u);return r===f||(r=f,s=e(...u)),s}}function Lte(e,t){let r,s;return[(...m)=>{const a=t(...m);return r===a||(r=a,s=e(...m)),s},()=>{r=null}]}var zte={memoizeWithArgsHash:Cte,memoizeOneWithArgsHash:Nte,memoizeOneWithArgsHashAndInvalidation:Lte};const{batchUpdates:iI}=Gv,{initializeNode:kte,peekNodeInfo:Ote}=du,{graph:jte}=kg,{getNextStoreID:Rte}=Qv,{DEFAULT_VALUE:Pte,recoilValues:Lk,recoilValuesForKeys:zk}=vs,{AbstractRecoilValue:Ute,getRecoilValueAsLoadable:Bte,setRecoilValue:kk,setUnvalidatedRecoilValue:Fte}=al,{updateRetainCount:Wv}=Nh,{setInvalidateMemoizedSnapshot:Vte}=yk,{getNextTreeStateVersion:$te,makeEmptyStoreState:Qte}=lk,{isSSR:Hte}=Zv,{memoizeOneWithArgsHashAndInvalidation:Yte}=zte;class qv{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_refCount",1),Ai(this,"getLoadable",s=>(this.checkRefCount_INTERNAL(),Bte(this._store,s))),Ai(this,"getPromise",s=>(this.checkRefCount_INTERNAL(),this.getLoadable(s).toPromise())),Ai(this,"getNodes_UNSTABLE",s=>{if(this.checkRefCount_INTERNAL(),(s==null?void 0:s.isModified)===!0){if((s==null?void 0:s.isInitialized)===!1)return[];const m=this._store.getState().currentTree;return zk(m.dirtyAtoms)}const u=this._store.getState().knownAtoms,f=this._store.getState().knownSelectors;return(s==null?void 0:s.isInitialized)==null?Lk.values():s.isInitialized===!0?zk(Ck([u,f])):X5(Lk.values(),({key:m})=>!u.has(m)&&!f.has(m))}),Ai(this,"getInfo_UNSTABLE",({key:s})=>(this.checkRefCount_INTERNAL(),Ote(this._store,this._store.getState().currentTree,s))),Ai(this,"map",s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return s(u),u}),Ai(this,"asyncMap",async s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return u.retain(),await s(u),u.autoRelease_INTERNAL(),u}),this._store={storeID:Rte(),parentStoreID:r,getState:()=>t,replaceState:s=>{t.currentTree=s(t.currentTree)},getGraph:s=>{const u=t.graphsByVersion;if(u.has(s))return zr(u.get(s));const f=jte();return u.set(s,f),f},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Li("Cannot subscribe to Snapshots")}};for(const s of this._store.getState().knownAtoms)kte(this._store,s,"get"),Wv(this._store,s,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Hte||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!vr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){vr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function Ok(e,t,r=!1){const s=e.getState(),u=r?$te():t.version;return{currentTree:{version:r?u:t.version,stateID:r?u:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(s.knownAtoms),knownSelectors:new Set(s.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(u,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fv(s.nodeCleanupFunctions.entries(),([f])=>[f,()=>{}]))}}function Gte(e){const t=new qv(Qte());return e!=null?t.map(e):t}const[jk,Rk]=Yte((e,t)=>{var r;const s=e.getState(),u=t==="latest"?(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree:zr(s.previousTree);return new qv(Ok(e,u),e.storeID)},(e,t)=>{var r,s;return String(t)+String(e.storeID)+String((r=e.getState().nextTree)===null||r===void 0?void 0:r.version)+String(e.getState().currentTree.version)+String((s=e.getState().previousTree)===null||s===void 0?void 0:s.version)});Vte(Rk);function Zte(e,t="latest"){const r=jk(e,t);return r.isRetained()?r:(Rk(),jk(e,t))}class rI extends qv{constructor(t,r){super(Ok(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ai(this,"_batch",void 0),Ai(this,"set",(s,u)=>{this.checkRefCount_INTERNAL();const f=this.getStore_INTERNAL();this._batch(()=>{Wv(f,s.key,1),kk(this.getStore_INTERNAL(),s,u)})}),Ai(this,"reset",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();this._batch(()=>{Wv(u,s.key,1),kk(this.getStore_INTERNAL(),s,Pte)})}),Ai(this,"setUnvalidatedAtomValues_DEPRECATED",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();iI(()=>{for(const[f,m]of s.entries())Wv(u,f,1),Fte(u,new Ute(f),m)})}),this._batch=r}}var Kv={Snapshot:qv,MutableSnapshot:rI,freshSnapshot:Gte,cloneSnapshot:Zte},Wte=Kv.Snapshot,qte=Kv.MutableSnapshot,Kte=Kv.freshSnapshot,Xte=Kv.cloneSnapshot,Xv=Object.freeze({__proto__:null,Snapshot:Wte,MutableSnapshot:qte,freshSnapshot:Kte,cloneSnapshot:Xte});function Jte(...e){const t=new Set;for(const r of e)for(const s of r)t.add(s);return t}var ene=Jte;const{useRef:tne}=Vi;function nne(e){const t=tne(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Pk=nne;const{getNextTreeStateVersion:ine,makeEmptyStoreState:Uk}=lk,{cleanUpNode:rne,getDownstreamNodes:one,initializeNode:sne,setNodeValue:ane,setUnvalidatedAtomValue_DEPRECATED:lne}=du,{graph:cne}=kg,{cloneGraph:une}=kg,{getNextStoreID:Bk}=Qv,{createMutableSource:oI,reactMode:Fk}=Lg,{applyAtomValueWrites:hne}=al,{releaseScheduledRetainablesNow:Vk}=Nh,{freshSnapshot:dne}=Xv,{useCallback:fne,useContext:$k,useEffect:sI,useMemo:pne,useRef:mne,useState:gne}=Vi;function Rg(){throw Li("This component must be used inside a <RecoilRoot> component.")}const Qk=Object.freeze({storeID:Bk(),getState:Rg,replaceState:Rg,getGraph:Rg,subscribeToTransactions:Rg,addTransactionMetadata:Rg});let aI=!1;function Hk(e){if(aI)throw Li("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){vr("recoil_memory_managament_2020")&&vr("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Vk(e);const r=t.currentTree.version,s=ine();t.nextTree={...t.currentTree,version:s,stateID:s,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(s,une(zr(t.graphsByVersion.get(r))))}}const Yk=Vi.createContext({current:Qk}),Jv=()=>$k(Yk),Gk=Vi.createContext(null);function yne(){return $k(Gk)}function lI(e,t,r){const s=one(e,r,r.dirtyAtoms);for(const u of s){const f=t.nodeToComponentSubscriptions.get(u);if(f)for(const[m,[a,v]]of f)v(r)}}function Zk(e){const t=e.getState(),r=t.currentTree,s=r.dirtyAtoms;if(s.size){for(const[u,f]of t.nodeTransactionSubscriptions)if(s.has(u))for(const[m,a]of f)a(e);for(const[u,f]of t.transactionSubscriptions)f(e);(!Fk().early||t.suspendedComponentResolvers.size>0)&&(lI(e,t,r),t.suspendedComponentResolvers.forEach(u=>u()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(u=>u(r)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function _ne(e){const t=e.getState();t.commitDepth++;try{const{nextTree:r}=t;if(r==null)return;t.previousTree=t.currentTree,t.currentTree=r,t.nextTree=null,Zk(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):$5("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,vr("recoil_memory_managament_2020")&&r==null&&Vk(e)}finally{t.commitDepth--}}function vne({setNotifyBatcherOfChange:e}){const t=Jv(),[,r]=gne([]);return e(()=>r({})),sI(()=>(e(()=>r({})),()=>{e(()=>{})}),[e]),sI(()=>{tee.enqueueExecution("Batcher",()=>{_ne(t.current)})}),null}function xne(e,t){const r=Uk();return t({set:(s,u)=>{const f=r.currentTree,m=ane(e,f,s.key,u),a=new Set(m.keys()),v=f.nonvalidatedAtoms.clone();for(const S of a)v.delete(S);r.currentTree={...f,dirtyAtoms:ene(f.dirtyAtoms,a),atomValues:hne(f.atomValues,m),nonvalidatedAtoms:v}},setUnvalidatedAtomValues:s=>{s.forEach((u,f)=>{r.currentTree=lne(r.currentTree,f,u)})}}),r}function bne(e){const t=dne(e),r=t.getStore_INTERNAL().getState();return t.retain(),r.nodeCleanupFunctions.forEach(s=>s()),r.nodeCleanupFunctions.clear(),r}let Wk=0;function Mne({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:r,children:s}){let u;const f=O=>{const R=u.current.graphsByVersion;if(R.has(O))return zr(R.get(O));const V=cne();return R.set(O,V),V},m=(O,R)=>{if(R==null){const{transactionSubscriptions:V}=N.current.getState(),q=Wk++;return V.set(q,O),{release:()=>{V.delete(q)}}}else{const{nodeTransactionSubscriptions:V}=N.current.getState();V.has(R)||V.set(R,new Map);const q=Wk++;return zr(V.get(R)).set(q,O),{release:()=>{const H=V.get(R);H&&(H.delete(q),H.size===0&&V.delete(R))}}}},a=O=>{Hk(N.current);for(const R of Object.keys(O))zr(N.current.getState().nextTree).transactionMetadata[R]=O[R]},v=O=>{Hk(N.current);const R=zr(u.current.nextTree);let V;try{aI=!0,V=O(R)}finally{aI=!1}V!==R&&(u.current.nextTree=V,Fk().early&&lI(N.current,u.current,V),zr(S.current)())},S=mne(null),D=fne(O=>{S.current=O},[S]),N=Pk(()=>r??{storeID:Bk(),getState:()=>u.current,replaceState:v,getGraph:f,subscribeToTransactions:m,addTransactionMetadata:a});r!=null&&(N.current=r),u=Pk(()=>e!=null?xne(N.current,e):t!=null?bne(t):Uk());const C=pne(()=>oI==null?void 0:oI(u,()=>u.current.currentTree.version),[u]);return sI(()=>{const O=N.current;for(const R of new Set(O.getState().knownAtoms))sne(O,R,"get");return()=>{for(const R of O.getState().knownAtoms)rne(O,R)}},[N]),Vi.createElement(Yk.Provider,{value:N},Vi.createElement(Gk.Provider,{value:C},Vi.createElement(vne,{setNotifyBatcherOfChange:D}),s))}function wne(e){const{override:t,...r}=e,s=Jv();return t===!1&&s.current!==Qk?e.children:Vi.createElement(Mne,r)}function Ine(){return Jv().current.storeID}var nc={RecoilRoot:wne,useStoreRef:Jv,useRecoilMutableSource:yne,useRecoilStoreID:Ine,notifyComponents_FOR_TESTING:lI,sendEndOfBatchNotifications_FOR_TESTING:Zk};function Tne(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(e[r]!==t[r])return!1;return!0}var Sne=Tne;const{useEffect:Ene,useRef:Dne}=Vi;function Ane(e){const t=Dne();return Ene(()=>{t.current=e}),t.current}var qk=Ane;const{useStoreRef:Cne}=nc,{SUSPENSE_TIMEOUT_MS:Nne}=Nh,{updateRetainCount:Pg}=Nh,{RetentionZone:Lne}=Hv,{useEffect:zne,useRef:kne}=Vi,{isSSR:Kk}=Zv;function One(e){if(vr("recoil_memory_managament_2020"))return jne(e)}function jne(e){const r=(Array.isArray(e)?e:[e]).map(m=>m instanceof Lne?m:m.key),s=Cne();zne(()=>{if(!vr("recoil_memory_managament_2020"))return;const m=s.current;if(u.current&&!Kk)window.clearTimeout(u.current),u.current=null;else for(const a of r)Pg(m,a,1);return()=>{for(const a of r)Pg(m,a,-1)}},[s,...r]);const u=kne(),f=qk(r);if(!Kk&&(f===void 0||!Sne(f,r))){const m=s.current;for(const a of r)Pg(m,a,1);if(f)for(const a of f)Pg(m,a,-1);u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{u.current=null;for(const a of r)Pg(m,a,-1)},Nne)}}var cI=One;function Rne(){return"<component name not available>"}var Ug=Rne;const{batchUpdates:Pne}=Gv,{DEFAULT_VALUE:Xk}=vs,{currentRendererSupportsUseSyncExternalStore:Une,reactMode:Vf,useMutableSource:Bne,useSyncExternalStore:Fne}=Lg,{useRecoilMutableSource:Vne,useStoreRef:ll}=nc,{AbstractRecoilValue:uI,getRecoilValueAsLoadable:Bg,setRecoilValue:ex,setUnvalidatedRecoilValue:$ne,subscribeToRecoilValue:$f}=al,{useCallback:xs,useEffect:Qf,useMemo:Jk,useRef:Fg,useState:hI}=Vi,{setByAddingToSet:Qne}=uk,{isSSR:Hne}=Zv;function dI(e,t,r){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(u=>{const f=r.current.getState().suspendedComponentResolvers;f.add(u),Hne&&Dr(e.contents)&&e.contents.finally(()=>{f.delete(u)})}):e.state==="hasError"?e.contents:Li(`Invalid value of loadable atom "${t.key}"`)}function Yne(){const e=Ug(),t=ll(),[,r]=hI([]),s=Fg(new Set);s.current=new Set;const u=Fg(new Set),f=Fg(new Map),m=xs(v=>{const S=f.current.get(v);S&&(S.release(),f.current.delete(v))},[f]),a=xs((v,S)=>{f.current.has(S)&&r([])},[]);return Qf(()=>{const v=t.current;zg(s.current,u.current).forEach(S=>{if(f.current.has(S))return;const D=$f(v,new uI(S),C=>a(C,S),e);f.current.set(S,D),v.getState().nextTree?v.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(v.getState(),S)}):a(v.getState(),S)}),zg(u.current,s.current).forEach(S=>{m(S)}),u.current=s.current}),Qf(()=>{const v=f.current;return zg(s.current,new Set(v.keys())).forEach(S=>{const D=$f(t.current,new uI(S),N=>a(N,S),e);v.set(S,D)}),()=>v.forEach((S,D)=>m(D))},[e,t,m,a]),Jk(()=>{function v(R){return V=>{ex(t.current,R,V)}}function S(R){return()=>ex(t.current,R,Xk)}function D(R){var V;s.current.has(R.key)||(s.current=Qne(s.current,R.key));const q=t.current.getState();return Bg(t.current,R,Vf().early&&(V=q.nextTree)!==null&&V!==void 0?V:q.currentTree)}function N(R){const V=D(R);return dI(V,R,t)}function C(R){return[N(R),v(R)]}function O(R){return[D(R),v(R)]}return{getRecoilValue:N,getRecoilValueLoadable:D,getRecoilState:C,getRecoilStateLoadable:O,getSetRecoilState:v,getResetRecoilState:S}},[s,t])}const Gne={current:0};function Zne(e){const t=ll(),r=Ug(),s=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return{loadable:Bg(v,e,D),key:e.key}},[t,e]),u=xs(a=>{let v;return()=>{var S,D;const N=a();return(S=v)!==null&&S!==void 0&&S.loadable.is(N.loadable)&&((D=v)===null||D===void 0?void 0:D.key)===N.key?v:(v=N,N)}},[]),f=Jk(()=>u(s),[s,u]),m=xs(a=>{const v=t.current;return $f(v,e,a,r).release},[t,e,r]);return Fne(m,f,f).loadable}function Wne(e){const t=ll(),r=xs(()=>{var S;const D=t.current,N=D.getState(),C=Vf().early&&(S=N.nextTree)!==null&&S!==void 0?S:N.currentTree;return Bg(D,e,C)},[t,e]),s=xs(()=>r(),[r]),u=Ug(),f=xs((S,D)=>{const N=t.current;return $f(N,e,()=>{if(!vr("recoil_suppress_rerender_in_callback"))return D();const O=r();v.current.is(O)||D(),v.current=O},u).release},[t,e,u,r]),m=Vne();if(m==null)throw Li("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=Bne(m,s,f),v=Fg(a);return Qf(()=>{v.current=a}),a}function fI(e){const t=ll(),r=Ug(),s=xs(()=>{var v;const S=t.current,D=S.getState(),N=Vf().early&&(v=D.nextTree)!==null&&v!==void 0?v:D.currentTree;return Bg(S,e,N)},[t,e]),u=xs(()=>({loadable:s(),key:e.key}),[s,e.key]),f=xs(v=>{const S=u();return v.loadable.is(S.loadable)&&v.key===S.key?v:S},[u]);Qf(()=>{const v=$f(t.current,e,S=>{a(f)},r);return a(f),v.release},[r,e,t,f]);const[m,a]=hI(u);return m.key!==e.key?u().loadable:m.loadable}function qne(e){const t=ll(),[,r]=hI([]),s=Ug(),u=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return Bg(v,e,D)},[t,e]),f=u(),m=Fg(f);return Qf(()=>{m.current=f}),Qf(()=>{const a=t.current,v=a.getState(),S=$f(a,e,N=>{var C;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const O=u();(C=m.current)!==null&&C!==void 0&&C.is(O)||r(O),m.current=O},s);if(v.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{m.current=null,r([])});else{var D;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const N=u();(D=m.current)!==null&&D!==void 0&&D.is(N)||r(N),m.current=N}return S.release},[s,u,e,t]),f}function pI(e){return vr("recoil_memory_managament_2020")&&cI(e),{TRANSITION_SUPPORT:fI,SYNC_EXTERNAL_STORE:Une()?Zne:fI,MUTABLE_SOURCE:Wne,LEGACY:qne}[Vf().mode](e)}function e9(e){const t=ll(),r=pI(e);return dI(r,e,t)}function tx(e){const t=ll();return xs(r=>{ex(t.current,e,r)},[t,e])}function Kne(e){const t=ll();return xs(()=>{ex(t.current,e,Xk)},[t,e])}function Xne(e){return[e9(e),tx(e)]}function Jne(e){return[pI(e),tx(e)]}function eie(){const e=ll();return(t,r={})=>{Pne(()=>{e.current.addTransactionMetadata(r),t.forEach((s,u)=>$ne(e.current,new uI(u),s))})}}function t9(e){return vr("recoil_memory_managament_2020")&&cI(e),fI(e)}function n9(e){const t=ll(),r=t9(e);return dI(r,e,t)}function tie(e){return[n9(e),tx(e)]}var nie={recoilComponentGetRecoilValueCount_FOR_TESTING:Gne,useRecoilInterface:Yne,useRecoilState:Xne,useRecoilStateLoadable:Jne,useRecoilValue:e9,useRecoilValueLoadable:pI,useResetRecoilState:Kne,useSetRecoilState:tx,useSetUnvalidatedAtomValues:eie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:t9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:n9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:tie};function iie(e,t){const r=new Map;for(const[s,u]of e)t(u,s)&&r.set(s,u);return r}var rie=iie;function oie(e,t){const r=new Set;for(const s of e)t(s)&&r.add(s);return r}var sie=oie;function aie(...e){const t=new Map;for(let r=0;r<e.length;r++){const s=e[r].keys();let u;for(;!(u=s.next()).done;)t.set(u.value,e[r].get(u.value))}return t}var lie=aie;const{batchUpdates:cie}=Gv,{DEFAULT_VALUE:uie,getNode:i9,nodes:hie}=vs,{useStoreRef:mI}=nc,{AbstractRecoilValue:die,setRecoilValueLoadable:fie}=al,{SUSPENSE_TIMEOUT_MS:pie}=Nh,{cloneSnapshot:nx}=Xv,{useCallback:ix,useEffect:r9,useRef:o9,useState:mie}=Vi,{isSSR:s9}=Zv;function rx(e){const t=mI();r9(()=>t.current.subscribeToTransactions(e).release,[e,t])}function a9(e){const t=e.atomValues.toMap(),r=$v(rie(t,(s,u)=>{const m=i9(u).persistence_UNSTABLE;return m!=null&&m.type!=="none"&&s.state==="hasValue"}),s=>s.contents);return lie(e.nonvalidatedAtoms.toMap(),r)}function gie(e){rx(ix(t=>{let r=t.getState().previousTree;const s=t.getState().currentTree;r||(r=t.getState().currentTree);const u=a9(s),f=a9(r),m=$v(hie,v=>{var S,D,N,C;return{persistence_UNSTABLE:{type:(S=(D=v.persistence_UNSTABLE)===null||D===void 0?void 0:D.type)!==null&&S!==void 0?S:"none",backButton:(N=(C=v.persistence_UNSTABLE)===null||C===void 0?void 0:C.backButton)!==null&&N!==void 0?N:!1}}}),a=sie(s.dirtyAtoms,v=>u.has(v)||f.has(v));e({atomValues:u,previousAtomValues:f,atomInfo:m,modifiedAtoms:a,transactionMetadata:{...s.transactionMetadata}})},[e]))}function yie(e){rx(ix(t=>{const r=nx(t,"latest"),s=nx(t,"previous");e({snapshot:r,previousSnapshot:s})},[e]))}function _ie(){const e=mI(),[t,r]=mie(()=>nx(e.current)),s=qk(t),u=o9(),f=o9();if(rx(ix(a=>r(nx(a)),[])),r9(()=>{const a=t.retain();if(u.current&&!s9){var v;window.clearTimeout(u.current),u.current=null,(v=f.current)===null||v===void 0||v.call(f),f.current=null}return()=>{window.setTimeout(a,10)}},[t]),s!==t&&!s9){if(u.current){var m;window.clearTimeout(u.current),u.current=null,(m=f.current)===null||m===void 0||m.call(f),f.current=null}f.current=t.retain(),u.current=window.setTimeout(()=>{var a;u.current=null,(a=f.current)===null||a===void 0||a.call(f),f.current=null},pie)}return t}function l9(e,t){var r;const s=e.getState(),u=(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree,f=t.getStore_INTERNAL().getState().currentTree;cie(()=>{const m=new Set;for(const S of[u.atomValues.keys(),f.atomValues.keys()])for(const D of S){var a,v;((a=u.atomValues.get(D))===null||a===void 0?void 0:a.contents)!==((v=f.atomValues.get(D))===null||v===void 0?void 0:v.contents)&&i9(D).shouldRestoreFromSnapshots&&m.add(D)}m.forEach(S=>{fie(e,new die(S),f.atomValues.has(S)?zr(f.atomValues.get(S)):uie)}),e.replaceState(S=>({...S,stateID:t.getID()}))})}function vie(){const e=mI();return ix(t=>l9(e.current,t),[e])}var c9={useRecoilSnapshot:_ie,gotoSnapshot:l9,useGotoRecoilSnapshot:vie,useRecoilTransactionObserver:yie,useTransactionObservation_DEPRECATED:gie,useTransactionSubscription_DEPRECATED:rx};const{peekNodeInfo:xie}=du,{useStoreRef:bie}=nc;function Mie(){const e=bie();return({key:t})=>xie(e.current,e.current.getState().currentTree,t)}var wie=Mie;const{reactMode:Iie}=Lg,{RecoilRoot:Tie,useStoreRef:Sie}=nc,{useMemo:Eie}=Vi;function Die(){Iie().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=Sie().current;return Eie(()=>{function t({children:r}){return Vi.createElement(Tie,{store_INTERNAL:e},r)}return t},[e])}var Aie=Die;const{loadableWithValue:Cie}=Ng,{initializeNode:Nie}=du,{DEFAULT_VALUE:Lie,getNode:zie}=vs,{copyTreeState:kie,getRecoilValueAsLoadable:Oie,invalidateDownstreams:jie,writeLoadableToTreeState:Rie}=al;function u9(e){return zie(e.key).nodeType==="atom"}class Pie{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_treeState",void 0),Ai(this,"_changes",void 0),Ai(this,"get",s=>{if(this._changes.has(s.key))return this._changes.get(s.key);if(!u9(s))throw Li("Reading selectors within atomicUpdate is not supported");const u=Oie(this._store,s,this._treeState);if(u.state==="hasValue")return u.contents;throw u.state==="hasError"?u.contents:Li(`Expected Recoil atom ${s.key} to have a value, but it is in a loading state.`)}),Ai(this,"set",(s,u)=>{if(!u9(s))throw Li("Setting selectors within atomicUpdate is not supported");if(typeof u=="function"){const f=this.get(s);this._changes.set(s.key,u(f))}else Nie(this._store,s.key,"set"),this._changes.set(s.key,u)}),Ai(this,"reset",s=>{this.set(s,Lie)}),this._store=t,this._treeState=r,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=kie(this._treeState);for(const[r,s]of this._changes)Rie(t,r,Cie(s));return jie(this._store,t),t}}function Uie(e){return t=>{e.replaceState(r=>{const s=new Pie(e,r);return t(s),s.newTreeState_INTERNAL()})}}var Bie={atomicUpdater:Uie},Fie=Bie.atomicUpdater,h9=Object.freeze({__proto__:null,atomicUpdater:Fie});function Vie(e,t){if(!e)throw new Error(t)}var $ie=Vie,Vg=$ie;const{atomicUpdater:Qie}=h9,{batchUpdates:Hie}=Gv,{DEFAULT_VALUE:Yie}=vs,{useStoreRef:Gie}=nc,{refreshRecoilValue:Zie,setRecoilValue:d9}=al,{cloneSnapshot:Wie}=Xv,{gotoSnapshot:qie}=c9,{useCallback:Kie}=Vi;class f9{}const Xie=new f9;function p9(e,t,r,s){let u=Xie,f;if(Hie(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Li(a);const v=hk({...s??{},set:(D,N)=>d9(e,D,N),reset:D=>d9(e,D,Yie),refresh:D=>Zie(e,D),gotoSnapshot:D=>qie(e,D),transact_UNSTABLE:D=>Qie(e)(D)},{snapshot:()=>{const D=Wie(e);return f=D.retain(),D}}),S=t(v);if(typeof S!="function")throw Li(a);u=S(...r)}),u instanceof f9&&Vg(!1),Dr(u))u=u.finally(()=>{var a;(a=f)===null||a===void 0||a()});else{var m;(m=f)===null||m===void 0||m()}return u}function Jie(e,t){const r=Gie();return Kie((...s)=>p9(r.current,e,s),t!=null?[...t,r]:void 0)}var m9={recoilCallback:p9,useRecoilCallback:Jie};const{useStoreRef:ere}=nc,{refreshRecoilValue:tre}=al,{useCallback:nre}=Vi;function ire(e){const t=ere();return nre(()=>{const r=t.current;tre(r,e)},[e,t])}var rre=ire;const{atomicUpdater:ore}=h9,{useStoreRef:sre}=nc,{useMemo:are}=Vi;function lre(e,t){const r=sre();return are(()=>(...s)=>{ore(r.current)(f=>{e(f)(...s)})},t!=null?[...t,r]:void 0)}var cre=lre;class ure{constructor(t){Ai(this,"value",void 0),this.value=t}}var hre={WrappedValue:ure},dre=hre.WrappedValue,g9=Object.freeze({__proto__:null,WrappedValue:dre});const{isFastRefreshEnabled:fre}=Lg;class y9 extends Error{}class pre{constructor(t){var r,s,u;Ai(this,"_name",void 0),Ai(this,"_numLeafs",void 0),Ai(this,"_root",void 0),Ai(this,"_onHit",void 0),Ai(this,"_onSet",void 0),Ai(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(r=t==null?void 0:t.onHit)!==null&&r!==void 0?r:()=>{},this._onSet=(s=t==null?void 0:t.onSet)!==null&&s!==void 0?s:()=>{},this._mapNodeValue=(u=t==null?void 0:t.mapNodeValue)!==null&&u!==void 0?u:f=>f}size(){return this._numLeafs}root(){return this._root}get(t,r){var s;return(s=this.getLeafNode(t,r))===null||s===void 0?void 0:s.value}getLeafNode(t,r){if(this._root==null)return;let s=this._root;for(;s;){if(r==null||r.onNodeVisit(s),s.type==="leaf")return this._onHit(s),s;const u=this._mapNodeValue(t(s.nodeKey));s=s.branches.get(u)}}set(t,r,s){const u=()=>{var f,m,a,v;let S,D;for(const[q,H]of t){var N,C,O;const Y=this._root;if((Y==null?void 0:Y.type)==="leaf")throw this.invalidCacheError();const W=S;if(S=W?W.branches.get(D):Y,S=(N=S)!==null&&N!==void 0?N:{type:"branch",nodeKey:q,parent:W,branches:new Map,branchKey:D},S.type!=="branch"||S.nodeKey!==q)throw this.invalidCacheError();W==null||W.branches.set(D,S),s==null||(C=s.onNodeVisit)===null||C===void 0||C.call(s,S),D=this._mapNodeValue(H),this._root=(O=this._root)!==null&&O!==void 0?O:S}const R=S?(f=S)===null||f===void 0?void 0:f.branches.get(D):this._root;if(R!=null&&(R.type!=="leaf"||R.branchKey!==D))throw this.invalidCacheError();const V={type:"leaf",value:r,parent:S,branchKey:D};(m=S)===null||m===void 0||m.branches.set(D,V),this._root=(a=this._root)!==null&&a!==void 0?a:V,this._numLeafs++,this._onSet(V),s==null||(v=s.onNodeVisit)===null||v===void 0||v.call(s,V)};try{u()}catch(f){if(f instanceof y9)this.clear(),u();else throw f}}delete(t){const r=this.root();if(!r)return!1;if(t===r)return this._root=null,this._numLeafs=0,!0;let s=t.parent,u=t.branchKey;for(;s;){var f;if(s.branches.delete(u),s===r)return s.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(s.branches.size>0)break;u=(f=s)===null||f===void 0?void 0:f.branchKey,s=s.parent}for(;s!==r;s=s.parent)if(s==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=fre()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw $5(t+(this._name!=null?` - ${this._name}`:"")),new y9}}var mre={TreeCache:pre},gre=mre.TreeCache,_9=Object.freeze({__proto__:null,TreeCache:gre});class yre{constructor(t){var r;Ai(this,"_maxSize",void 0),Ai(this,"_size",void 0),Ai(this,"_head",void 0),Ai(this,"_tail",void 0),Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(r=t.mapKey)!==null&&r!==void 0?r:s=>s}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const r=this._keyMapper(t),s=this._map.get(r);if(s)return this.set(t,s.value),s.value}set(t,r){const s=this._keyMapper(t);this._map.get(s)&&this.delete(t);const f=this.head(),m={key:t,right:f,left:null,value:r};f?f.left=m:this._tail=m,this._map.set(s,m),this._head=m,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const r=this._keyMapper(t);if(!this._size||!this._map.has(r))return;const s=zr(this._map.get(r)),u=s.right,f=s.left;u&&(u.left=s.left),f&&(f.right=s.right),s===this.head()&&(this._head=u),s===this.tail()&&(this._tail=f),this._map.delete(r),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var _re={LRUCache:yre},vre=_re.LRUCache,v9=Object.freeze({__proto__:null,LRUCache:vre});const{LRUCache:xre}=v9,{TreeCache:bre}=_9;function Mre({name:e,maxSize:t,mapNodeValue:r=s=>s}){const s=new xre({maxSize:t}),u=new bre({name:e,mapNodeValue:r,onHit:f=>{s.set(f,!0)},onSet:f=>{const m=s.tail();s.set(f,!0),m&&u.size()>t&&u.delete(m.key)}});return u}var x9=Mre;function Da(e,t,r){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Li("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var s;return(s=JSON.stringify(e))!==null&&s!==void 0?s:""}if(Dr(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((u,f)=>Da(u,t,f.toString()))}]`;if(typeof e.toJSON=="function")return Da(e.toJSON(r),t,r);if(e instanceof Map){const u={};for(const[f,m]of e)u[typeof f=="string"?f:Da(f,t)]=m;return Da(u,t,r)}return e instanceof Set?Da(Array.from(e).sort((u,f)=>Da(u,t).localeCompare(Da(f,t))),t,r):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Da(Array.from(e),t,r):`{${Object.keys(e).filter(u=>e[u]!==void 0).sort().map(u=>`${Da(u,t)}:${Da(e[u],t,u)}`).join(",")}}`}function wre(e,t={allowFunctions:!1}){return Da(e,t)}var ox=wre;const{TreeCache:Ire}=_9,sx={equality:"reference",eviction:"keep-all",maxSize:1/0};function Tre({equality:e=sx.equality,eviction:t=sx.eviction,maxSize:r=sx.maxSize}=sx,s){const u=Sre(e);return Ere(t,r,u,s)}function Sre(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function Ere(e,t,r,s){switch(e){case"keep-all":return new Ire({name:s,mapNodeValue:r});case"lru":return x9({name:s,maxSize:zr(t),mapNodeValue:r});case"most-recent":return x9({name:s,maxSize:1,mapNodeValue:r})}throw Li(`Unrecognized eviction policy ${e}`)}var Dre=Tre;function Are(e){return()=>null}var Cre={startPerfBlock:Are};const{isLoadable:Nre,loadableWithError:ax,loadableWithPromise:Lre,loadableWithValue:gI}=Ng,{WrappedValue:b9}=g9,{getNodeLoadable:lx,peekNodeLoadable:zre,setNodeValue:kre}=du,{saveDepsToStore:Ore}=kg,{DEFAULT_VALUE:jre,getConfigDeletionHandler:Rre,getNode:Pre,registerNode:M9}=vs,{isRecoilValue:Ure}=Ff,{markRecoilValueModified:w9}=al,{retainedByOptionWithDefault:Bre}=Nh,{recoilCallback:Fre}=m9,{startPerfBlock:Vre}=Cre;class I9{}const $g=new I9,Qg=[],cx=new Map,$re=(()=>{let e=0;return()=>e++})();function T9(e){let t=null;const{key:r,get:s,cachePolicy_UNSTABLE:u}=e,f=e.set!=null?e.set:void 0,m=new Set,a=Dre(u??{equality:"reference",eviction:"keep-all"},r),v=Bre(e.retainedBy_UNSTABLE),S=new Map;let D=0;function N(){return!vr("recoil_memory_managament_2020")||D>0}function C(le){return le.getState().knownSelectors.add(r),D++,()=>{D--}}function O(){return Rre(r)!==void 0&&!N()}function R(le,X,ie,Me,xe){ze(X,Me,xe),V(le,ie)}function V(le,X){Ee(le,X)&&it(le),H(X,!0)}function q(le,X){Ee(le,X)&&(zr(De(le)).stateVersions.clear(),H(X,!1))}function H(le,X){const ie=cx.get(le);if(ie!=null){for(const Me of ie)w9(Me,zr(t));X&&cx.delete(le)}}function Y(le,X){let ie=cx.get(X);ie==null&&cx.set(X,ie=new Set),ie.add(le)}function W(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;const Ue=gI(He);return R(le,ie,xe,Ue,Me),He}).catch(He=>{if(!N())throw it(le),$g;if(Dr(He))return ee(le,He,ie,Me,xe,$e);const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function ee(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;$e.loadingDepKey!=null&&$e.loadingDepPromise===X?ie.atomValues.set($e.loadingDepKey,gI(He)):le.getState().knownSelectors.forEach(_t=>{ie.atomValues.delete(_t)});const Ue=he(le,ie);if(Ue&&Ue.state!=="loading"){if((Ee(le,xe)||De(le)==null)&&V(le,xe),Ue.state==="hasValue")return Ue.contents;throw Ue.contents}if(!Ee(le,xe)){const _t=Ve(le,ie);if(_t!=null)return _t.loadingLoadable.contents}const[Xe,ut]=pe(le,ie,xe);if(Xe.state!=="loading"&&R(le,ie,xe,Xe,ut),Xe.state==="hasError")throw Xe.contents;return Xe.contents}).catch(He=>{if(He instanceof I9)throw $g;if(!N())throw it(le),$g;const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function fe(le,X,ie,Me){var xe,$e,He,Ue;if(Ee(le,Me)||X.version===((xe=le.getState())===null||xe===void 0||($e=xe.currentTree)===null||$e===void 0?void 0:$e.version)||X.version===((He=le.getState())===null||He===void 0||(Ue=He.nextTree)===null||Ue===void 0?void 0:Ue.version)){var Xe,ut,_t;Ore(r,ie,le,(Xe=(ut=le.getState())===null||ut===void 0||(_t=ut.nextTree)===null||_t===void 0?void 0:_t.version)!==null&&Xe!==void 0?Xe:le.getState().currentTree.version)}for(const et of ie)m.add(et)}function pe(le,X,ie){const Me=Vre(r);let xe=!0,$e=!0;const He=()=>{Me(),$e=!1};let Ue,Xe=!1,ut;const _t={loadingDepKey:null,loadingDepPromise:null},et=new Map;function bt({key:Rt}){const dn=lx(le,X,Rt);switch(et.set(Rt,dn),xe||(fe(le,X,new Set(et.keys()),ie),q(le,ie)),dn.state){case"hasValue":return dn.contents;case"hasError":throw dn.contents;case"loading":throw _t.loadingDepKey=Rt,_t.loadingDepPromise=dn.contents,dn.contents}throw Li("Invalid Loadable state")}const Ot=Rt=>(...dn)=>{if($e)throw Li("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Vg(!1),Fre(le,Rt,dn,{node:t})};try{Ue=s({get:bt,getCallback:Ot}),Ue=Ure(Ue)?bt(Ue):Ue,Nre(Ue)&&(Ue.state==="hasError"&&(Xe=!0),Ue=Ue.contents),Dr(Ue)?Ue=W(le,Ue,X,et,ie,_t).finally(He):He(),Ue=Ue instanceof b9?Ue.value:Ue}catch(Rt){Ue=Rt,Dr(Ue)?Ue=ee(le,Ue,X,et,ie,_t).finally(He):(Xe=!0,He())}return Xe?ut=ax(Ue):Dr(Ue)?ut=Lre(Ue):ut=gI(Ue),xe=!1,Ge(le,ie,et),fe(le,X,new Set(et.keys()),ie),[ut,et]}function he(le,X){let ie=X.atomValues.get(r);if(ie!=null)return ie;const Me=new Set;try{ie=a.get($e=>(typeof $e!="string"&&Vg(!1),lx(le,X,$e).contents),{onNodeVisit:$e=>{$e.type==="branch"&&$e.nodeKey!==r&&Me.add($e.nodeKey)}})}catch($e){throw Li(`Problem with cache lookup for selector "${r}": ${$e.message}`)}if(ie){var xe;X.atomValues.set(r,ie),fe(le,X,Me,(xe=De(le))===null||xe===void 0?void 0:xe.executionID)}return ie}function oe(le,X){const ie=he(le,X);if(ie!=null)return it(le),ie;const Me=Ve(le,X);if(Me!=null){var xe;return((xe=Me.loadingLoadable)===null||xe===void 0?void 0:xe.state)==="loading"&&Y(le,Me.executionID),Me.loadingLoadable}const $e=$re(),[He,Ue]=pe(le,X,$e);return He.state==="loading"?(Ae(le,$e,He,Ue,X),Y(le,$e)):(it(le),ze(X,He,Ue)),He}function Ve(le,X){const ie=Ck([S.has(le)?[zr(S.get(le))]:[],Fv(X5(S,([xe])=>xe!==le),([,xe])=>xe)]);function Me(xe){for(const[$e,He]of xe)if(!lx(le,X,$e).is(He))return!0;return!1}for(const xe of ie){if(xe.stateVersions.get(X.version)||!Me(xe.depValuesDiscoveredSoFarDuringAsyncWork))return xe.stateVersions.set(X.version,!0),xe;xe.stateVersions.set(X.version,!1)}}function De(le){return S.get(le)}function Ae(le,X,ie,Me,xe){S.set(le,{depValuesDiscoveredSoFarDuringAsyncWork:Me,executionID:X,loadingLoadable:ie,stateVersions:new Map([[xe.version,!0]])})}function Ge(le,X,ie){if(Ee(le,X)){const Me=De(le);Me!=null&&(Me.depValuesDiscoveredSoFarDuringAsyncWork=ie)}}function it(le){S.delete(le)}function Ee(le,X){var ie;return X===((ie=De(le))===null||ie===void 0?void 0:ie.executionID)}function Ze(le){return Array.from(le.entries()).map(([X,ie])=>[X,ie.contents])}function ze(le,X,ie){le.atomValues.set(r,X);try{a.set(Ze(ie),X)}catch(Me){throw Li(`Problem with setting cache for selector "${r}": ${Me.message}`)}}function Le(le){if(Qg.includes(r)){const X=`Recoil selector has circular dependencies: ${Qg.slice(Qg.indexOf(r)).join(" → ")}`;return ax(Li(X))}Qg.push(r);try{return le()}finally{Qg.pop()}}function Ye(le,X){const ie=X.atomValues.get(r);return ie??a.get(Me=>{var xe;return typeof Me!="string"&&Vg(!1),(xe=zre(le,X,Me))===null||xe===void 0?void 0:xe.contents})}function qe(le,X){return Le(()=>oe(le,X))}function Ie(le){le.atomValues.delete(r)}function Te(le,X){t==null&&Vg(!1);for(const Me of m){var ie;const xe=Pre(Me);(ie=xe.clearCache)===null||ie===void 0||ie.call(xe,le,X)}m.clear(),Ie(X),a.clear(),w9(le,t)}return f!=null?t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,set:(X,ie,Me)=>{let xe=!1;const $e=new Map;function He({key:_t}){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const et=lx(X,ie,_t);if(et.state==="hasValue")return et.contents;if(et.state==="loading"){const bt=`Getting value of asynchronous atom or selector "${_t}" in a pending state while setting selector "${r}" is not yet supported.`;throw Li(bt)}else throw et.contents}function Ue(_t,et){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const bt=typeof et=="function"?et(He(_t)):et;kre(X,ie,_t.key,bt).forEach((Rt,dn)=>$e.set(dn,Rt))}function Xe(_t){Ue(_t,jre)}const ut=f({set:Ue,get:He,reset:Xe},Me);if(ut!==void 0)throw Dr(ut)?Li("Recoil: Async selector sets are not currently supported."):Li("Recoil: selector set should be a void function.");return xe=!0,$e},init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v}):t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v})}T9.value=e=>new b9(e);var Hf=T9;const{isLoadable:Qre,loadableWithError:yI,loadableWithPromise:_I,loadableWithValue:Yf}=Ng,{WrappedValue:S9}=g9,{peekNodeInfo:Hre}=du,{DEFAULT_VALUE:Lh,DefaultValue:fu,getConfigDeletionHandler:E9,registerNode:Yre,setConfigDeletionHandler:Gre}=vs,{isRecoilValue:Zre}=Ff,{getRecoilValueAsLoadable:Wre,markRecoilValueModified:qre,setRecoilValue:D9,setRecoilValueLoadable:Kre}=al,{retainedByOptionWithDefault:Xre}=Nh,Hg=e=>e instanceof S9?e.value:e;function Jre(e){const{key:t,persistence_UNSTABLE:r}=e,s=Xre(e.retainedBy_UNSTABLE);let u=0;function f(Y){return _I(Y.then(W=>(m=Yf(W),W)).catch(W=>{throw m=yI(W),W}))}let m=Dr(e.default)?f(e.default):Qre(e.default)?e.default.state==="loading"?f(e.default.contents):e.default:Yf(Hg(e.default));m.contents;let a;const v=new Map;function S(Y){return Y}function D(Y,W){const ee=W.then(fe=>{var pe,he;return((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&D9(Y,H,fe),fe}).catch(fe=>{var pe,he;throw((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&Kre(Y,H,yI(fe)),fe});return ee}function N(Y,W,ee){var fe;u++;const pe=()=>{var De;u--,(De=v.get(Y))===null||De===void 0||De.forEach(Ae=>Ae()),v.delete(Y)};if(Y.getState().knownAtoms.add(t),m.state==="loading"){const De=()=>{var Ae;((Ae=Y.getState().nextTree)!==null&&Ae!==void 0?Ae:Y.getState().currentTree).atomValues.has(t)||qre(Y,H)};m.contents.finally(De)}const he=(fe=e.effects)!==null&&fe!==void 0?fe:e.effects_UNSTABLE;if(he!=null){let Ee=function(Ie){if(Ae&&Ie.key===t){const Te=De;return Te instanceof fu?C(Y,W):Dr(Te)?_I(Te.then(le=>le instanceof fu?m.toPromise():le)):Yf(Te)}return Wre(Y,Ie)},Ze=function(Ie){return Ee(Ie).toPromise()},ze=function(Ie){var Te;const le=Hre(Y,(Te=Y.getState().nextTree)!==null&&Te!==void 0?Te:Y.getState().currentTree,Ie.key);return Ae&&Ie.key===t&&!(De instanceof fu)?{...le,isSet:!0,loadable:Ee(Ie)}:le},De=Lh,Ae=!0,Ge=!1,it=null;const Le=Ie=>Te=>{if(Ae){const le=Ee(H),X=le.state==="hasValue"?le.contents:Lh;De=typeof Te=="function"?Te(X):Te,Dr(De)&&(De=De.then(ie=>(it={effect:Ie,value:ie},ie)))}else{if(Dr(Te))throw Li("Setting atoms to async values is not implemented.");typeof Te!="function"&&(it={effect:Ie,value:Hg(Te)}),D9(Y,H,typeof Te=="function"?le=>{const X=Hg(Te(le));return it={effect:Ie,value:X},X}:Hg(Te))}},Ye=Ie=>()=>Le(Ie)(Lh),qe=Ie=>Te=>{var le;const{release:X}=Y.subscribeToTransactions(ie=>{var Me;let{currentTree:xe,previousTree:$e}=ie.getState();$e||($e=xe);const He=(Me=xe.atomValues.get(t))!==null&&Me!==void 0?Me:m;if(He.state==="hasValue"){var Ue,Xe,ut,_t;const et=He.contents,bt=(Ue=$e.atomValues.get(t))!==null&&Ue!==void 0?Ue:m,Ot=bt.state==="hasValue"?bt.contents:Lh;((Xe=it)===null||Xe===void 0?void 0:Xe.effect)!==Ie||((ut=it)===null||ut===void 0?void 0:ut.value)!==et?Te(et,Ot,!xe.atomValues.has(t)):((_t=it)===null||_t===void 0?void 0:_t.effect)===Ie&&(it=null)}},t);v.set(Y,[...(le=v.get(Y))!==null&&le!==void 0?le:[],X])};for(const Ie of he)try{const Te=Ie({node:H,storeID:Y.storeID,parentStoreID_UNSTABLE:Y.parentStoreID,trigger:ee,setSelf:Le(Ie),resetSelf:Ye(Ie),onSet:qe(Ie),getPromise:Ze,getLoadable:Ee,getInfo_UNSTABLE:ze});if(Te!=null){var oe;v.set(Y,[...(oe=v.get(Y))!==null&&oe!==void 0?oe:[],Te])}}catch(Te){De=Te,Ge=!0}if(Ae=!1,!(De instanceof fu)){var Ve;const Ie=Ge?yI(De):Dr(De)?_I(D(Y,De)):Yf(Hg(De));Ie.contents,W.atomValues.set(t,Ie),(Ve=Y.getState().nextTree)===null||Ve===void 0||Ve.atomValues.set(t,Ie)}}return pe}function C(Y,W){var ee,fe;return(ee=(fe=W.atomValues.get(t))!==null&&fe!==void 0?fe:a)!==null&&ee!==void 0?ee:m}function O(Y,W){if(W.atomValues.has(t))return zr(W.atomValues.get(t));if(W.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(r==null)return m;const ee=W.nonvalidatedAtoms.get(t),fe=r.validator(ee,Lh);return a=fe instanceof fu?m:Yf(fe),a}else return m}function R(){a=void 0}function V(Y,W,ee){if(W.atomValues.has(t)){const fe=zr(W.atomValues.get(t));if(fe.state==="hasValue"&&ee===fe.contents)return new Map}else if(!W.nonvalidatedAtoms.has(t)&&ee instanceof fu)return new Map;return a=void 0,new Map().set(t,Yf(ee))}function q(){return E9(t)!==void 0&&u<=0}const H=Yre({key:t,nodeType:"atom",peek:C,get:O,set:V,init:N,invalidate:R,shouldDeleteConfigOnRelease:q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:s});return H}function vI(e){const{...t}=e,r="default"in e?e.default:new Promise(()=>{});return Zre(r)?eoe({...t,default:r}):Jre({...t,default:r})}function eoe(e){const t=vI({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:s=>s instanceof fu?s:zr(e.persistence_UNSTABLE).validator(s,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),r=Hf({key:`${e.key}__withFallback`,get:({get:s})=>{const u=s(t);return u instanceof fu?e.default:u},set:({set:s},u)=>s(t,u),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Gre(r.key,E9(e.key)),r}vI.value=e=>new S9(e);var A9=vI;class toe{constructor(t){var r;Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(r=t==null?void 0:t.mapKey)!==null&&r!==void 0?r:s=>s}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,r){this._map.set(this._keyMapper(t),r)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var noe={MapCache:toe},ioe=noe.MapCache,roe=Object.freeze({__proto__:null,MapCache:ioe});const{LRUCache:C9}=v9,{MapCache:ooe}=roe,ux={equality:"reference",eviction:"none",maxSize:1/0};function soe({equality:e=ux.equality,eviction:t=ux.eviction,maxSize:r=ux.maxSize}=ux){const s=aoe(e);return loe(t,r,s)}function aoe(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function loe(e,t,r){switch(e){case"keep-all":return new ooe({mapKey:r});case"lru":return new C9({mapKey:r,maxSize:zr(t)});case"most-recent":return new C9({mapKey:r,maxSize:1})}throw Li(`Unrecognized eviction policy ${e}`)}var N9=soe;const{setConfigDeletionHandler:coe}=vs;function uoe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f,m;const a=s.get(u);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:v,...S}=e,D="default"in e?e.default:new Promise(()=>{}),N=A9({...S,key:`${e.key}__${(f=ox(u))!==null&&f!==void 0?f:"void"}`,default:typeof D=="function"?D(u):D,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(u):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(u):(m=e.effects)!==null&&m!==void 0?m:e.effects_UNSTABLE});return s.set(u,N),coe(N.key,()=>{s.delete(u)}),N}}var hoe=uoe;const{setConfigDeletionHandler:doe}=vs;let foe=0;function poe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f;let m;try{m=s.get(u)}catch(C){throw Li(`Problem with cache lookup for selector ${e.key}: ${C.message}`)}if(m!=null)return m;const a=`${e.key}__selectorFamily/${(f=ox(u,{allowFunctions:!0}))!==null&&f!==void 0?f:"void"}/${foe++}`,v=C=>e.get(u)(C),S=e.cachePolicy_UNSTABLE,D=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE;let N;if(e.set!=null){const C=e.set;N=Hf({key:a,get:v,set:(R,V)=>C(u)(R,V),cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D})}else N=Hf({key:a,get:v,cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D});return s.set(u,N),doe(N.key,()=>{s.delete(u)}),N}}var pu=poe;const moe=pu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function goe(e){return moe(e)}var yoe=goe;const _oe=pu({key:"__error",get:e=>()=>{throw Li(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function voe(e){return _oe(e)}var xoe=voe;function boe(e){return e}var Moe=boe;const{loadableWithError:L9,loadableWithPromise:z9,loadableWithValue:k9}=Ng;function hx(e,t){const r=Array(t.length).fill(void 0),s=Array(t.length).fill(void 0);for(const[u,f]of t.entries())try{r[u]=e(f)}catch(m){s[u]=m}return[r,s]}function woe(e){return e!=null&&!Dr(e)}function dx(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function xI(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((r,s,u)=>({...r,[s]:t[u]}),{})}function Gf(e,t,r){const s=r.map((u,f)=>u==null?k9(t[f]):Dr(u)?z9(u):L9(u));return xI(e,s)}function Ioe(e,t){return t.map((r,s)=>r===void 0?e[s]:r)}const Toe=pu({key:"__waitForNone",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return Gf(e,s,u)},dangerouslyAllowMutability:!0}),Soe=pu({key:"__waitForAny",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.some(f=>!Dr(f))?Gf(e,s,u):new Promise(f=>{for(const[m,a]of u.entries())Dr(a)&&a.then(v=>{s[m]=v,u[m]=void 0,f(Gf(e,s,u))}).catch(v=>{u[m]=v,f(Gf(e,s,u))})})},dangerouslyAllowMutability:!0}),Eoe=pu({key:"__waitForAll",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);if(u.every(m=>m==null))return xI(e,s);const f=u.find(woe);if(f!=null)throw f;return Promise.all(u).then(m=>xI(e,Ioe(s,m)))},dangerouslyAllowMutability:!0}),Doe=pu({key:"__waitForAllSettled",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.every(f=>!Dr(f))?Gf(e,s,u):Promise.all(u.map((f,m)=>Dr(f)?f.then(a=>{s[m]=a,u[m]=void 0}).catch(a=>{s[m]=void 0,u[m]=a}):null)).then(()=>Gf(e,s,u))},dangerouslyAllowMutability:!0}),Aoe=pu({key:"__noWait",get:e=>({get:t})=>{try{return Hf.value(k9(t(e)))}catch(r){return Hf.value(Dr(r)?z9(r):L9(r))}},dangerouslyAllowMutability:!0});var Coe={waitForNone:Toe,waitForAny:Soe,waitForAll:Eoe,waitForAllSettled:Doe,noWait:Aoe};const{RecoilLoadable:Noe}=Ng,{DefaultValue:Loe}=vs,{RecoilRoot:zoe,useRecoilStoreID:koe}=nc,{isRecoilValue:Ooe}=Ff,{retentionZone:joe}=Hv,{freshSnapshot:Roe}=Xv,{useRecoilState:Poe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilStateLoadable:Boe,useRecoilValue:Foe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilValueLoadable:$oe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useResetRecoilState:Hoe,useSetRecoilState:Yoe}=nie,{useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver:Woe}=c9,{useRecoilCallback:qoe}=m9,{noWait:Koe,waitForAll:Xoe,waitForAllSettled:Joe,waitForAny:ese,waitForNone:tse}=Coe;var Zf={DefaultValue:Loe,isRecoilValue:Ooe,RecoilLoadable:Noe,RecoilEnv:Bf,RecoilRoot:zoe,useRecoilStoreID:koe,useRecoilBridgeAcrossReactRoots_UNSTABLE:Aie,atom:A9,selector:Hf,atomFamily:hoe,selectorFamily:pu,constSelector:yoe,errorSelector:xoe,readOnlySelector:Moe,noWait:Koe,waitForNone:tse,waitForAny:ese,waitForAll:Xoe,waitForAllSettled:Joe,useRecoilValue:Foe,useRecoilValueLoadable:$oe,useRecoilState:Poe,useRecoilStateLoadable:Boe,useSetRecoilState:Yoe,useResetRecoilState:Hoe,useGetRecoilValueInfo_UNSTABLE:wie,useRecoilRefresher_UNSTABLE:rre,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilCallback:qoe,useRecoilTransaction_UNSTABLE:cre,useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver_UNSTABLE:Woe,snapshot_UNSTABLE:Roe,useRetain:cI,retentionZone:joe},nse=Zf.RecoilRoot,ui=Zf.atom,O9=Zf.selector,on=Zf.useRecoilValue,zn=Zf.useRecoilState,ca=Zf.useResetRecoilState;const ise=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,u)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(u.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rse="mi-components";let fx,j9,Vs=!1,bI=!1;const ic=(e,t="")=>()=>{},ose=(e,t)=>()=>{},sse="{visibility:hidden}.hydrated{visibility:inherit}",R9="http://www.w3.org/1999/xlink",P9={},ase="http://www.w3.org/2000/svg",lse="http://www.w3.org/1999/xhtml",cse=e=>e!=null,MI=e=>(e=typeof e,e==="object"||e==="function");function U9(e){var t,r,s;return(s=(r=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&s!==void 0?s:void 0}const ke=(e,t,...r)=>{let s=null,u=null,f=!1,m=!1;const a=[],v=D=>{for(let N=0;N<D.length;N++)s=D[N],Array.isArray(s)?v(s):s!=null&&typeof s!="boolean"&&((f=typeof e!="function"&&!MI(s))&&(s=String(s)),f&&m?a[a.length-1].$text$+=s:a.push(f?wI(null,s):s),m=f)};if(v(r),t){t.key&&(u=t.key);{const D=t.className||t.class;D&&(t.class=typeof D!="object"?D:Object.keys(D).filter(N=>D[N]).join(" "))}}const S=wI(e,null);return S.$attrs$=t,a.length>0&&(S.$children$=a),S.$key$=u,S},wI=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},co={},use=e=>e&&e.$tag$===co,hse=(e,t)=>e!=null&&!MI(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,rc=e=>mu(e).$hostElement$,pr=(e,t,r)=>{const s=rc(e);return{emit:u=>B9(s,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:u})}},B9=(e,t,r)=>{const s=Do.ce(t,r);return e.dispatchEvent(s),s},F9=new WeakMap,dse=(e,t,r)=>{let s=yx.get(e);zse&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,yx.set(e,s)},fse=(e,t,r,s)=>{var u;let f=V9(t);const m=yx.get(f);if(e=e.nodeType===11?e:cl,m)if(typeof m=="string"){e=e.head||e;let a=F9.get(e),v;if(a||F9.set(e,a=new Set),!a.has(f)){{v=cl.createElement("style"),v.innerHTML=m;const S=(u=Do.$nonce$)!==null&&u!==void 0?u:U9(cl);S!=null&&v.setAttribute("nonce",S),e.insertBefore(v,e.querySelector("link"))}a&&a.add(f)}}else e.adoptedStyleSheets.includes(m)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,m]);return f},pse=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,u=ic("attachStyles",t.$tagName$),f=fse(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=f,r.classList.add(f+"-h")),u()},V9=(e,t)=>"sc-"+e.$tagName$,$9=(e,t,r,s,u,f)=>{if(r!==s){let m=nO(e,t),a=t.toLowerCase();if(t==="class"){const v=e.classList,S=Q9(r),D=Q9(s);v.remove(...S.filter(N=>N&&!D.includes(N))),v.add(...D.filter(N=>N&&!S.includes(N)))}else if(t==="style"){for(const v in r)(!s||s[v]==null)&&(v.includes("-")?e.style.removeProperty(v):e.style[v]="");for(const v in s)(!r||s[v]!==r[v])&&(v.includes("-")?e.style.setProperty(v,s[v]):e.style[v]=s[v])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!m&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):nO(Yg,a)?t=a.slice(2):t=a[2]+t.slice(3),r&&Do.rel(e,t,r,!1),s&&Do.ael(e,t,s,!1);else{const v=MI(s);if((m||v&&s!==null)&&!u)try{if(e.tagName.includes("-"))e[t]=s;else{const D=s??"";t==="list"?m=!1:(r==null||e[t]!=D)&&(e[t]=D)}}catch{}let S=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,S=!0),s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&(S?e.removeAttributeNS(R9,t):e.removeAttribute(t)):(!m||f&4||u)&&!v&&(s=s===!0?"":s,S?e.setAttributeNS(R9,t,s):e.setAttribute(t,s))}}},mse=/\s/,Q9=e=>e?e.split(mse):[],H9=(e,t,r,s)=>{const u=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,f=e&&e.$attrs$||P9,m=t.$attrs$||P9;for(s in f)s in m||$9(u,s,f[s],void 0,r,t.$flags$);for(s in m)$9(u,s,f[s],m[s],r,t.$flags$)},px=(e,t,r,s)=>{const u=t.$children$[r];let f=0,m,a;if(u.$text$!==null)m=u.$elm$=cl.createTextNode(u.$text$);else{if(Vs||(Vs=u.$tag$==="svg"),m=u.$elm$=cl.createElementNS(Vs?ase:lse,u.$tag$),Vs&&u.$tag$==="foreignObject"&&(Vs=!1),H9(null,u,Vs),cse(fx)&&m["s-si"]!==fx&&m.classList.add(m["s-si"]=fx),u.$children$)for(f=0;f<u.$children$.length;++f)a=px(e,u,f),a&&m.appendChild(a);u.$tag$==="svg"?Vs=!1:m.tagName==="foreignObject"&&(Vs=!0)}return m},Y9=(e,t,r,s,u,f)=>{let m=e,a;for(m.shadowRoot&&m.tagName===j9&&(m=m.shadowRoot);u<=f;++u)s[u]&&(a=px(null,r,u),a&&(s[u].$elm$=a,m.insertBefore(a,t)))},G9=(e,t,r,s,u)=>{for(;t<=r;++t)(s=e[t])&&(u=s.$elm$,Z9(s),u.remove())},gse=(e,t,r,s)=>{let u=0,f=0,m=0,a=0,v=t.length-1,S=t[0],D=t[v],N=s.length-1,C=s[0],O=s[N],R,V;for(;u<=v&&f<=N;)if(S==null)S=t[++u];else if(D==null)D=t[--v];else if(C==null)C=s[++f];else if(O==null)O=s[--N];else if(mx(S,C))Wf(S,C),S=t[++u],C=s[++f];else if(mx(D,O))Wf(D,O),D=t[--v],O=s[--N];else if(mx(S,O))Wf(S,O),e.insertBefore(S.$elm$,D.$elm$.nextSibling),S=t[++u],O=s[--N];else if(mx(D,C))Wf(D,C),e.insertBefore(D.$elm$,S.$elm$),D=t[--v],C=s[++f];else{for(m=-1,a=u;a<=v;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===C.$key$){m=a;break}m>=0?(V=t[m],V.$tag$!==C.$tag$?R=px(t&&t[f],r,m):(Wf(V,C),t[m]=void 0,R=V.$elm$),C=s[++f]):(R=px(t&&t[f],r,f),C=s[++f]),R&&S.$elm$.parentNode.insertBefore(R,S.$elm$)}u>v?Y9(e,s[N+1]==null?null:s[N+1].$elm$,r,s,f,N):f>N&&G9(t,u,v)},mx=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Wf=(e,t)=>{const r=t.$elm$=e.$elm$,s=e.$children$,u=t.$children$,f=t.$tag$,m=t.$text$;m===null?(Vs=f==="svg"?!0:f==="foreignObject"?!1:Vs,f==="slot"||H9(e,t,Vs),s!==null&&u!==null?gse(r,s,t,u):u!==null?(e.$text$!==null&&(r.textContent=""),Y9(r,null,t,u,0,u.length-1)):s!==null&&G9(s,0,s.length-1),Vs&&f==="svg"&&(Vs=!1)):e.$text$!==m&&(r.data=m)},Z9=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Z9)},yse=(e,t)=>{const r=e.$hostElement$,s=e.$cmpMeta$,u=e.$vnode$||wI(null,null),f=use(t)?t:ke(null,null,t);j9=r.tagName,s.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},s.$attrsToReflect$.map(([m,a])=>f.$attrs$[a]=r[m])),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=u.$elm$=r.shadowRoot||r,fx=r["s-sc"],Wf(u,f)},W9=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},gx=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return W9(e,e.$ancestorComponent$),Ose(()=>_se(e,t))},_se=(e,t)=>{const r=ic("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;let u;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([f,m])=>zh(s,f,m)),e.$queuedListeners$=null),u=zh(s,"componentWillLoad")),u=K9(u,()=>zh(s,"componentWillRender")),r(),K9(u,()=>vse(e,s,t))},vse=async(e,t,r)=>{const s=e.$hostElement$,u=ic("update",e.$cmpMeta$.$tagName$),f=s["s-rc"];r&&pse(e);const m=ic("render",e.$cmpMeta$.$tagName$);xse(e,t),f&&(f.map(a=>a()),s["s-rc"]=void 0),m(),u();{const a=s["s-p"],v=()=>bse(e);a.length===0?v():(Promise.all(a).then(v),e.$flags$|=4,a.length=0)}},xse=(e,t,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,yse(e,t)}catch(s){kh(s,e.$hostElement$)}return null},bse=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ic("postUpdate",t),u=e.$lazyInstance$,f=e.$ancestorComponent$;zh(u,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,X9(r),zh(u,"componentDidLoad"),s(),e.$onReadyResolve$(r),f||q9()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&EI(()=>gx(e,!1)),e.$flags$&=-517},II=e=>{{const t=mu(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&gx(t,!1),r}},q9=e=>{X9(cl.documentElement),EI(()=>B9(Yg,"appload",{detail:{namespace:rse}}))},zh=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){kh(s)}},K9=(e,t)=>e&&e.then?e.then(t):t(),X9=e=>e.classList.add("hydrated"),Mse=(e,t)=>mu(e).$instanceValues$.get(t),wse=(e,t,r,s)=>{const u=mu(e),f=u.$hostElement$,m=u.$instanceValues$.get(t),a=u.$flags$,v=u.$lazyInstance$;r=hse(r,s.$members$[t][0]);const S=Number.isNaN(m)&&Number.isNaN(r),D=r!==m&&!S;if((!(a&8)||m===void 0)&&D&&(u.$instanceValues$.set(t,r),v)){if(s.$watchers$&&a&128){const N=s.$watchers$[t];N&&N.map(C=>{try{v[C](r,m,t)}catch(O){kh(O,f)}})}(a&18)===2&&gx(u,!1)}},J9=(e,t,r)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const s=Object.entries(t.$members$),u=e.prototype;if(s.map(([f,[m]])=>{m&31||r&2&&m&32?Object.defineProperty(u,f,{get(){return Mse(this,f)},set(a){wse(this,f,a,t)},configurable:!0,enumerable:!0}):r&1&&m&64&&Object.defineProperty(u,f,{value(...a){const v=mu(this);return v.$onInstancePromise$.then(()=>v.$lazyInstance$[f](...a))}})}),r&1){const f=new Map;u.attributeChangedCallback=function(m,a,v){Do.jmp(()=>{const S=f.get(m);if(this.hasOwnProperty(S))v=this[S],delete this[S];else if(u.hasOwnProperty(S)&&typeof this[S]=="number"&&this[S]==v)return;this[S]=v===null&&typeof this[S]=="boolean"?!1:v})},e.observedAttributes=s.filter(([m,a])=>a[0]&15).map(([m,a])=>{const v=a[1]||m;return f.set(v,m),a[0]&512&&t.$attrsToReflect$.push([m,v]),v})}}return e},Ise=async(e,t,r,s,u)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,u=Lse(r),u.then){const v=ose();u=await u,v()}u.isProxied||(r.$watchers$=u.watchers,J9(u,r,2),u.isProxied=!0);const a=ic("createInstance",r.$tagName$);t.$flags$|=8;try{new u(t)}catch(v){kh(v)}t.$flags$&=-9,t.$flags$|=128,a(),eO(t.$lazyInstance$)}if(u.style){let a=u.style;const v=V9(r);if(!yx.has(v)){const S=ic("registerStyles",r.$tagName$);dse(v,a,!!(r.$flags$&1)),S()}}}const f=t.$ancestorComponent$,m=()=>gx(t,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()},eO=e=>{zh(e,"connectedCallback")},Tse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$cmpMeta$,s=ic("connectedCallback",r.$tagName$);if(t.$flags$&1)tO(e,t,r.$listeners$),eO(t.$lazyInstance$);else{t.$flags$|=1;{let u=e;for(;u=u.parentNode||u.host;)if(u["s-p"]){W9(t,t.$ancestorComponent$=u);break}}r.$members$&&Object.entries(r.$members$).map(([u,[f]])=>{if(f&31&&e.hasOwnProperty(u)){const m=e[u];delete e[u],e[u]=m}}),Ise(e,t,r)}s()}},Sse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),zh(r,"disconnectedCallback")}},Ese=(e,t={})=>{var r;const s=ic(),u=[],f=t.exclude||[],m=Yg.customElements,a=cl.head,v=a.querySelector("meta[charset]"),S=cl.createElement("style"),D=[];let N,C=!0;Object.assign(Do,t),Do.$resourcesUrl$=new URL(t.resourcesUrl||"./",cl.baseURI).href,e.map(O=>{O[1].map(R=>{const V={$flags$:R[0],$tagName$:R[1],$members$:R[2],$listeners$:R[3]};V.$members$=R[2],V.$listeners$=R[3],V.$attrsToReflect$=[],V.$watchers$={};const q=V.$tagName$,H=class extends HTMLElement{constructor(Y){super(Y),Y=this,Nse(Y,V),V.$flags$&1&&Y.attachShadow({mode:"open"})}connectedCallback(){N&&(clearTimeout(N),N=null),C?D.push(this):Do.jmp(()=>Tse(this))}disconnectedCallback(){Do.jmp(()=>Sse(this))}componentOnReady(){return mu(this).$onReadyPromise$}};V.$lazyBundleId$=O[0],!f.includes(q)&&!m.get(q)&&(u.push(q),m.define(q,J9(H,V,1)))})});{S.innerHTML=u+sse,S.setAttribute("data-styles","");const O=(r=Do.$nonce$)!==null&&r!==void 0?r:U9(cl);O!=null&&S.setAttribute("nonce",O),a.insertBefore(S,v?v.nextSibling:a.firstChild)}C=!1,D.length?D.map(O=>O.connectedCallback()):Do.jmp(()=>N=setTimeout(q9,30)),s()},tO=(e,t,r,s)=>{r&&r.map(([u,f,m])=>{const a=Ase(e,u),v=Dse(t,m),S=Cse(u);Do.ael(a,f,v,S),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Do.rel(a,f,v,S))})},Dse=(e,t)=>r=>{try{e.$flags$&256?e.$lazyInstance$[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(s){kh(s)}},Ase=(e,t)=>t&8?Yg:e,Cse=e=>(e&2)!==0,TI=new WeakMap,mu=e=>TI.get(e),Ri=(e,t)=>TI.set(t.$lazyInstance$=e,t),Nse=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],tO(e,r,t.$listeners$),TI.set(e,r)},nO=(e,t)=>t in e,kh=(e,t)=>(0,console.error)(e,t),iO=new Map,Lse=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),u=e.$lazyBundleId$,f=iO.get(u);if(f)return f[s];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return ise(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Pce),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Fce),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>$ce),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Qce),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Gce),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>tue),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>rue),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>oue),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>aue),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>cue),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>yue),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>vue),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>bue),"./mi-list.entry.js":()=>Promise.resolve().then(()=>wue),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Zme),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>qme),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Jme),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>ige),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>oge),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>Mge),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>Ige),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Sge),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Dge),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Cge),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Lge),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>kge),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>jge),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Pge),"./mi-search.entry.js":()=>Promise.resolve().then(()=>$ge),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Hge),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Gge),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Wge),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>qge),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Xge),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Jge)}),`./${u}.entry.js`).then(m=>(iO.set(u,m),m[s]),kh)},yx=new Map,Yg=typeof window<"u"?window:{},cl=Yg.document||{head:{}},Do={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},rO=e=>Promise.resolve(e),zse=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),oO=[],sO=[],kse=(e,t)=>r=>{e.push(r),bI||(bI=!0,t&&Do.$flags$&4?EI(SI):Do.raf(SI))},aO=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){kh(r)}e.length=0},SI=()=>{aO(oO),aO(sO),(bI=oO.length>0)&&Do.raf(SI)},EI=e=>rO().then(e),Ose=kse(sO,!0),jse=()=>rO(),Rse=(e,t)=>typeof window>"u"?Promise.resolve():jse().then(()=>Ese([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],destinationLocation:[1,"destination-location"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],disabled:[4],currentItems:[32]},[[0,"focusout","focusOutEventHandler"],[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],positionState:[32],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Pse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class _x{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Pse,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,s,u){return u&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new _x(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _x(this.logger,t)}}var ul=new _x;class vx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(s=>{this.observers[s]=this.observers[s]||[],this.observers[s].push(r)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(s=>s!==r)}}emit(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];this.observers[t]&&[].concat(this.observers[t]).forEach(m=>{m(...s)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(m=>{m.apply(m,[t,...s])})}}function Gg(){let e,t;const r=new Promise((s,u)=>{e=s,t=u});return r.resolve=e,r.reject=t,r}function lO(e){return e==null?"":""+e}function Use(e,t,r){e.forEach(s=>{t[s]&&(r[s]=t[s])})}function DI(e,t,r){function s(m){return m&&m.indexOf("###")>-1?m.replace(/###/g,"."):m}function u(){return!e||typeof e=="string"}const f=typeof t!="string"?[].concat(t):t.split(".");for(;f.length>1;){if(u())return{};const m=s(f.shift());!e[m]&&r&&(e[m]=new r),Object.prototype.hasOwnProperty.call(e,m)?e=e[m]:e={}}return u()?{}:{obj:e,k:s(f.shift())}}function cO(e,t,r){const{obj:s,k:u}=DI(e,t,Object);s[u]=r}function Bse(e,t,r,s){const{obj:u,k:f}=DI(e,t,Object);u[f]=u[f]||[],s&&(u[f]=u[f].concat(r)),s||u[f].push(r)}function xx(e,t){const{obj:r,k:s}=DI(e,t);if(r)return r[s]}function Fse(e,t,r){const s=xx(e,r);return s!==void 0?s:xx(t,r)}function uO(e,t,r){for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?typeof e[s]=="string"||e[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?r&&(e[s]=t[s]):uO(e[s],t[s],r):e[s]=t[s]);return e}function qf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Vse={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $se(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Vse[t]):e}const Qse=[" ",",","?","!",";"];function Hse(e,t,r){t=t||"",r=r||"";const s=Qse.filter(m=>t.indexOf(m)<0&&r.indexOf(m)<0);if(s.length===0)return!0;const u=new RegExp(`(${s.map(m=>m==="?"?"\\?":m).join("|")})`);let f=!u.test(e);if(!f){const m=e.indexOf(r);m>0&&!u.test(e.substring(0,m))&&(f=!0)}return f}function bx(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(r);let u=e;for(let f=0;f<s.length;++f){if(!u||typeof u[s[f]]=="string"&&f+1<s.length)return;if(u[s[f]]===void 0){let m=2,a=s.slice(f,f+m).join(r),v=u[a];for(;v===void 0&&s.length>f+m;)m++,a=s.slice(f,f+m).join(r),v=u[a];if(v===void 0)return;if(v===null)return null;if(t.endsWith(a)){if(typeof v=="string")return v;if(a&&typeof v[a]=="string")return v[a]}const S=s.slice(f+m).join(r);return S?bx(v,S,r):void 0}u=u[s[f]]}return u}function Mx(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class hO extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,m=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,r];s&&typeof s!="string"&&(a=a.concat(s)),s&&typeof s=="string"&&(a=a.concat(f?s.split(f):s)),t.indexOf(".")>-1&&(a=t.split("."));const v=xx(this.data,a);return v||!m||typeof s!="string"?v:bx(this.data&&this.data[t]&&this.data[t][r],s,f)}addResource(t,r,s,u){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const m=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let a=[t,r];s&&(a=a.concat(m?s.split(m):s)),t.indexOf(".")>-1&&(a=t.split("."),u=r,r=a[1]),this.addNamespaces(r),cO(this.data,a,u),f.silent||this.emit("added",t,r,s,u)}addResources(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in s)(typeof s[f]=="string"||Object.prototype.toString.apply(s[f])==="[object Array]")&&this.addResource(t,r,f,s[f],{silent:!0});u.silent||this.emit("added",t,r,s)}addResourceBundle(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),u=s,s=r,r=a[1]),this.addNamespaces(r);let v=xx(this.data,a)||{};u?uO(v,s,f):v={...v,...s},cO(this.data,a,v),m.silent||this.emit("added",t,r,s)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(u=>r[u]&&Object.keys(r[u]).length>0)}toJSON(){return this.data}}var dO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,s,u){return e.forEach(f=>{this.processors[f]&&(t=this.processors[f].process(t,r,s,u))}),t}};const fO={};class wx extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Use(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ul.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,r);return s&&s.res!==void 0}extractFromKey(t,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const u=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const m=s&&t.indexOf(s)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Hse(t,s,u);if(m&&!a){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:f};const S=t.split(s);(s!==u||s===u&&this.options.ns.indexOf(S[0])>-1)&&(f=S.shift()),t=S.join(u)}return typeof f=="string"&&(f=[f]),{key:t,namespaces:f}}translate(t,r,s){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const u=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,f=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:m,namespaces:a}=this.extractFromKey(t[t.length-1],r),v=a[a.length-1],S=r.lng||this.language,D=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S&&S.toLowerCase()==="cimode"){if(D){const ee=r.nsSeparator||this.options.nsSeparator;return u?{res:`${v}${ee}${m}`,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:`${v}${ee}${m}`}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:m}const N=this.resolve(t,r);let C=N&&N.res;const O=N&&N.usedKey||m,R=N&&N.exactUsedKey||m,V=Object.prototype.toString.apply(C),q=["[object Number]","[object Function]","[object RegExp]"],H=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Y&&C&&(typeof C!="string"&&typeof C!="boolean"&&typeof C!="number")&&q.indexOf(V)<0&&!(typeof H=="string"&&V==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,C,{...r,ns:a}):`key '${m} (${this.language})' returned an object instead of string.`;return u?(N.res=ee,N.usedParams=this.getUsedParamsDetails(r),N):ee}if(f){const ee=V==="[object Array]",fe=ee?[]:{},pe=ee?R:O;for(const he in C)if(Object.prototype.hasOwnProperty.call(C,he)){const oe=`${pe}${f}${he}`;fe[he]=this.translate(oe,{...r,joinArrays:!1,ns:a}),fe[he]===oe&&(fe[he]=C[he])}C=fe}}else if(Y&&typeof H=="string"&&V==="[object Array]")C=C.join(H),C&&(C=this.extendTranslation(C,t,r,s));else{let ee=!1,fe=!1;const pe=r.count!==void 0&&typeof r.count!="string",he=wx.hasDefaultValue(r),oe=pe?this.pluralResolver.getSuffix(S,r.count,r):"",Ve=r.ordinal&&pe?this.pluralResolver.getSuffix(S,r.count,{ordinal:!1}):"",De=r[`defaultValue${oe}`]||r[`defaultValue${Ve}`]||r.defaultValue;!this.isValidLookup(C)&&he&&(ee=!0,C=De),this.isValidLookup(C)||(fe=!0,C=m);const Ge=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:C,it=he&&De!==C&&this.options.updateMissing;if(fe||ee||it){if(this.logger.log(it?"updateKey":"missingKey",S,v,m,it?De:C),f){const Le=this.resolve(m,{...r,keySeparator:!1});Le&&Le.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ee=[];const Ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ze&&Ze[0])for(let Le=0;Le<Ze.length;Le++)Ee.push(Ze[Le]);else this.options.saveMissingTo==="all"?Ee=this.languageUtils.toResolveHierarchy(r.lng||this.language):Ee.push(r.lng||this.language);const ze=(Le,Ye,qe)=>{const Ie=he&&qe!==C?qe:Ge;this.options.missingKeyHandler?this.options.missingKeyHandler(Le,v,Ye,Ie,it,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Le,v,Ye,Ie,it,r),this.emit("missingKey",Le,v,Ye,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&pe?Ee.forEach(Le=>{this.pluralResolver.getSuffixes(Le,r).forEach(Ye=>{ze([Le],m+Ye,r[`defaultValue${Ye}`]||De)})}):ze(Ee,m,De))}C=this.extendTranslation(C,t,r,N,s),fe&&C===m&&this.options.appendNamespaceToMissingKey&&(C=`${v}:${m}`),(fe||ee)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${m}`:m,ee?C:void 0):C=this.options.parseMissingKeyHandler(C))}return u?(N.res=C,N.usedParams=this.getUsedParamsDetails(r),N):C}extendTranslation(t,r,s,u,f){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const S=typeof t=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let D;if(S){const C=t.match(this.interpolator.nestingRegexp);D=C&&C.length}let N=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),t=this.interpolator.interpolate(t,N,s.lng||this.language,s),S){const C=t.match(this.interpolator.nestingRegexp),O=C&&C.length;D<O&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(s.lng=u.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var C=arguments.length,O=new Array(C),R=0;R<C;R++)O[R]=arguments[R];return f&&f[0]===O[0]&&!s.context?(m.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${r[0]}`),null):m.translate(...O,r)},s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,v=typeof a=="string"?[a]:a;return t!=null&&v&&v.length&&s.applyPostProcessor!==!1&&(t=dO.handle(v,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,m,a;return typeof t=="string"&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(s))return;const S=this.extractFromKey(v,r),D=S.key;u=D;let N=S.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const C=r.count!==void 0&&typeof r.count!="string",O=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),R=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",V=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);N.forEach(q=>{this.isValidLookup(s)||(a=q,!fO[`${V[0]}-${q}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(fO[`${V[0]}-${q}`]=!0,this.logger.warn(`key "${u}" for languages "${V.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),V.forEach(H=>{if(this.isValidLookup(s))return;m=H;const Y=[D];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Y,D,H,q,r);else{let ee;C&&(ee=this.pluralResolver.getSuffix(H,r.count,r));const fe=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(Y.push(D+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(D+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(D+fe)),R){const he=`${D}${this.options.contextSeparator}${r.context}`;Y.push(he),C&&(Y.push(he+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(he+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(he+fe))}}let W;for(;W=Y.pop();)this.isValidLookup(s)||(f=W,s=this.getResource(H,q,W,r))}))})}),{res:s,usedKey:u,exactUsedKey:f,usedLng:m,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,s,u):this.resourceStore.getResource(t,r,s,u)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&typeof t.replace!="string";let u=s?t.replace:t;if(s&&typeof t.count<"u"&&(u.count=t.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!s){u={...u};for(const f of r)delete u[f]}return u}static hasDefaultValue(t){const r="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&r===s.substring(0,r.length)&&t[s]!==void 0)return!0;return!1}}function AI(e){return e.charAt(0).toUpperCase()+e.slice(1)}class pO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ul.create("languageUtils")}getScriptPartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(u=>u.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase())),r.indexOf(s[2].toLowerCase())>-1&&(s[2]=AI(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(s=>{if(r)return;const u=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(u))&&(r=u)}),!r&&this.options.supportedLngs&&t.forEach(s=>{if(r)return;const u=this.getLanguagePartFromCode(s);if(this.isSupportedCode(u))return r=u;r=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&f.indexOf(u)===0)return f})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let s=t[r];return s||(s=t[this.getScriptPartFromCode(r)]),s||(s=t[this.formatLanguageCode(r)]),s||(s=t[this.getLanguagePartFromCode(r)]),s||(s=t.default),s||[]}toResolveHierarchy(t,r){const s=this.getFallbackCodes(r||this.options.fallbackLng||[],t),u=[],f=m=>{m&&(this.isSupportedCode(m)?u.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(t))):typeof t=="string"&&f(this.formatLanguageCode(t)),s.forEach(m=>{u.indexOf(m)<0&&f(this.formatLanguageCode(m))}),u}}let Yse=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Gse={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Zse=["v1","v2","v3"],Wse=["v4"],mO={zero:0,one:1,two:2,few:3,many:4,other:5};function qse(){const e={};return Yse.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Gse[t.fc]}})}),e}class Kse{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ul.create("pluralResolver"),(!this.options.compatibilityJSON||Wse.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qse()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mx(t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(u=>`${r}${u}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((u,f)=>mO[u]-mO[f]).map(u=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u}`):s.numbers.map(u=>this.getSuffix(t,u,r)):[]}getSuffix(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=this.getRule(t,s);return u?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${u.select(r)}`:this.getSuffixRetroCompatible(u,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const s=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let u=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));const f=()=>this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString();return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?`_plural_${u.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?f():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!Zse.includes(this.options.compatibilityJSON)}}function gO(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Fse(e,t,r);return!f&&u&&typeof r=="string"&&(f=bx(e,r,s),f===void 0&&(f=bx(t,r,s))),f}class Xse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:$se,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?qf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?qf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?qf(r.nestingPrefix):r.nestingPrefixEscaped||qf("$t("),this.nestingSuffix=r.nestingSuffix?qf(r.nestingSuffix):r.nestingSuffixEscaped||qf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const r=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(r,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,r,s,u){let f,m,a;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function S(R){return R.replace(/\$/g,"$$$$")}const D=R=>{if(R.indexOf(this.formatSeparator)<0){const Y=gO(r,v,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Y,void 0,s,{...u,...r,interpolationkey:R}):Y}const V=R.split(this.formatSeparator),q=V.shift().trim(),H=V.join(this.formatSeparator).trim();return this.format(gO(r,v,q,this.options.keySeparator,this.options.ignoreJSONStructure),H,s,{...u,...r,interpolationkey:q})};this.resetRegExp();const N=u&&u.missingInterpolationHandler||this.options.missingInterpolationHandler,C=u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>S(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?S(this.escape(R)):S(R)}].forEach(R=>{for(a=0;f=R.regex.exec(t);){const V=f[1].trim();if(m=D(V),m===void 0)if(typeof N=="function"){const H=N(t,f,u);m=typeof H=="string"?H:""}else if(u&&Object.prototype.hasOwnProperty.call(u,V))m="";else if(C){m=f[0];continue}else this.logger.warn(`missed to pass in variable ${V} for interpolating ${t}`),m="";else typeof m!="string"&&!this.useRawValueToEscape&&(m=lO(m));const q=R.safeValue(m);if(t=t.replace(f[0],q),C?(R.regex.lastIndex+=m.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,f,m;function a(v,S){const D=this.nestingOptionsSeparator;if(v.indexOf(D)<0)return v;const N=v.split(new RegExp(`${D}[ ]*{`));let C=`{${N[1]}`;v=N[0],C=this.interpolate(C,m);const O=C.match(/'/g),R=C.match(/"/g);(O&&O.length%2===0&&!R||R.length%2!==0)&&(C=C.replace(/'/g,'"'));try{m=JSON.parse(C),S&&(m={...S,...m})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,V),`${v}${D}${C}`}return delete m.defaultValue,v}for(;u=this.nestingRegexp.exec(t);){let v=[];m={...s},m=m.replace&&typeof m.replace!="string"?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;let S=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){const D=u[1].split(this.formatSeparator).map(N=>N.trim());u[1]=D.shift(),v=D,S=!0}if(f=r(a.call(this,u[1].trim(),m),m),f&&u[0]===t&&typeof f!="string")return f;typeof f!="string"&&(f=lO(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${t}`),f=""),S&&(f=v.reduce((D,N)=>this.format(D,N,s.lng,{...s,interpolationkey:u[1].trim()}),f.trim())),t=t.replace(u[0],f),this.regexp.lastIndex=0}return t}}function Jse(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const u=s[1].substring(0,s[1].length-1);t==="currency"&&u.indexOf(":")<0?r.currency||(r.currency=u.trim()):t==="relativetime"&&u.indexOf(":")<0?r.range||(r.range=u.trim()):u.split(";").forEach(m=>{if(!m)return;const[a,...v]=m.split(":"),S=v.join(":").trim().replace(/^'+|'+$/g,"");r[a.trim()]||(r[a.trim()]=S),S==="false"&&(r[a.trim()]=!1),S==="true"&&(r[a.trim()]=!0),isNaN(S)||(r[a.trim()]=parseInt(S,10))})}return{formatName:t,formatOptions:r}}function Kf(e){const t={};return function(s,u,f){const m=u+JSON.stringify(f);let a=t[m];return a||(a=e(Mx(u),f),t[m]=a),a(s)}}class eae{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("formatter"),this.options=t,this.formats={number:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s});return f=>u.format(f)}),currency:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s,style:"currency"});return f=>u.format(f)}),datetime:Kf((r,s)=>{const u=new Intl.DateTimeFormat(r,{...s});return f=>u.format(f)}),relativetime:Kf((r,s)=>{const u=new Intl.RelativeTimeFormat(r,{...s});return f=>u.format(f,s.range||"day")}),list:Kf((r,s)=>{const u=new Intl.ListFormat(r,{...s});return f=>u.format(f)})},this.init(t)}init(t){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Kf(r)}format(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,v)=>{const{formatName:S,formatOptions:D}=Jse(v);if(this.formats[S]){let N=a;try{const C=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},O=C.locale||C.lng||u.locale||u.lng||s;N=this.formats[S](a,O,{...D,...u,...C})}catch(C){this.logger.warn(C)}return N}else this.logger.warn(`there was no format function for ${S}`);return a},t)}}function tae(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class nae extends vx{constructor(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=u,this.logger=ul.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,u.backend,u)}queueLoad(t,r,s,u){const f={},m={},a={},v={};return t.forEach(S=>{let D=!0;r.forEach(N=>{const C=`${S}|${N}`;!s.reload&&this.store.hasResourceBundle(S,N)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?m[C]===void 0&&(m[C]=!0):(this.state[C]=1,D=!1,m[C]===void 0&&(m[C]=!0),f[C]===void 0&&(f[C]=!0),v[N]===void 0&&(v[N]=!0)))}),D||(a[S]=!0)}),(Object.keys(f).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(m),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(v)}}loaded(t,r,s){const u=t.split("|"),f=u[0],m=u[1];r&&this.emit("failedLoading",f,m,r),s&&this.store.addResourceBundle(f,m,s),this.state[t]=r?-1:2;const a={};this.queue.forEach(v=>{Bse(v.loaded,[f],m),tae(v,t),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(S=>{a[S]||(a[S]={});const D=v.loaded[S];D.length&&D.forEach(N=>{a[S][N]===void 0&&(a[S][N]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(v=>!v.done)}read(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,m=arguments.length>5?arguments[5]:void 0;if(!t.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:s,tried:u,wait:f,callback:m});return}this.readingCalls++;const a=(S,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(S&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,s,u+1,f*2,m)},f);return}m(S,D)},v=this.backend[s].bind(this.backend);if(v.length===2){try{const S=v(t,r);S&&typeof S.then=="function"?S.then(D=>a(null,D)).catch(a):a(null,S)}catch(S){a(S)}return}return v(t,r,a)}prepareLoading(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const f=this.queueLoad(t,r,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(m=>{this.loadOne(m)})}load(t,r,s){this.prepareLoading(t,r,{},s)}reload(t,r,s){this.prepareLoading(t,r,{reload:!0},s)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,(m,a)=>{m&&this.logger.warn(`${r}loading namespace ${f} for language ${u} failed`,m),!m&&a&&this.logger.log(`${r}loaded namespace ${f} for language ${u}`,a),this.loaded(t,m,a)})}saveMissing(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const v={...m,isUpdate:f},S=this.backend.create.bind(this.backend);if(S.length<6)try{let D;S.length===5?D=S(t,r,s,u,v):D=S(t,r,s,u),D&&typeof D.then=="function"?D.then(N=>a(null,N)).catch(a):a(null,D)}catch(D){a(D)}else S(t,r,s,u,a,v)}!t||!t[0]||this.store.addResource(t[0],r,s,u)}}}function yO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const s=t[3]||t[2];Object.keys(s).forEach(u=>{r[u]=s[u]})}return r},interpolation:{escapeValue:!0,format:(e,t,r,s)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function _O(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ix(){}function iae(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class Zg extends vx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=_O(t),this.services={},this.logger=ul,this.modules={external:[]},iae(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(s=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const u=yO();this.options={...u,...this.options,..._O(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...u.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function f(D){return D?typeof D=="function"?new D:D:null}if(!this.options.isClone){this.modules.logger?ul.init(f(this.modules.logger),this.options):ul.init(null,this.options);let D;this.modules.formatter?D=this.modules.formatter:typeof Intl<"u"&&(D=eae);const N=new pO(this.options);this.store=new hO(this.options.resources,this.options);const C=this.services;C.logger=ul,C.resourceStore=this.store,C.languageUtils=N,C.pluralResolver=new Kse(N,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),D&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(C.formatter=f(D),C.formatter.init(C,this.options),this.options.interpolation.format=C.formatter.format.bind(C.formatter)),C.interpolator=new Xse(this.options),C.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},C.backendConnector=new nae(f(this.modules.backend),C.resourceStore,C,this.options),C.backendConnector.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.languageDetector&&(C.languageDetector=f(this.modules.languageDetector),C.languageDetector.init&&C.languageDetector.init(C,this.options.detection,this.options)),this.modules.i18nFormat&&(C.i18nFormat=f(this.modules.i18nFormat),C.i18nFormat.init&&C.i18nFormat.init(this)),this.translator=new wx(this.services,this.options),this.translator.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ix),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const D=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);D.length>0&&D[0]!=="dev"&&(this.options.lng=D[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(D=>{this[D]=function(){return t.store[D](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(D=>{this[D]=function(){return t.store[D](...arguments),t}});const v=Gg(),S=()=>{const D=(N,C)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(C),s(N,C)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return D(null,this.t.bind(this));this.changeLanguage(this.options.lng,D)};return this.options.resources||!this.options.initImmediate?S():setTimeout(S,0),v}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const u=typeof t=="string"?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const f=[],m=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(S=>{S!=="cimode"&&f.indexOf(S)<0&&f.push(S)})};u?m(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),this.options.preload&&this.options.preload.forEach(a=>m(a)),this.services.backendConnector.load(f,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(a)})}else s(null)}reloadResources(t,r,s){const u=Gg();return t||(t=this.languages),r||(r=this.options.ns),s||(s=Ix),this.services.backendConnector.reload(t,r,f=>{u.resolve(),s(f)}),u}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,r){var s=this;this.isLanguageChangingTo=t;const u=Gg();this.emit("languageChanging",t);const f=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},m=(v,S)=>{S?(f(S),this.translator.changeLanguage(S),this.isLanguageChangingTo=void 0,this.emit("languageChanged",S),this.logger.log("languageChanged",S)):this.isLanguageChangingTo=void 0,u.resolve(function(){return s.t(...arguments)}),r&&r(v,function(){return s.t(...arguments)})},a=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const S=typeof v=="string"?v:this.services.languageUtils.getBestMatchFromCodes(v);S&&(this.language||f(S),this.translator.language||this.translator.changeLanguage(S),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(S)),this.loadResources(S,D=>{m(D,S)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),u}getFixedT(t,r,s){var u=this;const f=function(m,a){let v;if(typeof a!="object"){for(var S=arguments.length,D=new Array(S>2?S-2:0),N=2;N<S;N++)D[N-2]=arguments[N];v=u.options.overloadTranslationOptionHandler([m,a].concat(D))}else v={...a};v.lng=v.lng||f.lng,v.lngs=v.lngs||f.lngs,v.ns=v.ns||f.ns,v.keyPrefix=v.keyPrefix||s||f.keyPrefix;const C=u.options.keySeparator||".";let O;return v.keyPrefix&&Array.isArray(m)?O=m.map(R=>`${v.keyPrefix}${C}${R}`):O=v.keyPrefix?`${v.keyPrefix}${C}${m}`:m,u.t(O,v)};return typeof t=="string"?f.lng=t:f.lngs=t,f.ns=r,f.keyPrefix=s,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=this.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};if(r.precheck){const a=r.precheck(this,m);if(a!==void 0)return a}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(s,t)&&(!u||m(f,t)))}loadNamespaces(t,r){const s=Gg();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{s.resolve(),r&&r(u)}),s):(r&&r(),Promise.resolve())}loadLanguages(t,r){const s=Gg();typeof t=="string"&&(t=[t]);const u=this.options.preload||[],f=t.filter(m=>u.indexOf(m)<0);return f.length?(this.options.preload=u.concat(f),this.loadResources(m=>{s.resolve(),r&&r(m)}),s):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new pO(yO());return r.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Zg(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const u={...this.options,...t,isClone:!0},f=new Zg(u);return(t.debug!==void 0||t.prefix!==void 0)&&(f.logger=f.logger.clone(t)),["store","services","language"].forEach(a=>{f[a]=this[a]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s&&(f.store=new hO(this.store.data,u),f.services.resourceStore=f.store),f.translator=new wx(f.services,u),f.translator.on("*",function(a){for(var v=arguments.length,S=new Array(v>1?v-1:0),D=1;D<v;D++)S[D-1]=arguments[D];f.emit(a,...S)}),f.init(u,r),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Oo=Zg.createInstance();Oo.createInstance=Zg.createInstance,Oo.createInstance,Oo.dir,Oo.init,Oo.loadResources,Oo.reloadResources,Oo.use,Oo.changeLanguage,Oo.getFixedT;const CI=Oo.t;Oo.exists,Oo.setDefaultNamespace,Oo.hasLoadedNamespace,Oo.loadNamespaces,Oo.loadLanguages;function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},NI.apply(this,arguments)}function rae(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const vO={};function LI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&vO[t[0]]||(typeof t[0]=="string"&&(vO[t[0]]=new Date),rae(...t))}const xO=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function bO(e,t,r){e.loadNamespaces(t,xO(e,r))}function MO(e,t,r,s){typeof r=="string"&&(r=[r]),r.forEach(u=>{e.options.ns.indexOf(u)<0&&e.options.ns.push(u)}),e.loadLanguages(t,xO(e,s))}function oae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=t.languages[0],u=t.options?t.options.fallbackLng:!1,f=t.languages[t.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=t.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!m(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(s,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||m(s,e)&&(!u||m(f,e)))}function sae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(LI("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(u,f)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!f(u.isLanguageChangingTo,e))return!1}}):oae(e,t,r)}const aae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lae={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},cae=e=>lae[e];let zI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(aae,cae)};function uae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zI={...zI,...e}}function hae(){return zI}let wO;function dae(e){wO=e}function fae(){return wO}const pae={type:"3rdParty",init(e){uae(e.options.react),dae(e)}},mae=Oe.createContext();class gae{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const yae=(e,t)=>{const r=Oe.useRef();return Oe.useEffect(()=>{r.current=t?r.current:e},[e,t]),r.current};function ua(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:s,defaultNS:u}=Oe.useContext(mae)||{},f=r||s||fae();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new gae),!f){LI("You will need to pass in an i18next instance by using initReactI18next");const W=(fe,pe)=>typeof pe=="string"?pe:pe&&typeof pe=="object"&&typeof pe.defaultValue=="string"?pe.defaultValue:Array.isArray(fe)?fe[fe.length-1]:fe,ee=[W,{},!1];return ee.t=W,ee.i18n={},ee.ready=!1,ee}f.options.react&&f.options.react.wait!==void 0&&LI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...hae(),...f.options.react,...t},{useSuspense:a,keyPrefix:v}=m;let S=e||u||f.options&&f.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(S);const D=(f.isInitialized||f.initializedStoreOnce)&&S.every(W=>sae(W,f,m));function N(){return f.getFixedT(t.lng||null,m.nsMode==="fallback"?S:S[0],v)}const[C,O]=Oe.useState(N);let R=S.join();t.lng&&(R=`${t.lng}${R}`);const V=yae(R),q=Oe.useRef(!0);Oe.useEffect(()=>{const{bindI18n:W,bindI18nStore:ee}=m;q.current=!0,!D&&!a&&(t.lng?MO(f,t.lng,S,()=>{q.current&&O(N)}):bO(f,S,()=>{q.current&&O(N)})),D&&V&&V!==R&&q.current&&O(N);function fe(){q.current&&O(N)}return W&&f&&f.on(W,fe),ee&&f&&f.store.on(ee,fe),()=>{q.current=!1,W&&f&&W.split(" ").forEach(pe=>f.off(pe,fe)),ee&&f&&ee.split(" ").forEach(pe=>f.store.off(pe,fe))}},[f,R]);const H=Oe.useRef(!0);Oe.useEffect(()=>{q.current&&!H.current&&O(N),H.current=!1},[f,v]);const Y=[C,f,D];if(Y.t=C,Y.i18n=f,Y.ready=D,D||!D&&!a)return Y;throw new Promise(W=>{t.lng?MO(f,t.lng,S,()=>W()):bO(f,S,()=>W())})}const _ae={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch",Accessibility:"Accessibility","No route found":"No route found","My position":"My position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Turn on Accessibility to get directions that avoid stairs and escalators.","Go!":"Go!",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route"},vae={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift",Accessibility:"Tilgængelig rute","No route found":"Ingen rute fundet","My position":"Min position","Turn on Accessibility to get directions that avoid stairs and escalators.":'Slå "Tilgængelig rute" til for at få en rutevejledning uden trapper og rulletrapper.',"Go!":"Go!",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten"},xae={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Suche nach Name, Kategorie, Gebäude...","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Öffne vollständige Beschreibung",Locations:"Locations","Directions not available":"Beschreibung nicht verfügbar","Start directions":"Starte Beschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlasse das",Enter:"Gehe in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren",Accessibility:"Barrierefrei","No route found":"Keine Route gefunden","My position":"Meine Position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Schalte Barrierefrei ein, um Treppen und Rolltreppen zu vermeiden.","Go!":"Start!",Venues:"Standorte","Select venue":"Wähle Standort",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden"},bae={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer",Accessibility:"Accessibilité","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Activez l'accessibilité pour obtenir des itinéraires qui évitent les escaliers.","Go!":"C'est parti!",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire"};function Mae(e){Oo.use(pae).init({resources:{en:{translation:_ae},da:{translation:vae},de:{translation:xae},fr:{translation:bae}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const K_e="",ls={Google:"google",Mapbox:"mapbox"},bs=ui({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),wae=e=>{const t=on(bs),r=Oe.useRef(),[s,u]=Oe.useState([]);Oe.useEffect(()=>{(async()=>{if(t&&e){for(const a of s)r.current.disableLiveData(a);r.current=new window.mapsindoors.LiveDataManager(t);const m=await r.current.LiveDataInfo.activeDomainTypes();for(const a of m)await r.current.enableLiveData(a);u(m)}})()},[e,t])},X_e="";var Iae=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,u,f;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(u=s;u--!==0;)if(!e(t[u],r[u]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(r).length)return!1;for(u=s;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,f[u]))return!1;for(u=s;u--!==0;){var m=f[u];if(!e(t[m],r[m]))return!1}return!0}return t!==t&&r!==r};const IO="__googleMapsScriptId";var Xf;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Xf||(Xf={}));let Tae=class mm{constructor({apiKey:t,authReferrerPolicy:r,channel:s,client:u,id:f=IO,language:m,libraries:a=[],mapIds:v,nonce:S,region:D,retries:N=3,url:C="https://maps.googleapis.com/maps/api/js",version:O}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=r,this.channel=s,this.client=u,this.id=f||IO,this.language=m,this.libraries=a,this.mapIds=v,this.nonce=S,this.region=D,this.retries=N,this.url=C,this.version=O,mm.instance){if(!Iae(this.options,mm.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(mm.instance.options)}`);return mm.instance}mm.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Xf.FAILURE:this.done?Xf.SUCCESS:this.loading?Xf.LOADING:Xf.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,r)=>{this.loadCallback(s=>{s?r(s.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const t=this.createUrl(),r=document.createElement("script");r.id=this.id,r.type="text/javascript",r.src=t,r.onerror=this.loadErrorCallback.bind(this),r.defer=!0,r.async=!0,this.nonce&&(r.nonce=this.nonce),document.head.appendChild(r)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const r=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${r} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},r)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};const Tx=ui({key:"gmApiKey",default:null}),Aa=ui({key:"primaryColor",default:"#005655"}),TO=ui({key:"gmMapId",default:null}),Wg=ui({key:"bearing",default:0}),qg=ui({key:"pitch",default:0}),SO=e=>{const[t,r]=Oe.useState(!1);return Oe.useEffect(()=>{const s=window.matchMedia(e);s.matches!==t&&r(s.matches);const u=()=>r(s.matches);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[t,e]),t},oc=()=>SO("(min-width: 992px)");function Sae({onMapView:e,onPositionControl:t}){const r=on(Tx),s=on(TO),[u,f]=Oe.useState(),[m,a]=Oe.useState(),[v,S]=Oe.useState(!1),[D,N]=Oe.useState(!1),[C,O]=Oe.useState(!1),R=on(bs),V=on(Aa),q=on(Wg),H=on(qg),Y=oc();return Oe.useEffect(()=>{new Tae({apiKey:r,version:"quarterly",libraries:["geometry","places"]}).load().then(ee=>{f(ee);const fe={element:document.getElementById("map"),disableDefaultUI:!0,center:{lat:0,lng:0},zoom:21,mapId:s,heading:isNaN(parseInt(q))?0:parseInt(q),tilt:isNaN(parseInt(H))?0:parseInt(H)},pe=new window.mapsindoors.mapView.GoogleMapsView(fe);a(pe);const he=new window.mapsindoors.directions.GoogleMapsProvider;e(pe,he)})},[]),Oe.useEffect(()=>{if(R&&m&&u&&!D){const W=document.createElement("mi-my-position");W.mapsindoors=R,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),N(!0),t(W)}if(R&&m&&u&&!v){const W=document.createElement("mi-floor-selector");W.mapsindoors=R,W.primaryColor=V,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),S(!0)}R&&m&&u&&!C&&Y&&(m.getMap().setOptions({zoomControl:!0,zoomControlOptions:{style:u.maps.ZoomControlStyle.DEFAULT,position:u.maps.ControlPosition.RIGHT_TOP}}),O(!0))},[R,m,u,v,D]),Je.jsx("div",{className:"map-container",id:"map","data-sentry-component":"GoogleMapsMap","data-sentry-source-file":"GoogleMapsMap.jsx"})}var EO={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Lc,function(){var r,s,u;function f(a,v){if(!r)r=v;else if(!s)s=v;else{var S="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+r+")(sharedChunk); ("+s+")(sharedChunk); self.onerror = null;",D={};r(D),u=v(D),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(u.workerUrl=window.URL.createObjectURL(new Blob([S],{type:"text/javascript"})))}}f(["exports"],function(a){var v="3.3.0";let S;const D={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(S==null){const i=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{S=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):i}catch{S=i}}return S},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!D.API_URL)return null;try{const i=new URL(D.API_URL);return i.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":i.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"};function N(i){return D.API_URL_REGEX.test(i)}function C(i){return i.indexOf("mapbox:")===0}function O(i){return D.API_CDN_URL_REGEX.test(i)}function R(i){return D.API_SPRITE_REGEX.test(i)}function V(i){return D.API_STYLE_REGEX.test(i)&&!R(i)}const q={create:"create",load:"load",fullLoad:"fullLoad"};function H(i){const n=i.name.split("?")[0];return O(n)&&n.includes("mapbox-gl.js")?"javascript":O(n)&&n.includes("mapbox-gl.css")?"css":function(o){return D.API_FONTS_REGEX.test(o)}(n)?"fontRange":R(n)?"sprite":V(n)?"style":function(o){return D.API_TILEJSON_REGEX.test(o)}(n)?"tilejson":"other"}function Y(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var W=ee;function ee(i,n,o,c){this.cx=3*i,this.bx=3*(o-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(c-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=n,this.p2x=o,this.p2y=c}ee.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,n){if(n===void 0&&(n=1e-6),i<0)return 0;if(i>1)return 1;for(var o=i,c=0;c<8;c++){var d=this.sampleCurveX(o)-i;if(Math.abs(d)<n)return o;var p=this.sampleCurveDerivativeX(o);if(Math.abs(p)<1e-6)break;o-=d/p}var _=0,b=1;for(o=i,c=0;c<20&&(d=this.sampleCurveX(o),!(Math.abs(d-i)<n));c++)i>d?_=o:b=o,o=.5*(b-_)+_;return o},solve:function(i,n){return this.sampleCurveY(this.solveCurveX(i,n))}};var fe=Y(W),pe=he;function he(i,n){this.x=i,this.y=n}he.prototype={clone:function(){return new he(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,n){return this.clone()._rotateAround(i,n)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var n=i.x-this.x,o=i.y-this.y;return n*n+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,n){return Math.atan2(this.x*n-this.y*i,this.x*i+this.y*n)},_matMult:function(i){var n=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=n,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var n=Math.cos(i),o=Math.sin(i),c=o*this.x+n*this.y;return this.x=n*this.x-o*this.y,this.y=c,this},_rotateAround:function(i,n){var o=Math.cos(i),c=Math.sin(i),d=n.y+c*(this.x-n.x)+o*(this.y-n.y);return this.x=n.x+o*(this.x-n.x)-c*(this.y-n.y),this.y=d,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},he.convert=function(i){return i instanceof he?i:Array.isArray(i)?new he(i[0],i[1]):i};var oe=Y(pe);const Ve=Math.PI/180,De=180/Math.PI;function Ae(i){return i*Ve}function Ge(i){return i*De}const it=[[0,0],[1,0],[1,1],[0,1]];function Ee(i){if(i<=0)return 0;if(i>=1)return 1;const n=i*i,o=n*i;return 4*(i<.5?o:3*(i-n)+o-.75)}function Ze(i,n,o,c){const d=new fe(i,n,o,c);return function(p){return d.solve(p)}}const ze=Ze(.25,.1,.25,1);function Le(i,n,o){return Math.min(o,Math.max(n,i))}function Ye(i,n,o){return(o=Le((o-i)/(n-i),0,1))*o*(3-2*o)}function qe(i,n,o){const c=o-n,d=((i-n)%c+c)%c+n;return d===n?o:d}function Ie(i,n,o){if(!i.length)return o(null,[]);let c=i.length;const d=new Array(i.length);let p=null;i.forEach((_,b)=>{n(_,(w,I)=>{w&&(p=w),d[b]=I,--c==0&&o(p,d)})})}function Te(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}let le=1;function X(){return le++}function ie(){return function i(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,i)}()}function Me(i){return i<=1?1:Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function xe(i){return!!i&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)}function $e(i,n){i.forEach(o=>{n[o]&&(n[o]=n[o].bind(n))})}function He(i,n){return i.indexOf(n,i.length-n.length)!==-1}function Ue(i,n,o){const c={};for(const d in i)c[d]=n.call(o||this,i[d],d,i);return c}function Xe(i,n,o){const c={};for(const d in i)n.call(o||this,i[d],d,i)&&(c[d]=i[d]);return c}function ut(i){return Array.isArray(i)?i.map(ut):typeof i=="object"&&i?Ue(i,ut):i}const _t={};function et(i){_t[i]||(typeof console<"u"&&console.warn(i),_t[i]=!0)}function bt(i,n,o){return(o.y-i.y)*(n.x-i.x)>(n.y-i.y)*(o.x-i.x)}function Ot(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function Rt([i,n,o]){const c=Ae(n+90),d=Ae(o);return{x:i*Math.cos(c)*Math.sin(d),y:i*Math.sin(c)*Math.sin(d),z:i*Math.cos(d),azimuthal:n,polar:o}}function dn(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Bn(i){const n={};if(i.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(o,c,d,p)=>{const _=d||p;return n[c]=!_||_.toLowerCase(),""}),n["max-age"]){const o=parseInt(n["max-age"],10);isNaN(o)?delete n["max-age"]:n["max-age"]=o}return n}let Tt,kn,An,Cn,$n,ni,st=null;function se(i){try{const n=self[i];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch{return!1}}function ce(i,n){return[i[4*n],i[4*n+1],i[4*n+2],i[4*n+3]]}function Ne(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<c?n=d+1:o=d}return n}function ht(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<=c?n=d+1:o=d}return n}function vt(){return Tt==null&&(Tt=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Tt}const pt={now:()=>Cn!==void 0?Cn:performance.now(),setNow(i){Cn=i},restoreNow(){Cn=void 0},frame(i){const n=requestAnimationFrame(i);return{cancel:()=>cancelAnimationFrame(n)}},getImageData(i,n=0){const{width:o,height:c}=i;$n||($n=document.createElement("canvas"));const d=$n.getContext("2d",{willReadFrequently:!0});if(!d)throw new Error("failed to create canvas 2d context");return(o>$n.width||c>$n.height)&&($n.width=o,$n.height=c),d.clearRect(-n,-n,o+2*n,c+2*n),d.drawImage(i,0,0,o,c),d.getImageData(-n,-n,o+2*n,c+2*n)},resolveURL:i=>(kn||(kn=document.createElement("a")),kn.href=i,kn.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(An==null&&(An=window.matchMedia("(prefers-reduced-motion: reduce)")),An.matches)},hasCanvasFingerprintNoise(){if(ni!==void 0)return ni;if(!vt())return ni=!1,!1;const i=new OffscreenCanvas(85,1),n=i.getContext("2d",{willReadFrequently:!0});let o=0;for(let d=0;d<i.width;++d)n.fillStyle=`rgba(${o++},${o++},${o++}, 255)`,n.fillRect(d,0,1,1);const c=n.getImageData(0,0,i.width,i.height);o=0;for(let d=0;d<c.data.length;++d)if(d%4!=3&&o++!==c.data[d])return ni=!0,!0;return ni=!1,!1}},Ct="mapbox-tiles";let mt=500,an=50,Fe,Pe;function St(){try{return caches}catch{}}function Xt(){const i=St();i&&!Fe&&(Fe=i.open(Ct))}function Dt(i){const n=i.indexOf("?");if(n<0)return i;const o=["language","worldview"],c=new URLSearchParams,d=new URLSearchParams(i.slice(n));for(const p of o){const _=d.get(p);_&&c.set(p,_)}return`${i.slice(0,n)}?${c.toString()}`}function kt(i,n){const o=i.indexOf("?");if(o<0)return`${i}?${new URLSearchParams(n).toString()}`;const c=new URLSearchParams(i.slice(o));for(const d in n)c.set(d,n[d]);return`${i.slice(0,o)}?${c.toString()}`}let Ft=1/0;const Vt={supported:!1,testSupport:function(i){!Xn&&Sn&&(ai?Wi(i):tn=i)}};let tn,Sn,Xn=!1,ai=!1;const Ei=typeof self<"u"?self:{};function Wi(i){const n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n);try{if(i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,Sn),i.isContextLost())return;Vt.supported=!0}catch{}i.deleteTexture(n),Xn=!0}Ei.document&&(Sn=Ei.document.createElement("img"),Sn.onload=function(){tn&&Wi(tn),tn=null,ai=!0},Sn.onerror=function(){Xn=!0,tn=null},Sn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const qi={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(qi);class Zn extends Error{constructor(n,o,c){o===401&&N(c)&&(n+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(n),this.status=o,this.url=c}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ki=dn()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Mt=function(i,n){if(!(/^file:/.test(o=i.url)||/^file:/.test(Ki())&&!/^\w+:/.test(o))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(c,d){const p=new AbortController,_=new Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:Ki(),referrerPolicy:c.referrerPolicy,signal:p.signal});let b=!1,w=!1;const I=(E=_.url).indexOf("sku=")>0&&N(E);var E;c.type==="json"&&_.headers.set("Accept","application/json");const L=(U,F,$)=>{if(w)return;if(U&&U.message!=="SecurityError"&&et(U.toString()),F&&$)return k(F);const Z=Date.now();fetch(_).then(J=>{if(J.ok){const de=I?J.clone():null;return k(J,de,Z)}return d(new Zn(J.statusText,J.status,c.url))}).catch(J=>{J.name!=="AbortError"&&d(new Error(`${J.message} ${c.url}`))})},k=(U,F,$)=>{(c.type==="arrayBuffer"?U.arrayBuffer():c.type==="json"?U.json():U.text()).then(Z=>{w||(F&&$&&function(J,de,ye){if(Xt(),!Fe)return;const ge=Bn(de.headers.get("Cache-Control")||"");if(ge["no-store"])return;const Se={status:de.status,statusText:de.statusText,headers:new Headers};de.headers.forEach((We,nt)=>Se.headers.set(nt,We)),ge["max-age"]&&Se.headers.set("Expires",new Date(ye+1e3*ge["max-age"]).toUTCString());const we=Se.headers.get("Expires");if(!we||new Date(we).getTime()-ye<42e4)return;let Re=Dt(J.url);if(de.status===206){const We=J.headers.get("Range");if(!We)return;Se.status=200,Re=kt(Re,{range:We})}(function(We,nt){if(Pe===void 0)try{new Response(new ReadableStream),Pe=!0}catch{Pe=!1}Pe?nt(We.body):We.blob().then(nt)})(de,We=>{const nt=new Response(We,Se);Xt(),Fe&&Fe.then(ct=>ct.put(Re,nt)).catch(ct=>et(ct.message))})}(_,F,$),b=!0,d(null,Z,U.headers.get("Cache-Control"),U.headers.get("Expires")))}).catch(Z=>{w||d(new Error(Z.message))})};return I?function(U,F){if(Xt(),!Fe)return F(null);Fe.then($=>{let Z=Dt(U.url);const J=U.headers.get("Range");J&&(Z=kt(Z,{range:J})),$.match(Z).then(de=>{const ye=function(ge){if(!ge)return!1;const Se=new Date(ge.headers.get("Expires")||0),we=Bn(ge.headers.get("Cache-Control")||"");return Se>Date.now()&&!we["no-cache"]}(de);$.delete(Z),ye&&$.put(Z,de.clone()),F(null,de,ye)}).catch(F)}).catch(F)}(_,L):L(null,null),{cancel:()=>{w=!0,b||p.abort()}}}(i,n);if(dn()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,n,void 0,!0)}var o;return function(c,d){const p=new XMLHttpRequest;p.open(c.method||"GET",c.url,!0),c.type==="arrayBuffer"&&(p.responseType="arraybuffer");for(const _ in c.headers)p.setRequestHeader(_,c.headers[_]);return c.type==="json"&&(p.responseType="text",p.setRequestHeader("Accept","application/json")),p.withCredentials=c.credentials==="include",p.onerror=()=>{d(new Error(p.statusText))},p.onload=()=>{if((p.status>=200&&p.status<300||p.status===0)&&p.response!==null){let _=p.response;if(c.type==="json")try{_=JSON.parse(p.response)}catch(b){return d(b)}d(null,_,p.getResponseHeader("Cache-Control"),p.getResponseHeader("Expires"))}else d(new Zn(p.statusText,p.status,c.url))},p.send(c.body),{cancel:()=>p.abort()}}(i,n)},It=function(i,n){return Mt(Te(i,{type:"arrayBuffer"}),n)};function Bt(i){const n=document.createElement("a");return n.href=i,n.protocol===location.protocol&&n.host===location.host}const qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Ht,en;Ht=[],en=0;const nn=function(i,n){if(Vt.supported&&(i.headers||(i.headers={}),i.headers.accept="image/webp,*/*"),en>=D.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:i,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Ht.push(p),p}en++;let o=!1;const c=()=>{if(!o)for(o=!0,en--;Ht.length&&en<D.MAX_PARALLEL_IMAGE_REQUESTS;){const p=Ht.shift(),{requestParameters:_,callback:b,cancelled:w}=p;w||(p.cancel=nn(_,b).cancel)}},d=It(i,(p,_,b,w)=>{c(),p?n(p):_&&(self.createImageBitmap?function(I,E){const L=new Blob([new Uint8Array(I)],{type:"image/png"});createImageBitmap(L).then(k=>{E(null,k)}).catch(k=>{E(new Error(`Could not load image because of ${k.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(_,(I,E)=>n(I,E,b,w)):function(I,E){const L=new Image;L.onload=()=>{E(null,L),URL.revokeObjectURL(L.src),L.onload=null,requestAnimationFrame(()=>{L.src=qt})},L.onerror=()=>E(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const k=new Blob([new Uint8Array(I)],{type:"image/png"});L.src=I.byteLength?URL.createObjectURL(k):qt}(_,(I,E)=>n(I,E,b,w)))});return{cancel:()=>{d.cancel(),c()}}},Yt="01",ln="NO_ACCESS_TOKEN",Jt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Gt(i){const n=i.match(Jt);if(!n)throw new Error("Unable to parse URL object");return{protocol:n[1],authority:n[2],path:n[3]||"/",params:n[4]?n[4].split("&"):[]}}function wn(i){const n=i.params.length?`?${i.params.join("&")}`:"";return`${i.protocol}://${i.authority}${i.path}${n}`}const cn="mapbox.eventData";function Di(i){if(!i)return null;const n=i.split(".");if(!n||n.length!==3)return null;try{return JSON.parse(decodeURIComponent(atob(n[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class ji{constructor(n){this.type=n,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(n){const o=Di(D.ACCESS_TOKEN);let c="";return c=o&&o.u?btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(d,p)=>String.fromCharCode(+("0x"+p)))):D.ACCESS_TOKEN||"",n?`${cn}.${n}:${c}`:`${cn}:${c}`}fetchEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{const d=localStorage.getItem(o);d&&(this.eventData=JSON.parse(d));const p=localStorage.getItem(c);p&&(this.anonId=p)}catch{et("Unable to read from LocalStorage")}}saveEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid"),d=this.anonId;if(n&&d)try{localStorage.setItem(c,d),Object.keys(this.eventData).length>=1&&localStorage.setItem(o,JSON.stringify(this.eventData))}catch{et("Unable to write to LocalStorage")}}processRequests(n){}postEvent(n,o,c,d){if(!D.EVENTS_URL)return;const p=Gt(D.EVENTS_URL);p.params.push(`access_token=${d||D.ACCESS_TOKEN||""}`);const _={event:this.type,created:new Date(n).toISOString()},b=o?Te(_,o):_,w={url:wn(p),headers:{"Content-Type":"text/plain"},body:JSON.stringify([b])};this.pendingRequest=function(I,E){return Mt(Te(I,{method:"POST"}),E)}(w,I=>{this.pendingRequest=null,c(I),this.saveEventData(),this.processRequests(d)})}queueRequest(n,o){this.queue.push(n),this.processRequests(o)}}const Ci=new class extends ji{constructor(i){super("appUserTurnstile"),this._customAccessToken=i}postTurnstileEvent(i,n){D.EVENTS_URL&&D.ACCESS_TOKEN&&Array.isArray(i)&&i.some(o=>C(o)||N(o))&&this.queueRequest(Date.now(),n)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=Di(D.ACCESS_TOKEN),o=n?n.u:D.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;xe(this.anonId)||(this.anonId=ie(),c=!0);const d=this.queue.shift();if(this.eventData.lastSuccess){const p=new Date(this.eventData.lastSuccess),_=new Date(d),b=(d-this.eventData.lastSuccess)/864e5;c=c||b>=1||b<-1||p.getDate()!==_.getDate()}else c=!0;c?this.postEvent(d,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,"enabled.telemetry":!1,userId:this.anonId},p=>{p||(this.eventData.lastSuccess=d,this.eventData.tokenU=o)},i):this.processRequests()}},mr=Ci.postTurnstileEvent.bind(Ci),ho=new class extends ji{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(i,n,o,c){this.skuToken=n,this.errorCb=c,D.EVENTS_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),xe(this.anonId)||(this.anonId=ie()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i))}remove(){this.errorCb=null}},bi=ho.postMapLoadEvent.bind(ho),cs=new class extends ji{constructor(){super("gljs.performance")}postPerformanceEvent(i,n){D.EVENTS_URL&&(i||D.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},i)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:n,performanceData:o}=this.queue.shift(),c=function(d){const p=performance.getEntriesByType("resource"),_=performance.getEntriesByType("mark"),b=function(U){const F={};if(U){for(const $ in U)if($!=="other")for(const Z of U[$]){const J=`${$}ResolveRangeMin`,de=`${$}ResolveRangeMax`,ye=`${$}RequestCount`,ge=`${$}RequestCachedCount`;F[J]=Math.min(F[J]||1/0,Z.startTime),F[de]=Math.max(F[de]||-1/0,Z.responseEnd);const Se=we=>{F[we]===void 0&&(F[we]=0),++F[we]};Z.transferSize!==void 0&&Z.transferSize===0&&Se(ge),Se(ye)}}return F}(function(U,F){const $={};if(U)for(const Z of U){const J=F(Z);$[J]===void 0&&($[J]=[]),$[J].push(Z)}return $}(p,H)),w=window.devicePixelRatio,I=navigator.connection||navigator.mozConnection||navigator.webkitConnection,E=I?I.effectiveType:void 0,L={counters:[],metadata:[],attributes:[]},k=(U,F,$)=>{$!=null&&U.push({name:F,value:$.toString()})};for(const U in b)k(L.counters,U,b[U]);if(d.interactionRange[0]!==1/0&&d.interactionRange[1]!==-1/0&&(k(L.counters,"interactionRangeMin",d.interactionRange[0]),k(L.counters,"interactionRangeMax",d.interactionRange[1])),_)for(const U of Object.keys(q)){const F=q[U],$=_.find(Z=>Z.name===F);$&&k(L.counters,F,$.startTime)}return k(L.counters,"visibilityHidden",d.visibilityHidden),k(L.attributes,"style",function(U){if(U)for(const F of U){const $=F.name.split("?")[0];if(V($)){const Z=$.split("/").slice(-2);if(Z.length===2)return`mapbox://styles/${Z[0]}/${Z[1]}`}}}(p)),k(L.attributes,"terrainEnabled",d.terrainEnabled?"true":"false"),k(L.attributes,"fogEnabled",d.fogEnabled?"true":"false"),k(L.attributes,"projection",d.projection),k(L.attributes,"zoom",d.zoom),k(L.metadata,"devicePixelRatio",w),k(L.metadata,"connectionEffectiveType",E),k(L.metadata,"navigatorUserAgent",navigator.userAgent),k(L.metadata,"screenWidth",window.screen.width),k(L.metadata,"screenHeight",window.screen.height),k(L.metadata,"windowWidth",window.innerWidth),k(L.metadata,"windowHeight",window.innerHeight),k(L.metadata,"mapWidth",d.width/w),k(L.metadata,"mapHeight",d.height/w),k(L.metadata,"webglRenderer",d.renderer),k(L.metadata,"webglVendor",d.vendor),k(L.metadata,"sdkVersion",v),k(L.metadata,"sdkIdentifier","mapbox-gl-js"),L}(o);for(const d of c.metadata);for(const d of c.counters);for(const d of c.attributes);this.postEvent(n,c,()=>{},i)}},Qs=cs.postPerformanceEvent.bind(cs),fo=new class extends ji{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(i,n,o,c){if(!D.API_URL||!D.SESSION_PATH)return;const d=Gt(D.API_URL+D.SESSION_PATH);d.params.push(`sku=${n||""}`),d.params.push(`access_token=${c||D.ACCESS_TOKEN||""}`);const p={url:wn(d),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(_,b){return Mt(Te(_,{method:"GET"}),b)}(p,_=>{this.pendingRequest=null,o(_),this.saveEventData(),this.processRequests(c)})}getSessionAPI(i,n,o,c){this.skuToken=n,this.errorCb=c,D.SESSION_PATH&&D.API_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||this.getSession(o,this.skuToken,c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i)}remove(){this.errorCb=null}},Fh=fo.getSessionAPI.bind(fo),ml=new Set;function vu(i,n,o){o[i]&&o[i].indexOf(n)!==-1||(o[i]=o[i]||[],o[i].push(n))}function m0(i,n,o){if(o&&o[i]){const c=o[i].indexOf(n);c!==-1&&o[i].splice(c,1)}}class cc{constructor(n,o={}){Te(this,o),this.type=n}}class g0 extends cc{constructor(n,o={}){super("error",Te({error:n},o))}}class xu{on(n,o){return this._listeners=this._listeners||{},vu(n,o,this._listeners),this}off(n,o){return m0(n,o,this._listeners),m0(n,o,this._oneTimeListeners),this}once(n,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},vu(n,o,this._oneTimeListeners),this):new Promise(c=>this.once(n,c))}fire(n,o){typeof n=="string"&&(n=new cc(n,o||{}));const c=n.type;if(this.listens(c)){n.target=this;const d=this._listeners&&this._listeners[c]?this._listeners[c].slice():[];for(const b of d)b.call(this,n);const p=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const b of p)m0(c,b,this._oneTimeListeners),b.call(this,n);const _=this._eventedParent;_&&(Te(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_.fire(n))}else n instanceof g0&&console.error(n.error);return this}listens(n){return!!(this._listeners&&this._listeners[n]&&this._listeners[n].length>0||this._oneTimeListeners&&this._oneTimeListeners[n]&&this._oneTimeListeners[n].length>0||this._eventedParent&&this._eventedParent.listens(n))}setEventedParent(n,o){return this._eventedParent=n,this._eventedParentData=o,this}}a.y=void 0;var hb={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function dp(i){return(i=Math.round(i))<0?0:i>255?255:i}function y0(i){return dp(i[i.length-1]==="%"?parseFloat(i)/100*255:parseInt(i))}function fp(i){return(n=i[i.length-1]==="%"?parseFloat(i)/100:parseFloat(i))<0?0:n>1?1:n;var n}function _0(i,n,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?i+(n-i)*o*6:2*o<1?n:3*o<2?i+(n-i)*(2/3-o)*6:i}try{a.y={}.parseCSSColor=function(i){var n,o=i.replace(/ /g,"").toLowerCase();if(o in hb)return hb[o].slice();if(o[0]==="#")return o.length===4?(n=parseInt(o.substr(1),16))>=0&&n<=4095?[(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1]:null:o.length===7&&(n=parseInt(o.substr(1),16))>=0&&n<=16777215?[(16711680&n)>>16,(65280&n)>>8,255&n,1]:null;var c=o.indexOf("("),d=o.indexOf(")");if(c!==-1&&d+1===o.length){var p=o.substr(0,c),_=o.substr(c+1,d-(c+1)).split(","),b=1;switch(p){case"rgba":if(_.length!==4)return null;b=fp(_.pop());case"rgb":return _.length!==3?null:[y0(_[0]),y0(_[1]),y0(_[2]),b];case"hsla":if(_.length!==4)return null;b=fp(_.pop());case"hsl":if(_.length!==3)return null;var w=(parseFloat(_[0])%360+360)%360/360,I=fp(_[1]),E=fp(_[2]),L=E<=.5?E*(I+1):E+I-E*I,k=2*E-L;return[dp(255*_0(k,L,w+1/3)),dp(255*_0(k,L,w)),dp(255*_0(k,L,w-1/3)),b];default:return null}}return null}}catch{}class Ho{constructor(n,o,c,d=1){this.r=n,this.g=o,this.b=c,this.a=d}static parse(n){if(!n)return;if(n instanceof Ho)return n;if(typeof n!="string")return;const o=a.y(n);return o?new Ho(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3]):void 0}toString(){const[n,o,c,d]=this.toArray();return`rgba(${Math.round(n)},${Math.round(o)},${Math.round(c)},${d})`}toArray(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[255*n/d,255*o/d,255*c/d,d]}toArray01(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[n/d,o/d,c/d,d]}toArray01Scaled(n){const{r:o,g:c,b:d,a:p}=this;return p===0?[0,0,0]:[o/p*n,c/p*n,d/p*n]}toArray01PremultipliedAlpha(){const{r:n,g:o,b:c,a:d}=this;return[n,o,c,d]}toArray01Linear(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[Math.pow(n/d,2.2),Math.pow(o/d,2.2),Math.pow(c/d,2.2),d]}}Ho.black=new Ho(0,0,0,1),Ho.white=new Ho(1,1,1,1),Ho.transparent=new Ho(0,0,0,0),Ho.red=new Ho(1,0,0,1),Ho.blue=new Ho(0,0,1,1);var Cr=Ho;function li(i,n,o){return i*(1-o)+n*o}function db(i,n,o){return i.map((c,d)=>li(c,n[d],o))}var pp=Object.freeze({__proto__:null,array:db,color:function(i,n,o){return new Cr(li(i.r,n.r,o),li(i.g,n.g,o),li(i.b,n.b,o),li(i.a,n.a,o))},number:li});function v0(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}class GS extends Error{constructor(n,o){super(o),this.message=o,this.key=n}}var fa=GS;class x0{constructor(n,o=[]){this.parent=n,this.bindings={};for(const[c,d]of o)this.bindings[c]=d}concat(n){return new x0(this,n)}get(n){if(this.bindings[n])return this.bindings[n];if(this.parent)return this.parent.get(n);throw new Error(`${n} not found in scope.`)}has(n){return!!this.bindings[n]||!!this.parent&&this.parent.has(n)}}var ZS=x0;const bu={kind:"null"},hn={kind:"number"},wi={kind:"string"},Ii={kind:"boolean"},Is={kind:"color"},Mu={kind:"object"},pi={kind:"value"},mp={kind:"collator"},wu={kind:"formatted"},Vh={kind:"resolvedImage"};function Yo(i,n){return{kind:"array",itemType:i,N:n}}function Ir(i){if(i.kind==="array"){const n=Ir(i.itemType);return typeof i.N=="number"?`array<${n}, ${i.N}>`:i.itemType.kind==="value"?"array":`array<${n}>`}return i.kind}const En=[bu,hn,wi,Ii,Is,wu,Mu,Yo(pi),Vh];function uc(i,n){if(n.kind==="error")return null;if(i.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!uc(i.itemType,n.itemType))&&(typeof i.N!="number"||i.N===n.N))return null}else{if(i.kind===n.kind)return null;if(i.kind==="value"){for(const o of En)if(!uc(o,n))return null}}return`Expected ${Ir(i)} but found ${Ir(n)} instead.`}function Rn(i,n){return n.some(o=>o.kind===i.kind)}function gl(i,n){return n.some(o=>o==="null"?i===null:o==="array"?Array.isArray(i):o==="object"?i&&!Array.isArray(i)&&typeof i=="object":o===typeof i)}class Jn{constructor(n,o,c){this.sensitivity=n?o?"variant":"case":o?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(n,o){return this.collator.compare(n,o)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Iu{constructor(n,o,c,d,p){this.text=n.normalize?n.normalize():n,this.image=o,this.scale=c,this.fontStack=d,this.textColor=p}}class po{constructor(n){this.sections=n}static fromString(n){return new po([new Iu(n,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(n=>n.text.length!==0||n.image&&n.image.namePrimary.length!==0)}static factory(n){return n instanceof po?n:po.fromString(n)}toString(){return this.sections.length===0?"":this.sections.map(n=>n.text).join("")}serialize(){const n=["format"];for(const o of this.sections){if(o.image){n.push(["image",o.image.namePrimary]);continue}n.push(o.text);const c={};o.fontStack&&(c["text-font"]=["literal",o.fontStack.split(",")]),o.scale&&(c["font-scale"]=o.scale),o.textColor&&(c["text-color"]=["rgba"].concat(o.textColor.toArray())),n.push(c)}return n}}class Dn{constructor(n){this.namePrimary=n.namePrimary,n.nameSecondary&&(this.nameSecondary=n.nameSecondary),this.available=n.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(n,o){return n?new Dn({namePrimary:n,nameSecondary:o,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function fb(i,n,o,c){return typeof i=="number"&&i>=0&&i<=255&&typeof n=="number"&&n>=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255?c===void 0||typeof c=="number"&&c>=0&&c<=1?null:`Invalid rgba value [${[i,n,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof c=="number"?[i,n,o,c]:[i,n,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function hc(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof Cr||i instanceof Jn||i instanceof po||i instanceof Dn)return!0;if(Array.isArray(i)){for(const n of i)if(!hc(n))return!1;return!0}if(typeof i=="object"){for(const n in i)if(!hc(i[n]))return!1;return!0}return!1}function kr(i){if(i===null)return bu;if(typeof i=="string")return wi;if(typeof i=="boolean")return Ii;if(typeof i=="number")return hn;if(i instanceof Cr)return Is;if(i instanceof Jn)return mp;if(i instanceof po)return wu;if(i instanceof Dn)return Vh;if(Array.isArray(i)){const n=i.length;let o;for(const c of i){const d=kr(c);if(o){if(o===d)continue;o=pi;break}o=d}return Yo(o||pi,n)}return Mu}function Ts(i){const n=typeof i;return i===null?"":n==="string"||n==="number"||n==="boolean"?String(i):i instanceof Cr||i instanceof po||i instanceof Dn?i.toString():JSON.stringify(i)}class yl{constructor(n,o){this.type=n,this.value=o}static parse(n,o){if(n.length!==2)return o.error(`'literal' expression requires exactly one argument, but found ${n.length-1} instead.`);if(!hc(n[1]))return o.error("invalid value");const c=n[1];let d=kr(c);const p=o.expectedType;return d.kind!=="array"||d.N!==0||!p||p.kind!=="array"||typeof p.N=="number"&&p.N!==0||(d=p),new yl(d,c)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Cr?["rgba"].concat(this.value.toArray()):this.value instanceof po?this.value.serialize():this.value}}var Ca=yl,Or=class{constructor(i){this.name="ExpressionEvaluationError",this.message=i}toJSON(){return this.message}};const b0={string:wi,number:hn,boolean:Ii,object:Mu};class M0{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");let c,d=1;const p=n[0];if(p==="array"){let b,w;if(n.length>2){const I=n[1];if(typeof I!="string"||!(I in b0)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);b=b0[I],d++}else b=pi;if(n.length>3){if(n[2]!==null&&(typeof n[2]!="number"||n[2]<0||n[2]!==Math.floor(n[2])))return o.error('The length argument to "array" must be a positive integer literal',2);w=n[2],d++}c=Yo(b,w)}else c=b0[p];const _=[];for(;d<n.length;d++){const b=o.parse(n[d],d,pi);if(!b)return null;_.push(b)}return new M0(c,_)}evaluate(n){for(let o=0;o<this.args.length;o++){const c=this.args[o].evaluate(n);if(!uc(this.type,kr(c)))return c;if(o===this.args.length-1)throw new Or(`Expected value to be of type ${Ir(this.type)}, but found ${Ir(kr(c))} instead.`)}return null}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=this.type,o=[n.kind];if(n.kind==="array"){const c=n.itemType;if(c.kind==="string"||c.kind==="number"||c.kind==="boolean"){o.push(c.kind);const d=n.N;(typeof d=="number"||this.args.length>1)&&o.push(d)}}return o.concat(this.args.map(c=>c.serialize()))}}var Na=M0;class Tu{constructor(n){this.type=wu,this.sections=n}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[1];if(!Array.isArray(c)&&typeof c=="object")return o.error("First argument must be an image or text section.");const d=[];let p=!1;for(let _=1;_<=n.length-1;++_){const b=n[_];if(p&&typeof b=="object"&&!Array.isArray(b)){p=!1;let w=null;if(b["font-scale"]&&(w=o.parse(b["font-scale"],1,hn),!w))return null;let I=null;if(b["text-font"]&&(I=o.parse(b["text-font"],1,Yo(wi)),!I))return null;let E=null;if(b["text-color"]&&(E=o.parse(b["text-color"],1,Is),!E))return null;const L=d[d.length-1];L.scale=w,L.font=I,L.textColor=E}else{const w=o.parse(n[_],1,pi);if(!w)return null;const I=w.type.kind;if(I!=="string"&&I!=="value"&&I!=="null"&&I!=="resolvedImage")return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");p=!0,d.push({content:w,scale:null,font:null,textColor:null})}}return new Tu(d)}evaluate(n){return new po(this.sections.map(o=>{const c=o.content.evaluate(n);return kr(c)===Vh?new Iu("",c,null,null,null):new Iu(Ts(c),null,o.scale?o.scale.evaluate(n):null,o.font?o.font.evaluate(n).join(","):null,o.textColor?o.textColor.evaluate(n):null)}))}eachChild(n){for(const o of this.sections)n(o.content),o.scale&&n(o.scale),o.font&&n(o.font),o.textColor&&n(o.textColor)}outputDefined(){return!1}serialize(){const n=["format"];for(const o of this.sections){n.push(o.content.serialize());const c={};o.scale&&(c["font-scale"]=o.scale.serialize()),o.font&&(c["text-font"]=o.font.serialize()),o.textColor&&(c["text-color"]=o.textColor.serialize()),n.push(c)}return n}}class dc{constructor(n,o){this.type=Vh,this.inputPrimary=n,this.inputSecondary=o}static parse(n,o){if(n.length<2)return o.error("Expected two or more arguments.");const c=o.parse(n[1],1,wi);if(!c)return o.error("No image name provided.");if(n.length===2)return new dc(c);const d=o.parse(n[2],1,wi);return d?new dc(c,d):o.error("Secondary image variant is not a string.")}evaluate(n){const o=Dn.fromString(this.inputPrimary.evaluate(n),this.inputSecondary?this.inputSecondary.evaluate(n):void 0);return o&&n.availableImages&&(o.available=n.availableImages.indexOf(o.namePrimary)>-1,o.nameSecondary&&o.available&&n.availableImages&&(o.available=n.availableImages.indexOf(o.nameSecondary)>-1)),o}eachChild(n){n(this.inputPrimary),this.inputSecondary&&n(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function Su(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}const Hs={"to-boolean":Ii,"to-color":Is,"to-number":hn,"to-string":wi};class gp{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[0],d=[];let p=bu;if(c==="to-array"){if(!Array.isArray(n[1]))return null;const _=n[1].length;if(o.expectedType){if(o.expectedType.kind!=="array")return o.error(`Expected ${o.expectedType.kind} but found array.`);p=Yo(o.expectedType.itemType,_)}else{if(!(_>0&&hc(n[1][0])))return null;p=Yo(kr(n[1][0]),_)}for(let b=0;b<_;b++){const w=n[1][b];let I;if(Su(w)==="array")I=o.parse(w,void 0,p.itemType);else{const E=Su(w);if(E!==p.itemType.kind)return o.error(`Expected ${p.itemType.kind} but found ${E}.`);I=o.registry.literal.parse(["literal",w===void 0?null:w],o)}if(!I)return null;d.push(I)}}else{if((c==="to-boolean"||c==="to-string")&&n.length!==2)return o.error("Expected one argument.");p=Hs[c];for(let _=1;_<n.length;_++){const b=o.parse(n[_],_,pi);if(!b)return null;d.push(b)}}return new gp(p,d)}evaluate(n){if(this.type.kind==="boolean")return!!this.args[0].evaluate(n);if(this.type.kind==="color"){let o,c;for(const d of this.args){if(o=d.evaluate(n),c=null,o instanceof Cr)return o;if(typeof o=="string"){const p=n.parseColor(o);if(p)return p}else if(Array.isArray(o)&&(c=o.length<3||o.length>4?`Invalid rbga value ${JSON.stringify(o)}: expected an array containing either three or four numeric values.`:fb(o[0],o[1],o[2],o[3]),!c))return new Cr(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new Or(c||`Could not parse color from value '${typeof o=="string"?o:String(JSON.stringify(o))}'`)}if(this.type.kind==="number"){let o=null;for(const c of this.args){if(o=c.evaluate(n),o===null)return 0;const d=Number(o);if(!isNaN(d))return d}throw new Or(`Could not convert ${JSON.stringify(o)} to number.`)}return this.type.kind==="formatted"?po.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?Dn.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="array"?this.args.map(o=>o.evaluate(n)):Ts(this.args[0].evaluate(n))}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Tu([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new dc(this.args[0]).serialize();const n=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(o=>{n.push(o.serialize())}),n}}var La=gp;const $h=["Unknown","Point","LineString","Polygon"];var pb=class{constructor(i,n){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=i,this.options=n}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?$h[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(i){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const i=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*n-i[0])+this.featureDistanceData.bearing[1]*(c*n-i[1])}return 0}parseColor(i){let n=this._parseColorCache[i];return n||(n=this._parseColorCache[i]=Cr.parse(i)),n}getConfig(i){return this.options?this.options.get(i):null}};class fc{constructor(n,o,c,d,p){this.name=n,this.type=o,this._evaluate=c,this.args=d,this._overloadIndex=p}evaluate(n){if(!this._evaluate){const o=fc.definitions[this.name];this._evaluate=Array.isArray(o)?o[2]:o.overloads[this._overloadIndex][1]}return this._evaluate(n,this.args)}eachChild(n){this.args.forEach(n)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(n=>n.serialize()))}static parse(n,o){const c=n[0],d=fc.definitions[c];if(!d)return o.error(`Unknown expression "${c}". If you wanted a literal array, use ["literal", [...]].`,0);const p=Array.isArray(d)?d[0]:d.type,_=Array.isArray(d)?[[d[1],d[2]]]:d.overloads,b=[];let w=null,I=-1;for(const[E,L]of _){if(Array.isArray(E)&&E.length!==n.length-1)continue;b.push(E),I++,w=new bb(o.registry,o.path,null,o.scope,void 0,o._scope,o.options);const k=[];let U=!1;for(let F=1;F<n.length;F++){const $=n[F],Z=Array.isArray(E)?E[F-1]:E.type,J=w.parse($,1+k.length,Z);if(!J){U=!0;break}k.push(J)}if(!U)if(Array.isArray(E)&&E.length!==k.length)w.error(`Expected ${E.length} arguments, but found ${k.length} instead.`);else{for(let F=0;F<k.length;F++){const $=Array.isArray(E)?E[F]:E.type,Z=k[F];w.concat(F+1).checkSubtype($,Z.type)}if(w.errors.length===0)return new fc(c,p,L,k,I)}}if(b.length===1)o.errors.push(...w.errors);else{const E=(b.length?b:_.map(([k])=>k)).map(mb).join(" | "),L=[];for(let k=1;k<n.length;k++){const U=o.parse(n[k],1+L.length);if(!U)return null;L.push(Ir(U.type))}o.error(`Expected arguments of type ${E}, but found (${L.join(", ")}) instead.`)}return null}static register(n,o){fc.definitions=o;for(const c in o)n[c]=fc}}function mb(i){return Array.isArray(i)?`(${i.map(Ir).join(", ")})`:`(${Ir(i.type)}...)`}var hi=fc;class Qh{constructor(n,o,c){this.type=mp,this.locale=c,this.caseSensitive=n,this.diacriticSensitive=o}static parse(n,o){if(n.length!==2)return o.error("Expected one argument.");const c=n[1];if(typeof c!="object"||Array.isArray(c))return o.error("Collator options argument must be an object.");const d=o.parse(c["case-sensitive"]!==void 0&&c["case-sensitive"],1,Ii);if(!d)return null;const p=o.parse(c["diacritic-sensitive"]!==void 0&&c["diacritic-sensitive"],1,Ii);if(!p)return null;let _=null;return c.locale&&(_=o.parse(c.locale,1,wi),!_)?null:new Qh(d,p,_)}evaluate(n){return new Jn(this.caseSensitive.evaluate(n),this.diacriticSensitive.evaluate(n),this.locale?this.locale.evaluate(n):null)}eachChild(n){n(this.caseSensitive),n(this.diacriticSensitive),this.locale&&n(this.locale)}outputDefined(){return!1}serialize(){const n={};return n["case-sensitive"]=this.caseSensitive.serialize(),n["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(n.locale=this.locale.serialize()),["collator",n]}}var w0={exports:{}};w0.exports=function(){function i(c,d,p,_,b){for(;_>p;){if(_-p>600){var w=_-p+1,I=d-p+1,E=Math.log(w),L=.5*Math.exp(2*E/3),k=.5*Math.sqrt(E*L*(w-L)/w)*(I-w/2<0?-1:1);i(c,d,Math.max(p,Math.floor(d-I*L/w+k)),Math.min(_,Math.floor(d+(w-I)*L/w+k)),b)}var U=c[d],F=p,$=_;for(n(c,p,d),b(c[_],U)>0&&n(c,p,_);F<$;){for(n(c,F,$),F++,$--;b(c[F],U)<0;)F++;for(;b(c[$],U)>0;)$--}b(c[p],U)===0?n(c,p,$):n(c,++$,_),$<=d&&(p=$+1),d<=$&&(_=$-1)}}function n(c,d,p){var _=c[d];c[d]=c[p],c[p]=_}function o(c,d){return c<d?-1:c>d?1:0}return function(c,d,p,_,b){i(c,d,p||0,_||c.length-1,b||o)}}();var WS=Y(w0.exports);function qS(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function _l(i,n){i[0]=Math.min(i[0],n[0]),i[1]=Math.min(i[1],n[1]),i[2]=Math.max(i[2],n[0]),i[3]=Math.max(i[3],n[1])}function vl(i,n){return!(i[0]<=n[0]||i[2]>=n[2]||i[1]<=n[1]||i[3]>=n[3])}function yp(i,n,o){const c=i[0]-n[0],d=i[1]-n[1],p=i[0]-o[0],_=i[1]-o[1];return c*_-p*d==0&&c*p<=0&&d*_<=0}function Eu(i,n,o=!1){let c=!1;for(let b=0,w=n.length;b<w;b++){const I=n[b];for(let E=0,L=I.length,k=L-1;E<L;k=E++){const U=I[k],F=I[E];if(yp(i,U,F))return o;(p=U)[1]>(d=i)[1]!=(_=F)[1]>d[1]&&d[0]<(_[0]-p[0])*(d[1]-p[1])/(_[1]-p[1])+p[0]&&(c=!c)}}var d,p,_;return c}function I0(i,n,o,c){const d=c[0]-o[0],p=c[1]-o[1],_=(i[0]-o[0])*p-d*(i[1]-o[1]),b=(n[0]-o[0])*p-d*(n[1]-o[1]);return _>0&&b<0||_<0&&b>0}function za(i,n,o,c){return(d=[c[0]-o[0],c[1]-o[1]])[0]*(p=[n[0]-i[0],n[1]-i[1]])[1]-d[1]*p[0]!=0&&!(!I0(i,n,o,c)||!I0(o,c,i,n));var d,p}const xl=8192;function Hh(i,n){const o=(180+i[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,d=Math.pow(2,n.z);return[Math.round(o*d*xl),Math.round(c*d*xl)]}function T0(i,n){for(let o=0;o<n.length;o++)if(Eu(i,n[o]))return!0;return!1}function S0(i,n,o){for(const c of o)for(let d=0,p=c.length,_=p-1;d<p;_=d++)if(za(i,n,c[_],c[d]))return!0;return!1}function Ss(i,n){for(let o=0;o<i.length;++o)if(!Eu(i[o],n))return!1;for(let o=0;o<i.length-1;++o)if(S0(i[o],i[o+1],n))return!1;return!0}function gb(i,n){for(let o=0;o<n.length;o++)if(Ss(i,n[o]))return!0;return!1}function E0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=[];for(let _=0;_<i[d].length;_++){const b=Hh(i[d][_],o);_l(n,b),p.push(b)}c.push(p)}return c}function D0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=E0(i[d],n,o);c.push(p)}return c}function A0(i,n,o,c){if(i[0]<o[0]||i[0]>o[2]){const d=.5*c;let p=i[0]-o[0]>d?-c:o[0]-i[0]>d?c:0;p===0&&(p=i[0]-o[2]>d?-c:o[2]-i[0]>d?c:0),i[0]+=p}_l(n,i)}function C0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const b of i)for(const w of b){const I=[w.x+p[0],w.y+p[1]];A0(I,n,o,d),_.push(I)}return _}function N0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const w of i){const I=[];for(const E of w){const L=[E.x+p[0],E.y+p[1]];_l(n,L),I.push(L)}_.push(I)}if(n[2]-n[0]<=d/2){(b=n)[0]=b[1]=1/0,b[2]=b[3]=-1/0;for(const w of _)for(const I of w)A0(I,n,o,d)}var b;return _}class Du{constructor(n,o){this.type=Ii,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'within' expression requires exactly one argument, but found ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection")for(let d=0;d<c.features.length;++d){const p=c.features[d].geometry.type;if(p==="Polygon"||p==="MultiPolygon")return new Du(c,c.features[d].geometry)}else if(c.type==="Feature"){const d=c.geometry.type;if(d==="Polygon"||d==="MultiPolygon")return new Du(c,c.geometry)}else if(c.type==="Polygon"||c.type==="MultiPolygon")return new Du(c,c)}return o.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(n){if(n.geometry()!=null&&n.canonicalID()!=null){if(n.geometryType()==="Point")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Eu(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!T0(I,b))return!1}return!0}(n,this.geometries);if(n.geometryType()==="LineString")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Ss(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!gb(I,b))return!1}return!0}(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var _p=Du,Yh={exports:{}};Yh.exports=function(){var i={kilometers:1,miles:.621371192237334,nauticalmiles:.5399568034557235,meters:1e3,metres:1e3,yards:1093.6132983377079,feet:3280.839895013123,inches:39370.078740157485},n=1/298.257223563,o=n*(2-n),c=Math.PI/180,d=function(I,E){if(I===void 0)throw new Error("No latitude given.");if(E&&!i[E])throw new Error("Unknown unit "+E+". Use one of: "+Object.keys(i).join(", "));var L=6378.137*c*(E?i[E]:1),k=Math.cos(I*c),U=1/(1-o*(1-k*k)),F=Math.sqrt(U);this.kx=L*F*k,this.ky=L*F*U*(1-o)},p={units:{configurable:!0}};function _(I,E){return I[0]===E[0]&&I[1]===E[1]}function b(I,E,L){var k=w(E[0]-I[0]);return[I[0]+k*L,I[1]+(E[1]-I[1])*L]}function w(I){for(;I<-180;)I+=360;for(;I>180;)I-=360;return I}return d.fromTile=function(I,E,L){var k=Math.PI*(1-2*(I+.5)/Math.pow(2,E)),U=Math.atan(.5*(Math.exp(k)-Math.exp(-k)))/c;return new d(U,L)},p.units.get=function(){return i},d.prototype.distance=function(I,E){var L=w(I[0]-E[0])*this.kx,k=(I[1]-E[1])*this.ky;return Math.sqrt(L*L+k*k)},d.prototype.bearing=function(I,E){var L=w(E[0]-I[0])*this.kx;return Math.atan2(L,(E[1]-I[1])*this.ky)/c},d.prototype.destination=function(I,E,L){var k=L*c;return this.offset(I,Math.sin(k)*E,Math.cos(k)*E)},d.prototype.offset=function(I,E,L){return[I[0]+E/this.kx,I[1]+L/this.ky]},d.prototype.lineDistance=function(I){for(var E=0,L=0;L<I.length-1;L++)E+=this.distance(I[L],I[L+1]);return E},d.prototype.area=function(I){for(var E=0,L=0;L<I.length;L++)for(var k=I[L],U=0,F=k.length,$=F-1;U<F;$=U++)E+=w(k[U][0]-k[$][0])*(k[U][1]+k[$][1])*(L?-1:1);return Math.abs(E)/2*this.kx*this.ky},d.prototype.along=function(I,E){var L=0;if(E<=0)return I[0];for(var k=0;k<I.length-1;k++){var U=I[k],F=I[k+1],$=this.distance(U,F);if((L+=$)>E)return b(U,F,(E-(L-$))/$)}return I[I.length-1]},d.prototype.pointToSegmentDistance=function(I,E,L){var k=E[0],U=E[1],F=w(L[0]-k)*this.kx,$=(L[1]-U)*this.ky,Z=0;return F===0&&$===0||((Z=(w(I[0]-k)*this.kx*F+(I[1]-U)*this.ky*$)/(F*F+$*$))>1?(k=L[0],U=L[1]):Z>0&&(k+=F/this.kx*Z,U+=$/this.ky*Z)),F=w(I[0]-k)*this.kx,$=(I[1]-U)*this.ky,Math.sqrt(F*F+$*$)},d.prototype.pointOnLine=function(I,E){for(var L,k,U,F,$=1/0,Z=0;Z<I.length-1;Z++){var J=I[Z][0],de=I[Z][1],ye=w(I[Z+1][0]-J)*this.kx,ge=(I[Z+1][1]-de)*this.ky,Se=0;ye===0&&ge===0||((Se=(w(E[0]-J)*this.kx*ye+(E[1]-de)*this.ky*ge)/(ye*ye+ge*ge))>1?(J=I[Z+1][0],de=I[Z+1][1]):Se>0&&(J+=ye/this.kx*Se,de+=ge/this.ky*Se));var we=(ye=w(E[0]-J)*this.kx)*ye+(ge=(E[1]-de)*this.ky)*ge;we<$&&($=we,L=J,k=de,U=Z,F=Se)}return{point:[L,k],index:U,t:Math.max(0,Math.min(1,F))}},d.prototype.lineSlice=function(I,E,L){var k=this.pointOnLine(L,I),U=this.pointOnLine(L,E);if(k.index>U.index||k.index===U.index&&k.t>U.t){var F=k;k=U,U=F}var $=[k.point],Z=k.index+1,J=U.index;!_(L[Z],$[0])&&Z<=J&&$.push(L[Z]);for(var de=Z+1;de<=J;de++)$.push(L[de]);return _(L[J],U.point)||$.push(U.point),$},d.prototype.lineSliceAlong=function(I,E,L){for(var k=0,U=[],F=0;F<L.length-1;F++){var $=L[F],Z=L[F+1],J=this.distance($,Z);if((k+=J)>I&&U.length===0&&U.push(b($,Z,(I-(k-J))/J)),k>=E)return U.push(b($,Z,(E-(k-J))/J)),U;k>I&&U.push(Z)}return U},d.prototype.bufferPoint=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[0]+k,I[1]+L]},d.prototype.bufferBBox=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[2]+k,I[3]+L]},d.prototype.insideBBox=function(I,E){return w(I[0]-E[0])>=0&&w(I[0]-E[2])<=0&&I[1]>=E[1]&&I[1]<=E[3]},Object.defineProperties(d,p),d}();var bl=Y(Yh.exports),L0={exports:{}};L0.exports=function(){var i=function(o,c){if(o===void 0&&(o=[]),c===void 0&&(c=n),this.data=o,this.length=this.data.length,this.compare=c,this.length>0)for(var d=(this.length>>1)-1;d>=0;d--)this._down(d)};function n(o,c){return o<c?-1:o>c?1:0}return i.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},i.prototype.pop=function(){if(this.length!==0){var o=this.data[0],c=this.data.pop();return this.length--,this.length>0&&(this.data[0]=c,this._down(0)),o}},i.prototype.peek=function(){return this.data[0]},i.prototype._up=function(o){for(var c=this.data,d=this.compare,p=c[o];o>0;){var _=o-1>>1,b=c[_];if(d(p,b)>=0)break;c[o]=b,o=_}c[o]=p},i.prototype._down=function(o){for(var c=this.data,d=this.compare,p=this.length>>1,_=c[o];o<p;){var b=1+(o<<1),w=c[b],I=b+1;if(I<this.length&&d(c[I],w)<0&&(b=I,w=c[I]),d(w,_)>=0)break;c[o]=w,o=b}c[o]=_},i}();var Es=Y(L0.exports),sn=8192;function vp(i,n){return n.dist-i.dist}const z0=100,Gh=50;function k0(i){const n=[1/0,1/0,-1/0,-1/0];if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++)if(n[o]!==i[o])return!1;return!0}function Ml(i){return i[1]-i[0]+1}function Ys(i,n){const o=i[1]>=i[0]&&i[1]<n;return o||console.warn("Distance Expression: Index is out of range"),o}function O0(i,n){if(i[0]>i[1])return[null,null];const o=Ml(i);if(n){if(o===2)return[i,null];const c=Math.floor(o/2);return[[i[0],i[0]+c],[i[0]+c,i[1]]]}{if(o===1)return[i,null];const c=Math.floor(o/2)-1;return[[i[0],i[0]+c],[i[0]+c+1,i[1]]]}}function pc(i,n){const o=[1/0,1/0,-1/0,-1/0];if(!Ys(n,i.length))return o;for(let c=n[0];c<=n[1];++c)_l(o,i[c]);return o}function xp(i){const n=[1/0,1/0,-1/0,-1/0];for(let o=0;o<i.length;++o)for(let c=0;c<i[o].length;++c)_l(n,i[o][c]);return n}function mc(i,n,o){if(k0(i)||k0(n))return NaN;let c=0,d=0;return i[2]<n[0]&&(c=n[0]-i[2]),i[0]>n[2]&&(c=i[0]-n[2]),i[1]>n[3]&&(d=i[1]-n[3]),i[3]<n[1]&&(d=n[1]-i[3]),o.distance([0,0],[c,d])}function j0(i){return 360*i-180}function KS(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}function Au(i,n){const o=Math.pow(2,n.z),c=(i.y/sn+n.y)/o;return[j0((i.x/sn+n.x)/o),KS(c)]}function XS(i,n){const o=[];for(let c=0;c<i.length;++c)o.push(Au(i[c],n));return o}function yb(i,n,o){const c=o.pointOnLine(n,i).point;return o.distance(i,c)}function _b(i,n,o,c,d){const p=o.slice(c[0],c[1]+1);let _=1/0;for(let b=n[0];b<=n[1];++b)if((_=Math.min(_,yb(i[b],p,d)))===0)return 0;return _}function R0(i,n,o,c,d){const p=Math.min(d.pointToSegmentDistance(i,o,c),d.pointToSegmentDistance(n,o,c)),_=Math.min(d.pointToSegmentDistance(o,i,n),d.pointToSegmentDistance(c,i,n));return Math.min(p,_)}function JS(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<n[1];++_)for(let b=c[0];b<c[1];++b){if(za(i[_],i[_+1],o[b],o[b+1]))return 0;p=Math.min(p,R0(i[_],i[_+1],o[b],o[b+1],d))}return p}function eE(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<=n[1];++_)for(let b=c[0];b<=c[1];++b)if((p=Math.min(p,d.distance(i[_],o[b])))===0)return p;return p}function tE(i,n,o){if(Eu(i,n,!0))return 0;let c=1/0;for(const d of n){const p=d.length;if(p<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(d[0]!==d[p-1]&&(c=Math.min(c,o.pointToSegmentDistance(i,d[p-1],d[0])))===0||(c=Math.min(c,yb(i,d,o)))===0)return c}return c}function vb(i,n,o,c){if(!Ys(n,i.length))return NaN;for(let p=n[0];p<=n[1];++p)if(Eu(i[p],o,!0))return 0;let d=1/0;for(let p=n[0];p<n[1];++p)for(const _ of o)for(let b=0,w=_.length,I=w-1;b<w;I=b++){if(za(i[p],i[p+1],_[I],_[b]))return 0;d=Math.min(d,R0(i[p],i[p+1],_[I],_[b],c))}return d}function Zh(i,n){for(const o of i)for(let c=0;c<=o.length-1;++c)if(Eu(o[c],n,!0))return!0;return!1}function nE(i,n,o,c=1/0){const d=xp(i),p=xp(n);if(c!==1/0&&mc(d,p,o)>=c)return c;if(vl(d,p)){if(Zh(i,n))return 0}else if(Zh(n,i))return 0;let _=c;for(const b of i)for(let w=0,I=b.length,E=I-1;w<I;E=w++)for(const L of n)for(let k=0,U=L.length,F=U-1;k<U;F=k++){if(za(b[E],b[w],L[F],L[k]))return 0;_=Math.min(_,R0(b[E],b[w],L[F],L[k],o))}return _}function bp(i,n,o,c,d,p,_){if(p===null||_===null)return;const b=mc(pc(c,p),pc(d,_),o);b<n&&i.push({dist:b,range1:p,range2:_})}function P0(i,n,o,c,d=1/0){let p=Math.min(c.distance(i[0],o[0][0]),d);if(p===0)return p;const _=new Es([{dist:0,range1:[0,i.length-1],range2:[0,0]}],vp),b=n?Gh:z0,w=xp(o);for(;_.length;){const I=_.pop();if(I.dist>=p)continue;const E=I.range1;if(Ml(E)<=b){if(!Ys(E,i.length))return NaN;if(n){const L=vb(i,E,o,c);if((p=Math.min(p,L))===0)return p}else for(let L=E[0];L<=E[1];++L){const k=tE(i[L],o,c);if((p=Math.min(p,k))===0)return p}}else{const L=O0(E,n);if(L[0]!==null){const k=mc(pc(i,L[0]),w,c);k<p&&_.push({dist:k,range1:L[0],range2:[0,0]})}if(L[1]!==null){const k=mc(pc(i,L[1]),w,c);k<p&&_.push({dist:k,range1:L[1],range2:[0,0]})}}}return p}function xb(i,n,o,c,d,p=1/0){let _=Math.min(p,d.distance(i[0],o[0]));if(_===0)return _;const b=new Es([{dist:0,range1:[0,i.length-1],range2:[0,o.length-1]}],vp),w=n?Gh:z0,I=c?Gh:z0;for(;b.length;){const E=b.pop();if(E.dist>=_)continue;const L=E.range1,k=E.range2;if(Ml(L)<=w&&Ml(k)<=I){if(!Ys(L,i.length)||!Ys(k,o.length))return NaN;if(n&&c?_=Math.min(_,JS(i,L,o,k,d)):n||c?n&&!c?_=Math.min(_,_b(o,k,i,L,d)):!n&&c&&(_=Math.min(_,_b(i,L,o,k,d))):_=Math.min(_,eE(i,L,o,k,d)),_===0)return _}else{const U=O0(L,n),F=O0(k,c);bp(b,_,d,i,o,U[0],F[0]),bp(b,_,d,i,o,U[0],F[1]),bp(b,_,d,i,o,U[1],F[0]),bp(b,_,d,i,o,U[1],F[1])}}return _}function U0(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o)if(!(p!==1/0&&mc(_,pc(b,[0,b.length-1]),c)>=p)&&(p=Math.min(p,xb(i,n,b,!0,c,p)),p===0))return p;return p}function Mp(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o){if(p!==1/0&&mc(_,xp(b),c)>=p)continue;const w=P0(i,n,b,c,p);if(isNaN(w))return w;if((p=Math.min(p,w))===0)return p}return p}function B0(i){return i==="Point"||i==="MultiPoint"||i==="LineString"||i==="MultiLineString"||i==="Polygon"||i==="MultiPolygon"}class gc{constructor(n,o){this.type=hn,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'distance' expression requires either one argument, but found ' ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection"){for(let d=0;d<c.features.length;++d)if(B0(c.features[d].geometry.type))return new gc(c,c.features[d].geometry)}else if(c.type==="Feature"){if(B0(c.geometry.type))return new gc(c,c.geometry)}else if(B0(c.type))return new gc(c,c)}return o.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(n){const o=n.geometry(),c=n.canonicalID();if(o!=null&&c!=null){if(n.geometryType()==="Point")return function(d,p,_){const b=[];for(const I of d)for(const E of I)b.push(Au(E,p));const w=new bl(b[0][1],"meters");return _.type==="Point"||_.type==="MultiPoint"||_.type==="LineString"?xb(b,!1,_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w):_.type==="MultiLineString"?U0(b,!1,_.coordinates,w):_.type==="Polygon"||_.type==="MultiPolygon"?Mp(b,!1,_.type==="Polygon"?[_.coordinates]:_.coordinates,w):null}(o,c,this.geometries);if(n.geometryType()==="LineString")return function(d,p,_){const b=[];for(const I of d){const E=[];for(const L of I)E.push(Au(L,p));b.push(E)}const w=new bl(b[0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return U0(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=U0(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}if(_.type==="Polygon"||_.type==="MultiPolygon"){let I=1/0;for(let E=0;E<b.length;E++){const L=Mp(b[E],!0,_.type==="Polygon"?[_.coordinates]:_.coordinates,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return null}(o,c,this.geometries);if(n.geometryType()==="Polygon")return function(d,p,_){const b=[];for(const I of function(E,L){const k=E.length;if(k<=1)return[E];const U=[];let F,$;for(let Z=0;Z<k;Z++){const J=qS(E[Z]);J!==0&&(E[Z].area=Math.abs(J),$===void 0&&($=J<0),$===J<0?(F&&U.push(F),F=[E[Z]]):F.push(E[Z]))}return F&&U.push(F),U}(d)){const E=[];for(let L=0;L<I.length;++L)E.push(XS(I[L],p));b.push(E)}const w=new bl(b[0][0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return Mp(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=Mp(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return _.type==="Polygon"||_.type==="MultiPolygon"?function(I,E,L){let k=1/0;for(const U of I)for(const F of E){const $=nE(U,F,L,k);if(isNaN($))return $;if((k=Math.min(k,$))===0)return k}return k}(_.type==="Polygon"?[_.coordinates]:_.coordinates,b,w):null}(o,c,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var wp=gc;function Wh(i,n){switch(i){case"string":return Ts(n);case"number":return+n;case"boolean":return!!n;case"color":return Cr.parse(n);case"formatted":return po.fromString(Ts(n));case"resolvedImage":return Dn.fromString(Ts(n))}return n}function F0(i,n,o,c){return c!==void 0&&(i=c*Math.round(i/c)),n!==void 0&&i<n&&(i=n),o!==void 0&&i>o&&(i=o),i}class qh{constructor(n,o,c){this.type=n,this.key=o,this.scope=c}static parse(n,o){let c=o.expectedType;if(c==null&&(c=pi),n.length<2||n.length>3)return o.error("Invalid number of arguments for 'config' expression.");const d=o.parse(n[1],1);if(!(d instanceof Ca))return o.error("Key name of 'config' expression must be a string literal.");if(n.length>=3){const p=o.parse(n[2],2);return p instanceof Ca?new qh(c,Ts(d.value),Ts(p.value)):o.error("Scope of 'config' expression must be a string literal.")}return new qh(c,Ts(d.value))}evaluate(n){const o=[this.key,this.scope,n.scope].filter(Boolean).join(""),c=n.getConfig(o);if(!c)return null;const{type:d,value:p,values:_,minValue:b,maxValue:w,stepValue:I}=c,E=c.default.evaluate(n);let L=E;if(p){const k=n.scope;n.scope=(k||"").split("").slice(1).join(""),L=p.evaluate(n),n.scope=k}return d&&(L=Wh(d,L)),L===void 0||b===void 0&&w===void 0&&I===void 0||(typeof L=="number"?L=F0(L,b,w,I):Array.isArray(L)&&(L=L.map(k=>typeof k=="number"?F0(k,b,w,I):k))),p!==void 0&&L!==void 0&&_&&!_.includes(L)&&(L=E,d&&(L=Wh(d,L))),(d&&d!==this.type||L!==void 0&&kr(L)!==this.type)&&(L=Wh(this.type.kind,L)),L}eachChild(){}outputDefined(){return!1}serialize(){const n=["config",this.key];return this.scope&&n.concat(this.key),n}}var Cu=qh;function Nu(i){if(i instanceof hi&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof _p||i instanceof wp)return!1;let n=!0;return i.eachChild(o=>{n&&!Nu(o)&&(n=!1)}),n}function Kh(i){if(i instanceof hi&&i.name==="feature-state")return!1;let n=!0;return i.eachChild(o=>{n&&!Kh(o)&&(n=!1)}),n}function Xh(i){if(i instanceof Cu)return!1;let n=!0;return i.eachChild(o=>{n&&!Xh(o)&&(n=!1)}),n}function mo(i,n){if(i instanceof hi&&n.indexOf(i.name)>=0)return!1;let o=!0;return i.eachChild(c=>{o&&!mo(c,n)&&(o=!1)}),o}class wl{constructor(n,o){this.type=o.type,this.name=n,this.boundExpression=o}static parse(n,o){if(n.length!==2||typeof n[1]!="string")return o.error("'var' expression requires exactly one string literal argument.");const c=n[1];return o.scope.has(c)?new wl(c,o.scope.get(c)):o.error(`Unknown variable "${c}". Make sure "${c}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(n){return this.boundExpression.evaluate(n)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ro=wl;class V0{constructor(n,o=[],c,d=new ZS,p=[],_,b){this.registry=n,this.path=o,this.key=o.map(w=>`[${w}]`).join(""),this.scope=d,this.errors=p,this.expectedType=c,this._scope=_,this.options=b}parse(n,o,c,d,p={}){return o||c?this.concat(o,c,d)._parse(n,p):this._parse(n,p)}_parse(n,o){function c(d,p,_){return _==="assert"?new Na(p,[d]):_==="coerce"?new La(p,[d]):d}if(n!==null&&typeof n!="string"&&typeof n!="boolean"&&typeof n!="number"||(n=["literal",n]),Array.isArray(n)){if(n.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const d=typeof n[0]=="string"?this.registry[n[0]]:void 0;if(d){let p=d.parse(n,this);if(!p)return null;if(this.expectedType){const _=this.expectedType,b=p.type;if(_.kind!=="string"&&_.kind!=="number"&&_.kind!=="boolean"&&_.kind!=="object"&&_.kind!=="array"||b.kind!=="value")if(_.kind!=="color"&&_.kind!=="formatted"&&_.kind!=="resolvedImage"||b.kind!=="value"&&b.kind!=="string"){if(this.checkSubtype(_,b))return null}else p=c(p,_,o.typeAnnotation||"coerce");else p=c(p,_,o.typeAnnotation||"assert")}if(!(p instanceof Ca)&&p.type.kind!=="resolvedImage"&&$0(p)){const _=new pb(this._scope,this.options);try{p=new Ca(p.type,p.evaluate(_))}catch(b){return this.error(b.message),null}}return p}return La.parse(["to-array",n],this)}return this.error(n===void 0?"'undefined' value invalid. Use null instead.":typeof n=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof n} instead.`)}concat(n,o,c){const d=typeof n=="number"?this.path.concat(n):this.path,p=c?this.scope.concat(c):this.scope;return new V0(this.registry,d,o||null,p,this.errors,this._scope,this.options)}error(n,...o){const c=`${this.key}${o.map(d=>`[${d}]`).join("")}`;this.errors.push(new fa(c,n))}checkSubtype(n,o){const c=uc(n,o);return c&&this.error(c),c}}var bb=V0;function $0(i){if(i instanceof Ro)return $0(i.boundExpression);if(i instanceof hi&&i.name==="error"||i instanceof Qh||i instanceof _p||i instanceof wp||i instanceof Cu)return!1;const n=i instanceof La||i instanceof Na;let o=!0;return i.eachChild(c=>{o=n?o&&$0(c):o&&c instanceof Ca}),!!o&&Nu(i)&&mo(i,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function yc(i,n){const o=i.length-1;let c,d,p=0,_=o,b=0;for(;p<=_;)if(b=Math.floor((p+_)/2),c=i[b],d=i[b+1],c<=n){if(b===o||n<d)return b;p=b+1}else{if(!(c>n))throw new Or("Input is not a number.");_=b-1}return 0}class Ip{constructor(n,o,c){this.type=n,this.input=o,this.labels=[],this.outputs=[];for(const[d,p]of c)this.labels.push(d),this.outputs.push(p)}static parse(n,o){if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=[];let p=null;o.expectedType&&o.expectedType.kind!=="value"&&(p=o.expectedType);for(let _=1;_<n.length;_+=2){const b=_===1?-1/0:n[_],w=n[_+1],I=_,E=_+1;if(typeof b!="number")return o.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',I);if(d.length&&d[d.length-1][0]>=b)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',I);const L=o.parse(w,E,p);if(!L)return null;p=p||L.type,d.push([b,L])}return new Ip(p,c,d)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;return d>=o[p-1]?c[p-1].evaluate(n):c[yc(o,d)].evaluate(n)}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){const n=["step",this.input.serialize()];for(let o=0;o<this.labels.length;o++)o>0&&n.push(this.labels[o]),n.push(this.outputs[o].serialize());return n}}var Jh=Ip;const Mb=.95047,Il=1.08883,wb=4/29,Lu=6/29,Q0=3*Lu*Lu,Ib=Lu*Lu*Lu,iE=Math.PI/180,Gs=180/Math.PI;function Tp(i){return i>Ib?Math.pow(i,1/3):i/Q0+wb}function Sp(i){return i>Lu?i*i*i:Q0*(i-wb)}function Ep(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Dp(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function H0(i){const n=Dp(i.r),o=Dp(i.g),c=Dp(i.b),d=Tp((.4124564*n+.3575761*o+.1804375*c)/Mb),p=Tp((.2126729*n+.7151522*o+.072175*c)/1);return{l:116*p-16,a:500*(d-p),b:200*(p-Tp((.0193339*n+.119192*o+.9503041*c)/Il)),alpha:i.a}}function Y0(i){let n=(i.l+16)/116,o=isNaN(i.a)?n:n+i.a/500,c=isNaN(i.b)?n:n-i.b/200;return n=1*Sp(n),o=Mb*Sp(o),c=Il*Sp(c),new Cr(Ep(3.2404542*o-1.5371385*n-.4985314*c),Ep(-.969266*o+1.8760108*n+.041556*c),Ep(.0556434*o-.2040259*n+1.0572252*c),i.alpha)}function Tb(i,n,o){const c=n-i;return i+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const zu={forward:H0,reverse:Y0,interpolate:function(i,n,o){return{l:li(i.l,n.l,o),a:li(i.a,n.a,o),b:li(i.b,n.b,o),alpha:li(i.alpha,n.alpha,o)}}},ku={forward:function(i){const{l:n,a:o,b:c}=H0(i),d=Math.atan2(c,o)*Gs;return{h:d<0?d+360:d,c:Math.sqrt(o*o+c*c),l:n,alpha:i.a}},reverse:function(i){const n=i.h*iE,o=i.c;return Y0({l:i.l,a:Math.cos(n)*o,b:Math.sin(n)*o,alpha:i.alpha})},interpolate:function(i,n,o){return{h:Tb(i.h,n.h,o),c:li(i.c,n.c,o),l:li(i.l,n.l,o),alpha:li(i.alpha,n.alpha,o)}}};var G0=Object.freeze({__proto__:null,hcl:ku,lab:zu});class ed{constructor(n,o,c,d,p){this.type=n,this.operator=o,this.interpolation=c,this.input=d,this.labels=[],this.outputs=[];for(const[_,b]of p)this.labels.push(_),this.outputs.push(b)}static interpolationFactor(n,o,c,d){let p=0;if(n.name==="exponential")p=Ou(o,n.base,c,d);else if(n.name==="linear")p=Ou(o,1,c,d);else if(n.name==="cubic-bezier"){const _=n.controlPoints;p=new fe(_[0],_[1],_[2],_[3]).solve(Ou(o,1,c,d))}return p}static parse(n,o){let[c,d,p,..._]=n;if(!Array.isArray(d)||d.length===0)return o.error("Expected an interpolation type expression.",1);if(d[0]==="linear")d={name:"linear"};else if(d[0]==="exponential"){const I=d[1];if(typeof I!="number")return o.error("Exponential interpolation requires a numeric base.",1,1);d={name:"exponential",base:I}}else{if(d[0]!=="cubic-bezier")return o.error(`Unknown interpolation type ${String(d[0])}`,1,0);{const I=d.slice(1);if(I.length!==4||I.some(E=>typeof E!="number"||E<0||E>1))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);d={name:"cubic-bezier",controlPoints:I}}}if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(p=o.parse(p,2,hn),!p)return null;const b=[];let w=null;c==="interpolate-hcl"||c==="interpolate-lab"?w=Is:o.expectedType&&o.expectedType.kind!=="value"&&(w=o.expectedType);for(let I=0;I<_.length;I+=2){const E=_[I],L=_[I+1],k=I+3,U=I+4;if(typeof E!="number")return o.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',k);if(b.length&&b[b.length-1][0]>=E)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const F=o.parse(L,U,w);if(!F)return null;w=w||F.type,b.push([E,F])}return w.kind==="number"||w.kind==="color"||w.kind==="array"&&w.itemType.kind==="number"&&typeof w.N=="number"?new ed(w,c,d,p,b):o.error(`Type ${Ir(w)} is not interpolatable.`)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;if(d>=o[p-1])return c[p-1].evaluate(n);const _=yc(o,d),b=ed.interpolationFactor(this.interpolation,d,o[_],o[_+1]),w=c[_].evaluate(n),I=c[_+1].evaluate(n);return this.operator==="interpolate"?pp[this.type.kind.toLowerCase()](w,I,b):this.operator==="interpolate-hcl"?ku.reverse(ku.interpolate(ku.forward(w),ku.forward(I),b)):zu.reverse(zu.interpolate(zu.forward(w),zu.forward(I),b))}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){let n;n=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const o=[this.operator,n,this.input.serialize()];for(let c=0;c<this.labels.length;c++)o.push(this.labels[c],this.outputs[c].serialize());return o}}function Ou(i,n,o,c){const d=c-o,p=i-o;return d===0?0:n===1?p/d:(Math.pow(n,p)-1)/(Math.pow(n,d)-1)}var us=ed;class ju{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expectected at least one argument.");let c=null;const d=o.expectedType;d&&d.kind!=="value"&&(c=d);const p=[];for(const b of n.slice(1)){const w=o.parse(b,1+p.length,c,void 0,{typeAnnotation:"omit"});if(!w)return null;c=c||w.type,p.push(w)}const _=d&&p.some(b=>uc(d,b.type));return new ju(_?pi:c,p)}evaluate(n){let o,c=null,d=0;for(const p of this.args){if(d++,c=p.evaluate(n),c&&c instanceof Dn&&!c.available&&(o||(o=c),c=null,d===this.args.length))return o;if(c!==null)break}return c}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=["coalesce"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Z0=ju;class Ap{constructor(n,o){this.type=o.type,this.bindings=[].concat(n),this.result=o}evaluate(n){return this.result.evaluate(n)}eachChild(n){for(const o of this.bindings)n(o[1]);n(this.result)}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found ${n.length-1} instead.`);const c=[];for(let p=1;p<n.length-1;p+=2){const _=n[p];if(typeof _!="string")return o.error(`Expected string, but found ${typeof _} instead.`,p);if(/[^a-zA-Z0-9_]/.test(_))return o.error("Variable names must contain only alphanumeric characters or '_'.",p);const b=o.parse(n[p+1],p+1);if(!b)return null;c.push([_,b])}const d=o.parse(n[n.length-1],n.length-1,o.expectedType,c);return d?new Ap(c,d):null}outputDefined(){return this.result.outputDefined()}serialize(){const n=["let"];for(const[o,c]of this.bindings)n.push(o,c.serialize());return n.push(this.result.serialize()),n}}var W0=Ap;class Tl{constructor(n,o,c){this.type=n,this.index=o,this.input=c}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,hn),d=o.parse(n[2],2,Yo(o.expectedType||pi));return c&&d?new Tl(d.type.itemType,c,d):null}evaluate(n){const o=this.index.evaluate(n),c=this.input.evaluate(n);if(o<0)throw new Or(`Array index out of bounds: ${o} < 0.`);if(o>=c.length)throw new Or(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new Or(`Array index must be an integer, but found ${o} instead.`);return c[o]}eachChild(n){n(this.index),n(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var mi=Tl;class q0{constructor(n,o){this.type=Ii,this.needle=n,this.haystack=o}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);return c&&d?Rn(c.type,[Ii,wi,hn,bu,pi])?new q0(c,d):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`):null}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(c==null)return!1;if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);return c.indexOf(o)>=0}eachChild(n){n(this.needle),n(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var rE=q0;class Cp{constructor(n,o,c){this.type=hn,this.needle=n,this.haystack=o,this.fromIndex=c}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);if(!c||!d)return null;if(!Rn(c.type,[Ii,wi,hn,bu,pi]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new Cp(c,d,p):null}return new Cp(c,d)}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);if(this.fromIndex){const d=this.fromIndex.evaluate(n);return c.indexOf(o,d)}return c.indexOf(o)}eachChild(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const n=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),n]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Sb=Cp;class K0{constructor(n,o,c,d,p,_){this.inputType=n,this.type=o,this.input=c,this.cases=d,this.outputs=p,this.otherwise=_}static parse(n,o){if(n.length<5)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if(n.length%2!=1)return o.error("Expected an even number of arguments.");let c,d;o.expectedType&&o.expectedType.kind!=="value"&&(d=o.expectedType);const p={},_=[];for(let I=2;I<n.length-1;I+=2){let E=n[I];const L=n[I+1];Array.isArray(E)||(E=[E]);const k=o.concat(I);if(E.length===0)return k.error("Expected at least one branch label.");for(const F of E){if(typeof F!="number"&&typeof F!="string")return k.error("Branch labels must be numbers or strings.");if(typeof F=="number"&&Math.abs(F)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof F=="number"&&Math.floor(F)!==F)return k.error("Numeric branch labels must be integer values.");if(c){if(k.checkSubtype(c,kr(F)))return null}else c=kr(F);if(p[String(F)]!==void 0)return k.error("Branch labels must be unique.");p[String(F)]=_.length}const U=o.parse(L,I,d);if(!U)return null;d=d||U.type,_.push(U)}const b=o.parse(n[1],1,pi);if(!b)return null;const w=o.parse(n[n.length-1],n.length-1,d);return w?b.type.kind!=="value"&&o.concat(1).checkSubtype(c,b.type)?null:new K0(c,d,b,p,_,w):null}evaluate(n){const o=this.input.evaluate(n);return(kr(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(n)}eachChild(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)}outputDefined(){return this.outputs.every(n=>n.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["match",this.input.serialize()],o=Object.keys(this.cases).sort(),c=[],d={};for(const _ of o){const b=d[this.cases[_]];b===void 0?(d[this.cases[_]]=c.length,c.push([this.cases[_],[_]])):c[b][1].push(_)}const p=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,b]of c)n.push(b.length===1?p(b[0]):b.map(p)),n.push(this.outputs[_].serialize());return n.push(this.otherwise.serialize()),n}}var Eb=K0;class Np{constructor(n,o,c){this.type=n,this.branches=o,this.otherwise=c}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found only ${n.length-1}.`);if(n.length%2!=0)return o.error("Expected an odd number of arguments.");let c;o.expectedType&&o.expectedType.kind!=="value"&&(c=o.expectedType);const d=[];for(let _=1;_<n.length-1;_+=2){const b=o.parse(n[_],_,Ii);if(!b)return null;const w=o.parse(n[_+1],_+1,c);if(!w)return null;d.push([b,w]),c=c||w.type}const p=o.parse(n[n.length-1],n.length-1,c);return p?new Np(c,d,p):null}evaluate(n){for(const[o,c]of this.branches)if(o.evaluate(n))return c.evaluate(n);return this.otherwise.evaluate(n)}eachChild(n){for(const[o,c]of this.branches)n(o),n(c);n(this.otherwise)}outputDefined(){return this.branches.every(([n,o])=>o.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["case"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Db=Np;class td{constructor(n,o,c,d){this.type=n,this.input=o,this.beginIndex=c,this.endIndex=d}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,hn);if(!c||!d)return null;if(!Rn(c.type,[Yo(pi),wi,pi]))return o.error(`Expected first argument to be of type array or string, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new td(c.type,c,d,p):null}return new td(c.type,c,d)}evaluate(n){const o=this.input.evaluate(n),c=this.beginIndex.evaluate(n);if(!gl(o,["string","array"]))throw new Or(`Expected first argument to be of type array or string, but found ${Ir(kr(o))} instead.`);if(this.endIndex){const d=this.endIndex.evaluate(n);return o.slice(c,d)}return o.slice(c)}eachChild(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const n=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),n]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Ru=td;function X0(i,n){return i==="=="||i==="!="?n.kind==="boolean"||n.kind==="string"||n.kind==="number"||n.kind==="null"||n.kind==="value":n.kind==="string"||n.kind==="number"||n.kind==="value"}function J0(i,n,o,c){return c.compare(n,o)===0}function Pu(i,n,o){const c=i!=="=="&&i!=="!=";return class iV{constructor(p,_,b){this.type=Ii,this.lhs=p,this.rhs=_,this.collator=b,this.hasUntypedArgument=p.type.kind==="value"||_.type.kind==="value"}static parse(p,_){if(p.length!==3&&p.length!==4)return _.error("Expected two or three arguments.");const b=p[0];let w=_.parse(p[1],1,pi);if(!w)return null;if(!X0(b,w.type))return _.concat(1).error(`"${b}" comparisons are not supported for type '${Ir(w.type)}'.`);let I=_.parse(p[2],2,pi);if(!I)return null;if(!X0(b,I.type))return _.concat(2).error(`"${b}" comparisons are not supported for type '${Ir(I.type)}'.`);if(w.type.kind!==I.type.kind&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error(`Cannot compare types '${Ir(w.type)}' and '${Ir(I.type)}'.`);c&&(w.type.kind==="value"&&I.type.kind!=="value"?w=new Na(I.type,[w]):w.type.kind!=="value"&&I.type.kind==="value"&&(I=new Na(w.type,[I])));let E=null;if(p.length===4){if(w.type.kind!=="string"&&I.type.kind!=="string"&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(E=_.parse(p[3],3,mp),!E)return null}return new iV(w,I,E)}evaluate(p){const _=this.lhs.evaluate(p),b=this.rhs.evaluate(p);if(c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!==I.kind||w.kind!=="string"&&w.kind!=="number")throw new Or(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${w.kind}, ${I.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!=="string"||I.kind!=="string")return n(p,_,b)}return this.collator?o(p,_,b,this.collator.evaluate(p)):n(p,_,b)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[i];return this.eachChild(_=>{p.push(_.serialize())}),p}}}const e1=Pu("==",function(i,n,o){return n===o},J0),t1=Pu("!=",function(i,n,o){return n!==o},function(i,n,o,c){return!J0(0,n,o,c)}),oE=Pu("<",function(i,n,o){return n<o},function(i,n,o,c){return c.compare(n,o)<0}),sE=Pu(">",function(i,n,o){return n>o},function(i,n,o,c){return c.compare(n,o)>0}),Ab=Pu("<=",function(i,n,o){return n<=o},function(i,n,o,c){return c.compare(n,o)<=0}),aE=Pu(">=",function(i,n,o){return n>=o},function(i,n,o,c){return c.compare(n,o)>=0});class n1{constructor(n,o,c,d,p,_){this.type=wi,this.number=n,this.locale=o,this.currency=c,this.unit=d,this.minFractionDigits=p,this.maxFractionDigits=_}static parse(n,o){if(n.length!==3)return o.error("Expected two arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=n[2];if(typeof d!="object"||Array.isArray(d))return o.error("NumberFormat options argument must be an object.");let p=null;if(d.locale&&(p=o.parse(d.locale,1,wi),!p))return null;let _=null;if(d.currency&&(_=o.parse(d.currency,1,wi),!_))return null;let b=null;if(d.unit&&(b=o.parse(d.unit,1,wi),!b))return null;let w=null;if(d["min-fraction-digits"]&&(w=o.parse(d["min-fraction-digits"],1,hn),!w))return null;let I=null;return d["max-fraction-digits"]&&(I=o.parse(d["max-fraction-digits"],1,hn),!I)?null:new n1(c,p,_,b,w,I)}evaluate(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(n):void 0,unit:this.unit?this.unit.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))}eachChild(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.unit&&n(this.unit),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const n={};return this.locale&&(n.locale=this.locale.serialize()),this.currency&&(n.currency=this.currency.serialize()),this.unit&&(n.unit=this.unit.serialize()),this.minFractionDigits&&(n["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(n["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),n]}}class i1{constructor(n){this.type=hn,this.input=n}static parse(n,o){if(n.length!==2)return o.error(`Expected 1 argument, but found ${n.length-1} instead.`);const c=o.parse(n[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?o.error(`Expected argument of type string or array, but found ${Ir(c.type)} instead.`):new i1(c):null}evaluate(n){const o=this.input.evaluate(n);if(typeof o=="string"||Array.isArray(o))return o.length;throw new Or(`Expected value to be of type string or array, but found ${Ir(kr(o))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(o=>{n.push(o.serialize())}),n}}function Cb(i){return function(){i=1831565813+(i|=0)|0;let n=Math.imul(i^i>>>15,1|i);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const r1={"==":e1,"!=":t1,">":sE,"<":oE,">=":aE,"<=":Ab,array:Na,at:mi,boolean:Na,case:Db,coalesce:Z0,collator:Qh,format:Tu,image:dc,in:rE,"index-of":Sb,interpolate:us,"interpolate-hcl":us,"interpolate-lab":us,length:i1,let:W0,literal:Ca,match:Eb,number:Na,"number-format":n1,object:Na,slice:Ru,step:Jh,string:Na,"to-boolean":La,"to-color":La,"to-number":La,"to-string":La,var:Ro,within:_p,distance:wp,config:Cu};function o1(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=fb(n,o,c,p);if(_)throw new Or(_);return new Cr(n/255*p,o/255*p,c/255*p,p)}function Nb(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=function(I,E,L,k){return typeof I=="number"&&I>=0&&I<=360?typeof E=="number"&&E>=0&&E<=100&&typeof L=="number"&&L>=0&&L<=100?k===void 0||typeof k=="number"&&k>=0&&k<=1?null:`Invalid hsla value [${[I,E,L,k].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 'h' must be between 0 and 360.`}(n,o,c,p);if(_)throw new Or(_);const b=`hsla(${n}, ${o}%, ${c}%, ${p})`,w=Cr.parse(b);if(!w)throw new Or(`Failed to parse HSLA color: ${b}`);return w}function s1(i,n){return i in n}function a1(i,n){const o=n[i];return o===void 0?null:o}function _c(i){return{type:i}}hi.register(r1,{error:[{kind:"error"},[wi],(i,[n])=>{throw new Or(n.evaluate(i))}],typeof:[wi,[pi],(i,[n])=>Ir(kr(n.evaluate(i)))],"to-rgba":[Yo(hn,4),[Is],(i,[n])=>n.evaluate(i).toArray()],rgb:[Is,[hn,hn,hn],o1],rgba:[Is,[hn,hn,hn,hn],o1],hsl:[Is,[hn,hn,hn],Nb],hsla:[Is,[hn,hn,hn,hn],Nb],has:{type:Ii,overloads:[[[wi],(i,[n])=>s1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>s1(n.evaluate(i),o.evaluate(i))]]},get:{type:pi,overloads:[[[wi],(i,[n])=>a1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>a1(n.evaluate(i),o.evaluate(i))]]},"feature-state":[pi,[wi],(i,[n])=>a1(n.evaluate(i),i.featureState||{})],properties:[Mu,[],i=>i.properties()],"geometry-type":[wi,[],i=>i.geometryType()],id:[pi,[],i=>i.id()],zoom:[hn,[],i=>i.globals.zoom],pitch:[hn,[],i=>i.globals.pitch||0],"distance-from-center":[hn,[],i=>i.distanceFromCenter()],"measure-light":[hn,[wi],(i,[n])=>i.measureLight(n.evaluate(i))],"heatmap-density":[hn,[],i=>i.globals.heatmapDensity||0],"line-progress":[hn,[],i=>i.globals.lineProgress||0],"raster-value":[hn,[],i=>i.globals.rasterValue||0],"raster-particle-speed":[hn,[],i=>i.globals.rasterParticleSpeed||0],"sky-radial-progress":[hn,[],i=>i.globals.skyRadialProgress||0],accumulated:[pi,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[hn,_c(hn),(i,n)=>{let o=0;for(const c of n)o+=c.evaluate(i);return o}],"*":[hn,_c(hn),(i,n)=>{let o=1;for(const c of n)o*=c.evaluate(i);return o}],"-":{type:hn,overloads:[[[hn,hn],(i,[n,o])=>n.evaluate(i)-o.evaluate(i)],[[hn],(i,[n])=>-n.evaluate(i)]]},"/":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)/o.evaluate(i)],"%":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)%o.evaluate(i)],ln2:[hn,[],()=>Math.LN2],pi:[hn,[],()=>Math.PI],e:[hn,[],()=>Math.E],"^":[hn,[hn,hn],(i,[n,o])=>Math.pow(n.evaluate(i),o.evaluate(i))],sqrt:[hn,[hn],(i,[n])=>Math.sqrt(n.evaluate(i))],log10:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN10],ln:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))],log2:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN2],sin:[hn,[hn],(i,[n])=>Math.sin(n.evaluate(i))],cos:[hn,[hn],(i,[n])=>Math.cos(n.evaluate(i))],tan:[hn,[hn],(i,[n])=>Math.tan(n.evaluate(i))],asin:[hn,[hn],(i,[n])=>Math.asin(n.evaluate(i))],acos:[hn,[hn],(i,[n])=>Math.acos(n.evaluate(i))],atan:[hn,[hn],(i,[n])=>Math.atan(n.evaluate(i))],min:[hn,_c(hn),(i,n)=>Math.min(...n.map(o=>o.evaluate(i)))],max:[hn,_c(hn),(i,n)=>Math.max(...n.map(o=>o.evaluate(i)))],abs:[hn,[hn],(i,[n])=>Math.abs(n.evaluate(i))],round:[hn,[hn],(i,[n])=>{const o=n.evaluate(i);return o<0?-Math.round(-o):Math.round(o)}],floor:[hn,[hn],(i,[n])=>Math.floor(n.evaluate(i))],ceil:[hn,[hn],(i,[n])=>Math.ceil(n.evaluate(i))],"filter-==":[Ii,[wi,pi],(i,[n,o])=>i.properties()[n.value]===o.value],"filter-id-==":[Ii,[pi],(i,[n])=>i.id()===n.value],"filter-type-==":[Ii,[wi],(i,[n])=>i.geometryType()===n.value],"filter-<":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<d}],"filter-id-<":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<c}],"filter->":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>d}],"filter-id->":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>c}],"filter-<=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<=d}],"filter-id-<=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<=c}],"filter->=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>=d}],"filter-id->=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>=c}],"filter-has":[Ii,[pi],(i,[n])=>n.value in i.properties()],"filter-has-id":[Ii,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ii,[Yo(wi)],(i,[n])=>n.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ii,[Yo(pi)],(i,[n])=>n.value.indexOf(i.id())>=0],"filter-in-small":[Ii,[wi,Yo(pi)],(i,[n,o])=>o.value.indexOf(i.properties()[n.value])>=0],"filter-in-large":[Ii,[wi,Yo(pi)],(i,[n,o])=>function(c,d,p,_){for(;p<=_;){const b=p+_>>1;if(d[b]===c)return!0;d[b]>c?_=b-1:p=b+1}return!1}(i.properties()[n.value],o.value,0,o.value.length-1)],all:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)&&o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(!o.evaluate(i))return!1;return!0}]]},any:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)||o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(o.evaluate(i))return!0;return!1}]]},"!":[Ii,[Ii],(i,[n])=>!n.evaluate(i)],"is-supported-script":[Ii,[wi],(i,[n])=>{const o=i.globals&&i.globals.isSupportedScript;return!o||o(n.evaluate(i))}],upcase:[wi,[wi],(i,[n])=>n.evaluate(i).toUpperCase()],downcase:[wi,[wi],(i,[n])=>n.evaluate(i).toLowerCase()],concat:[wi,_c(pi),(i,n)=>n.map(o=>Ts(o.evaluate(i))).join("")],"resolved-locale":[wi,[mp],(i,[n])=>n.evaluate(i).resolvedLocale()],random:[hn,[hn,hn,pi],(i,n)=>{const[o,c,d]=n.map(_=>_.evaluate(i));if(o>c||o===c)return o;let p;if(typeof d=="string")p=function(_){let b=0;if(_.length===0)return b;for(let w=0;w<_.length;w++)b=(b<<5)-b+_.charCodeAt(w),b|=0;return b}(d);else{if(typeof d!="number")throw new Or(`Invalid seed input: ${d}`);p=d}return o+Cb(p)()*(c-o)}]});var Uu=r1;function l1(i){return{result:"success",value:i}}function vc(i){return{result:"error",value:i}}function Lb(i,n){return!!i&&!!i.parameters&&i.parameters.indexOf(n)>-1}function Lp(i){return i["property-type"]==="data-driven"}function c1(i){return Lb(i.expression,"measure-light")}function zb(i){return Lb(i.expression,"zoom")}function u1(i){return!!i.expression&&i.expression.interpolated}function zp(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function kb(i){return i}function h1(i,n){const o=n.type==="color",c=i.stops&&typeof i.stops[0][0]=="object",d=c||!(c||i.property!==void 0),p=i.type||(u1(n)?"exponential":"interval");if(o&&((i=v0({},i)).stops&&(i.stops=i.stops.map(I=>[I[0],Cr.parse(I[1])])),i.default=Cr.parse(i.default?i.default:n.default)),i.colorSpace&&i.colorSpace!=="rgb"&&!G0[i.colorSpace])throw new Error(`Unknown color space: ${i.colorSpace}`);let _,b,w;if(p==="exponential")_=Ob;else if(p==="interval")_=cE;else if(p==="categorical"){_=lE,b=Object.create(null);for(const I of i.stops)b[I[0]]=I[1];w=typeof i.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);_=jb}if(c){const I={},E=[];for(let U=0;U<i.stops.length;U++){const F=i.stops[U],$=F[0].zoom;I[$]===void 0&&(I[$]={zoom:$,type:i.type,property:i.property,default:i.default,stops:[]},E.push($)),I[$].stops.push([F[0].value,F[1]])}const L=[];for(const U of E)L.push([I[U].zoom,h1(I[U],n)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:us.interpolationFactor.bind(void 0,k),zoomStops:L.map(U=>U[0]),evaluate:({zoom:U},F)=>Ob({stops:L,base:i.base},n,U).evaluate(U,F)}}if(d){const I=p==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:I,interpolationFactor:us.interpolationFactor.bind(void 0,I),zoomStops:i.stops.map(E=>E[0]),evaluate:({zoom:E})=>_(i,n,E,b,w)}}return{kind:"source",evaluate(I,E){const L=E&&E.properties?E.properties[i.property]:void 0;return L===void 0?nd(i.default,n.default):_(i,n,L,b,w)}}}function nd(i,n,o){return i!==void 0?i:n!==void 0?n:o!==void 0?o:void 0}function lE(i,n,o,c,d){return nd(typeof o===d?c[o]:void 0,i.default,n.default)}function cE(i,n,o){if(Su(o)!=="number")return nd(i.default,n.default);const c=i.stops.length;if(c===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[c-1][0])return i.stops[c-1][1];const d=yc(i.stops.map(p=>p[0]),o);return i.stops[d][1]}function Ob(i,n,o){const c=i.base!==void 0?i.base:1;if(Su(o)!=="number")return nd(i.default,n.default);const d=i.stops.length;if(d===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[d-1][0])return i.stops[d-1][1];const p=yc(i.stops.map(E=>E[0]),o),_=function(E,L,k,U){const F=U-k,$=E-k;return F===0?0:L===1?$/F:(Math.pow(L,$)-1)/(Math.pow(L,F)-1)}(o,c,i.stops[p][0],i.stops[p+1][0]),b=i.stops[p][1],w=i.stops[p+1][1];let I=pp[n.type]||kb;if(i.colorSpace&&i.colorSpace!=="rgb"){const E=G0[i.colorSpace];I=(L,k)=>E.reverse(E.interpolate(E.forward(L),E.forward(k),_))}return typeof b.evaluate=="function"?{evaluate(...E){const L=b.evaluate.apply(void 0,E),k=w.evaluate.apply(void 0,E);if(L!==void 0&&k!==void 0)return I(L,k,_)}}:I(b,w,_)}function jb(i,n,o){return n.type==="color"?o=Cr.parse(o):n.type==="formatted"?o=po.fromString(o.toString()):n.type==="resolvedImage"?o=Dn.fromString(o.toString()):Su(o)===n.type||n.type==="enum"&&n.values[o]||(o=void 0),nd(o,i.default,n.default)}class kp{constructor(n,o,c,d){this.expression=n,this._warningHistory={},this._evaluator=new pb(c,d),this._defaultValue=o?function(p){return p.type==="color"&&(zp(p.default)||Array.isArray(p.default))?new Cr(0,0,0,0):p.type==="color"?Cr.parse(p.default)||null:p.default===void 0?null:p.default}(o):null,this._enumValues=o&&o.type==="enum"?o.values:null}evaluateWithoutErrorHandling(n,o,c,d,p,_,b,w){return this._evaluator.globals=n,this._evaluator.feature=o,this._evaluator.featureState=c,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null,this.expression.evaluate(this._evaluator)}evaluate(n,o,c,d,p,_,b,w){this._evaluator.globals=n,this._evaluator.feature=o||null,this._evaluator.featureState=c||null,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_||null,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null;try{const I=this.expression.evaluate(this._evaluator);if(I==null||typeof I=="number"&&I!=I)return this._defaultValue;if(this._enumValues&&!(I in this._enumValues))throw new Or(`Expected value to be one of ${Object.keys(this._enumValues).map(E=>JSON.stringify(E)).join(", ")}, but found ${JSON.stringify(I)} instead.`);return I}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console<"u"&&console.warn(I.message)),this._defaultValue}}}function id(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in Uu}function Op(i,n,o,c){const d=new bb(Uu,[],n?function(_){const b={color:Is,string:wi,number:hn,enum:wi,boolean:Ii,formatted:wu,resolvedImage:Vh};return _.type==="array"?Yo(b[_.value]||pi,_.length):b[_.type]}(n):void 0,void 0,void 0,o,c),p=d.parse(i,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?l1(new kp(p,n,o,c)):vc(d.errors)}class d1{constructor(n,o,c){this.kind=n,this._styleExpression=o,this.isLightConstant=c,this.isStateDependent=n!=="constant"&&!Kh(o.expression),this.isConfigDependent=!Xh(o.expression)}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}}class rd{constructor(n,o,c,d,p){this.kind=n,this.zoomStops=c,this._styleExpression=o,this.isStateDependent=n!=="camera"&&!Kh(o.expression),this.isLightConstant=p,this.isConfigDependent=!Xh(o.expression),this.interpolationType=d}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}interpolationFactor(n,o,c){return this.interpolationType?us.interpolationFactor(this.interpolationType,n,o,c):0}}function jp(i,n,o,c){if((i=Op(i,n,o,c)).result==="error")return i;const d=i.value.expression,p=Nu(d);if(!p&&!Lp(n))return vc([new fa("","data expressions not supported")]);const _=mo(d,["zoom","pitch","distance-from-center"]);if(!_&&!zb(n))return vc([new fa("","zoom expressions not supported")]);const b=mo(d,["measure-light"]);if(!b&&!c1(n))return vc([new fa("","measure-light expression not supported")]);const w=n.expression&&n.expression.relaxZoomRestriction,I=sd(d);return I||_||w?I instanceof fa?vc([I]):I instanceof us&&!u1(n)?vc([new fa("",'"interpolate" expressions cannot be used with this property')]):l1(I?new rd(p?"camera":"composite",i.value,I.labels,I instanceof us?I.interpolation:void 0,b):new d1(p?"constant":"source",i.value,b)):vc([new fa("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class od{constructor(n,o){this._parameters=n,this._specification=o,v0(this,h1(this._parameters,this._specification))}static deserialize(n){return new od(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function sd(i){let n=null;if(i instanceof W0)n=sd(i.result);else if(i instanceof Z0){for(const o of i.args)if(n=sd(o),n)break}else(i instanceof Jh||i instanceof us)&&i.input instanceof hi&&i.input.name==="zoom"&&(n=i);return n instanceof fa||i.eachChild(o=>{const c=sd(o);c instanceof fa?n=c:n&&c&&n!==c&&(n=new fa("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}var uE=Ws,Zs=3;function Ws(i,n,o){var c=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var d=new Int32Array(this.arrayBuffer);i=d[0],this.d=(n=d[1])+2*(o=d[2]);for(var p=0;p<this.d*this.d;p++){var _=d[Zs+p],b=d[Zs+p+1];c.push(_===b?null:d.subarray(_,b))}var w=d[Zs+c.length+1];this.keys=d.subarray(d[Zs+c.length],w),this.bboxes=d.subarray(w),this.insert=this._insertReadonly}else{this.d=n+2*o;for(var I=0;I<this.d*this.d;I++)c.push([]);this.keys=[],this.bboxes=[]}this.n=n,this.extent=i,this.padding=o,this.scale=n/i,this.uid=0;var E=o/n*i;this.min=-E,this.max=i+E}Ws.prototype.insert=function(i,n,o,c,d){this._forEachCell(n,o,c,d,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(n),this.bboxes.push(o),this.bboxes.push(c),this.bboxes.push(d)},Ws.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ws.prototype._insertCell=function(i,n,o,c,d,p){this.cells[d].push(p)},Ws.prototype.query=function(i,n,o,c,d){var p=this.min,_=this.max;if(i<=p&&n<=p&&_<=o&&_<=c&&!d)return Array.prototype.slice.call(this.keys);var b=[];return this._forEachCell(i,n,o,c,this._queryCell,b,{},d),b},Ws.prototype._queryCell=function(i,n,o,c,d,p,_,b){var w=this.cells[d];if(w!==null)for(var I=this.keys,E=this.bboxes,L=0;L<w.length;L++){var k=w[L];if(_[k]===void 0){var U=4*k;(b?b(E[U+0],E[U+1],E[U+2],E[U+3]):i<=E[U+2]&&n<=E[U+3]&&o>=E[U+0]&&c>=E[U+1])?(_[k]=!0,p.push(I[k])):_[k]=!1}}},Ws.prototype._forEachCell=function(i,n,o,c,d,p,_,b){for(var w=this._convertToCellCoord(i),I=this._convertToCellCoord(n),E=this._convertToCellCoord(o),L=this._convertToCellCoord(c),k=w;k<=E;k++)for(var U=I;U<=L;U++){var F=this.d*U+k;if((!b||b(this._convertFromCellCoord(k),this._convertFromCellCoord(U),this._convertFromCellCoord(k+1),this._convertFromCellCoord(U+1)))&&d.call(this,i,n,o,c,F,p,_,b))return}},Ws.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},Ws.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},Ws.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,n=Zs+this.cells.length+1+1,o=0,c=0;c<this.cells.length;c++)o+=this.cells[c].length;var d=new Int32Array(n+o+this.keys.length+this.bboxes.length);d[0]=this.extent,d[1]=this.n,d[2]=this.padding;for(var p=n,_=0;_<i.length;_++){var b=i[_];d[Zs+_]=p,d.set(b,p),p+=b.length}return d[Zs+i.length]=p,d.set(this.keys,p),d[Zs+i.length+1]=p+=this.keys.length,d.set(this.bboxes,p),p+=this.bboxes.length,d.buffer};var ka=Y(uE);const ad={};function fn(i,n,o={}){Object.defineProperty(i,"_classRegistryKey",{value:n,writeable:!1}),ad[n]={klass:i,omit:o.omit||[]}}fn(Object,"Object"),ka.serialize=function(i,n){const o=i.toArrayBuffer();return n&&n.add(o),{buffer:o}},ka.deserialize=function(i){return new ka(i.buffer)},Object.defineProperty(ka,"name",{value:"Grid"}),fn(ka,"Grid"),fn(Cr,"Color"),fn(Error,"Error"),fn(po,"Formatted"),fn(Iu,"FormattedSection"),fn(Zn,"AJAXError"),fn(Dn,"ResolvedImage"),fn(od,"StylePropertyFunction"),fn(kp,"StyleExpression",{omit:["_evaluator"]}),fn(rd,"ZoomDependentExpression"),fn(d1,"ZoomConstantExpression"),fn(hi,"CompoundExpression",{omit:["_evaluate"]});for(const i in Uu)ad[Uu[i]._classRegistryKey]||fn(Uu[i],`Expression${i}`);function Rb(i){return i&&typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||i.constructor&&i.constructor.name==="ArrayBuffer")}function Rp(i){return self.ImageBitmap&&i instanceof ImageBitmap}function Sl(i,n){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp)return i;if(Rb(i)||Rp(i))return n&&n.add(i),i;if(ArrayBuffer.isView(i)){const o=i;return n&&n.add(o.buffer),o}if(i instanceof ImageData)return n&&n.add(i.data.buffer),i;if(Array.isArray(i)){const o=[];for(const c of i)o.push(Sl(c,n));return o}if(i instanceof Map){const o={$name:"Map"};for(const[c,d]of i.entries())o[c]=Sl(d);return o}if(typeof i=="object"){const o=i.constructor,c=o._classRegistryKey;if(!c)throw new Error(`can't serialize object of unregistered class ${c}`);const d=o.serialize?o.serialize(i,n):{};if(!o.serialize){for(const p in i)i.hasOwnProperty(p)&&(ad[c].omit.indexOf(p)>=0||(d[p]=Sl(i[p],n)));i instanceof Error&&(d.message=i.message)}if(d.$name)throw new Error("$name property is reserved for worker serialization logic.");return c!=="Object"&&(d.$name=c),d}throw new Error("can't serialize object of type "+typeof i)}function xc(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||Rb(i)||Rp(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(xc);if(typeof i=="object"){const n=i.$name||"Object";if(n==="Map"){const d=new Map;for(const p of Object.keys(i))p!=="$name"&&d.set(p,xc(i[p]));return d}const{klass:o}=ad[n];if(!o)throw new Error(`can't deserialize unregistered class ${n}`);if(o.deserialize)return o.deserialize(i);const c=Object.create(o.prototype);for(const d of Object.keys(i))d!=="$name"&&(c[d]=xc(i[d]));return c}throw new Error("can't deserialize object of type "+typeof i)}const _n={"Latin-1 Supplement":i=>i>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519,"CJK Unified Ideographs Extension B":i=>i>=131072&&i<=173791};function El(i){for(const n of i)if(f1(n.charCodeAt(0)))return!0;return!1}function hE(i){for(const n of i)if(!dE(n.charCodeAt(0)))return!1;return!0}function dE(i){return!(_n.Arabic(i)||_n["Arabic Supplement"](i)||_n["Arabic Extended-A"](i)||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i))}function f1(i){return!(i!==746&&i!==747&&(i<4352||!(_n["Bopomofo Extended"](i)||_n.Bopomofo(i)||_n["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||_n["CJK Compatibility Ideographs"](i)||_n["CJK Compatibility"](i)||_n["CJK Radicals Supplement"](i)||_n["CJK Strokes"](i)||!(!_n["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||_n["CJK Unified Ideographs Extension A"](i)||_n["CJK Unified Ideographs"](i)||_n["Enclosed CJK Letters and Months"](i)||_n["Hangul Compatibility Jamo"](i)||_n["Hangul Jamo Extended-A"](i)||_n["Hangul Jamo Extended-B"](i)||_n["Hangul Jamo"](i)||_n["Hangul Syllables"](i)||_n.Hiragana(i)||_n["Ideographic Description Characters"](i)||_n.Kanbun(i)||_n["Kangxi Radicals"](i)||_n["Katakana Phonetic Extensions"](i)||_n.Katakana(i)&&i!==12540||!(!_n["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!_n["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||_n["Unified Canadian Aboriginal Syllabics"](i)||_n["Unified Canadian Aboriginal Syllabics Extended"](i)||_n["Vertical Forms"](i)||_n["Yijing Hexagram Symbols"](i)||_n["Yi Syllables"](i)||_n["Yi Radicals"](i))))}function Pb(i){return!(f1(i)||function(n){return!!(_n["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||_n["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||_n["Letterlike Symbols"](n)||_n["Number Forms"](n)||_n["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||_n["Control Pictures"](n)&&n!==9251||_n["Optical Character Recognition"](n)||_n["Enclosed Alphanumerics"](n)||_n["Geometric Shapes"](n)||_n["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||_n["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||_n["CJK Symbols and Punctuation"](n)||_n.Katakana(n)||_n["Private Use Area"](n)||_n["CJK Compatibility Forms"](n)||_n["Small Form Variants"](n)||_n["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}(i))}function Ub(i){return i>=1424&&i<=2303||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i)}function Bb(i,n){return!(!n&&Ub(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||_n.Khmer(i))}function p1(i){for(const n of i)if(Ub(n.charCodeAt(0)))return!0;return!1}const m1="deferred",g1="loading",y1="loaded";let _1=null,Go="unavailable",Dl=null;const Fb=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(Go="error"),_1&&_1(i)};function v1(){x1.fire(new cc("pluginStateChange",{pluginStatus:Go,pluginURL:Dl}))}const x1=new xu,Al=function(){return Go},b1=function(){if(Go!==m1||!Dl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Go=g1,v1(),Dl&&It({url:Dl},i=>{i?Fb(i):(Go=y1,v1())})},hs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Go===y1||hs.applyArabicShaping!=null,isLoading:()=>Go===g1,setState(i){Go=i.pluginStatus,Dl=i.pluginURL},isParsed:()=>hs.applyArabicShaping!=null&&hs.processBidirectionalText!=null&&hs.processStyledBidirectionalText!=null,getPluginURL:()=>Dl};class rr{constructor(n,o){this.zoom=n,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.transition=o.transition,this.pitch=o.pitch,this.brightness=o.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(n){return function(o,c){for(const d of o)if(!Bb(d.charCodeAt(0),c))return!1;return!0}(n,hs.isLoaded())}}class Pp{constructor(n,o,c,d){this.property=n,this.value=o,this.expression=function(p,_,b,w){if(zp(p))return new od(p,_);if(id(p)||Array.isArray(p)&&p.length>0){const I=jp(p,_,b,w);if(I.result==="error")throw new Error(I.value.map(E=>`${E.key}: ${E.message}`).join(", "));return I.value}{let I=p;return typeof p=="string"&&_.type==="color"&&(I=Cr.parse(p)),{kind:"constant",isConfigDependent:!1,evaluate:()=>I}}}(o===void 0?n.specification.default:o,n.specification,c,d)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(n,o,c){return this.property.possiblyEvaluate(this,n,o,c)}}class M1{constructor(n,o,c){this.property=n,this.value=new Pp(n,void 0,o,c)}transitioned(n,o){return new w1(this.property,this.value,o,Te({},n.transition,this.transition),n.now)}untransitioned(){return new w1(this.property,this.value,null,{},0)}}class Oa{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultTransitionablePropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value.value)}setValue(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property,this._scope,this._options)),this._values[n].value=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].value.expression.isConfigDependent}setTransitionOrValue(n,o){o&&(this._options=o);const c=this._properties.properties;if(n)for(const d in n){const p=n[d];if(He(d,"-transition")){const _=d.slice(0,-11);c[_]&&this.setTransition(_,p)}else c[d]&&this.setValue(d,p)}}getTransition(n){return ut(this._values[n].transition)}setTransition(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property)),this._values[n].transition=ut(o)||void 0}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c);const d=this.getTransition(o);d!==void 0&&(n[`${o}-transition`]=d)}return n}transitioned(n,o){const c=new bc(this._properties);for(const d of Object.keys(this._values))c._values[d]=this._values[d].transitioned(n,o._values[d]);return c}untransitioned(){const n=new bc(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].untransitioned();return n}}class w1{constructor(n,o,c,d,p){const _=d.delay||0,b=d.duration||0;p=p||0,this.property=n,this.value=o,this.begin=p+_,this.end=this.begin+b,n.specification.transition&&(d.delay||d.duration)&&(this.prior=c)}possiblyEvaluate(n,o,c){const d=n.now||0,p=this.value.possiblyEvaluate(n,o,c),_=this.prior;if(_){if(d>this.end)return this.prior=null,p;if(this.value.isDataDriven())return this.prior=null,p;if(d<this.begin)return _.possiblyEvaluate(n,o,c);{const b=(d-this.begin)/(this.end-this.begin);return this.property.interpolate(_.possiblyEvaluate(n,o,c),p,Ee(b))}}return p}}class bc{constructor(n){this._properties=n,this._values=Object.create(n.defaultTransitioningPropertyValues)}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}hasTransition(){for(const n of Object.keys(this._values))if(this._values[n].prior)return!0;return!1}}class fE{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultPropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value)}setValue(n,o){this._values[n]=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].expression.isConfigDependent}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c)}return n}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}}class Bu{constructor(n,o,c){this.property=n,this.value=o,this.parameters=c}isConstant(){return this.value.kind==="constant"}constantOr(n){return this.value.kind==="constant"?this.value.value:n}evaluate(n,o,c,d){return this.property.evaluate(this.value,this.parameters,n,o,c,d)}}class ld{constructor(n){this._properties=n,this._values=Object.create(n.defaultPossiblyEvaluatedValues)}get(n){return this._values[n]}}class Wt{constructor(n){this.specification=n}possiblyEvaluate(n,o){return n.expression.evaluate(o)}interpolate(n,o,c){const d=pp[this.specification.type];return d?d(n,o,c):n}}class In{constructor(n,o){this.specification=n,this.overrides=o}possiblyEvaluate(n,o,c,d){return new Bu(this,n.expression.kind==="constant"||n.expression.kind==="camera"?{kind:"constant",value:n.expression.evaluate(o,null,{},c,d)}:n.expression,o)}interpolate(n,o,c){if(n.value.kind!=="constant"||o.value.kind!=="constant")return n;if(n.value.value===void 0||o.value.value===void 0)return new Bu(this,{kind:"constant",value:void 0},n.parameters);const d=pp[this.specification.type];return d?new Bu(this,{kind:"constant",value:d(n.value.value,o.value.value,c)},n.parameters):n}evaluate(n,o,c,d,p,_){return n.kind==="constant"?n.value:n.evaluate(o,c,d,p,_)}}class Mc{constructor(n){this.specification=n}possiblyEvaluate(n,o,c,d){return!!n.expression.evaluate(o,null,{},c,d)}interpolate(){return!1}}class or{constructor(n){this.properties=n,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const o=new rr(0,{});for(const c in n){const d=n[c];d.specification.overridable&&this.overridableProperties.push(c);const p=this.defaultPropertyValues[c]=new Pp(d,void 0),_=this.defaultTransitionablePropertyValues[c]=new M1(d);this.defaultTransitioningPropertyValues[c]=_.untransitioned(),this.defaultPossiblyEvaluatedValues[c]=p.possiblyEvaluate(o)}}}function cd(i){return i instanceof Number||i instanceof String||i instanceof Boolean?i.valueOf():i}function ud(i){if(Array.isArray(i))return i.map(ud);if(i instanceof Object&&!(i instanceof Number||i instanceof String||i instanceof Boolean)){const n={};for(const o in i)n[o]=ud(i[o]);return n}return cd(i)}fn(In,"DataDrivenProperty"),fn(Wt,"DataConstantProperty"),fn(Mc,"ColorRampProperty");var at=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function I1(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const n of i.slice(1))if(!I1(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function ds(i,n="fill"){if(i==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};I1(i)||(i=hd(i));const o=i;let c=!0;try{c=function(I){if(!Fu(I))return I;let E=ud(I);return T1(E),E=Vb(E),E}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
82
+ hot module replacement.`;console.warn(t)}}function WJ(e){Bf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&ZJ(e.key),Ch.set(e.key,e);const t=e.set==null?new Ff.RecoilValueReadOnly(e.key):new Ff.RecoilState(e.key);return Z5.set(e.key,t),t}class ik extends Error{}function qJ(e){const t=Ch.get(e);if(t==null)throw new ik(`Missing definition for RecoilValue: "${e}""`);return t}function KJ(e){return Ch.get(e)}const Vv=new Map;function XJ(e){var t;if(!vr("recoil_memory_managament_2020"))return;const r=Ch.get(e);if(r!=null&&(t=r.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(r)){var s;Ch.delete(e),(s=rk(e))===null||s===void 0||s(),Vv.delete(e)}}function JJ(e,t){vr("recoil_memory_managament_2020")&&(t===void 0?Vv.delete(e):Vv.set(e,t))}function rk(e){return Vv.get(e)}var vs={nodes:Ch,recoilValues:Z5,registerNode:WJ,getNode:qJ,getNodeMaybe:KJ,deleteNodeConfigIfPossible:XJ,setConfigDeletionHandler:JJ,getConfigDeletionHandler:rk,recoilValuesForKeys:GJ,NodeMissingError:ik,DefaultValue:nk,DEFAULT_VALUE:YJ};function eee(e,t){t()}var tee={enqueueExecution:eee};function nee(e,t){return t={exports:{}},e(t,t.exports),t.exports}var iee=nee(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},r={},s=5,u=Math.pow(2,s),f=u-1,m=u/2,a=u/4,v={},S=function(Pe){return function(){return Pe}},D=r.hash=function(Fe){var Pe=typeof Fe>"u"?"undefined":t(Fe);if(Pe==="number")return Fe;Pe!=="string"&&(Fe+="");for(var St=0,Xt=0,Dt=Fe.length;Xt<Dt;++Xt){var kt=Fe.charCodeAt(Xt);St=(St<<5)-St+kt|0}return St},N=function(Pe){return Pe-=Pe>>1&1431655765,Pe=(Pe&858993459)+(Pe>>2&858993459),Pe=Pe+(Pe>>4)&252645135,Pe+=Pe>>8,Pe+=Pe>>16,Pe&127},C=function(Pe,St){return St>>>Pe&f},O=function(Pe){return 1<<Pe},R=function(Pe,St){return N(Pe&St-1)},V=function(Pe,St,Xt,Dt){var kt=Dt;if(!Pe){var Ft=Dt.length;kt=new Array(Ft);for(var Vt=0;Vt<Ft;++Vt)kt[Vt]=Dt[Vt]}return kt[St]=Xt,kt},q=function(Pe,St,Xt){var Dt=Xt.length-1,kt=0,Ft=0,Vt=Xt;if(Pe)kt=Ft=St;else for(Vt=new Array(Dt);kt<St;)Vt[Ft++]=Xt[kt++];for(++kt;kt<=Dt;)Vt[Ft++]=Xt[kt++];return Pe&&(Vt.length=Dt),Vt},H=function(Pe,St,Xt,Dt){var kt=Dt.length;if(Pe){for(var Ft=kt;Ft>=St;)Dt[Ft--]=Dt[Ft];return Dt[St]=Xt,Dt}for(var Vt=0,tn=0,Sn=new Array(kt+1);Vt<St;)Sn[tn++]=Dt[Vt++];for(Sn[St]=Xt;Vt<kt;)Sn[++tn]=Dt[Vt++];return Sn},Y=1,W=2,ee=3,fe=4,pe={__hamt_isEmpty:!0},he=function(Pe){return Pe===pe||Pe&&Pe.__hamt_isEmpty},oe=function(Pe,St,Xt,Dt){return{type:Y,edit:Pe,hash:St,key:Xt,value:Dt,_modify:Ye}},Ve=function(Pe,St,Xt){return{type:W,edit:Pe,hash:St,children:Xt,_modify:qe}},De=function(Pe,St,Xt){return{type:ee,edit:Pe,mask:St,children:Xt,_modify:Ie}},Ae=function(Pe,St,Xt){return{type:fe,edit:Pe,size:St,children:Xt,_modify:Te}},Ge=function(Pe){return Pe===pe||Pe.type===Y||Pe.type===W},it=function(Pe,St,Xt,Dt,kt){for(var Ft=[],Vt=Dt,tn=0,Sn=0;Vt;++Sn)Vt&1&&(Ft[Sn]=kt[tn++]),Vt>>>=1;return Ft[St]=Xt,Ae(Pe,tn+1,Ft)},Ee=function(Pe,St,Xt,Dt){for(var kt=new Array(St-1),Ft=0,Vt=0,tn=0,Sn=Dt.length;tn<Sn;++tn)if(tn!==Xt){var Xn=Dt[tn];Xn&&!he(Xn)&&(kt[Ft++]=Xn,Vt|=1<<tn)}return De(Pe,Vt,kt)},Ze=function Fe(Pe,St,Xt,Dt,kt,Ft){if(Xt===kt)return Ve(Pe,Xt,[Ft,Dt]);var Vt=C(St,Xt),tn=C(St,kt);return De(Pe,O(Vt)|O(tn),Vt===tn?[Fe(Pe,St+s,Xt,Dt,kt,Ft)]:Vt<tn?[Dt,Ft]:[Ft,Dt])},ze=function(Pe,St,Xt,Dt,kt,Ft,Vt,tn){for(var Sn=kt.length,Xn=0;Xn<Sn;++Xn){var ai=kt[Xn];if(Xt(Vt,ai.key)){var Ei=ai.value,Wi=Ft(Ei);return Wi===Ei?kt:Wi===v?(--tn.value,q(Pe,Xn,kt)):V(Pe,Xn,oe(St,Dt,Vt,Wi),kt)}}var qi=Ft();return qi===v?kt:(++tn.value,V(Pe,Sn,oe(St,Dt,Vt,qi),kt))},Le=function(Pe,St){return Pe===St.edit},Ye=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(St(Ft,this.key)){var tn=Dt(this.value);return tn===this.value?this:tn===v?(--Vt.value,pe):Le(Pe,this)?(this.value=tn,this):oe(Pe,kt,Ft,tn)}var Sn=Dt();return Sn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Sn)))},qe=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(kt===this.hash){var tn=Le(Pe,this),Sn=ze(tn,Pe,St,this.hash,this.children,Dt,Ft,Vt);return Sn===this.children?this:Sn.length>1?Ve(Pe,this.hash,Sn):Sn[0]}var Xn=Dt();return Xn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Xn)))},Ie=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.mask,Sn=this.children,Xn=C(Xt,kt),ai=O(Xn),Ei=R(tn,ai),Wi=tn&ai,qi=Wi?Sn[Ei]:pe,Zn=qi._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(qi===Zn)return this;var Ki=Le(Pe,this),Mt=tn,It=void 0;if(Wi&&he(Zn)){if(Mt&=~ai,!Mt)return pe;if(Sn.length<=2&&Ge(Sn[Ei^1]))return Sn[Ei^1];It=q(Ki,Ei,Sn)}else if(!Wi&&!he(Zn)){if(Sn.length>=m)return it(Pe,Xn,Zn,tn,Sn);Mt|=ai,It=H(Ki,Ei,Zn,Sn)}else It=V(Ki,Ei,Zn,Sn);return Ki?(this.mask=Mt,this.children=It,this):De(Pe,Mt,It)},Te=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.size,Sn=this.children,Xn=C(Xt,kt),ai=Sn[Xn],Ei=(ai||pe)._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(ai===Ei)return this;var Wi=Le(Pe,this),qi=void 0;if(he(ai)&&!he(Ei))++tn,qi=V(Wi,Xn,Ei,Sn);else if(!he(ai)&&he(Ei)){if(--tn,tn<=a)return Ee(Pe,tn,Xn,Sn);qi=V(Wi,Xn,pe,Sn)}else qi=V(Wi,Xn,Ei,Sn);return Wi?(this.size=tn,this.children=qi,this):Ae(Pe,tn,qi)};pe._modify=function(Fe,Pe,St,Xt,Dt,kt,Ft){var Vt=Xt();return Vt===v?pe:(++Ft.value,oe(Fe,Dt,kt,Vt))};function le(Fe,Pe,St,Xt,Dt){this._editable=Fe,this._edit=Pe,this._config=St,this._root=Xt,this._size=Dt}le.prototype.setTree=function(Fe,Pe){return this._editable?(this._root=Fe,this._size=Pe,this):Fe===this._root?this:new le(this._editable,this._edit,this._config,Fe,Pe)};var X=r.tryGetHash=function(Fe,Pe,St,Xt){for(var Dt=Xt._root,kt=0,Ft=Xt._config.keyEq;;)switch(Dt.type){case Y:return Ft(St,Dt.key)?Dt.value:Fe;case W:{if(Pe===Dt.hash)for(var Vt=Dt.children,tn=0,Sn=Vt.length;tn<Sn;++tn){var Xn=Vt[tn];if(Ft(St,Xn.key))return Xn.value}return Fe}case ee:{var ai=C(kt,Pe),Ei=O(ai);if(Dt.mask&Ei){Dt=Dt.children[R(Dt.mask,Ei)],kt+=s;break}return Fe}case fe:{if(Dt=Dt.children[C(kt,Pe)],Dt){kt+=s;break}return Fe}default:return Fe}};le.prototype.tryGetHash=function(Fe,Pe,St){return X(Fe,Pe,St,this)};var ie=r.tryGet=function(Fe,Pe,St){return X(Fe,St._config.hash(Pe),Pe,St)};le.prototype.tryGet=function(Fe,Pe){return ie(Fe,Pe,this)};var Me=r.getHash=function(Fe,Pe,St){return X(void 0,Fe,Pe,St)};le.prototype.getHash=function(Fe,Pe){return Me(Fe,Pe,this)},r.get=function(Fe,Pe){return X(void 0,Pe._config.hash(Fe),Fe,Pe)},le.prototype.get=function(Fe,Pe){return ie(Pe,Fe,this)};var xe=r.has=function(Fe,Pe,St){return X(v,Fe,Pe,St)!==v};le.prototype.hasHash=function(Fe,Pe){return xe(Fe,Pe,this)};var $e=r.has=function(Fe,Pe){return xe(Pe._config.hash(Fe),Fe,Pe)};le.prototype.has=function(Fe){return $e(Fe,this)};var He=function(Pe,St){return Pe===St};r.make=function(Fe){return new le(0,0,{keyEq:Fe&&Fe.keyEq||He,hash:Fe&&Fe.hash||D},pe,0)},r.empty=r.make();var Ue=r.isEmpty=function(Fe){return Fe&&!!he(Fe._root)};le.prototype.isEmpty=function(){return Ue(this)};var Xe=r.modifyHash=function(Fe,Pe,St,Xt){var Dt={value:Xt._size},kt=Xt._root._modify(Xt._editable?Xt._edit:NaN,Xt._config.keyEq,0,Fe,Pe,St,Dt);return Xt.setTree(kt,Dt.value)};le.prototype.modifyHash=function(Fe,Pe,St){return Xe(St,Fe,Pe,this)};var ut=r.modify=function(Fe,Pe,St){return Xe(Fe,St._config.hash(Pe),Pe,St)};le.prototype.modify=function(Fe,Pe){return ut(Pe,Fe,this)};var _t=r.setHash=function(Fe,Pe,St,Xt){return Xe(S(St),Fe,Pe,Xt)};le.prototype.setHash=function(Fe,Pe,St){return _t(Fe,Pe,St,this)};var et=r.set=function(Fe,Pe,St){return _t(St._config.hash(Fe),Fe,Pe,St)};le.prototype.set=function(Fe,Pe){return et(Fe,Pe,this)};var bt=S(v),Ot=r.removeHash=function(Fe,Pe,St){return Xe(bt,Fe,Pe,St)};le.prototype.removeHash=le.prototype.deleteHash=function(Fe,Pe){return Ot(Fe,Pe,this)};var Rt=r.remove=function(Fe,Pe){return Ot(Pe._config.hash(Fe),Fe,Pe)};le.prototype.remove=le.prototype.delete=function(Fe){return Rt(Fe,this)};var dn=r.beginMutation=function(Fe){return new le(Fe._editable+1,Fe._edit+1,Fe._config,Fe._root,Fe._size)};le.prototype.beginMutation=function(){return dn(this)};var Bn=r.endMutation=function(Fe){return Fe._editable=Fe._editable&&Fe._editable-1,Fe};le.prototype.endMutation=function(){return Bn(this)};var Tt=r.mutate=function(Fe,Pe){var St=dn(Pe);return Fe(St),Bn(St)};le.prototype.mutate=function(Fe){return Tt(Fe,this)};var kn=function(Pe){return Pe&&An(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4])},An=function(Pe,St,Xt,Dt,kt){for(;Xt<Pe;){var Ft=St[Xt++];if(Ft&&!he(Ft))return Cn(Ft,Dt,[Pe,St,Xt,Dt,kt])}return kn(kt)},Cn=function(Pe,St,Xt){switch(Pe.type){case Y:return{value:St(Pe),rest:Xt};case W:case fe:case ee:var Dt=Pe.children;return An(Dt.length,Dt,0,St,Xt);default:return kn(Xt)}},$n={done:!0};function ni(Fe){this.v=Fe}ni.prototype.next=function(){if(!this.v)return $n;var Fe=this.v;return this.v=kn(Fe.rest),Fe},ni.prototype[Symbol.iterator]=function(){return this};var st=function(Pe,St){return new ni(Cn(Pe._root,St))},se=function(Pe){return[Pe.key,Pe.value]},ce=r.entries=function(Fe){return st(Fe,se)};le.prototype.entries=le.prototype[Symbol.iterator]=function(){return ce(this)};var Ne=function(Pe){return Pe.key},ht=r.keys=function(Fe){return st(Fe,Ne)};le.prototype.keys=function(){return ht(this)};var vt=function(Pe){return Pe.value},pt=r.values=le.prototype.values=function(Fe){return st(Fe,vt)};le.prototype.values=function(){return pt(this)};var Ct=r.fold=function(Fe,Pe,St){var Xt=St._root;if(Xt.type===Y)return Fe(Pe,Xt.value,Xt.key);for(var Dt=[Xt.children],kt=void 0;kt=Dt.pop();)for(var Ft=0,Vt=kt.length;Ft<Vt;){var tn=kt[Ft++];tn&&tn.type&&(tn.type===Y?Pe=Fe(Pe,tn.value,tn.key):Dt.push(tn.children))}return Pe};le.prototype.fold=function(Fe,Pe){return Ct(Fe,Pe,this)};var mt=r.forEach=function(Fe,Pe){return Ct(function(St,Xt,Dt){return Fe(Xt,Dt,Pe)},null,Pe)};le.prototype.forEach=function(Fe){return mt(Fe,this)};var an=r.count=function(Fe){return Fe._size};le.prototype.count=function(){return an(this)},Object.defineProperty(le.prototype,"size",{get:le.prototype.count}),e.exports?e.exports=r:(void 0).hamt=r});class ree{constructor(t){Ai(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,r){return this._map.set(t,r),this}delete(t){return this._map.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._map)}}class W5{constructor(t){if(Ai(this,"_hamt",iee.empty.beginMutation()),t instanceof W5){const r=t._hamt.endMutation();t._hamt=r.beginMutation(),this._hamt=r.beginMutation()}else if(t)for(const[r,s]of t.entries())this._hamt.set(r,s)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,r){return this._hamt.set(t,r),this}delete(t){return this._hamt.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._hamt)}}function q5(e){return vr("recoil_hamt_2020")?new W5(e):new ree(e)}var oee={persistentMap:q5},see=oee.persistentMap,aee=Object.freeze({__proto__:null,persistentMap:see});function lee(e,...t){const r=new Set;e:for(const s of e){for(const u of t)if(u.has(s))continue e;r.add(s)}return r}var zg=lee;function cee(e,t){const r=new Map;return e.forEach((s,u)=>{r.set(u,t(s,u))}),r}var $v=cee;function uee(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function hee(e){return{nodeDeps:$v(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:$v(e.nodeToNodeSubscriptions,t=>new Set(t))}}function K5(e,t,r,s){const{nodeDeps:u,nodeToNodeSubscriptions:f}=r,m=u.get(e);if(m&&s&&m!==s.nodeDeps.get(e))return;u.set(e,t);const a=m==null?t:zg(t,m);for(const v of a)f.has(v)||f.set(v,new Set),zr(f.get(v)).add(e);if(m){const v=zg(m,t);for(const S of v){if(!f.has(S))return;const D=zr(f.get(S));D.delete(e),D.size===0&&f.delete(S)}}}function dee(e,t,r,s){var u,f,m,a;const v=r.getState();s===v.currentTree.version||s===((u=v.nextTree)===null||u===void 0?void 0:u.version)||((f=v.previousTree)===null||f===void 0||f.version);const S=r.getGraph(s);if(K5(e,t,S),s===((m=v.previousTree)===null||m===void 0?void 0:m.version)){const N=r.getGraph(v.currentTree.version);K5(e,t,N,S)}if(s===((a=v.previousTree)===null||a===void 0?void 0:a.version)||s===v.currentTree.version){var D;const N=(D=v.nextTree)===null||D===void 0?void 0:D.version;if(N!==void 0){const C=r.getGraph(N);K5(e,t,C,S)}}}var kg={cloneGraph:hee,graph:uee,saveDepsToStore:dee};let fee=0;const pee=()=>fee++;let mee=0;const gee=()=>mee++;let yee=0;var Qv={getNextTreeStateVersion:pee,getNextStoreID:gee,getNextComponentID:()=>yee++};const{persistentMap:ok}=aee,{graph:_ee}=kg,{getNextTreeStateVersion:sk}=Qv;function ak(){const e=sk();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ok(),nonvalidatedAtoms:ok()}}function vee(){const e=ak();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,_ee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var lk={makeEmptyTreeState:ak,makeEmptyStoreState:vee,getNextTreeStateVersion:sk};class ck{}function xee(){return new ck}var Hv={RetentionZone:ck,retentionZone:xee};function bee(e,t){const r=new Set(e);return r.add(t),r}function Mee(e,t){const r=new Set(e);return r.delete(t),r}function wee(e,t,r){const s=new Map(e);return s.set(t,r),s}function Iee(e,t,r){const s=new Map(e);return s.set(t,r(s.get(t))),s}function Tee(e,t){const r=new Map(e);return r.delete(t),r}function See(e,t){const r=new Map(e);return t.forEach(s=>r.delete(s)),r}var uk={setByAddingToSet:bee,setByDeletingFromSet:Mee,mapBySettingInMap:wee,mapByUpdatingInMap:Iee,mapByDeletingFromMap:Tee,mapByDeletingMultipleFromMap:See};function*Eee(e,t){let r=0;for(const s of e)t(s,r++)&&(yield s)}var X5=Eee;function Dee(e,t){return new Proxy(e,{get:(s,u)=>(!(u in s)&&u in t&&(s[u]=t[u]()),s[u]),ownKeys:s=>Object.keys(s)})}var hk=Dee;const{getNode:Og,getNodeMaybe:Aee,recoilValuesForKeys:dk}=vs,{RetentionZone:fk}=Hv,{setByAddingToSet:Cee}=uk,Nee=Object.freeze(new Set);class Lee extends Error{}function zee(e,t,r){if(!vr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:s}=e.getState().retention;function u(f){let m=s.get(f);m||s.set(f,m=new Set),m.add(t)}if(r instanceof fk)u(r);else if(Array.isArray(r))for(const f of r)u(f);return()=>{if(!vr("recoil_memory_managament_2020"))return;const{retention:f}=e.getState();function m(a){const v=f.nodesRetainedByZone.get(a);v==null||v.delete(t),v&&v.size===0&&f.nodesRetainedByZone.delete(a)}if(r instanceof fk)m(r);else if(Array.isArray(r))for(const a of r)m(a)}}function J5(e,t,r,s){const u=e.getState();if(u.nodeCleanupFunctions.has(r))return;const f=Og(r),m=zee(e,r,f.retainedBy),a=f.init(e,t,s);u.nodeCleanupFunctions.set(r,()=>{a(),m()})}function kee(e,t,r){J5(e,e.getState().currentTree,t,r)}function Oee(e,t){var r;const s=e.getState();(r=s.nodeCleanupFunctions.get(t))===null||r===void 0||r(),s.nodeCleanupFunctions.delete(t)}function jee(e,t,r){return J5(e,t,r,"get"),Og(r).get(e,t)}function pk(e,t,r){return Og(r).peek(e,t)}function Ree(e,t,r){var s;const u=Aee(t);return u==null||(s=u.invalidate)===null||s===void 0||s.call(u,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,r),dirtyAtoms:Cee(e.dirtyAtoms,t)}}function Pee(e,t,r,s){const u=Og(r);if(u.set==null)throw new Lee(`Attempt to set read-only RecoilValue: ${r}`);const f=u.set;return J5(e,t,r,"set"),f(e,t,s)}function Uee(e,t,r){const s=e.getState(),u=e.getGraph(t.version),f=Og(r).nodeType;return hk({type:f},{loadable:()=>pk(e,t,r),isActive:()=>s.knownAtoms.has(r)||s.knownSelectors.has(r),isSet:()=>f==="selector"?!1:t.atomValues.has(r),isModified:()=>t.dirtyAtoms.has(r),deps:()=>{var m;return dk((m=u.nodeDeps.get(r))!==null&&m!==void 0?m:[])},subscribers:()=>{var m,a;return{nodes:dk(X5(mk(e,t,new Set([r])),v=>v!==r)),components:Fv((m=(a=s.nodeToComponentSubscriptions.get(r))===null||a===void 0?void 0:a.values())!==null&&m!==void 0?m:[],([v])=>({name:v}))}}})}function mk(e,t,r){const s=new Set,u=Array.from(r),f=e.getGraph(t.version);for(let a=u.pop();a;a=u.pop()){var m;s.add(a);const v=(m=f.nodeToNodeSubscriptions.get(a))!==null&&m!==void 0?m:Nee;for(const S of v)s.has(S)||u.push(S)}return s}var du={getNodeLoadable:jee,peekNodeLoadable:pk,setNodeValue:Pee,initializeNode:kee,cleanUpNode:Oee,setUnvalidatedAtomValue_DEPRECATED:Ree,peekNodeInfo:Uee,getDownstreamNodes:mk};let gk=null;function Bee(e){gk=e}function Fee(){var e;(e=gk)===null||e===void 0||e()}var yk={setInvalidateMemoizedSnapshot:Bee,invalidateMemoizedSnapshot:Fee};const{getDownstreamNodes:Vee,getNodeLoadable:_k,setNodeValue:$ee}=du,{getNextComponentID:Qee}=Qv,{getNode:Hee,getNodeMaybe:vk}=vs,{DefaultValue:eI}=vs,{reactMode:Yee}=Lg,{AbstractRecoilValue:Gee,RecoilState:Zee,RecoilValueReadOnly:Wee,isRecoilValue:qee}=Ff,{invalidateMemoizedSnapshot:Kee}=yk;function Xee(e,{key:t},r=e.getState().currentTree){var s,u;const f=e.getState();r.version===f.currentTree.version||r.version===((s=f.nextTree)===null||s===void 0?void 0:s.version)||(r.version,(u=f.previousTree)===null||u===void 0||u.version);const m=_k(e,r,t);return m.state==="loading"&&m.contents.catch(()=>{}),m}function Jee(e,t){const r=e.clone();return t.forEach((s,u)=>{s.state==="hasValue"&&s.contents instanceof eI?r.delete(u):r.set(u,s)}),r}function ete(e,t,{key:r},s){if(typeof s=="function"){const u=_k(e,t,r);if(u.state==="loading"){const f=`Tried to set atom or selector "${r}" using an updater function while the current state is pending, this is not currently supported.`;throw Li(f)}else if(u.state==="hasError")throw u.contents;return s(u.contents)}else return s}function tte(e,t,r){if(r.type==="set"){const{recoilValue:u,valueOrUpdater:f}=r,m=ete(e,t,u,f),a=$ee(e,t,u.key,m);for(const[v,S]of a.entries())tI(t,v,S)}else if(r.type==="setLoadable"){const{recoilValue:{key:u},loadable:f}=r;tI(t,u,f)}else if(r.type==="markModified"){const{recoilValue:{key:u}}=r;t.dirtyAtoms.add(u)}else if(r.type==="setUnvalidated"){var s;const{recoilValue:{key:u},unvalidatedValue:f}=r,m=vk(u);m==null||(s=m.invalidate)===null||s===void 0||s.call(m,t),t.atomValues.delete(u),t.nonvalidatedAtoms.set(u,f),t.dirtyAtoms.add(u)}else $5(`Unknown action ${r.type}`)}function tI(e,t,r){r.state==="hasValue"&&r.contents instanceof eI?e.atomValues.delete(t):e.atomValues.set(t,r),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function xk(e,t){e.replaceState(r=>{const s=bk(r);for(const u of t)tte(e,s,u);return Mk(e,s),Kee(),s})}function Yv(e,t){if(jg.length){const r=jg[jg.length-1];let s=r.get(e);s||r.set(e,s=[]),s.push(t)}else xk(e,[t])}const jg=[];function nte(){const e=new Map;return jg.push(e),()=>{for(const[t,r]of e)xk(t,r);jg.pop()}}function bk(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Mk(e,t){const r=Vee(e,t,t.dirtyAtoms);for(const f of r){var s,u;(s=vk(f))===null||s===void 0||(u=s.invalidate)===null||u===void 0||u.call(s,t)}}function wk(e,t,r){Yv(e,{type:"set",recoilValue:t,valueOrUpdater:r})}function ite(e,t,r){if(r instanceof eI)return wk(e,t,r);Yv(e,{type:"setLoadable",recoilValue:t,loadable:r})}function rte(e,t){Yv(e,{type:"markModified",recoilValue:t})}function ote(e,t,r){Yv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:r})}function ste(e,{key:t},r,s=null){const u=Qee(),f=e.getState();f.nodeToComponentSubscriptions.has(t)||f.nodeToComponentSubscriptions.set(t,new Map),zr(f.nodeToComponentSubscriptions.get(t)).set(u,[s??"<not captured>",r]);const m=Yee();if(m.early&&(m.mode==="LEGACY"||m.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&r(a)}return{release:()=>{const a=e.getState(),v=a.nodeToComponentSubscriptions.get(t);v===void 0||!v.has(u)||(v.delete(u),v.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function ate(e,t){var r;const{currentTree:s}=e.getState(),u=Hee(t.key);(r=u.clearCache)===null||r===void 0||r.call(u,e,s)}var al={RecoilValueReadOnly:Wee,AbstractRecoilValue:Gee,RecoilState:Zee,getRecoilValueAsLoadable:Xee,setRecoilValue:wk,setRecoilValueLoadable:ite,markRecoilValueModified:rte,setUnvalidatedRecoilValue:ote,subscribeToRecoilValue:ste,isRecoilValue:qee,applyAtomValueWrites:Jee,batchStart:nte,writeLoadableToTreeState:tI,invalidateDownstreams:Mk,copyTreeState:bk,refreshRecoilValue:ate};function lte(e,t,r){const s=e.entries();let u=s.next();for(;!u.done;){const f=u.value;if(t.call(r,f[1],f[0],e))return!0;u=s.next()}return!1}var cte=lte;const{cleanUpNode:ute}=du,{deleteNodeConfigIfPossible:hte,getNode:Ik}=vs,{RetentionZone:Tk}=Hv,dte=12e4,Sk=new Set;function Ek(e,t){const r=e.getState(),s=r.currentTree;if(r.nextTree)return;const u=new Set;for(const m of t)if(m instanceof Tk)for(const a of gte(r,m))u.add(a);else u.add(m);const f=fte(e,u);for(const m of f)mte(e,s,m)}function fte(e,t){const r=e.getState(),s=r.currentTree,u=e.getGraph(s.version),f=new Set,m=new Set;return a(t),f;function a(v){const S=new Set,D=pte(e,s,v,f,m);for(const R of D){var N;if(Ik(R).retainedBy==="recoilRoot"){m.add(R);continue}if(((N=r.retention.referenceCounts.get(R))!==null&&N!==void 0?N:0)>0){m.add(R);continue}if(Dk(R).some(q=>r.retention.referenceCounts.get(q))){m.add(R);continue}const V=u.nodeToNodeSubscriptions.get(R);if(V&&cte(V,q=>m.has(q))){m.add(R);continue}f.add(R),S.add(R)}const C=new Set;for(const R of S)for(const V of(O=u.nodeDeps.get(R))!==null&&O!==void 0?O:Sk){var O;f.has(V)||C.add(V)}C.size&&a(C)}}function pte(e,t,r,s,u){const f=e.getGraph(t.version),m=[],a=new Set;for(;r.size>0;)v(zr(r.values().next().value));return m;function v(S){if(s.has(S)||u.has(S)){r.delete(S);return}if(a.has(S))return;const D=f.nodeToNodeSubscriptions.get(S);if(D)for(const N of D)v(N);a.add(S),r.delete(S),m.push(S)}}function mte(e,t,r){if(!vr("recoil_memory_managament_2020"))return;ute(e,r);const s=e.getState();s.knownAtoms.delete(r),s.knownSelectors.delete(r),s.nodeTransactionSubscriptions.delete(r),s.retention.referenceCounts.delete(r);const u=Dk(r);for(const v of u){var f;(f=s.retention.nodesRetainedByZone.get(v))===null||f===void 0||f.delete(r)}t.atomValues.delete(r),t.dirtyAtoms.delete(r),t.nonvalidatedAtoms.delete(r);const m=s.graphsByVersion.get(t.version);if(m){const v=m.nodeDeps.get(r);if(v!==void 0){m.nodeDeps.delete(r);for(const S of v){var a;(a=m.nodeToNodeSubscriptions.get(S))===null||a===void 0||a.delete(r)}}m.nodeToNodeSubscriptions.delete(r)}hte(r)}function gte(e,t){var r;return(r=e.retention.nodesRetainedByZone.get(t))!==null&&r!==void 0?r:Sk}function Dk(e){const t=Ik(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Tk?[t]:t}function yte(e,t){const r=e.getState();r.nextTree?r.retention.retainablesToCheckForRelease.add(t):Ek(e,new Set([t]))}function _te(e,t,r){var s;if(!vr("recoil_memory_managament_2020"))return;const u=e.getState().retention.referenceCounts,f=((s=u.get(t))!==null&&s!==void 0?s:0)+r;f===0?Ak(e,t):u.set(t,f)}function Ak(e,t){if(!vr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),yte(e,t)}function vte(e){if(!vr("recoil_memory_managament_2020"))return;const t=e.getState();Ek(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function xte(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:dte,updateRetainCount:_te,updateRetainCountToZero:Ak,releaseScheduledRetainablesNow:vte,retainedByOptionWithDefault:xte};const{unstable_batchedUpdates:bte}=og;var Mte={unstable_batchedUpdates:bte};const{unstable_batchedUpdates:wte}=Mte;var Ite={unstable_batchedUpdates:wte};const{batchStart:Tte}=al,{unstable_batchedUpdates:Ste}=Ite;let nI=Ste||(e=>e());var Gv={getBatcher:()=>nI,setBatcher:e=>{nI=e},batchUpdates:e=>{nI(()=>{let t=()=>{};try{t=Tte(),e()}finally{t()}})}};function*Ete(e){for(const t of e)for(const r of t)yield r}var Ck=Ete;const Nk=typeof Window>"u"||typeof window>"u",Dte=e=>!Nk&&(e===window||e instanceof Window),Ate=typeof navigator<"u"&&navigator.product==="ReactNative";var Zv={isSSR:Nk,isReactNative:Ate,isWindow:Dte};function Cte(e,t){let r;return(...s)=>{r||(r={});const u=t(...s);return Object.hasOwnProperty.call(r,u)||(r[u]=e(...s)),r[u]}}function Nte(e,t){let r,s;return(...u)=>{const f=t(...u);return r===f||(r=f,s=e(...u)),s}}function Lte(e,t){let r,s;return[(...m)=>{const a=t(...m);return r===a||(r=a,s=e(...m)),s},()=>{r=null}]}var zte={memoizeWithArgsHash:Cte,memoizeOneWithArgsHash:Nte,memoizeOneWithArgsHashAndInvalidation:Lte};const{batchUpdates:iI}=Gv,{initializeNode:kte,peekNodeInfo:Ote}=du,{graph:jte}=kg,{getNextStoreID:Rte}=Qv,{DEFAULT_VALUE:Pte,recoilValues:Lk,recoilValuesForKeys:zk}=vs,{AbstractRecoilValue:Ute,getRecoilValueAsLoadable:Bte,setRecoilValue:kk,setUnvalidatedRecoilValue:Fte}=al,{updateRetainCount:Wv}=Nh,{setInvalidateMemoizedSnapshot:Vte}=yk,{getNextTreeStateVersion:$te,makeEmptyStoreState:Qte}=lk,{isSSR:Hte}=Zv,{memoizeOneWithArgsHashAndInvalidation:Yte}=zte;class qv{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_refCount",1),Ai(this,"getLoadable",s=>(this.checkRefCount_INTERNAL(),Bte(this._store,s))),Ai(this,"getPromise",s=>(this.checkRefCount_INTERNAL(),this.getLoadable(s).toPromise())),Ai(this,"getNodes_UNSTABLE",s=>{if(this.checkRefCount_INTERNAL(),(s==null?void 0:s.isModified)===!0){if((s==null?void 0:s.isInitialized)===!1)return[];const m=this._store.getState().currentTree;return zk(m.dirtyAtoms)}const u=this._store.getState().knownAtoms,f=this._store.getState().knownSelectors;return(s==null?void 0:s.isInitialized)==null?Lk.values():s.isInitialized===!0?zk(Ck([u,f])):X5(Lk.values(),({key:m})=>!u.has(m)&&!f.has(m))}),Ai(this,"getInfo_UNSTABLE",({key:s})=>(this.checkRefCount_INTERNAL(),Ote(this._store,this._store.getState().currentTree,s))),Ai(this,"map",s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return s(u),u}),Ai(this,"asyncMap",async s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return u.retain(),await s(u),u.autoRelease_INTERNAL(),u}),this._store={storeID:Rte(),parentStoreID:r,getState:()=>t,replaceState:s=>{t.currentTree=s(t.currentTree)},getGraph:s=>{const u=t.graphsByVersion;if(u.has(s))return zr(u.get(s));const f=jte();return u.set(s,f),f},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Li("Cannot subscribe to Snapshots")}};for(const s of this._store.getState().knownAtoms)kte(this._store,s,"get"),Wv(this._store,s,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Hte||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!vr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){vr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function Ok(e,t,r=!1){const s=e.getState(),u=r?$te():t.version;return{currentTree:{version:r?u:t.version,stateID:r?u:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(s.knownAtoms),knownSelectors:new Set(s.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(u,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fv(s.nodeCleanupFunctions.entries(),([f])=>[f,()=>{}]))}}function Gte(e){const t=new qv(Qte());return e!=null?t.map(e):t}const[jk,Rk]=Yte((e,t)=>{var r;const s=e.getState(),u=t==="latest"?(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree:zr(s.previousTree);return new qv(Ok(e,u),e.storeID)},(e,t)=>{var r,s;return String(t)+String(e.storeID)+String((r=e.getState().nextTree)===null||r===void 0?void 0:r.version)+String(e.getState().currentTree.version)+String((s=e.getState().previousTree)===null||s===void 0?void 0:s.version)});Vte(Rk);function Zte(e,t="latest"){const r=jk(e,t);return r.isRetained()?r:(Rk(),jk(e,t))}class rI extends qv{constructor(t,r){super(Ok(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ai(this,"_batch",void 0),Ai(this,"set",(s,u)=>{this.checkRefCount_INTERNAL();const f=this.getStore_INTERNAL();this._batch(()=>{Wv(f,s.key,1),kk(this.getStore_INTERNAL(),s,u)})}),Ai(this,"reset",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();this._batch(()=>{Wv(u,s.key,1),kk(this.getStore_INTERNAL(),s,Pte)})}),Ai(this,"setUnvalidatedAtomValues_DEPRECATED",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();iI(()=>{for(const[f,m]of s.entries())Wv(u,f,1),Fte(u,new Ute(f),m)})}),this._batch=r}}var Kv={Snapshot:qv,MutableSnapshot:rI,freshSnapshot:Gte,cloneSnapshot:Zte},Wte=Kv.Snapshot,qte=Kv.MutableSnapshot,Kte=Kv.freshSnapshot,Xte=Kv.cloneSnapshot,Xv=Object.freeze({__proto__:null,Snapshot:Wte,MutableSnapshot:qte,freshSnapshot:Kte,cloneSnapshot:Xte});function Jte(...e){const t=new Set;for(const r of e)for(const s of r)t.add(s);return t}var ene=Jte;const{useRef:tne}=Vi;function nne(e){const t=tne(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Pk=nne;const{getNextTreeStateVersion:ine,makeEmptyStoreState:Uk}=lk,{cleanUpNode:rne,getDownstreamNodes:one,initializeNode:sne,setNodeValue:ane,setUnvalidatedAtomValue_DEPRECATED:lne}=du,{graph:cne}=kg,{cloneGraph:une}=kg,{getNextStoreID:Bk}=Qv,{createMutableSource:oI,reactMode:Fk}=Lg,{applyAtomValueWrites:hne}=al,{releaseScheduledRetainablesNow:Vk}=Nh,{freshSnapshot:dne}=Xv,{useCallback:fne,useContext:$k,useEffect:sI,useMemo:pne,useRef:mne,useState:gne}=Vi;function Rg(){throw Li("This component must be used inside a <RecoilRoot> component.")}const Qk=Object.freeze({storeID:Bk(),getState:Rg,replaceState:Rg,getGraph:Rg,subscribeToTransactions:Rg,addTransactionMetadata:Rg});let aI=!1;function Hk(e){if(aI)throw Li("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){vr("recoil_memory_managament_2020")&&vr("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Vk(e);const r=t.currentTree.version,s=ine();t.nextTree={...t.currentTree,version:s,stateID:s,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(s,une(zr(t.graphsByVersion.get(r))))}}const Yk=Vi.createContext({current:Qk}),Jv=()=>$k(Yk),Gk=Vi.createContext(null);function yne(){return $k(Gk)}function lI(e,t,r){const s=one(e,r,r.dirtyAtoms);for(const u of s){const f=t.nodeToComponentSubscriptions.get(u);if(f)for(const[m,[a,v]]of f)v(r)}}function Zk(e){const t=e.getState(),r=t.currentTree,s=r.dirtyAtoms;if(s.size){for(const[u,f]of t.nodeTransactionSubscriptions)if(s.has(u))for(const[m,a]of f)a(e);for(const[u,f]of t.transactionSubscriptions)f(e);(!Fk().early||t.suspendedComponentResolvers.size>0)&&(lI(e,t,r),t.suspendedComponentResolvers.forEach(u=>u()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(u=>u(r)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function _ne(e){const t=e.getState();t.commitDepth++;try{const{nextTree:r}=t;if(r==null)return;t.previousTree=t.currentTree,t.currentTree=r,t.nextTree=null,Zk(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):$5("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,vr("recoil_memory_managament_2020")&&r==null&&Vk(e)}finally{t.commitDepth--}}function vne({setNotifyBatcherOfChange:e}){const t=Jv(),[,r]=gne([]);return e(()=>r({})),sI(()=>(e(()=>r({})),()=>{e(()=>{})}),[e]),sI(()=>{tee.enqueueExecution("Batcher",()=>{_ne(t.current)})}),null}function xne(e,t){const r=Uk();return t({set:(s,u)=>{const f=r.currentTree,m=ane(e,f,s.key,u),a=new Set(m.keys()),v=f.nonvalidatedAtoms.clone();for(const S of a)v.delete(S);r.currentTree={...f,dirtyAtoms:ene(f.dirtyAtoms,a),atomValues:hne(f.atomValues,m),nonvalidatedAtoms:v}},setUnvalidatedAtomValues:s=>{s.forEach((u,f)=>{r.currentTree=lne(r.currentTree,f,u)})}}),r}function bne(e){const t=dne(e),r=t.getStore_INTERNAL().getState();return t.retain(),r.nodeCleanupFunctions.forEach(s=>s()),r.nodeCleanupFunctions.clear(),r}let Wk=0;function Mne({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:r,children:s}){let u;const f=O=>{const R=u.current.graphsByVersion;if(R.has(O))return zr(R.get(O));const V=cne();return R.set(O,V),V},m=(O,R)=>{if(R==null){const{transactionSubscriptions:V}=N.current.getState(),q=Wk++;return V.set(q,O),{release:()=>{V.delete(q)}}}else{const{nodeTransactionSubscriptions:V}=N.current.getState();V.has(R)||V.set(R,new Map);const q=Wk++;return zr(V.get(R)).set(q,O),{release:()=>{const H=V.get(R);H&&(H.delete(q),H.size===0&&V.delete(R))}}}},a=O=>{Hk(N.current);for(const R of Object.keys(O))zr(N.current.getState().nextTree).transactionMetadata[R]=O[R]},v=O=>{Hk(N.current);const R=zr(u.current.nextTree);let V;try{aI=!0,V=O(R)}finally{aI=!1}V!==R&&(u.current.nextTree=V,Fk().early&&lI(N.current,u.current,V),zr(S.current)())},S=mne(null),D=fne(O=>{S.current=O},[S]),N=Pk(()=>r??{storeID:Bk(),getState:()=>u.current,replaceState:v,getGraph:f,subscribeToTransactions:m,addTransactionMetadata:a});r!=null&&(N.current=r),u=Pk(()=>e!=null?xne(N.current,e):t!=null?bne(t):Uk());const C=pne(()=>oI==null?void 0:oI(u,()=>u.current.currentTree.version),[u]);return sI(()=>{const O=N.current;for(const R of new Set(O.getState().knownAtoms))sne(O,R,"get");return()=>{for(const R of O.getState().knownAtoms)rne(O,R)}},[N]),Vi.createElement(Yk.Provider,{value:N},Vi.createElement(Gk.Provider,{value:C},Vi.createElement(vne,{setNotifyBatcherOfChange:D}),s))}function wne(e){const{override:t,...r}=e,s=Jv();return t===!1&&s.current!==Qk?e.children:Vi.createElement(Mne,r)}function Ine(){return Jv().current.storeID}var nc={RecoilRoot:wne,useStoreRef:Jv,useRecoilMutableSource:yne,useRecoilStoreID:Ine,notifyComponents_FOR_TESTING:lI,sendEndOfBatchNotifications_FOR_TESTING:Zk};function Tne(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(e[r]!==t[r])return!1;return!0}var Sne=Tne;const{useEffect:Ene,useRef:Dne}=Vi;function Ane(e){const t=Dne();return Ene(()=>{t.current=e}),t.current}var qk=Ane;const{useStoreRef:Cne}=nc,{SUSPENSE_TIMEOUT_MS:Nne}=Nh,{updateRetainCount:Pg}=Nh,{RetentionZone:Lne}=Hv,{useEffect:zne,useRef:kne}=Vi,{isSSR:Kk}=Zv;function One(e){if(vr("recoil_memory_managament_2020"))return jne(e)}function jne(e){const r=(Array.isArray(e)?e:[e]).map(m=>m instanceof Lne?m:m.key),s=Cne();zne(()=>{if(!vr("recoil_memory_managament_2020"))return;const m=s.current;if(u.current&&!Kk)window.clearTimeout(u.current),u.current=null;else for(const a of r)Pg(m,a,1);return()=>{for(const a of r)Pg(m,a,-1)}},[s,...r]);const u=kne(),f=qk(r);if(!Kk&&(f===void 0||!Sne(f,r))){const m=s.current;for(const a of r)Pg(m,a,1);if(f)for(const a of f)Pg(m,a,-1);u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{u.current=null;for(const a of r)Pg(m,a,-1)},Nne)}}var cI=One;function Rne(){return"<component name not available>"}var Ug=Rne;const{batchUpdates:Pne}=Gv,{DEFAULT_VALUE:Xk}=vs,{currentRendererSupportsUseSyncExternalStore:Une,reactMode:Vf,useMutableSource:Bne,useSyncExternalStore:Fne}=Lg,{useRecoilMutableSource:Vne,useStoreRef:ll}=nc,{AbstractRecoilValue:uI,getRecoilValueAsLoadable:Bg,setRecoilValue:ex,setUnvalidatedRecoilValue:$ne,subscribeToRecoilValue:$f}=al,{useCallback:xs,useEffect:Qf,useMemo:Jk,useRef:Fg,useState:hI}=Vi,{setByAddingToSet:Qne}=uk,{isSSR:Hne}=Zv;function dI(e,t,r){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(u=>{const f=r.current.getState().suspendedComponentResolvers;f.add(u),Hne&&Dr(e.contents)&&e.contents.finally(()=>{f.delete(u)})}):e.state==="hasError"?e.contents:Li(`Invalid value of loadable atom "${t.key}"`)}function Yne(){const e=Ug(),t=ll(),[,r]=hI([]),s=Fg(new Set);s.current=new Set;const u=Fg(new Set),f=Fg(new Map),m=xs(v=>{const S=f.current.get(v);S&&(S.release(),f.current.delete(v))},[f]),a=xs((v,S)=>{f.current.has(S)&&r([])},[]);return Qf(()=>{const v=t.current;zg(s.current,u.current).forEach(S=>{if(f.current.has(S))return;const D=$f(v,new uI(S),C=>a(C,S),e);f.current.set(S,D),v.getState().nextTree?v.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(v.getState(),S)}):a(v.getState(),S)}),zg(u.current,s.current).forEach(S=>{m(S)}),u.current=s.current}),Qf(()=>{const v=f.current;return zg(s.current,new Set(v.keys())).forEach(S=>{const D=$f(t.current,new uI(S),N=>a(N,S),e);v.set(S,D)}),()=>v.forEach((S,D)=>m(D))},[e,t,m,a]),Jk(()=>{function v(R){return V=>{ex(t.current,R,V)}}function S(R){return()=>ex(t.current,R,Xk)}function D(R){var V;s.current.has(R.key)||(s.current=Qne(s.current,R.key));const q=t.current.getState();return Bg(t.current,R,Vf().early&&(V=q.nextTree)!==null&&V!==void 0?V:q.currentTree)}function N(R){const V=D(R);return dI(V,R,t)}function C(R){return[N(R),v(R)]}function O(R){return[D(R),v(R)]}return{getRecoilValue:N,getRecoilValueLoadable:D,getRecoilState:C,getRecoilStateLoadable:O,getSetRecoilState:v,getResetRecoilState:S}},[s,t])}const Gne={current:0};function Zne(e){const t=ll(),r=Ug(),s=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return{loadable:Bg(v,e,D),key:e.key}},[t,e]),u=xs(a=>{let v;return()=>{var S,D;const N=a();return(S=v)!==null&&S!==void 0&&S.loadable.is(N.loadable)&&((D=v)===null||D===void 0?void 0:D.key)===N.key?v:(v=N,N)}},[]),f=Jk(()=>u(s),[s,u]),m=xs(a=>{const v=t.current;return $f(v,e,a,r).release},[t,e,r]);return Fne(m,f,f).loadable}function Wne(e){const t=ll(),r=xs(()=>{var S;const D=t.current,N=D.getState(),C=Vf().early&&(S=N.nextTree)!==null&&S!==void 0?S:N.currentTree;return Bg(D,e,C)},[t,e]),s=xs(()=>r(),[r]),u=Ug(),f=xs((S,D)=>{const N=t.current;return $f(N,e,()=>{if(!vr("recoil_suppress_rerender_in_callback"))return D();const O=r();v.current.is(O)||D(),v.current=O},u).release},[t,e,u,r]),m=Vne();if(m==null)throw Li("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=Bne(m,s,f),v=Fg(a);return Qf(()=>{v.current=a}),a}function fI(e){const t=ll(),r=Ug(),s=xs(()=>{var v;const S=t.current,D=S.getState(),N=Vf().early&&(v=D.nextTree)!==null&&v!==void 0?v:D.currentTree;return Bg(S,e,N)},[t,e]),u=xs(()=>({loadable:s(),key:e.key}),[s,e.key]),f=xs(v=>{const S=u();return v.loadable.is(S.loadable)&&v.key===S.key?v:S},[u]);Qf(()=>{const v=$f(t.current,e,S=>{a(f)},r);return a(f),v.release},[r,e,t,f]);const[m,a]=hI(u);return m.key!==e.key?u().loadable:m.loadable}function qne(e){const t=ll(),[,r]=hI([]),s=Ug(),u=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return Bg(v,e,D)},[t,e]),f=u(),m=Fg(f);return Qf(()=>{m.current=f}),Qf(()=>{const a=t.current,v=a.getState(),S=$f(a,e,N=>{var C;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const O=u();(C=m.current)!==null&&C!==void 0&&C.is(O)||r(O),m.current=O},s);if(v.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{m.current=null,r([])});else{var D;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const N=u();(D=m.current)!==null&&D!==void 0&&D.is(N)||r(N),m.current=N}return S.release},[s,u,e,t]),f}function pI(e){return vr("recoil_memory_managament_2020")&&cI(e),{TRANSITION_SUPPORT:fI,SYNC_EXTERNAL_STORE:Une()?Zne:fI,MUTABLE_SOURCE:Wne,LEGACY:qne}[Vf().mode](e)}function e9(e){const t=ll(),r=pI(e);return dI(r,e,t)}function tx(e){const t=ll();return xs(r=>{ex(t.current,e,r)},[t,e])}function Kne(e){const t=ll();return xs(()=>{ex(t.current,e,Xk)},[t,e])}function Xne(e){return[e9(e),tx(e)]}function Jne(e){return[pI(e),tx(e)]}function eie(){const e=ll();return(t,r={})=>{Pne(()=>{e.current.addTransactionMetadata(r),t.forEach((s,u)=>$ne(e.current,new uI(u),s))})}}function t9(e){return vr("recoil_memory_managament_2020")&&cI(e),fI(e)}function n9(e){const t=ll(),r=t9(e);return dI(r,e,t)}function tie(e){return[n9(e),tx(e)]}var nie={recoilComponentGetRecoilValueCount_FOR_TESTING:Gne,useRecoilInterface:Yne,useRecoilState:Xne,useRecoilStateLoadable:Jne,useRecoilValue:e9,useRecoilValueLoadable:pI,useResetRecoilState:Kne,useSetRecoilState:tx,useSetUnvalidatedAtomValues:eie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:t9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:n9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:tie};function iie(e,t){const r=new Map;for(const[s,u]of e)t(u,s)&&r.set(s,u);return r}var rie=iie;function oie(e,t){const r=new Set;for(const s of e)t(s)&&r.add(s);return r}var sie=oie;function aie(...e){const t=new Map;for(let r=0;r<e.length;r++){const s=e[r].keys();let u;for(;!(u=s.next()).done;)t.set(u.value,e[r].get(u.value))}return t}var lie=aie;const{batchUpdates:cie}=Gv,{DEFAULT_VALUE:uie,getNode:i9,nodes:hie}=vs,{useStoreRef:mI}=nc,{AbstractRecoilValue:die,setRecoilValueLoadable:fie}=al,{SUSPENSE_TIMEOUT_MS:pie}=Nh,{cloneSnapshot:nx}=Xv,{useCallback:ix,useEffect:r9,useRef:o9,useState:mie}=Vi,{isSSR:s9}=Zv;function rx(e){const t=mI();r9(()=>t.current.subscribeToTransactions(e).release,[e,t])}function a9(e){const t=e.atomValues.toMap(),r=$v(rie(t,(s,u)=>{const m=i9(u).persistence_UNSTABLE;return m!=null&&m.type!=="none"&&s.state==="hasValue"}),s=>s.contents);return lie(e.nonvalidatedAtoms.toMap(),r)}function gie(e){rx(ix(t=>{let r=t.getState().previousTree;const s=t.getState().currentTree;r||(r=t.getState().currentTree);const u=a9(s),f=a9(r),m=$v(hie,v=>{var S,D,N,C;return{persistence_UNSTABLE:{type:(S=(D=v.persistence_UNSTABLE)===null||D===void 0?void 0:D.type)!==null&&S!==void 0?S:"none",backButton:(N=(C=v.persistence_UNSTABLE)===null||C===void 0?void 0:C.backButton)!==null&&N!==void 0?N:!1}}}),a=sie(s.dirtyAtoms,v=>u.has(v)||f.has(v));e({atomValues:u,previousAtomValues:f,atomInfo:m,modifiedAtoms:a,transactionMetadata:{...s.transactionMetadata}})},[e]))}function yie(e){rx(ix(t=>{const r=nx(t,"latest"),s=nx(t,"previous");e({snapshot:r,previousSnapshot:s})},[e]))}function _ie(){const e=mI(),[t,r]=mie(()=>nx(e.current)),s=qk(t),u=o9(),f=o9();if(rx(ix(a=>r(nx(a)),[])),r9(()=>{const a=t.retain();if(u.current&&!s9){var v;window.clearTimeout(u.current),u.current=null,(v=f.current)===null||v===void 0||v.call(f),f.current=null}return()=>{window.setTimeout(a,10)}},[t]),s!==t&&!s9){if(u.current){var m;window.clearTimeout(u.current),u.current=null,(m=f.current)===null||m===void 0||m.call(f),f.current=null}f.current=t.retain(),u.current=window.setTimeout(()=>{var a;u.current=null,(a=f.current)===null||a===void 0||a.call(f),f.current=null},pie)}return t}function l9(e,t){var r;const s=e.getState(),u=(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree,f=t.getStore_INTERNAL().getState().currentTree;cie(()=>{const m=new Set;for(const S of[u.atomValues.keys(),f.atomValues.keys()])for(const D of S){var a,v;((a=u.atomValues.get(D))===null||a===void 0?void 0:a.contents)!==((v=f.atomValues.get(D))===null||v===void 0?void 0:v.contents)&&i9(D).shouldRestoreFromSnapshots&&m.add(D)}m.forEach(S=>{fie(e,new die(S),f.atomValues.has(S)?zr(f.atomValues.get(S)):uie)}),e.replaceState(S=>({...S,stateID:t.getID()}))})}function vie(){const e=mI();return ix(t=>l9(e.current,t),[e])}var c9={useRecoilSnapshot:_ie,gotoSnapshot:l9,useGotoRecoilSnapshot:vie,useRecoilTransactionObserver:yie,useTransactionObservation_DEPRECATED:gie,useTransactionSubscription_DEPRECATED:rx};const{peekNodeInfo:xie}=du,{useStoreRef:bie}=nc;function Mie(){const e=bie();return({key:t})=>xie(e.current,e.current.getState().currentTree,t)}var wie=Mie;const{reactMode:Iie}=Lg,{RecoilRoot:Tie,useStoreRef:Sie}=nc,{useMemo:Eie}=Vi;function Die(){Iie().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=Sie().current;return Eie(()=>{function t({children:r}){return Vi.createElement(Tie,{store_INTERNAL:e},r)}return t},[e])}var Aie=Die;const{loadableWithValue:Cie}=Ng,{initializeNode:Nie}=du,{DEFAULT_VALUE:Lie,getNode:zie}=vs,{copyTreeState:kie,getRecoilValueAsLoadable:Oie,invalidateDownstreams:jie,writeLoadableToTreeState:Rie}=al;function u9(e){return zie(e.key).nodeType==="atom"}class Pie{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_treeState",void 0),Ai(this,"_changes",void 0),Ai(this,"get",s=>{if(this._changes.has(s.key))return this._changes.get(s.key);if(!u9(s))throw Li("Reading selectors within atomicUpdate is not supported");const u=Oie(this._store,s,this._treeState);if(u.state==="hasValue")return u.contents;throw u.state==="hasError"?u.contents:Li(`Expected Recoil atom ${s.key} to have a value, but it is in a loading state.`)}),Ai(this,"set",(s,u)=>{if(!u9(s))throw Li("Setting selectors within atomicUpdate is not supported");if(typeof u=="function"){const f=this.get(s);this._changes.set(s.key,u(f))}else Nie(this._store,s.key,"set"),this._changes.set(s.key,u)}),Ai(this,"reset",s=>{this.set(s,Lie)}),this._store=t,this._treeState=r,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=kie(this._treeState);for(const[r,s]of this._changes)Rie(t,r,Cie(s));return jie(this._store,t),t}}function Uie(e){return t=>{e.replaceState(r=>{const s=new Pie(e,r);return t(s),s.newTreeState_INTERNAL()})}}var Bie={atomicUpdater:Uie},Fie=Bie.atomicUpdater,h9=Object.freeze({__proto__:null,atomicUpdater:Fie});function Vie(e,t){if(!e)throw new Error(t)}var $ie=Vie,Vg=$ie;const{atomicUpdater:Qie}=h9,{batchUpdates:Hie}=Gv,{DEFAULT_VALUE:Yie}=vs,{useStoreRef:Gie}=nc,{refreshRecoilValue:Zie,setRecoilValue:d9}=al,{cloneSnapshot:Wie}=Xv,{gotoSnapshot:qie}=c9,{useCallback:Kie}=Vi;class f9{}const Xie=new f9;function p9(e,t,r,s){let u=Xie,f;if(Hie(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Li(a);const v=hk({...s??{},set:(D,N)=>d9(e,D,N),reset:D=>d9(e,D,Yie),refresh:D=>Zie(e,D),gotoSnapshot:D=>qie(e,D),transact_UNSTABLE:D=>Qie(e)(D)},{snapshot:()=>{const D=Wie(e);return f=D.retain(),D}}),S=t(v);if(typeof S!="function")throw Li(a);u=S(...r)}),u instanceof f9&&Vg(!1),Dr(u))u=u.finally(()=>{var a;(a=f)===null||a===void 0||a()});else{var m;(m=f)===null||m===void 0||m()}return u}function Jie(e,t){const r=Gie();return Kie((...s)=>p9(r.current,e,s),t!=null?[...t,r]:void 0)}var m9={recoilCallback:p9,useRecoilCallback:Jie};const{useStoreRef:ere}=nc,{refreshRecoilValue:tre}=al,{useCallback:nre}=Vi;function ire(e){const t=ere();return nre(()=>{const r=t.current;tre(r,e)},[e,t])}var rre=ire;const{atomicUpdater:ore}=h9,{useStoreRef:sre}=nc,{useMemo:are}=Vi;function lre(e,t){const r=sre();return are(()=>(...s)=>{ore(r.current)(f=>{e(f)(...s)})},t!=null?[...t,r]:void 0)}var cre=lre;class ure{constructor(t){Ai(this,"value",void 0),this.value=t}}var hre={WrappedValue:ure},dre=hre.WrappedValue,g9=Object.freeze({__proto__:null,WrappedValue:dre});const{isFastRefreshEnabled:fre}=Lg;class y9 extends Error{}class pre{constructor(t){var r,s,u;Ai(this,"_name",void 0),Ai(this,"_numLeafs",void 0),Ai(this,"_root",void 0),Ai(this,"_onHit",void 0),Ai(this,"_onSet",void 0),Ai(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(r=t==null?void 0:t.onHit)!==null&&r!==void 0?r:()=>{},this._onSet=(s=t==null?void 0:t.onSet)!==null&&s!==void 0?s:()=>{},this._mapNodeValue=(u=t==null?void 0:t.mapNodeValue)!==null&&u!==void 0?u:f=>f}size(){return this._numLeafs}root(){return this._root}get(t,r){var s;return(s=this.getLeafNode(t,r))===null||s===void 0?void 0:s.value}getLeafNode(t,r){if(this._root==null)return;let s=this._root;for(;s;){if(r==null||r.onNodeVisit(s),s.type==="leaf")return this._onHit(s),s;const u=this._mapNodeValue(t(s.nodeKey));s=s.branches.get(u)}}set(t,r,s){const u=()=>{var f,m,a,v;let S,D;for(const[q,H]of t){var N,C,O;const Y=this._root;if((Y==null?void 0:Y.type)==="leaf")throw this.invalidCacheError();const W=S;if(S=W?W.branches.get(D):Y,S=(N=S)!==null&&N!==void 0?N:{type:"branch",nodeKey:q,parent:W,branches:new Map,branchKey:D},S.type!=="branch"||S.nodeKey!==q)throw this.invalidCacheError();W==null||W.branches.set(D,S),s==null||(C=s.onNodeVisit)===null||C===void 0||C.call(s,S),D=this._mapNodeValue(H),this._root=(O=this._root)!==null&&O!==void 0?O:S}const R=S?(f=S)===null||f===void 0?void 0:f.branches.get(D):this._root;if(R!=null&&(R.type!=="leaf"||R.branchKey!==D))throw this.invalidCacheError();const V={type:"leaf",value:r,parent:S,branchKey:D};(m=S)===null||m===void 0||m.branches.set(D,V),this._root=(a=this._root)!==null&&a!==void 0?a:V,this._numLeafs++,this._onSet(V),s==null||(v=s.onNodeVisit)===null||v===void 0||v.call(s,V)};try{u()}catch(f){if(f instanceof y9)this.clear(),u();else throw f}}delete(t){const r=this.root();if(!r)return!1;if(t===r)return this._root=null,this._numLeafs=0,!0;let s=t.parent,u=t.branchKey;for(;s;){var f;if(s.branches.delete(u),s===r)return s.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(s.branches.size>0)break;u=(f=s)===null||f===void 0?void 0:f.branchKey,s=s.parent}for(;s!==r;s=s.parent)if(s==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=fre()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw $5(t+(this._name!=null?` - ${this._name}`:"")),new y9}}var mre={TreeCache:pre},gre=mre.TreeCache,_9=Object.freeze({__proto__:null,TreeCache:gre});class yre{constructor(t){var r;Ai(this,"_maxSize",void 0),Ai(this,"_size",void 0),Ai(this,"_head",void 0),Ai(this,"_tail",void 0),Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(r=t.mapKey)!==null&&r!==void 0?r:s=>s}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const r=this._keyMapper(t),s=this._map.get(r);if(s)return this.set(t,s.value),s.value}set(t,r){const s=this._keyMapper(t);this._map.get(s)&&this.delete(t);const f=this.head(),m={key:t,right:f,left:null,value:r};f?f.left=m:this._tail=m,this._map.set(s,m),this._head=m,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const r=this._keyMapper(t);if(!this._size||!this._map.has(r))return;const s=zr(this._map.get(r)),u=s.right,f=s.left;u&&(u.left=s.left),f&&(f.right=s.right),s===this.head()&&(this._head=u),s===this.tail()&&(this._tail=f),this._map.delete(r),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var _re={LRUCache:yre},vre=_re.LRUCache,v9=Object.freeze({__proto__:null,LRUCache:vre});const{LRUCache:xre}=v9,{TreeCache:bre}=_9;function Mre({name:e,maxSize:t,mapNodeValue:r=s=>s}){const s=new xre({maxSize:t}),u=new bre({name:e,mapNodeValue:r,onHit:f=>{s.set(f,!0)},onSet:f=>{const m=s.tail();s.set(f,!0),m&&u.size()>t&&u.delete(m.key)}});return u}var x9=Mre;function Da(e,t,r){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Li("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var s;return(s=JSON.stringify(e))!==null&&s!==void 0?s:""}if(Dr(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((u,f)=>Da(u,t,f.toString()))}]`;if(typeof e.toJSON=="function")return Da(e.toJSON(r),t,r);if(e instanceof Map){const u={};for(const[f,m]of e)u[typeof f=="string"?f:Da(f,t)]=m;return Da(u,t,r)}return e instanceof Set?Da(Array.from(e).sort((u,f)=>Da(u,t).localeCompare(Da(f,t))),t,r):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Da(Array.from(e),t,r):`{${Object.keys(e).filter(u=>e[u]!==void 0).sort().map(u=>`${Da(u,t)}:${Da(e[u],t,u)}`).join(",")}}`}function wre(e,t={allowFunctions:!1}){return Da(e,t)}var ox=wre;const{TreeCache:Ire}=_9,sx={equality:"reference",eviction:"keep-all",maxSize:1/0};function Tre({equality:e=sx.equality,eviction:t=sx.eviction,maxSize:r=sx.maxSize}=sx,s){const u=Sre(e);return Ere(t,r,u,s)}function Sre(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function Ere(e,t,r,s){switch(e){case"keep-all":return new Ire({name:s,mapNodeValue:r});case"lru":return x9({name:s,maxSize:zr(t),mapNodeValue:r});case"most-recent":return x9({name:s,maxSize:1,mapNodeValue:r})}throw Li(`Unrecognized eviction policy ${e}`)}var Dre=Tre;function Are(e){return()=>null}var Cre={startPerfBlock:Are};const{isLoadable:Nre,loadableWithError:ax,loadableWithPromise:Lre,loadableWithValue:gI}=Ng,{WrappedValue:b9}=g9,{getNodeLoadable:lx,peekNodeLoadable:zre,setNodeValue:kre}=du,{saveDepsToStore:Ore}=kg,{DEFAULT_VALUE:jre,getConfigDeletionHandler:Rre,getNode:Pre,registerNode:M9}=vs,{isRecoilValue:Ure}=Ff,{markRecoilValueModified:w9}=al,{retainedByOptionWithDefault:Bre}=Nh,{recoilCallback:Fre}=m9,{startPerfBlock:Vre}=Cre;class I9{}const $g=new I9,Qg=[],cx=new Map,$re=(()=>{let e=0;return()=>e++})();function T9(e){let t=null;const{key:r,get:s,cachePolicy_UNSTABLE:u}=e,f=e.set!=null?e.set:void 0,m=new Set,a=Dre(u??{equality:"reference",eviction:"keep-all"},r),v=Bre(e.retainedBy_UNSTABLE),S=new Map;let D=0;function N(){return!vr("recoil_memory_managament_2020")||D>0}function C(le){return le.getState().knownSelectors.add(r),D++,()=>{D--}}function O(){return Rre(r)!==void 0&&!N()}function R(le,X,ie,Me,xe){ze(X,Me,xe),V(le,ie)}function V(le,X){Ee(le,X)&&it(le),H(X,!0)}function q(le,X){Ee(le,X)&&(zr(De(le)).stateVersions.clear(),H(X,!1))}function H(le,X){const ie=cx.get(le);if(ie!=null){for(const Me of ie)w9(Me,zr(t));X&&cx.delete(le)}}function Y(le,X){let ie=cx.get(X);ie==null&&cx.set(X,ie=new Set),ie.add(le)}function W(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;const Ue=gI(He);return R(le,ie,xe,Ue,Me),He}).catch(He=>{if(!N())throw it(le),$g;if(Dr(He))return ee(le,He,ie,Me,xe,$e);const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function ee(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;$e.loadingDepKey!=null&&$e.loadingDepPromise===X?ie.atomValues.set($e.loadingDepKey,gI(He)):le.getState().knownSelectors.forEach(_t=>{ie.atomValues.delete(_t)});const Ue=he(le,ie);if(Ue&&Ue.state!=="loading"){if((Ee(le,xe)||De(le)==null)&&V(le,xe),Ue.state==="hasValue")return Ue.contents;throw Ue.contents}if(!Ee(le,xe)){const _t=Ve(le,ie);if(_t!=null)return _t.loadingLoadable.contents}const[Xe,ut]=pe(le,ie,xe);if(Xe.state!=="loading"&&R(le,ie,xe,Xe,ut),Xe.state==="hasError")throw Xe.contents;return Xe.contents}).catch(He=>{if(He instanceof I9)throw $g;if(!N())throw it(le),$g;const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function fe(le,X,ie,Me){var xe,$e,He,Ue;if(Ee(le,Me)||X.version===((xe=le.getState())===null||xe===void 0||($e=xe.currentTree)===null||$e===void 0?void 0:$e.version)||X.version===((He=le.getState())===null||He===void 0||(Ue=He.nextTree)===null||Ue===void 0?void 0:Ue.version)){var Xe,ut,_t;Ore(r,ie,le,(Xe=(ut=le.getState())===null||ut===void 0||(_t=ut.nextTree)===null||_t===void 0?void 0:_t.version)!==null&&Xe!==void 0?Xe:le.getState().currentTree.version)}for(const et of ie)m.add(et)}function pe(le,X,ie){const Me=Vre(r);let xe=!0,$e=!0;const He=()=>{Me(),$e=!1};let Ue,Xe=!1,ut;const _t={loadingDepKey:null,loadingDepPromise:null},et=new Map;function bt({key:Rt}){const dn=lx(le,X,Rt);switch(et.set(Rt,dn),xe||(fe(le,X,new Set(et.keys()),ie),q(le,ie)),dn.state){case"hasValue":return dn.contents;case"hasError":throw dn.contents;case"loading":throw _t.loadingDepKey=Rt,_t.loadingDepPromise=dn.contents,dn.contents}throw Li("Invalid Loadable state")}const Ot=Rt=>(...dn)=>{if($e)throw Li("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Vg(!1),Fre(le,Rt,dn,{node:t})};try{Ue=s({get:bt,getCallback:Ot}),Ue=Ure(Ue)?bt(Ue):Ue,Nre(Ue)&&(Ue.state==="hasError"&&(Xe=!0),Ue=Ue.contents),Dr(Ue)?Ue=W(le,Ue,X,et,ie,_t).finally(He):He(),Ue=Ue instanceof b9?Ue.value:Ue}catch(Rt){Ue=Rt,Dr(Ue)?Ue=ee(le,Ue,X,et,ie,_t).finally(He):(Xe=!0,He())}return Xe?ut=ax(Ue):Dr(Ue)?ut=Lre(Ue):ut=gI(Ue),xe=!1,Ge(le,ie,et),fe(le,X,new Set(et.keys()),ie),[ut,et]}function he(le,X){let ie=X.atomValues.get(r);if(ie!=null)return ie;const Me=new Set;try{ie=a.get($e=>(typeof $e!="string"&&Vg(!1),lx(le,X,$e).contents),{onNodeVisit:$e=>{$e.type==="branch"&&$e.nodeKey!==r&&Me.add($e.nodeKey)}})}catch($e){throw Li(`Problem with cache lookup for selector "${r}": ${$e.message}`)}if(ie){var xe;X.atomValues.set(r,ie),fe(le,X,Me,(xe=De(le))===null||xe===void 0?void 0:xe.executionID)}return ie}function oe(le,X){const ie=he(le,X);if(ie!=null)return it(le),ie;const Me=Ve(le,X);if(Me!=null){var xe;return((xe=Me.loadingLoadable)===null||xe===void 0?void 0:xe.state)==="loading"&&Y(le,Me.executionID),Me.loadingLoadable}const $e=$re(),[He,Ue]=pe(le,X,$e);return He.state==="loading"?(Ae(le,$e,He,Ue,X),Y(le,$e)):(it(le),ze(X,He,Ue)),He}function Ve(le,X){const ie=Ck([S.has(le)?[zr(S.get(le))]:[],Fv(X5(S,([xe])=>xe!==le),([,xe])=>xe)]);function Me(xe){for(const[$e,He]of xe)if(!lx(le,X,$e).is(He))return!0;return!1}for(const xe of ie){if(xe.stateVersions.get(X.version)||!Me(xe.depValuesDiscoveredSoFarDuringAsyncWork))return xe.stateVersions.set(X.version,!0),xe;xe.stateVersions.set(X.version,!1)}}function De(le){return S.get(le)}function Ae(le,X,ie,Me,xe){S.set(le,{depValuesDiscoveredSoFarDuringAsyncWork:Me,executionID:X,loadingLoadable:ie,stateVersions:new Map([[xe.version,!0]])})}function Ge(le,X,ie){if(Ee(le,X)){const Me=De(le);Me!=null&&(Me.depValuesDiscoveredSoFarDuringAsyncWork=ie)}}function it(le){S.delete(le)}function Ee(le,X){var ie;return X===((ie=De(le))===null||ie===void 0?void 0:ie.executionID)}function Ze(le){return Array.from(le.entries()).map(([X,ie])=>[X,ie.contents])}function ze(le,X,ie){le.atomValues.set(r,X);try{a.set(Ze(ie),X)}catch(Me){throw Li(`Problem with setting cache for selector "${r}": ${Me.message}`)}}function Le(le){if(Qg.includes(r)){const X=`Recoil selector has circular dependencies: ${Qg.slice(Qg.indexOf(r)).join(" → ")}`;return ax(Li(X))}Qg.push(r);try{return le()}finally{Qg.pop()}}function Ye(le,X){const ie=X.atomValues.get(r);return ie??a.get(Me=>{var xe;return typeof Me!="string"&&Vg(!1),(xe=zre(le,X,Me))===null||xe===void 0?void 0:xe.contents})}function qe(le,X){return Le(()=>oe(le,X))}function Ie(le){le.atomValues.delete(r)}function Te(le,X){t==null&&Vg(!1);for(const Me of m){var ie;const xe=Pre(Me);(ie=xe.clearCache)===null||ie===void 0||ie.call(xe,le,X)}m.clear(),Ie(X),a.clear(),w9(le,t)}return f!=null?t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,set:(X,ie,Me)=>{let xe=!1;const $e=new Map;function He({key:_t}){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const et=lx(X,ie,_t);if(et.state==="hasValue")return et.contents;if(et.state==="loading"){const bt=`Getting value of asynchronous atom or selector "${_t}" in a pending state while setting selector "${r}" is not yet supported.`;throw Li(bt)}else throw et.contents}function Ue(_t,et){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const bt=typeof et=="function"?et(He(_t)):et;kre(X,ie,_t.key,bt).forEach((Rt,dn)=>$e.set(dn,Rt))}function Xe(_t){Ue(_t,jre)}const ut=f({set:Ue,get:He,reset:Xe},Me);if(ut!==void 0)throw Dr(ut)?Li("Recoil: Async selector sets are not currently supported."):Li("Recoil: selector set should be a void function.");return xe=!0,$e},init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v}):t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v})}T9.value=e=>new b9(e);var Hf=T9;const{isLoadable:Qre,loadableWithError:yI,loadableWithPromise:_I,loadableWithValue:Yf}=Ng,{WrappedValue:S9}=g9,{peekNodeInfo:Hre}=du,{DEFAULT_VALUE:Lh,DefaultValue:fu,getConfigDeletionHandler:E9,registerNode:Yre,setConfigDeletionHandler:Gre}=vs,{isRecoilValue:Zre}=Ff,{getRecoilValueAsLoadable:Wre,markRecoilValueModified:qre,setRecoilValue:D9,setRecoilValueLoadable:Kre}=al,{retainedByOptionWithDefault:Xre}=Nh,Hg=e=>e instanceof S9?e.value:e;function Jre(e){const{key:t,persistence_UNSTABLE:r}=e,s=Xre(e.retainedBy_UNSTABLE);let u=0;function f(Y){return _I(Y.then(W=>(m=Yf(W),W)).catch(W=>{throw m=yI(W),W}))}let m=Dr(e.default)?f(e.default):Qre(e.default)?e.default.state==="loading"?f(e.default.contents):e.default:Yf(Hg(e.default));m.contents;let a;const v=new Map;function S(Y){return Y}function D(Y,W){const ee=W.then(fe=>{var pe,he;return((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&D9(Y,H,fe),fe}).catch(fe=>{var pe,he;throw((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&Kre(Y,H,yI(fe)),fe});return ee}function N(Y,W,ee){var fe;u++;const pe=()=>{var De;u--,(De=v.get(Y))===null||De===void 0||De.forEach(Ae=>Ae()),v.delete(Y)};if(Y.getState().knownAtoms.add(t),m.state==="loading"){const De=()=>{var Ae;((Ae=Y.getState().nextTree)!==null&&Ae!==void 0?Ae:Y.getState().currentTree).atomValues.has(t)||qre(Y,H)};m.contents.finally(De)}const he=(fe=e.effects)!==null&&fe!==void 0?fe:e.effects_UNSTABLE;if(he!=null){let Ee=function(Ie){if(Ae&&Ie.key===t){const Te=De;return Te instanceof fu?C(Y,W):Dr(Te)?_I(Te.then(le=>le instanceof fu?m.toPromise():le)):Yf(Te)}return Wre(Y,Ie)},Ze=function(Ie){return Ee(Ie).toPromise()},ze=function(Ie){var Te;const le=Hre(Y,(Te=Y.getState().nextTree)!==null&&Te!==void 0?Te:Y.getState().currentTree,Ie.key);return Ae&&Ie.key===t&&!(De instanceof fu)?{...le,isSet:!0,loadable:Ee(Ie)}:le},De=Lh,Ae=!0,Ge=!1,it=null;const Le=Ie=>Te=>{if(Ae){const le=Ee(H),X=le.state==="hasValue"?le.contents:Lh;De=typeof Te=="function"?Te(X):Te,Dr(De)&&(De=De.then(ie=>(it={effect:Ie,value:ie},ie)))}else{if(Dr(Te))throw Li("Setting atoms to async values is not implemented.");typeof Te!="function"&&(it={effect:Ie,value:Hg(Te)}),D9(Y,H,typeof Te=="function"?le=>{const X=Hg(Te(le));return it={effect:Ie,value:X},X}:Hg(Te))}},Ye=Ie=>()=>Le(Ie)(Lh),qe=Ie=>Te=>{var le;const{release:X}=Y.subscribeToTransactions(ie=>{var Me;let{currentTree:xe,previousTree:$e}=ie.getState();$e||($e=xe);const He=(Me=xe.atomValues.get(t))!==null&&Me!==void 0?Me:m;if(He.state==="hasValue"){var Ue,Xe,ut,_t;const et=He.contents,bt=(Ue=$e.atomValues.get(t))!==null&&Ue!==void 0?Ue:m,Ot=bt.state==="hasValue"?bt.contents:Lh;((Xe=it)===null||Xe===void 0?void 0:Xe.effect)!==Ie||((ut=it)===null||ut===void 0?void 0:ut.value)!==et?Te(et,Ot,!xe.atomValues.has(t)):((_t=it)===null||_t===void 0?void 0:_t.effect)===Ie&&(it=null)}},t);v.set(Y,[...(le=v.get(Y))!==null&&le!==void 0?le:[],X])};for(const Ie of he)try{const Te=Ie({node:H,storeID:Y.storeID,parentStoreID_UNSTABLE:Y.parentStoreID,trigger:ee,setSelf:Le(Ie),resetSelf:Ye(Ie),onSet:qe(Ie),getPromise:Ze,getLoadable:Ee,getInfo_UNSTABLE:ze});if(Te!=null){var oe;v.set(Y,[...(oe=v.get(Y))!==null&&oe!==void 0?oe:[],Te])}}catch(Te){De=Te,Ge=!0}if(Ae=!1,!(De instanceof fu)){var Ve;const Ie=Ge?yI(De):Dr(De)?_I(D(Y,De)):Yf(Hg(De));Ie.contents,W.atomValues.set(t,Ie),(Ve=Y.getState().nextTree)===null||Ve===void 0||Ve.atomValues.set(t,Ie)}}return pe}function C(Y,W){var ee,fe;return(ee=(fe=W.atomValues.get(t))!==null&&fe!==void 0?fe:a)!==null&&ee!==void 0?ee:m}function O(Y,W){if(W.atomValues.has(t))return zr(W.atomValues.get(t));if(W.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(r==null)return m;const ee=W.nonvalidatedAtoms.get(t),fe=r.validator(ee,Lh);return a=fe instanceof fu?m:Yf(fe),a}else return m}function R(){a=void 0}function V(Y,W,ee){if(W.atomValues.has(t)){const fe=zr(W.atomValues.get(t));if(fe.state==="hasValue"&&ee===fe.contents)return new Map}else if(!W.nonvalidatedAtoms.has(t)&&ee instanceof fu)return new Map;return a=void 0,new Map().set(t,Yf(ee))}function q(){return E9(t)!==void 0&&u<=0}const H=Yre({key:t,nodeType:"atom",peek:C,get:O,set:V,init:N,invalidate:R,shouldDeleteConfigOnRelease:q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:s});return H}function vI(e){const{...t}=e,r="default"in e?e.default:new Promise(()=>{});return Zre(r)?eoe({...t,default:r}):Jre({...t,default:r})}function eoe(e){const t=vI({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:s=>s instanceof fu?s:zr(e.persistence_UNSTABLE).validator(s,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),r=Hf({key:`${e.key}__withFallback`,get:({get:s})=>{const u=s(t);return u instanceof fu?e.default:u},set:({set:s},u)=>s(t,u),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Gre(r.key,E9(e.key)),r}vI.value=e=>new S9(e);var A9=vI;class toe{constructor(t){var r;Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(r=t==null?void 0:t.mapKey)!==null&&r!==void 0?r:s=>s}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,r){this._map.set(this._keyMapper(t),r)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var noe={MapCache:toe},ioe=noe.MapCache,roe=Object.freeze({__proto__:null,MapCache:ioe});const{LRUCache:C9}=v9,{MapCache:ooe}=roe,ux={equality:"reference",eviction:"none",maxSize:1/0};function soe({equality:e=ux.equality,eviction:t=ux.eviction,maxSize:r=ux.maxSize}=ux){const s=aoe(e);return loe(t,r,s)}function aoe(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function loe(e,t,r){switch(e){case"keep-all":return new ooe({mapKey:r});case"lru":return new C9({mapKey:r,maxSize:zr(t)});case"most-recent":return new C9({mapKey:r,maxSize:1})}throw Li(`Unrecognized eviction policy ${e}`)}var N9=soe;const{setConfigDeletionHandler:coe}=vs;function uoe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f,m;const a=s.get(u);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:v,...S}=e,D="default"in e?e.default:new Promise(()=>{}),N=A9({...S,key:`${e.key}__${(f=ox(u))!==null&&f!==void 0?f:"void"}`,default:typeof D=="function"?D(u):D,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(u):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(u):(m=e.effects)!==null&&m!==void 0?m:e.effects_UNSTABLE});return s.set(u,N),coe(N.key,()=>{s.delete(u)}),N}}var hoe=uoe;const{setConfigDeletionHandler:doe}=vs;let foe=0;function poe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f;let m;try{m=s.get(u)}catch(C){throw Li(`Problem with cache lookup for selector ${e.key}: ${C.message}`)}if(m!=null)return m;const a=`${e.key}__selectorFamily/${(f=ox(u,{allowFunctions:!0}))!==null&&f!==void 0?f:"void"}/${foe++}`,v=C=>e.get(u)(C),S=e.cachePolicy_UNSTABLE,D=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE;let N;if(e.set!=null){const C=e.set;N=Hf({key:a,get:v,set:(R,V)=>C(u)(R,V),cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D})}else N=Hf({key:a,get:v,cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D});return s.set(u,N),doe(N.key,()=>{s.delete(u)}),N}}var pu=poe;const moe=pu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function goe(e){return moe(e)}var yoe=goe;const _oe=pu({key:"__error",get:e=>()=>{throw Li(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function voe(e){return _oe(e)}var xoe=voe;function boe(e){return e}var Moe=boe;const{loadableWithError:L9,loadableWithPromise:z9,loadableWithValue:k9}=Ng;function hx(e,t){const r=Array(t.length).fill(void 0),s=Array(t.length).fill(void 0);for(const[u,f]of t.entries())try{r[u]=e(f)}catch(m){s[u]=m}return[r,s]}function woe(e){return e!=null&&!Dr(e)}function dx(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function xI(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((r,s,u)=>({...r,[s]:t[u]}),{})}function Gf(e,t,r){const s=r.map((u,f)=>u==null?k9(t[f]):Dr(u)?z9(u):L9(u));return xI(e,s)}function Ioe(e,t){return t.map((r,s)=>r===void 0?e[s]:r)}const Toe=pu({key:"__waitForNone",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return Gf(e,s,u)},dangerouslyAllowMutability:!0}),Soe=pu({key:"__waitForAny",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.some(f=>!Dr(f))?Gf(e,s,u):new Promise(f=>{for(const[m,a]of u.entries())Dr(a)&&a.then(v=>{s[m]=v,u[m]=void 0,f(Gf(e,s,u))}).catch(v=>{u[m]=v,f(Gf(e,s,u))})})},dangerouslyAllowMutability:!0}),Eoe=pu({key:"__waitForAll",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);if(u.every(m=>m==null))return xI(e,s);const f=u.find(woe);if(f!=null)throw f;return Promise.all(u).then(m=>xI(e,Ioe(s,m)))},dangerouslyAllowMutability:!0}),Doe=pu({key:"__waitForAllSettled",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.every(f=>!Dr(f))?Gf(e,s,u):Promise.all(u.map((f,m)=>Dr(f)?f.then(a=>{s[m]=a,u[m]=void 0}).catch(a=>{s[m]=void 0,u[m]=a}):null)).then(()=>Gf(e,s,u))},dangerouslyAllowMutability:!0}),Aoe=pu({key:"__noWait",get:e=>({get:t})=>{try{return Hf.value(k9(t(e)))}catch(r){return Hf.value(Dr(r)?z9(r):L9(r))}},dangerouslyAllowMutability:!0});var Coe={waitForNone:Toe,waitForAny:Soe,waitForAll:Eoe,waitForAllSettled:Doe,noWait:Aoe};const{RecoilLoadable:Noe}=Ng,{DefaultValue:Loe}=vs,{RecoilRoot:zoe,useRecoilStoreID:koe}=nc,{isRecoilValue:Ooe}=Ff,{retentionZone:joe}=Hv,{freshSnapshot:Roe}=Xv,{useRecoilState:Poe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilStateLoadable:Boe,useRecoilValue:Foe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilValueLoadable:$oe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useResetRecoilState:Hoe,useSetRecoilState:Yoe}=nie,{useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver:Woe}=c9,{useRecoilCallback:qoe}=m9,{noWait:Koe,waitForAll:Xoe,waitForAllSettled:Joe,waitForAny:ese,waitForNone:tse}=Coe;var Zf={DefaultValue:Loe,isRecoilValue:Ooe,RecoilLoadable:Noe,RecoilEnv:Bf,RecoilRoot:zoe,useRecoilStoreID:koe,useRecoilBridgeAcrossReactRoots_UNSTABLE:Aie,atom:A9,selector:Hf,atomFamily:hoe,selectorFamily:pu,constSelector:yoe,errorSelector:xoe,readOnlySelector:Moe,noWait:Koe,waitForNone:tse,waitForAny:ese,waitForAll:Xoe,waitForAllSettled:Joe,useRecoilValue:Foe,useRecoilValueLoadable:$oe,useRecoilState:Poe,useRecoilStateLoadable:Boe,useSetRecoilState:Yoe,useResetRecoilState:Hoe,useGetRecoilValueInfo_UNSTABLE:wie,useRecoilRefresher_UNSTABLE:rre,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilCallback:qoe,useRecoilTransaction_UNSTABLE:cre,useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver_UNSTABLE:Woe,snapshot_UNSTABLE:Roe,useRetain:cI,retentionZone:joe},nse=Zf.RecoilRoot,ui=Zf.atom,O9=Zf.selector,on=Zf.useRecoilValue,zn=Zf.useRecoilState,ca=Zf.useResetRecoilState;const ise=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,u)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(u.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rse="mi-components";let fx,j9,Vs=!1,bI=!1;const ic=(e,t="")=>()=>{},ose=(e,t)=>()=>{},sse="{visibility:hidden}.hydrated{visibility:inherit}",R9="http://www.w3.org/1999/xlink",P9={},ase="http://www.w3.org/2000/svg",lse="http://www.w3.org/1999/xhtml",cse=e=>e!=null,MI=e=>(e=typeof e,e==="object"||e==="function");function U9(e){var t,r,s;return(s=(r=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&s!==void 0?s:void 0}const ke=(e,t,...r)=>{let s=null,u=null,f=!1,m=!1;const a=[],v=D=>{for(let N=0;N<D.length;N++)s=D[N],Array.isArray(s)?v(s):s!=null&&typeof s!="boolean"&&((f=typeof e!="function"&&!MI(s))&&(s=String(s)),f&&m?a[a.length-1].$text$+=s:a.push(f?wI(null,s):s),m=f)};if(v(r),t){t.key&&(u=t.key);{const D=t.className||t.class;D&&(t.class=typeof D!="object"?D:Object.keys(D).filter(N=>D[N]).join(" "))}}const S=wI(e,null);return S.$attrs$=t,a.length>0&&(S.$children$=a),S.$key$=u,S},wI=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},co={},use=e=>e&&e.$tag$===co,hse=(e,t)=>e!=null&&!MI(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,rc=e=>mu(e).$hostElement$,pr=(e,t,r)=>{const s=rc(e);return{emit:u=>B9(s,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:u})}},B9=(e,t,r)=>{const s=Do.ce(t,r);return e.dispatchEvent(s),s},F9=new WeakMap,dse=(e,t,r)=>{let s=yx.get(e);zse&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,yx.set(e,s)},fse=(e,t,r,s)=>{var u;let f=V9(t);const m=yx.get(f);if(e=e.nodeType===11?e:cl,m)if(typeof m=="string"){e=e.head||e;let a=F9.get(e),v;if(a||F9.set(e,a=new Set),!a.has(f)){{v=cl.createElement("style"),v.innerHTML=m;const S=(u=Do.$nonce$)!==null&&u!==void 0?u:U9(cl);S!=null&&v.setAttribute("nonce",S),e.insertBefore(v,e.querySelector("link"))}a&&a.add(f)}}else e.adoptedStyleSheets.includes(m)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,m]);return f},pse=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,u=ic("attachStyles",t.$tagName$),f=fse(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=f,r.classList.add(f+"-h")),u()},V9=(e,t)=>"sc-"+e.$tagName$,$9=(e,t,r,s,u,f)=>{if(r!==s){let m=nO(e,t),a=t.toLowerCase();if(t==="class"){const v=e.classList,S=Q9(r),D=Q9(s);v.remove(...S.filter(N=>N&&!D.includes(N))),v.add(...D.filter(N=>N&&!S.includes(N)))}else if(t==="style"){for(const v in r)(!s||s[v]==null)&&(v.includes("-")?e.style.removeProperty(v):e.style[v]="");for(const v in s)(!r||s[v]!==r[v])&&(v.includes("-")?e.style.setProperty(v,s[v]):e.style[v]=s[v])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!m&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):nO(Yg,a)?t=a.slice(2):t=a[2]+t.slice(3),r&&Do.rel(e,t,r,!1),s&&Do.ael(e,t,s,!1);else{const v=MI(s);if((m||v&&s!==null)&&!u)try{if(e.tagName.includes("-"))e[t]=s;else{const D=s??"";t==="list"?m=!1:(r==null||e[t]!=D)&&(e[t]=D)}}catch{}let S=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,S=!0),s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&(S?e.removeAttributeNS(R9,t):e.removeAttribute(t)):(!m||f&4||u)&&!v&&(s=s===!0?"":s,S?e.setAttributeNS(R9,t,s):e.setAttribute(t,s))}}},mse=/\s/,Q9=e=>e?e.split(mse):[],H9=(e,t,r,s)=>{const u=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,f=e&&e.$attrs$||P9,m=t.$attrs$||P9;for(s in f)s in m||$9(u,s,f[s],void 0,r,t.$flags$);for(s in m)$9(u,s,f[s],m[s],r,t.$flags$)},px=(e,t,r,s)=>{const u=t.$children$[r];let f=0,m,a;if(u.$text$!==null)m=u.$elm$=cl.createTextNode(u.$text$);else{if(Vs||(Vs=u.$tag$==="svg"),m=u.$elm$=cl.createElementNS(Vs?ase:lse,u.$tag$),Vs&&u.$tag$==="foreignObject"&&(Vs=!1),H9(null,u,Vs),cse(fx)&&m["s-si"]!==fx&&m.classList.add(m["s-si"]=fx),u.$children$)for(f=0;f<u.$children$.length;++f)a=px(e,u,f),a&&m.appendChild(a);u.$tag$==="svg"?Vs=!1:m.tagName==="foreignObject"&&(Vs=!0)}return m},Y9=(e,t,r,s,u,f)=>{let m=e,a;for(m.shadowRoot&&m.tagName===j9&&(m=m.shadowRoot);u<=f;++u)s[u]&&(a=px(null,r,u),a&&(s[u].$elm$=a,m.insertBefore(a,t)))},G9=(e,t,r,s,u)=>{for(;t<=r;++t)(s=e[t])&&(u=s.$elm$,Z9(s),u.remove())},gse=(e,t,r,s)=>{let u=0,f=0,m=0,a=0,v=t.length-1,S=t[0],D=t[v],N=s.length-1,C=s[0],O=s[N],R,V;for(;u<=v&&f<=N;)if(S==null)S=t[++u];else if(D==null)D=t[--v];else if(C==null)C=s[++f];else if(O==null)O=s[--N];else if(mx(S,C))Wf(S,C),S=t[++u],C=s[++f];else if(mx(D,O))Wf(D,O),D=t[--v],O=s[--N];else if(mx(S,O))Wf(S,O),e.insertBefore(S.$elm$,D.$elm$.nextSibling),S=t[++u],O=s[--N];else if(mx(D,C))Wf(D,C),e.insertBefore(D.$elm$,S.$elm$),D=t[--v],C=s[++f];else{for(m=-1,a=u;a<=v;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===C.$key$){m=a;break}m>=0?(V=t[m],V.$tag$!==C.$tag$?R=px(t&&t[f],r,m):(Wf(V,C),t[m]=void 0,R=V.$elm$),C=s[++f]):(R=px(t&&t[f],r,f),C=s[++f]),R&&S.$elm$.parentNode.insertBefore(R,S.$elm$)}u>v?Y9(e,s[N+1]==null?null:s[N+1].$elm$,r,s,f,N):f>N&&G9(t,u,v)},mx=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Wf=(e,t)=>{const r=t.$elm$=e.$elm$,s=e.$children$,u=t.$children$,f=t.$tag$,m=t.$text$;m===null?(Vs=f==="svg"?!0:f==="foreignObject"?!1:Vs,f==="slot"||H9(e,t,Vs),s!==null&&u!==null?gse(r,s,t,u):u!==null?(e.$text$!==null&&(r.textContent=""),Y9(r,null,t,u,0,u.length-1)):s!==null&&G9(s,0,s.length-1),Vs&&f==="svg"&&(Vs=!1)):e.$text$!==m&&(r.data=m)},Z9=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Z9)},yse=(e,t)=>{const r=e.$hostElement$,s=e.$cmpMeta$,u=e.$vnode$||wI(null,null),f=use(t)?t:ke(null,null,t);j9=r.tagName,s.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},s.$attrsToReflect$.map(([m,a])=>f.$attrs$[a]=r[m])),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=u.$elm$=r.shadowRoot||r,fx=r["s-sc"],Wf(u,f)},W9=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},gx=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return W9(e,e.$ancestorComponent$),Ose(()=>_se(e,t))},_se=(e,t)=>{const r=ic("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;let u;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([f,m])=>zh(s,f,m)),e.$queuedListeners$=null),u=zh(s,"componentWillLoad")),u=K9(u,()=>zh(s,"componentWillRender")),r(),K9(u,()=>vse(e,s,t))},vse=async(e,t,r)=>{const s=e.$hostElement$,u=ic("update",e.$cmpMeta$.$tagName$),f=s["s-rc"];r&&pse(e);const m=ic("render",e.$cmpMeta$.$tagName$);xse(e,t),f&&(f.map(a=>a()),s["s-rc"]=void 0),m(),u();{const a=s["s-p"],v=()=>bse(e);a.length===0?v():(Promise.all(a).then(v),e.$flags$|=4,a.length=0)}},xse=(e,t,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,yse(e,t)}catch(s){kh(s,e.$hostElement$)}return null},bse=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ic("postUpdate",t),u=e.$lazyInstance$,f=e.$ancestorComponent$;zh(u,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,X9(r),zh(u,"componentDidLoad"),s(),e.$onReadyResolve$(r),f||q9()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&EI(()=>gx(e,!1)),e.$flags$&=-517},II=e=>{{const t=mu(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&gx(t,!1),r}},q9=e=>{X9(cl.documentElement),EI(()=>B9(Yg,"appload",{detail:{namespace:rse}}))},zh=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){kh(s)}},K9=(e,t)=>e&&e.then?e.then(t):t(),X9=e=>e.classList.add("hydrated"),Mse=(e,t)=>mu(e).$instanceValues$.get(t),wse=(e,t,r,s)=>{const u=mu(e),f=u.$hostElement$,m=u.$instanceValues$.get(t),a=u.$flags$,v=u.$lazyInstance$;r=hse(r,s.$members$[t][0]);const S=Number.isNaN(m)&&Number.isNaN(r),D=r!==m&&!S;if((!(a&8)||m===void 0)&&D&&(u.$instanceValues$.set(t,r),v)){if(s.$watchers$&&a&128){const N=s.$watchers$[t];N&&N.map(C=>{try{v[C](r,m,t)}catch(O){kh(O,f)}})}(a&18)===2&&gx(u,!1)}},J9=(e,t,r)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const s=Object.entries(t.$members$),u=e.prototype;if(s.map(([f,[m]])=>{m&31||r&2&&m&32?Object.defineProperty(u,f,{get(){return Mse(this,f)},set(a){wse(this,f,a,t)},configurable:!0,enumerable:!0}):r&1&&m&64&&Object.defineProperty(u,f,{value(...a){const v=mu(this);return v.$onInstancePromise$.then(()=>v.$lazyInstance$[f](...a))}})}),r&1){const f=new Map;u.attributeChangedCallback=function(m,a,v){Do.jmp(()=>{const S=f.get(m);if(this.hasOwnProperty(S))v=this[S],delete this[S];else if(u.hasOwnProperty(S)&&typeof this[S]=="number"&&this[S]==v)return;this[S]=v===null&&typeof this[S]=="boolean"?!1:v})},e.observedAttributes=s.filter(([m,a])=>a[0]&15).map(([m,a])=>{const v=a[1]||m;return f.set(v,m),a[0]&512&&t.$attrsToReflect$.push([m,v]),v})}}return e},Ise=async(e,t,r,s,u)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,u=Lse(r),u.then){const v=ose();u=await u,v()}u.isProxied||(r.$watchers$=u.watchers,J9(u,r,2),u.isProxied=!0);const a=ic("createInstance",r.$tagName$);t.$flags$|=8;try{new u(t)}catch(v){kh(v)}t.$flags$&=-9,t.$flags$|=128,a(),eO(t.$lazyInstance$)}if(u.style){let a=u.style;const v=V9(r);if(!yx.has(v)){const S=ic("registerStyles",r.$tagName$);dse(v,a,!!(r.$flags$&1)),S()}}}const f=t.$ancestorComponent$,m=()=>gx(t,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()},eO=e=>{zh(e,"connectedCallback")},Tse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$cmpMeta$,s=ic("connectedCallback",r.$tagName$);if(t.$flags$&1)tO(e,t,r.$listeners$),eO(t.$lazyInstance$);else{t.$flags$|=1;{let u=e;for(;u=u.parentNode||u.host;)if(u["s-p"]){W9(t,t.$ancestorComponent$=u);break}}r.$members$&&Object.entries(r.$members$).map(([u,[f]])=>{if(f&31&&e.hasOwnProperty(u)){const m=e[u];delete e[u],e[u]=m}}),Ise(e,t,r)}s()}},Sse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),zh(r,"disconnectedCallback")}},Ese=(e,t={})=>{var r;const s=ic(),u=[],f=t.exclude||[],m=Yg.customElements,a=cl.head,v=a.querySelector("meta[charset]"),S=cl.createElement("style"),D=[];let N,C=!0;Object.assign(Do,t),Do.$resourcesUrl$=new URL(t.resourcesUrl||"./",cl.baseURI).href,e.map(O=>{O[1].map(R=>{const V={$flags$:R[0],$tagName$:R[1],$members$:R[2],$listeners$:R[3]};V.$members$=R[2],V.$listeners$=R[3],V.$attrsToReflect$=[],V.$watchers$={};const q=V.$tagName$,H=class extends HTMLElement{constructor(Y){super(Y),Y=this,Nse(Y,V),V.$flags$&1&&Y.attachShadow({mode:"open"})}connectedCallback(){N&&(clearTimeout(N),N=null),C?D.push(this):Do.jmp(()=>Tse(this))}disconnectedCallback(){Do.jmp(()=>Sse(this))}componentOnReady(){return mu(this).$onReadyPromise$}};V.$lazyBundleId$=O[0],!f.includes(q)&&!m.get(q)&&(u.push(q),m.define(q,J9(H,V,1)))})});{S.innerHTML=u+sse,S.setAttribute("data-styles","");const O=(r=Do.$nonce$)!==null&&r!==void 0?r:U9(cl);O!=null&&S.setAttribute("nonce",O),a.insertBefore(S,v?v.nextSibling:a.firstChild)}C=!1,D.length?D.map(O=>O.connectedCallback()):Do.jmp(()=>N=setTimeout(q9,30)),s()},tO=(e,t,r,s)=>{r&&r.map(([u,f,m])=>{const a=Ase(e,u),v=Dse(t,m),S=Cse(u);Do.ael(a,f,v,S),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Do.rel(a,f,v,S))})},Dse=(e,t)=>r=>{try{e.$flags$&256?e.$lazyInstance$[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(s){kh(s)}},Ase=(e,t)=>t&8?Yg:e,Cse=e=>(e&2)!==0,TI=new WeakMap,mu=e=>TI.get(e),Ri=(e,t)=>TI.set(t.$lazyInstance$=e,t),Nse=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],tO(e,r,t.$listeners$),TI.set(e,r)},nO=(e,t)=>t in e,kh=(e,t)=>(0,console.error)(e,t),iO=new Map,Lse=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),u=e.$lazyBundleId$,f=iO.get(u);if(f)return f[s];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return ise(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Pce),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Fce),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>$ce),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Qce),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Gce),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>tue),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>rue),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>oue),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>aue),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>cue),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>yue),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>vue),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>bue),"./mi-list.entry.js":()=>Promise.resolve().then(()=>wue),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Zme),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>qme),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Jme),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>ige),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>oge),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>Mge),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>Ige),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Sge),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Dge),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Cge),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Lge),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>kge),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>jge),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Pge),"./mi-search.entry.js":()=>Promise.resolve().then(()=>$ge),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Hge),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Gge),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Wge),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>qge),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Xge),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Jge)}),`./${u}.entry.js`).then(m=>(iO.set(u,m),m[s]),kh)},yx=new Map,Yg=typeof window<"u"?window:{},cl=Yg.document||{head:{}},Do={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},rO=e=>Promise.resolve(e),zse=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),oO=[],sO=[],kse=(e,t)=>r=>{e.push(r),bI||(bI=!0,t&&Do.$flags$&4?EI(SI):Do.raf(SI))},aO=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){kh(r)}e.length=0},SI=()=>{aO(oO),aO(sO),(bI=oO.length>0)&&Do.raf(SI)},EI=e=>rO().then(e),Ose=kse(sO,!0),jse=()=>rO(),Rse=(e,t)=>typeof window>"u"?Promise.resolve():jse().then(()=>Ese([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],destinationLocation:[1,"destination-location"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],disabled:[4],currentItems:[32]},[[0,"focusout","focusOutEventHandler"],[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],positionState:[32],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Pse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class _x{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Pse,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,s,u){return u&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new _x(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _x(this.logger,t)}}var ul=new _x;class vx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(s=>{this.observers[s]=this.observers[s]||[],this.observers[s].push(r)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(s=>s!==r)}}emit(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];this.observers[t]&&[].concat(this.observers[t]).forEach(m=>{m(...s)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(m=>{m.apply(m,[t,...s])})}}function Gg(){let e,t;const r=new Promise((s,u)=>{e=s,t=u});return r.resolve=e,r.reject=t,r}function lO(e){return e==null?"":""+e}function Use(e,t,r){e.forEach(s=>{t[s]&&(r[s]=t[s])})}function DI(e,t,r){function s(m){return m&&m.indexOf("###")>-1?m.replace(/###/g,"."):m}function u(){return!e||typeof e=="string"}const f=typeof t!="string"?[].concat(t):t.split(".");for(;f.length>1;){if(u())return{};const m=s(f.shift());!e[m]&&r&&(e[m]=new r),Object.prototype.hasOwnProperty.call(e,m)?e=e[m]:e={}}return u()?{}:{obj:e,k:s(f.shift())}}function cO(e,t,r){const{obj:s,k:u}=DI(e,t,Object);s[u]=r}function Bse(e,t,r,s){const{obj:u,k:f}=DI(e,t,Object);u[f]=u[f]||[],s&&(u[f]=u[f].concat(r)),s||u[f].push(r)}function xx(e,t){const{obj:r,k:s}=DI(e,t);if(r)return r[s]}function Fse(e,t,r){const s=xx(e,r);return s!==void 0?s:xx(t,r)}function uO(e,t,r){for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?typeof e[s]=="string"||e[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?r&&(e[s]=t[s]):uO(e[s],t[s],r):e[s]=t[s]);return e}function qf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Vse={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $se(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Vse[t]):e}const Qse=[" ",",","?","!",";"];function Hse(e,t,r){t=t||"",r=r||"";const s=Qse.filter(m=>t.indexOf(m)<0&&r.indexOf(m)<0);if(s.length===0)return!0;const u=new RegExp(`(${s.map(m=>m==="?"?"\\?":m).join("|")})`);let f=!u.test(e);if(!f){const m=e.indexOf(r);m>0&&!u.test(e.substring(0,m))&&(f=!0)}return f}function bx(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(r);let u=e;for(let f=0;f<s.length;++f){if(!u||typeof u[s[f]]=="string"&&f+1<s.length)return;if(u[s[f]]===void 0){let m=2,a=s.slice(f,f+m).join(r),v=u[a];for(;v===void 0&&s.length>f+m;)m++,a=s.slice(f,f+m).join(r),v=u[a];if(v===void 0)return;if(v===null)return null;if(t.endsWith(a)){if(typeof v=="string")return v;if(a&&typeof v[a]=="string")return v[a]}const S=s.slice(f+m).join(r);return S?bx(v,S,r):void 0}u=u[s[f]]}return u}function Mx(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class hO extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,m=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,r];s&&typeof s!="string"&&(a=a.concat(s)),s&&typeof s=="string"&&(a=a.concat(f?s.split(f):s)),t.indexOf(".")>-1&&(a=t.split("."));const v=xx(this.data,a);return v||!m||typeof s!="string"?v:bx(this.data&&this.data[t]&&this.data[t][r],s,f)}addResource(t,r,s,u){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const m=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let a=[t,r];s&&(a=a.concat(m?s.split(m):s)),t.indexOf(".")>-1&&(a=t.split("."),u=r,r=a[1]),this.addNamespaces(r),cO(this.data,a,u),f.silent||this.emit("added",t,r,s,u)}addResources(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in s)(typeof s[f]=="string"||Object.prototype.toString.apply(s[f])==="[object Array]")&&this.addResource(t,r,f,s[f],{silent:!0});u.silent||this.emit("added",t,r,s)}addResourceBundle(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),u=s,s=r,r=a[1]),this.addNamespaces(r);let v=xx(this.data,a)||{};u?uO(v,s,f):v={...v,...s},cO(this.data,a,v),m.silent||this.emit("added",t,r,s)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(u=>r[u]&&Object.keys(r[u]).length>0)}toJSON(){return this.data}}var dO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,s,u){return e.forEach(f=>{this.processors[f]&&(t=this.processors[f].process(t,r,s,u))}),t}};const fO={};class wx extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Use(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ul.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,r);return s&&s.res!==void 0}extractFromKey(t,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const u=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const m=s&&t.indexOf(s)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Hse(t,s,u);if(m&&!a){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:f};const S=t.split(s);(s!==u||s===u&&this.options.ns.indexOf(S[0])>-1)&&(f=S.shift()),t=S.join(u)}return typeof f=="string"&&(f=[f]),{key:t,namespaces:f}}translate(t,r,s){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const u=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,f=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:m,namespaces:a}=this.extractFromKey(t[t.length-1],r),v=a[a.length-1],S=r.lng||this.language,D=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S&&S.toLowerCase()==="cimode"){if(D){const ee=r.nsSeparator||this.options.nsSeparator;return u?{res:`${v}${ee}${m}`,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:`${v}${ee}${m}`}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:m}const N=this.resolve(t,r);let C=N&&N.res;const O=N&&N.usedKey||m,R=N&&N.exactUsedKey||m,V=Object.prototype.toString.apply(C),q=["[object Number]","[object Function]","[object RegExp]"],H=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Y&&C&&(typeof C!="string"&&typeof C!="boolean"&&typeof C!="number")&&q.indexOf(V)<0&&!(typeof H=="string"&&V==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,C,{...r,ns:a}):`key '${m} (${this.language})' returned an object instead of string.`;return u?(N.res=ee,N.usedParams=this.getUsedParamsDetails(r),N):ee}if(f){const ee=V==="[object Array]",fe=ee?[]:{},pe=ee?R:O;for(const he in C)if(Object.prototype.hasOwnProperty.call(C,he)){const oe=`${pe}${f}${he}`;fe[he]=this.translate(oe,{...r,joinArrays:!1,ns:a}),fe[he]===oe&&(fe[he]=C[he])}C=fe}}else if(Y&&typeof H=="string"&&V==="[object Array]")C=C.join(H),C&&(C=this.extendTranslation(C,t,r,s));else{let ee=!1,fe=!1;const pe=r.count!==void 0&&typeof r.count!="string",he=wx.hasDefaultValue(r),oe=pe?this.pluralResolver.getSuffix(S,r.count,r):"",Ve=r.ordinal&&pe?this.pluralResolver.getSuffix(S,r.count,{ordinal:!1}):"",De=r[`defaultValue${oe}`]||r[`defaultValue${Ve}`]||r.defaultValue;!this.isValidLookup(C)&&he&&(ee=!0,C=De),this.isValidLookup(C)||(fe=!0,C=m);const Ge=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:C,it=he&&De!==C&&this.options.updateMissing;if(fe||ee||it){if(this.logger.log(it?"updateKey":"missingKey",S,v,m,it?De:C),f){const Le=this.resolve(m,{...r,keySeparator:!1});Le&&Le.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ee=[];const Ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ze&&Ze[0])for(let Le=0;Le<Ze.length;Le++)Ee.push(Ze[Le]);else this.options.saveMissingTo==="all"?Ee=this.languageUtils.toResolveHierarchy(r.lng||this.language):Ee.push(r.lng||this.language);const ze=(Le,Ye,qe)=>{const Ie=he&&qe!==C?qe:Ge;this.options.missingKeyHandler?this.options.missingKeyHandler(Le,v,Ye,Ie,it,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Le,v,Ye,Ie,it,r),this.emit("missingKey",Le,v,Ye,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&pe?Ee.forEach(Le=>{this.pluralResolver.getSuffixes(Le,r).forEach(Ye=>{ze([Le],m+Ye,r[`defaultValue${Ye}`]||De)})}):ze(Ee,m,De))}C=this.extendTranslation(C,t,r,N,s),fe&&C===m&&this.options.appendNamespaceToMissingKey&&(C=`${v}:${m}`),(fe||ee)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${m}`:m,ee?C:void 0):C=this.options.parseMissingKeyHandler(C))}return u?(N.res=C,N.usedParams=this.getUsedParamsDetails(r),N):C}extendTranslation(t,r,s,u,f){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const S=typeof t=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let D;if(S){const C=t.match(this.interpolator.nestingRegexp);D=C&&C.length}let N=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),t=this.interpolator.interpolate(t,N,s.lng||this.language,s),S){const C=t.match(this.interpolator.nestingRegexp),O=C&&C.length;D<O&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(s.lng=u.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var C=arguments.length,O=new Array(C),R=0;R<C;R++)O[R]=arguments[R];return f&&f[0]===O[0]&&!s.context?(m.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${r[0]}`),null):m.translate(...O,r)},s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,v=typeof a=="string"?[a]:a;return t!=null&&v&&v.length&&s.applyPostProcessor!==!1&&(t=dO.handle(v,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,m,a;return typeof t=="string"&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(s))return;const S=this.extractFromKey(v,r),D=S.key;u=D;let N=S.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const C=r.count!==void 0&&typeof r.count!="string",O=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),R=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",V=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);N.forEach(q=>{this.isValidLookup(s)||(a=q,!fO[`${V[0]}-${q}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(fO[`${V[0]}-${q}`]=!0,this.logger.warn(`key "${u}" for languages "${V.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),V.forEach(H=>{if(this.isValidLookup(s))return;m=H;const Y=[D];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Y,D,H,q,r);else{let ee;C&&(ee=this.pluralResolver.getSuffix(H,r.count,r));const fe=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(Y.push(D+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(D+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(D+fe)),R){const he=`${D}${this.options.contextSeparator}${r.context}`;Y.push(he),C&&(Y.push(he+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(he+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(he+fe))}}let W;for(;W=Y.pop();)this.isValidLookup(s)||(f=W,s=this.getResource(H,q,W,r))}))})}),{res:s,usedKey:u,exactUsedKey:f,usedLng:m,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,s,u):this.resourceStore.getResource(t,r,s,u)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&typeof t.replace!="string";let u=s?t.replace:t;if(s&&typeof t.count<"u"&&(u.count=t.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!s){u={...u};for(const f of r)delete u[f]}return u}static hasDefaultValue(t){const r="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&r===s.substring(0,r.length)&&t[s]!==void 0)return!0;return!1}}function AI(e){return e.charAt(0).toUpperCase()+e.slice(1)}class pO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ul.create("languageUtils")}getScriptPartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(u=>u.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase())),r.indexOf(s[2].toLowerCase())>-1&&(s[2]=AI(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(s=>{if(r)return;const u=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(u))&&(r=u)}),!r&&this.options.supportedLngs&&t.forEach(s=>{if(r)return;const u=this.getLanguagePartFromCode(s);if(this.isSupportedCode(u))return r=u;r=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&f.indexOf(u)===0)return f})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let s=t[r];return s||(s=t[this.getScriptPartFromCode(r)]),s||(s=t[this.formatLanguageCode(r)]),s||(s=t[this.getLanguagePartFromCode(r)]),s||(s=t.default),s||[]}toResolveHierarchy(t,r){const s=this.getFallbackCodes(r||this.options.fallbackLng||[],t),u=[],f=m=>{m&&(this.isSupportedCode(m)?u.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(t))):typeof t=="string"&&f(this.formatLanguageCode(t)),s.forEach(m=>{u.indexOf(m)<0&&f(this.formatLanguageCode(m))}),u}}let Yse=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Gse={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Zse=["v1","v2","v3"],Wse=["v4"],mO={zero:0,one:1,two:2,few:3,many:4,other:5};function qse(){const e={};return Yse.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Gse[t.fc]}})}),e}class Kse{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ul.create("pluralResolver"),(!this.options.compatibilityJSON||Wse.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qse()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mx(t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(u=>`${r}${u}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((u,f)=>mO[u]-mO[f]).map(u=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u}`):s.numbers.map(u=>this.getSuffix(t,u,r)):[]}getSuffix(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=this.getRule(t,s);return u?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${u.select(r)}`:this.getSuffixRetroCompatible(u,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const s=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let u=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));const f=()=>this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString();return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?`_plural_${u.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?f():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!Zse.includes(this.options.compatibilityJSON)}}function gO(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Fse(e,t,r);return!f&&u&&typeof r=="string"&&(f=bx(e,r,s),f===void 0&&(f=bx(t,r,s))),f}class Xse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:$se,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?qf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?qf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?qf(r.nestingPrefix):r.nestingPrefixEscaped||qf("$t("),this.nestingSuffix=r.nestingSuffix?qf(r.nestingSuffix):r.nestingSuffixEscaped||qf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const r=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(r,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,r,s,u){let f,m,a;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function S(R){return R.replace(/\$/g,"$$$$")}const D=R=>{if(R.indexOf(this.formatSeparator)<0){const Y=gO(r,v,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Y,void 0,s,{...u,...r,interpolationkey:R}):Y}const V=R.split(this.formatSeparator),q=V.shift().trim(),H=V.join(this.formatSeparator).trim();return this.format(gO(r,v,q,this.options.keySeparator,this.options.ignoreJSONStructure),H,s,{...u,...r,interpolationkey:q})};this.resetRegExp();const N=u&&u.missingInterpolationHandler||this.options.missingInterpolationHandler,C=u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>S(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?S(this.escape(R)):S(R)}].forEach(R=>{for(a=0;f=R.regex.exec(t);){const V=f[1].trim();if(m=D(V),m===void 0)if(typeof N=="function"){const H=N(t,f,u);m=typeof H=="string"?H:""}else if(u&&Object.prototype.hasOwnProperty.call(u,V))m="";else if(C){m=f[0];continue}else this.logger.warn(`missed to pass in variable ${V} for interpolating ${t}`),m="";else typeof m!="string"&&!this.useRawValueToEscape&&(m=lO(m));const q=R.safeValue(m);if(t=t.replace(f[0],q),C?(R.regex.lastIndex+=m.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,f,m;function a(v,S){const D=this.nestingOptionsSeparator;if(v.indexOf(D)<0)return v;const N=v.split(new RegExp(`${D}[ ]*{`));let C=`{${N[1]}`;v=N[0],C=this.interpolate(C,m);const O=C.match(/'/g),R=C.match(/"/g);(O&&O.length%2===0&&!R||R.length%2!==0)&&(C=C.replace(/'/g,'"'));try{m=JSON.parse(C),S&&(m={...S,...m})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,V),`${v}${D}${C}`}return delete m.defaultValue,v}for(;u=this.nestingRegexp.exec(t);){let v=[];m={...s},m=m.replace&&typeof m.replace!="string"?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;let S=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){const D=u[1].split(this.formatSeparator).map(N=>N.trim());u[1]=D.shift(),v=D,S=!0}if(f=r(a.call(this,u[1].trim(),m),m),f&&u[0]===t&&typeof f!="string")return f;typeof f!="string"&&(f=lO(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${t}`),f=""),S&&(f=v.reduce((D,N)=>this.format(D,N,s.lng,{...s,interpolationkey:u[1].trim()}),f.trim())),t=t.replace(u[0],f),this.regexp.lastIndex=0}return t}}function Jse(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const u=s[1].substring(0,s[1].length-1);t==="currency"&&u.indexOf(":")<0?r.currency||(r.currency=u.trim()):t==="relativetime"&&u.indexOf(":")<0?r.range||(r.range=u.trim()):u.split(";").forEach(m=>{if(!m)return;const[a,...v]=m.split(":"),S=v.join(":").trim().replace(/^'+|'+$/g,"");r[a.trim()]||(r[a.trim()]=S),S==="false"&&(r[a.trim()]=!1),S==="true"&&(r[a.trim()]=!0),isNaN(S)||(r[a.trim()]=parseInt(S,10))})}return{formatName:t,formatOptions:r}}function Kf(e){const t={};return function(s,u,f){const m=u+JSON.stringify(f);let a=t[m];return a||(a=e(Mx(u),f),t[m]=a),a(s)}}class eae{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("formatter"),this.options=t,this.formats={number:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s});return f=>u.format(f)}),currency:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s,style:"currency"});return f=>u.format(f)}),datetime:Kf((r,s)=>{const u=new Intl.DateTimeFormat(r,{...s});return f=>u.format(f)}),relativetime:Kf((r,s)=>{const u=new Intl.RelativeTimeFormat(r,{...s});return f=>u.format(f,s.range||"day")}),list:Kf((r,s)=>{const u=new Intl.ListFormat(r,{...s});return f=>u.format(f)})},this.init(t)}init(t){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Kf(r)}format(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,v)=>{const{formatName:S,formatOptions:D}=Jse(v);if(this.formats[S]){let N=a;try{const C=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},O=C.locale||C.lng||u.locale||u.lng||s;N=this.formats[S](a,O,{...D,...u,...C})}catch(C){this.logger.warn(C)}return N}else this.logger.warn(`there was no format function for ${S}`);return a},t)}}function tae(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class nae extends vx{constructor(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=u,this.logger=ul.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,u.backend,u)}queueLoad(t,r,s,u){const f={},m={},a={},v={};return t.forEach(S=>{let D=!0;r.forEach(N=>{const C=`${S}|${N}`;!s.reload&&this.store.hasResourceBundle(S,N)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?m[C]===void 0&&(m[C]=!0):(this.state[C]=1,D=!1,m[C]===void 0&&(m[C]=!0),f[C]===void 0&&(f[C]=!0),v[N]===void 0&&(v[N]=!0)))}),D||(a[S]=!0)}),(Object.keys(f).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(m),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(v)}}loaded(t,r,s){const u=t.split("|"),f=u[0],m=u[1];r&&this.emit("failedLoading",f,m,r),s&&this.store.addResourceBundle(f,m,s),this.state[t]=r?-1:2;const a={};this.queue.forEach(v=>{Bse(v.loaded,[f],m),tae(v,t),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(S=>{a[S]||(a[S]={});const D=v.loaded[S];D.length&&D.forEach(N=>{a[S][N]===void 0&&(a[S][N]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(v=>!v.done)}read(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,m=arguments.length>5?arguments[5]:void 0;if(!t.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:s,tried:u,wait:f,callback:m});return}this.readingCalls++;const a=(S,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(S&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,s,u+1,f*2,m)},f);return}m(S,D)},v=this.backend[s].bind(this.backend);if(v.length===2){try{const S=v(t,r);S&&typeof S.then=="function"?S.then(D=>a(null,D)).catch(a):a(null,S)}catch(S){a(S)}return}return v(t,r,a)}prepareLoading(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const f=this.queueLoad(t,r,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(m=>{this.loadOne(m)})}load(t,r,s){this.prepareLoading(t,r,{},s)}reload(t,r,s){this.prepareLoading(t,r,{reload:!0},s)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,(m,a)=>{m&&this.logger.warn(`${r}loading namespace ${f} for language ${u} failed`,m),!m&&a&&this.logger.log(`${r}loaded namespace ${f} for language ${u}`,a),this.loaded(t,m,a)})}saveMissing(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const v={...m,isUpdate:f},S=this.backend.create.bind(this.backend);if(S.length<6)try{let D;S.length===5?D=S(t,r,s,u,v):D=S(t,r,s,u),D&&typeof D.then=="function"?D.then(N=>a(null,N)).catch(a):a(null,D)}catch(D){a(D)}else S(t,r,s,u,a,v)}!t||!t[0]||this.store.addResource(t[0],r,s,u)}}}function yO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const s=t[3]||t[2];Object.keys(s).forEach(u=>{r[u]=s[u]})}return r},interpolation:{escapeValue:!0,format:(e,t,r,s)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function _O(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ix(){}function iae(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class Zg extends vx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=_O(t),this.services={},this.logger=ul,this.modules={external:[]},iae(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(s=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const u=yO();this.options={...u,...this.options,..._O(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...u.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function f(D){return D?typeof D=="function"?new D:D:null}if(!this.options.isClone){this.modules.logger?ul.init(f(this.modules.logger),this.options):ul.init(null,this.options);let D;this.modules.formatter?D=this.modules.formatter:typeof Intl<"u"&&(D=eae);const N=new pO(this.options);this.store=new hO(this.options.resources,this.options);const C=this.services;C.logger=ul,C.resourceStore=this.store,C.languageUtils=N,C.pluralResolver=new Kse(N,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),D&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(C.formatter=f(D),C.formatter.init(C,this.options),this.options.interpolation.format=C.formatter.format.bind(C.formatter)),C.interpolator=new Xse(this.options),C.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},C.backendConnector=new nae(f(this.modules.backend),C.resourceStore,C,this.options),C.backendConnector.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.languageDetector&&(C.languageDetector=f(this.modules.languageDetector),C.languageDetector.init&&C.languageDetector.init(C,this.options.detection,this.options)),this.modules.i18nFormat&&(C.i18nFormat=f(this.modules.i18nFormat),C.i18nFormat.init&&C.i18nFormat.init(this)),this.translator=new wx(this.services,this.options),this.translator.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ix),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const D=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);D.length>0&&D[0]!=="dev"&&(this.options.lng=D[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(D=>{this[D]=function(){return t.store[D](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(D=>{this[D]=function(){return t.store[D](...arguments),t}});const v=Gg(),S=()=>{const D=(N,C)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(C),s(N,C)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return D(null,this.t.bind(this));this.changeLanguage(this.options.lng,D)};return this.options.resources||!this.options.initImmediate?S():setTimeout(S,0),v}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const u=typeof t=="string"?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const f=[],m=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(S=>{S!=="cimode"&&f.indexOf(S)<0&&f.push(S)})};u?m(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),this.options.preload&&this.options.preload.forEach(a=>m(a)),this.services.backendConnector.load(f,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(a)})}else s(null)}reloadResources(t,r,s){const u=Gg();return t||(t=this.languages),r||(r=this.options.ns),s||(s=Ix),this.services.backendConnector.reload(t,r,f=>{u.resolve(),s(f)}),u}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,r){var s=this;this.isLanguageChangingTo=t;const u=Gg();this.emit("languageChanging",t);const f=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},m=(v,S)=>{S?(f(S),this.translator.changeLanguage(S),this.isLanguageChangingTo=void 0,this.emit("languageChanged",S),this.logger.log("languageChanged",S)):this.isLanguageChangingTo=void 0,u.resolve(function(){return s.t(...arguments)}),r&&r(v,function(){return s.t(...arguments)})},a=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const S=typeof v=="string"?v:this.services.languageUtils.getBestMatchFromCodes(v);S&&(this.language||f(S),this.translator.language||this.translator.changeLanguage(S),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(S)),this.loadResources(S,D=>{m(D,S)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),u}getFixedT(t,r,s){var u=this;const f=function(m,a){let v;if(typeof a!="object"){for(var S=arguments.length,D=new Array(S>2?S-2:0),N=2;N<S;N++)D[N-2]=arguments[N];v=u.options.overloadTranslationOptionHandler([m,a].concat(D))}else v={...a};v.lng=v.lng||f.lng,v.lngs=v.lngs||f.lngs,v.ns=v.ns||f.ns,v.keyPrefix=v.keyPrefix||s||f.keyPrefix;const C=u.options.keySeparator||".";let O;return v.keyPrefix&&Array.isArray(m)?O=m.map(R=>`${v.keyPrefix}${C}${R}`):O=v.keyPrefix?`${v.keyPrefix}${C}${m}`:m,u.t(O,v)};return typeof t=="string"?f.lng=t:f.lngs=t,f.ns=r,f.keyPrefix=s,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=this.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};if(r.precheck){const a=r.precheck(this,m);if(a!==void 0)return a}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(s,t)&&(!u||m(f,t)))}loadNamespaces(t,r){const s=Gg();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{s.resolve(),r&&r(u)}),s):(r&&r(),Promise.resolve())}loadLanguages(t,r){const s=Gg();typeof t=="string"&&(t=[t]);const u=this.options.preload||[],f=t.filter(m=>u.indexOf(m)<0);return f.length?(this.options.preload=u.concat(f),this.loadResources(m=>{s.resolve(),r&&r(m)}),s):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new pO(yO());return r.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Zg(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const u={...this.options,...t,isClone:!0},f=new Zg(u);return(t.debug!==void 0||t.prefix!==void 0)&&(f.logger=f.logger.clone(t)),["store","services","language"].forEach(a=>{f[a]=this[a]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s&&(f.store=new hO(this.store.data,u),f.services.resourceStore=f.store),f.translator=new wx(f.services,u),f.translator.on("*",function(a){for(var v=arguments.length,S=new Array(v>1?v-1:0),D=1;D<v;D++)S[D-1]=arguments[D];f.emit(a,...S)}),f.init(u,r),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Oo=Zg.createInstance();Oo.createInstance=Zg.createInstance,Oo.createInstance,Oo.dir,Oo.init,Oo.loadResources,Oo.reloadResources,Oo.use,Oo.changeLanguage,Oo.getFixedT;const CI=Oo.t;Oo.exists,Oo.setDefaultNamespace,Oo.hasLoadedNamespace,Oo.loadNamespaces,Oo.loadLanguages;function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},NI.apply(this,arguments)}function rae(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const vO={};function LI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&vO[t[0]]||(typeof t[0]=="string"&&(vO[t[0]]=new Date),rae(...t))}const xO=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function bO(e,t,r){e.loadNamespaces(t,xO(e,r))}function MO(e,t,r,s){typeof r=="string"&&(r=[r]),r.forEach(u=>{e.options.ns.indexOf(u)<0&&e.options.ns.push(u)}),e.loadLanguages(t,xO(e,s))}function oae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=t.languages[0],u=t.options?t.options.fallbackLng:!1,f=t.languages[t.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=t.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!m(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(s,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||m(s,e)&&(!u||m(f,e)))}function sae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(LI("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(u,f)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!f(u.isLanguageChangingTo,e))return!1}}):oae(e,t,r)}const aae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lae={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},cae=e=>lae[e];let zI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(aae,cae)};function uae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zI={...zI,...e}}function hae(){return zI}let wO;function dae(e){wO=e}function fae(){return wO}const pae={type:"3rdParty",init(e){uae(e.options.react),dae(e)}},mae=Oe.createContext();class gae{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const yae=(e,t)=>{const r=Oe.useRef();return Oe.useEffect(()=>{r.current=t?r.current:e},[e,t]),r.current};function ua(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:s,defaultNS:u}=Oe.useContext(mae)||{},f=r||s||fae();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new gae),!f){LI("You will need to pass in an i18next instance by using initReactI18next");const W=(fe,pe)=>typeof pe=="string"?pe:pe&&typeof pe=="object"&&typeof pe.defaultValue=="string"?pe.defaultValue:Array.isArray(fe)?fe[fe.length-1]:fe,ee=[W,{},!1];return ee.t=W,ee.i18n={},ee.ready=!1,ee}f.options.react&&f.options.react.wait!==void 0&&LI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...hae(),...f.options.react,...t},{useSuspense:a,keyPrefix:v}=m;let S=e||u||f.options&&f.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(S);const D=(f.isInitialized||f.initializedStoreOnce)&&S.every(W=>sae(W,f,m));function N(){return f.getFixedT(t.lng||null,m.nsMode==="fallback"?S:S[0],v)}const[C,O]=Oe.useState(N);let R=S.join();t.lng&&(R=`${t.lng}${R}`);const V=yae(R),q=Oe.useRef(!0);Oe.useEffect(()=>{const{bindI18n:W,bindI18nStore:ee}=m;q.current=!0,!D&&!a&&(t.lng?MO(f,t.lng,S,()=>{q.current&&O(N)}):bO(f,S,()=>{q.current&&O(N)})),D&&V&&V!==R&&q.current&&O(N);function fe(){q.current&&O(N)}return W&&f&&f.on(W,fe),ee&&f&&f.store.on(ee,fe),()=>{q.current=!1,W&&f&&W.split(" ").forEach(pe=>f.off(pe,fe)),ee&&f&&ee.split(" ").forEach(pe=>f.store.off(pe,fe))}},[f,R]);const H=Oe.useRef(!0);Oe.useEffect(()=>{q.current&&!H.current&&O(N),H.current=!1},[f,v]);const Y=[C,f,D];if(Y.t=C,Y.i18n=f,Y.ready=D,D||!D&&!a)return Y;throw new Promise(W=>{t.lng?MO(f,t.lng,S,()=>W()):bO(f,S,()=>W())})}const _ae={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch",Accessibility:"Accessibility","No route found":"No route found","My position":"My position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Turn on Accessibility to get directions that avoid stairs and escalators.","Go!":"Go!",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route"},vae={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift",Accessibility:"Tilgængelig rute","No route found":"Ingen rute fundet","My position":"Min position","Turn on Accessibility to get directions that avoid stairs and escalators.":'Slå "Tilgængelig rute" til for at få en rutevejledning uden trapper og rulletrapper.',"Go!":"Go!",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten"},xae={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Suche nach Name, Kategorie, Gebäude...","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Öffne vollständige Beschreibung",Locations:"Locations","Directions not available":"Beschreibung nicht verfügbar","Start directions":"Starte Beschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlasse das",Enter:"Gehe in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren",Accessibility:"Barrierefrei","No route found":"Keine Route gefunden","My position":"Meine Position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Schalte Barrierefrei ein, um Treppen und Rolltreppen zu vermeiden.","Go!":"Start!",Venues:"Standorte","Select venue":"Wähle Standort",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden"},bae={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer",Accessibility:"Accessibilité","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Activez l'accessibilité pour obtenir des itinéraires qui évitent les escaliers.","Go!":"C'est parti!",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire"};function Mae(e){Oo.use(pae).init({resources:{en:{translation:_ae},da:{translation:vae},de:{translation:xae},fr:{translation:bae}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const K_e="",ls={Google:"google",Mapbox:"mapbox"},bs=ui({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),wae=e=>{const t=on(bs),r=Oe.useRef(),[s,u]=Oe.useState([]);Oe.useEffect(()=>{(async()=>{if(t&&e){for(const a of s)r.current.disableLiveData(a);r.current=new window.mapsindoors.LiveDataManager(t);const m=await r.current.LiveDataInfo.activeDomainTypes();for(const a of m)await r.current.enableLiveData(a);u(m)}})()},[e,t])},X_e="";var Iae=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,u,f;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(u=s;u--!==0;)if(!e(t[u],r[u]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(r).length)return!1;for(u=s;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,f[u]))return!1;for(u=s;u--!==0;){var m=f[u];if(!e(t[m],r[m]))return!1}return!0}return t!==t&&r!==r};const IO="__googleMapsScriptId";var Xf;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Xf||(Xf={}));let Tae=class mm{constructor({apiKey:t,authReferrerPolicy:r,channel:s,client:u,id:f=IO,language:m,libraries:a=[],mapIds:v,nonce:S,region:D,retries:N=3,url:C="https://maps.googleapis.com/maps/api/js",version:O}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=r,this.channel=s,this.client=u,this.id=f||IO,this.language=m,this.libraries=a,this.mapIds=v,this.nonce=S,this.region=D,this.retries=N,this.url=C,this.version=O,mm.instance){if(!Iae(this.options,mm.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(mm.instance.options)}`);return mm.instance}mm.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Xf.FAILURE:this.done?Xf.SUCCESS:this.loading?Xf.LOADING:Xf.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,r)=>{this.loadCallback(s=>{s?r(s.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const t=this.createUrl(),r=document.createElement("script");r.id=this.id,r.type="text/javascript",r.src=t,r.onerror=this.loadErrorCallback.bind(this),r.defer=!0,r.async=!0,this.nonce&&(r.nonce=this.nonce),document.head.appendChild(r)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const r=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${r} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},r)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};const Tx=ui({key:"gmApiKey",default:null}),Aa=ui({key:"primaryColor",default:"#005655"}),TO=ui({key:"gmMapId",default:null}),Wg=ui({key:"bearing",default:0}),qg=ui({key:"pitch",default:0}),SO=e=>{const[t,r]=Oe.useState(!1);return Oe.useEffect(()=>{const s=window.matchMedia(e);s.matches!==t&&r(s.matches);const u=()=>r(s.matches);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[t,e]),t},oc=()=>SO("(min-width: 992px)");function Sae({onMapView:e,onPositionControl:t}){const r=on(Tx),s=on(TO),[u,f]=Oe.useState(),[m,a]=Oe.useState(),[v,S]=Oe.useState(!1),[D,N]=Oe.useState(!1),[C,O]=Oe.useState(!1),R=on(bs),V=on(Aa),q=on(Wg),H=on(qg),Y=oc();return Oe.useEffect(()=>{new Tae({apiKey:r,version:"quarterly",libraries:["geometry","places"]}).load().then(ee=>{f(ee);const fe={element:document.getElementById("map"),disableDefaultUI:!0,center:{lat:0,lng:0},zoom:21,mapId:s,heading:isNaN(parseInt(q))?0:parseInt(q),tilt:isNaN(parseInt(H))?0:parseInt(H)},pe=new window.mapsindoors.mapView.GoogleMapsView(fe);a(pe);const he=new window.mapsindoors.directions.GoogleMapsProvider;e(pe,he)})},[]),Oe.useEffect(()=>{if(R&&m&&u&&!D){const W=document.createElement("mi-my-position");W.mapsindoors=R,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),N(!0),t(W)}if(R&&m&&u&&!v){const W=document.createElement("mi-floor-selector");W.mapsindoors=R,W.primaryColor=V,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),S(!0)}R&&m&&u&&!C&&Y&&(m.getMap().setOptions({zoomControl:!0,zoomControlOptions:{style:u.maps.ZoomControlStyle.DEFAULT,position:u.maps.ControlPosition.RIGHT_TOP}}),O(!0))},[R,m,u,v,D]),Je.jsx("div",{className:"map-container",id:"map","data-sentry-component":"GoogleMapsMap","data-sentry-source-file":"GoogleMapsMap.jsx"})}var EO={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Lc,function(){var r,s,u;function f(a,v){if(!r)r=v;else if(!s)s=v;else{var S="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+r+")(sharedChunk); ("+s+")(sharedChunk); self.onerror = null;",D={};r(D),u=v(D),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(u.workerUrl=window.URL.createObjectURL(new Blob([S],{type:"text/javascript"})))}}f(["exports"],function(a){var v="3.3.0";let S;const D={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(S==null){const i=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{S=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):i}catch{S=i}}return S},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!D.API_URL)return null;try{const i=new URL(D.API_URL);return i.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":i.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"};function N(i){return D.API_URL_REGEX.test(i)}function C(i){return i.indexOf("mapbox:")===0}function O(i){return D.API_CDN_URL_REGEX.test(i)}function R(i){return D.API_SPRITE_REGEX.test(i)}function V(i){return D.API_STYLE_REGEX.test(i)&&!R(i)}const q={create:"create",load:"load",fullLoad:"fullLoad"};function H(i){const n=i.name.split("?")[0];return O(n)&&n.includes("mapbox-gl.js")?"javascript":O(n)&&n.includes("mapbox-gl.css")?"css":function(o){return D.API_FONTS_REGEX.test(o)}(n)?"fontRange":R(n)?"sprite":V(n)?"style":function(o){return D.API_TILEJSON_REGEX.test(o)}(n)?"tilejson":"other"}function Y(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var W=ee;function ee(i,n,o,c){this.cx=3*i,this.bx=3*(o-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(c-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=n,this.p2x=o,this.p2y=c}ee.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,n){if(n===void 0&&(n=1e-6),i<0)return 0;if(i>1)return 1;for(var o=i,c=0;c<8;c++){var d=this.sampleCurveX(o)-i;if(Math.abs(d)<n)return o;var p=this.sampleCurveDerivativeX(o);if(Math.abs(p)<1e-6)break;o-=d/p}var _=0,b=1;for(o=i,c=0;c<20&&(d=this.sampleCurveX(o),!(Math.abs(d-i)<n));c++)i>d?_=o:b=o,o=.5*(b-_)+_;return o},solve:function(i,n){return this.sampleCurveY(this.solveCurveX(i,n))}};var fe=Y(W),pe=he;function he(i,n){this.x=i,this.y=n}he.prototype={clone:function(){return new he(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,n){return this.clone()._rotateAround(i,n)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var n=i.x-this.x,o=i.y-this.y;return n*n+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,n){return Math.atan2(this.x*n-this.y*i,this.x*i+this.y*n)},_matMult:function(i){var n=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=n,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var n=Math.cos(i),o=Math.sin(i),c=o*this.x+n*this.y;return this.x=n*this.x-o*this.y,this.y=c,this},_rotateAround:function(i,n){var o=Math.cos(i),c=Math.sin(i),d=n.y+c*(this.x-n.x)+o*(this.y-n.y);return this.x=n.x+o*(this.x-n.x)-c*(this.y-n.y),this.y=d,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},he.convert=function(i){return i instanceof he?i:Array.isArray(i)?new he(i[0],i[1]):i};var oe=Y(pe);const Ve=Math.PI/180,De=180/Math.PI;function Ae(i){return i*Ve}function Ge(i){return i*De}const it=[[0,0],[1,0],[1,1],[0,1]];function Ee(i){if(i<=0)return 0;if(i>=1)return 1;const n=i*i,o=n*i;return 4*(i<.5?o:3*(i-n)+o-.75)}function Ze(i,n,o,c){const d=new fe(i,n,o,c);return function(p){return d.solve(p)}}const ze=Ze(.25,.1,.25,1);function Le(i,n,o){return Math.min(o,Math.max(n,i))}function Ye(i,n,o){return(o=Le((o-i)/(n-i),0,1))*o*(3-2*o)}function qe(i,n,o){const c=o-n,d=((i-n)%c+c)%c+n;return d===n?o:d}function Ie(i,n,o){if(!i.length)return o(null,[]);let c=i.length;const d=new Array(i.length);let p=null;i.forEach((_,b)=>{n(_,(w,I)=>{w&&(p=w),d[b]=I,--c==0&&o(p,d)})})}function Te(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}let le=1;function X(){return le++}function ie(){return function i(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,i)}()}function Me(i){return i<=1?1:Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function xe(i){return!!i&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)}function $e(i,n){i.forEach(o=>{n[o]&&(n[o]=n[o].bind(n))})}function He(i,n){return i.indexOf(n,i.length-n.length)!==-1}function Ue(i,n,o){const c={};for(const d in i)c[d]=n.call(o||this,i[d],d,i);return c}function Xe(i,n,o){const c={};for(const d in i)n.call(o||this,i[d],d,i)&&(c[d]=i[d]);return c}function ut(i){return Array.isArray(i)?i.map(ut):typeof i=="object"&&i?Ue(i,ut):i}const _t={};function et(i){_t[i]||(typeof console<"u"&&console.warn(i),_t[i]=!0)}function bt(i,n,o){return(o.y-i.y)*(n.x-i.x)>(n.y-i.y)*(o.x-i.x)}function Ot(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function Rt([i,n,o]){const c=Ae(n+90),d=Ae(o);return{x:i*Math.cos(c)*Math.sin(d),y:i*Math.sin(c)*Math.sin(d),z:i*Math.cos(d),azimuthal:n,polar:o}}function dn(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Bn(i){const n={};if(i.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(o,c,d,p)=>{const _=d||p;return n[c]=!_||_.toLowerCase(),""}),n["max-age"]){const o=parseInt(n["max-age"],10);isNaN(o)?delete n["max-age"]:n["max-age"]=o}return n}let Tt,kn,An,Cn,$n,ni,st=null;function se(i){try{const n=self[i];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch{return!1}}function ce(i,n){return[i[4*n],i[4*n+1],i[4*n+2],i[4*n+3]]}function Ne(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<c?n=d+1:o=d}return n}function ht(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<=c?n=d+1:o=d}return n}function vt(){return Tt==null&&(Tt=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Tt}const pt={now:()=>Cn!==void 0?Cn:performance.now(),setNow(i){Cn=i},restoreNow(){Cn=void 0},frame(i){const n=requestAnimationFrame(i);return{cancel:()=>cancelAnimationFrame(n)}},getImageData(i,n=0){const{width:o,height:c}=i;$n||($n=document.createElement("canvas"));const d=$n.getContext("2d",{willReadFrequently:!0});if(!d)throw new Error("failed to create canvas 2d context");return(o>$n.width||c>$n.height)&&($n.width=o,$n.height=c),d.clearRect(-n,-n,o+2*n,c+2*n),d.drawImage(i,0,0,o,c),d.getImageData(-n,-n,o+2*n,c+2*n)},resolveURL:i=>(kn||(kn=document.createElement("a")),kn.href=i,kn.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(An==null&&(An=window.matchMedia("(prefers-reduced-motion: reduce)")),An.matches)},hasCanvasFingerprintNoise(){if(ni!==void 0)return ni;if(!vt())return ni=!1,!1;const i=new OffscreenCanvas(85,1),n=i.getContext("2d",{willReadFrequently:!0});let o=0;for(let d=0;d<i.width;++d)n.fillStyle=`rgba(${o++},${o++},${o++}, 255)`,n.fillRect(d,0,1,1);const c=n.getImageData(0,0,i.width,i.height);o=0;for(let d=0;d<c.data.length;++d)if(d%4!=3&&o++!==c.data[d])return ni=!0,!0;return ni=!1,!1}},Ct="mapbox-tiles";let mt=500,an=50,Fe,Pe;function St(){try{return caches}catch{}}function Xt(){const i=St();i&&!Fe&&(Fe=i.open(Ct))}function Dt(i){const n=i.indexOf("?");if(n<0)return i;const o=["language","worldview"],c=new URLSearchParams,d=new URLSearchParams(i.slice(n));for(const p of o){const _=d.get(p);_&&c.set(p,_)}return`${i.slice(0,n)}?${c.toString()}`}function kt(i,n){const o=i.indexOf("?");if(o<0)return`${i}?${new URLSearchParams(n).toString()}`;const c=new URLSearchParams(i.slice(o));for(const d in n)c.set(d,n[d]);return`${i.slice(0,o)}?${c.toString()}`}let Ft=1/0;const Vt={supported:!1,testSupport:function(i){!Xn&&Sn&&(ai?Wi(i):tn=i)}};let tn,Sn,Xn=!1,ai=!1;const Ei=typeof self<"u"?self:{};function Wi(i){const n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n);try{if(i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,Sn),i.isContextLost())return;Vt.supported=!0}catch{}i.deleteTexture(n),Xn=!0}Ei.document&&(Sn=Ei.document.createElement("img"),Sn.onload=function(){tn&&Wi(tn),tn=null,ai=!0},Sn.onerror=function(){Xn=!0,tn=null},Sn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const qi={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(qi);class Zn extends Error{constructor(n,o,c){o===401&&N(c)&&(n+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(n),this.status=o,this.url=c}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ki=dn()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Mt=function(i,n){if(!(/^file:/.test(o=i.url)||/^file:/.test(Ki())&&!/^\w+:/.test(o))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(c,d){const p=new AbortController,_=new Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:Ki(),referrerPolicy:c.referrerPolicy,signal:p.signal});let b=!1,w=!1;const I=(E=_.url).indexOf("sku=")>0&&N(E);var E;c.type==="json"&&_.headers.set("Accept","application/json");const L=(U,F,$)=>{if(w)return;if(U&&U.message!=="SecurityError"&&et(U.toString()),F&&$)return k(F);const Z=Date.now();fetch(_).then(J=>{if(J.ok){const de=I?J.clone():null;return k(J,de,Z)}return d(new Zn(J.statusText,J.status,c.url))}).catch(J=>{J.name!=="AbortError"&&d(new Error(`${J.message} ${c.url}`))})},k=(U,F,$)=>{(c.type==="arrayBuffer"?U.arrayBuffer():c.type==="json"?U.json():U.text()).then(Z=>{w||(F&&$&&function(J,de,ye){if(Xt(),!Fe)return;const ge=Bn(de.headers.get("Cache-Control")||"");if(ge["no-store"])return;const Se={status:de.status,statusText:de.statusText,headers:new Headers};de.headers.forEach((We,nt)=>Se.headers.set(nt,We)),ge["max-age"]&&Se.headers.set("Expires",new Date(ye+1e3*ge["max-age"]).toUTCString());const we=Se.headers.get("Expires");if(!we||new Date(we).getTime()-ye<42e4)return;let Re=Dt(J.url);if(de.status===206){const We=J.headers.get("Range");if(!We)return;Se.status=200,Re=kt(Re,{range:We})}(function(We,nt){if(Pe===void 0)try{new Response(new ReadableStream),Pe=!0}catch{Pe=!1}Pe?nt(We.body):We.blob().then(nt)})(de,We=>{const nt=new Response(We,Se);Xt(),Fe&&Fe.then(ct=>ct.put(Re,nt)).catch(ct=>et(ct.message))})}(_,F,$),b=!0,d(null,Z,U.headers.get("Cache-Control"),U.headers.get("Expires")))}).catch(Z=>{w||d(new Error(Z.message))})};return I?function(U,F){if(Xt(),!Fe)return F(null);Fe.then($=>{let Z=Dt(U.url);const J=U.headers.get("Range");J&&(Z=kt(Z,{range:J})),$.match(Z).then(de=>{const ye=function(ge){if(!ge)return!1;const Se=new Date(ge.headers.get("Expires")||0),we=Bn(ge.headers.get("Cache-Control")||"");return Se>Date.now()&&!we["no-cache"]}(de);$.delete(Z),ye&&$.put(Z,de.clone()),F(null,de,ye)}).catch(F)}).catch(F)}(_,L):L(null,null),{cancel:()=>{w=!0,b||p.abort()}}}(i,n);if(dn()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,n,void 0,!0)}var o;return function(c,d){const p=new XMLHttpRequest;p.open(c.method||"GET",c.url,!0),c.type==="arrayBuffer"&&(p.responseType="arraybuffer");for(const _ in c.headers)p.setRequestHeader(_,c.headers[_]);return c.type==="json"&&(p.responseType="text",p.setRequestHeader("Accept","application/json")),p.withCredentials=c.credentials==="include",p.onerror=()=>{d(new Error(p.statusText))},p.onload=()=>{if((p.status>=200&&p.status<300||p.status===0)&&p.response!==null){let _=p.response;if(c.type==="json")try{_=JSON.parse(p.response)}catch(b){return d(b)}d(null,_,p.getResponseHeader("Cache-Control"),p.getResponseHeader("Expires"))}else d(new Zn(p.statusText,p.status,c.url))},p.send(c.body),{cancel:()=>p.abort()}}(i,n)},It=function(i,n){return Mt(Te(i,{type:"arrayBuffer"}),n)};function Bt(i){const n=document.createElement("a");return n.href=i,n.protocol===location.protocol&&n.host===location.host}const qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Ht,en;Ht=[],en=0;const nn=function(i,n){if(Vt.supported&&(i.headers||(i.headers={}),i.headers.accept="image/webp,*/*"),en>=D.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:i,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Ht.push(p),p}en++;let o=!1;const c=()=>{if(!o)for(o=!0,en--;Ht.length&&en<D.MAX_PARALLEL_IMAGE_REQUESTS;){const p=Ht.shift(),{requestParameters:_,callback:b,cancelled:w}=p;w||(p.cancel=nn(_,b).cancel)}},d=It(i,(p,_,b,w)=>{c(),p?n(p):_&&(self.createImageBitmap?function(I,E){const L=new Blob([new Uint8Array(I)],{type:"image/png"});createImageBitmap(L).then(k=>{E(null,k)}).catch(k=>{E(new Error(`Could not load image because of ${k.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(_,(I,E)=>n(I,E,b,w)):function(I,E){const L=new Image;L.onload=()=>{E(null,L),URL.revokeObjectURL(L.src),L.onload=null,requestAnimationFrame(()=>{L.src=qt})},L.onerror=()=>E(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const k=new Blob([new Uint8Array(I)],{type:"image/png"});L.src=I.byteLength?URL.createObjectURL(k):qt}(_,(I,E)=>n(I,E,b,w)))});return{cancel:()=>{d.cancel(),c()}}},Yt="01",ln="NO_ACCESS_TOKEN",Jt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Gt(i){const n=i.match(Jt);if(!n)throw new Error("Unable to parse URL object");return{protocol:n[1],authority:n[2],path:n[3]||"/",params:n[4]?n[4].split("&"):[]}}function wn(i){const n=i.params.length?`?${i.params.join("&")}`:"";return`${i.protocol}://${i.authority}${i.path}${n}`}const cn="mapbox.eventData";function Di(i){if(!i)return null;const n=i.split(".");if(!n||n.length!==3)return null;try{return JSON.parse(decodeURIComponent(atob(n[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class ji{constructor(n){this.type=n,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(n){const o=Di(D.ACCESS_TOKEN);let c="";return c=o&&o.u?btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(d,p)=>String.fromCharCode(+("0x"+p)))):D.ACCESS_TOKEN||"",n?`${cn}.${n}:${c}`:`${cn}:${c}`}fetchEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{const d=localStorage.getItem(o);d&&(this.eventData=JSON.parse(d));const p=localStorage.getItem(c);p&&(this.anonId=p)}catch{et("Unable to read from LocalStorage")}}saveEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid"),d=this.anonId;if(n&&d)try{localStorage.setItem(c,d),Object.keys(this.eventData).length>=1&&localStorage.setItem(o,JSON.stringify(this.eventData))}catch{et("Unable to write to LocalStorage")}}processRequests(n){}postEvent(n,o,c,d){if(!D.EVENTS_URL)return;const p=Gt(D.EVENTS_URL);p.params.push(`access_token=${d||D.ACCESS_TOKEN||""}`);const _={event:this.type,created:new Date(n).toISOString()},b=o?Te(_,o):_,w={url:wn(p),headers:{"Content-Type":"text/plain"},body:JSON.stringify([b])};this.pendingRequest=function(I,E){return Mt(Te(I,{method:"POST"}),E)}(w,I=>{this.pendingRequest=null,c(I),this.saveEventData(),this.processRequests(d)})}queueRequest(n,o){this.queue.push(n),this.processRequests(o)}}const Ci=new class extends ji{constructor(i){super("appUserTurnstile"),this._customAccessToken=i}postTurnstileEvent(i,n){D.EVENTS_URL&&D.ACCESS_TOKEN&&Array.isArray(i)&&i.some(o=>C(o)||N(o))&&this.queueRequest(Date.now(),n)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=Di(D.ACCESS_TOKEN),o=n?n.u:D.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;xe(this.anonId)||(this.anonId=ie(),c=!0);const d=this.queue.shift();if(this.eventData.lastSuccess){const p=new Date(this.eventData.lastSuccess),_=new Date(d),b=(d-this.eventData.lastSuccess)/864e5;c=c||b>=1||b<-1||p.getDate()!==_.getDate()}else c=!0;c?this.postEvent(d,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,"enabled.telemetry":!1,userId:this.anonId},p=>{p||(this.eventData.lastSuccess=d,this.eventData.tokenU=o)},i):this.processRequests()}},mr=Ci.postTurnstileEvent.bind(Ci),ho=new class extends ji{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(i,n,o,c){this.skuToken=n,this.errorCb=c,D.EVENTS_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),xe(this.anonId)||(this.anonId=ie()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i))}remove(){this.errorCb=null}},bi=ho.postMapLoadEvent.bind(ho),cs=new class extends ji{constructor(){super("gljs.performance")}postPerformanceEvent(i,n){D.EVENTS_URL&&(i||D.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},i)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:n,performanceData:o}=this.queue.shift(),c=function(d){const p=performance.getEntriesByType("resource"),_=performance.getEntriesByType("mark"),b=function(U){const F={};if(U){for(const $ in U)if($!=="other")for(const Z of U[$]){const J=`${$}ResolveRangeMin`,de=`${$}ResolveRangeMax`,ye=`${$}RequestCount`,ge=`${$}RequestCachedCount`;F[J]=Math.min(F[J]||1/0,Z.startTime),F[de]=Math.max(F[de]||-1/0,Z.responseEnd);const Se=we=>{F[we]===void 0&&(F[we]=0),++F[we]};Z.transferSize!==void 0&&Z.transferSize===0&&Se(ge),Se(ye)}}return F}(function(U,F){const $={};if(U)for(const Z of U){const J=F(Z);$[J]===void 0&&($[J]=[]),$[J].push(Z)}return $}(p,H)),w=window.devicePixelRatio,I=navigator.connection||navigator.mozConnection||navigator.webkitConnection,E=I?I.effectiveType:void 0,L={counters:[],metadata:[],attributes:[]},k=(U,F,$)=>{$!=null&&U.push({name:F,value:$.toString()})};for(const U in b)k(L.counters,U,b[U]);if(d.interactionRange[0]!==1/0&&d.interactionRange[1]!==-1/0&&(k(L.counters,"interactionRangeMin",d.interactionRange[0]),k(L.counters,"interactionRangeMax",d.interactionRange[1])),_)for(const U of Object.keys(q)){const F=q[U],$=_.find(Z=>Z.name===F);$&&k(L.counters,F,$.startTime)}return k(L.counters,"visibilityHidden",d.visibilityHidden),k(L.attributes,"style",function(U){if(U)for(const F of U){const $=F.name.split("?")[0];if(V($)){const Z=$.split("/").slice(-2);if(Z.length===2)return`mapbox://styles/${Z[0]}/${Z[1]}`}}}(p)),k(L.attributes,"terrainEnabled",d.terrainEnabled?"true":"false"),k(L.attributes,"fogEnabled",d.fogEnabled?"true":"false"),k(L.attributes,"projection",d.projection),k(L.attributes,"zoom",d.zoom),k(L.metadata,"devicePixelRatio",w),k(L.metadata,"connectionEffectiveType",E),k(L.metadata,"navigatorUserAgent",navigator.userAgent),k(L.metadata,"screenWidth",window.screen.width),k(L.metadata,"screenHeight",window.screen.height),k(L.metadata,"windowWidth",window.innerWidth),k(L.metadata,"windowHeight",window.innerHeight),k(L.metadata,"mapWidth",d.width/w),k(L.metadata,"mapHeight",d.height/w),k(L.metadata,"webglRenderer",d.renderer),k(L.metadata,"webglVendor",d.vendor),k(L.metadata,"sdkVersion",v),k(L.metadata,"sdkIdentifier","mapbox-gl-js"),L}(o);for(const d of c.metadata);for(const d of c.counters);for(const d of c.attributes);this.postEvent(n,c,()=>{},i)}},Qs=cs.postPerformanceEvent.bind(cs),fo=new class extends ji{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(i,n,o,c){if(!D.API_URL||!D.SESSION_PATH)return;const d=Gt(D.API_URL+D.SESSION_PATH);d.params.push(`sku=${n||""}`),d.params.push(`access_token=${c||D.ACCESS_TOKEN||""}`);const p={url:wn(d),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(_,b){return Mt(Te(_,{method:"GET"}),b)}(p,_=>{this.pendingRequest=null,o(_),this.saveEventData(),this.processRequests(c)})}getSessionAPI(i,n,o,c){this.skuToken=n,this.errorCb=c,D.SESSION_PATH&&D.API_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||this.getSession(o,this.skuToken,c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i)}remove(){this.errorCb=null}},Fh=fo.getSessionAPI.bind(fo),ml=new Set;function vu(i,n,o){o[i]&&o[i].indexOf(n)!==-1||(o[i]=o[i]||[],o[i].push(n))}function m0(i,n,o){if(o&&o[i]){const c=o[i].indexOf(n);c!==-1&&o[i].splice(c,1)}}class cc{constructor(n,o={}){Te(this,o),this.type=n}}class g0 extends cc{constructor(n,o={}){super("error",Te({error:n},o))}}class xu{on(n,o){return this._listeners=this._listeners||{},vu(n,o,this._listeners),this}off(n,o){return m0(n,o,this._listeners),m0(n,o,this._oneTimeListeners),this}once(n,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},vu(n,o,this._oneTimeListeners),this):new Promise(c=>this.once(n,c))}fire(n,o){typeof n=="string"&&(n=new cc(n,o||{}));const c=n.type;if(this.listens(c)){n.target=this;const d=this._listeners&&this._listeners[c]?this._listeners[c].slice():[];for(const b of d)b.call(this,n);const p=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const b of p)m0(c,b,this._oneTimeListeners),b.call(this,n);const _=this._eventedParent;_&&(Te(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_.fire(n))}else n instanceof g0&&console.error(n.error);return this}listens(n){return!!(this._listeners&&this._listeners[n]&&this._listeners[n].length>0||this._oneTimeListeners&&this._oneTimeListeners[n]&&this._oneTimeListeners[n].length>0||this._eventedParent&&this._eventedParent.listens(n))}setEventedParent(n,o){return this._eventedParent=n,this._eventedParentData=o,this}}a.y=void 0;var hb={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function dp(i){return(i=Math.round(i))<0?0:i>255?255:i}function y0(i){return dp(i[i.length-1]==="%"?parseFloat(i)/100*255:parseInt(i))}function fp(i){return(n=i[i.length-1]==="%"?parseFloat(i)/100:parseFloat(i))<0?0:n>1?1:n;var n}function _0(i,n,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?i+(n-i)*o*6:2*o<1?n:3*o<2?i+(n-i)*(2/3-o)*6:i}try{a.y={}.parseCSSColor=function(i){var n,o=i.replace(/ /g,"").toLowerCase();if(o in hb)return hb[o].slice();if(o[0]==="#")return o.length===4?(n=parseInt(o.substr(1),16))>=0&&n<=4095?[(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1]:null:o.length===7&&(n=parseInt(o.substr(1),16))>=0&&n<=16777215?[(16711680&n)>>16,(65280&n)>>8,255&n,1]:null;var c=o.indexOf("("),d=o.indexOf(")");if(c!==-1&&d+1===o.length){var p=o.substr(0,c),_=o.substr(c+1,d-(c+1)).split(","),b=1;switch(p){case"rgba":if(_.length!==4)return null;b=fp(_.pop());case"rgb":return _.length!==3?null:[y0(_[0]),y0(_[1]),y0(_[2]),b];case"hsla":if(_.length!==4)return null;b=fp(_.pop());case"hsl":if(_.length!==3)return null;var w=(parseFloat(_[0])%360+360)%360/360,I=fp(_[1]),E=fp(_[2]),L=E<=.5?E*(I+1):E+I-E*I,k=2*E-L;return[dp(255*_0(k,L,w+1/3)),dp(255*_0(k,L,w)),dp(255*_0(k,L,w-1/3)),b];default:return null}}return null}}catch{}class Ho{constructor(n,o,c,d=1){this.r=n,this.g=o,this.b=c,this.a=d}static parse(n){if(!n)return;if(n instanceof Ho)return n;if(typeof n!="string")return;const o=a.y(n);return o?new Ho(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3]):void 0}toString(){const[n,o,c,d]=this.toArray();return`rgba(${Math.round(n)},${Math.round(o)},${Math.round(c)},${d})`}toArray(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[255*n/d,255*o/d,255*c/d,d]}toArray01(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[n/d,o/d,c/d,d]}toArray01Scaled(n){const{r:o,g:c,b:d,a:p}=this;return p===0?[0,0,0]:[o/p*n,c/p*n,d/p*n]}toArray01PremultipliedAlpha(){const{r:n,g:o,b:c,a:d}=this;return[n,o,c,d]}toArray01Linear(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[Math.pow(n/d,2.2),Math.pow(o/d,2.2),Math.pow(c/d,2.2),d]}}Ho.black=new Ho(0,0,0,1),Ho.white=new Ho(1,1,1,1),Ho.transparent=new Ho(0,0,0,0),Ho.red=new Ho(1,0,0,1),Ho.blue=new Ho(0,0,1,1);var Cr=Ho;function li(i,n,o){return i*(1-o)+n*o}function db(i,n,o){return i.map((c,d)=>li(c,n[d],o))}var pp=Object.freeze({__proto__:null,array:db,color:function(i,n,o){return new Cr(li(i.r,n.r,o),li(i.g,n.g,o),li(i.b,n.b,o),li(i.a,n.a,o))},number:li});function v0(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}class GS extends Error{constructor(n,o){super(o),this.message=o,this.key=n}}var fa=GS;class x0{constructor(n,o=[]){this.parent=n,this.bindings={};for(const[c,d]of o)this.bindings[c]=d}concat(n){return new x0(this,n)}get(n){if(this.bindings[n])return this.bindings[n];if(this.parent)return this.parent.get(n);throw new Error(`${n} not found in scope.`)}has(n){return!!this.bindings[n]||!!this.parent&&this.parent.has(n)}}var ZS=x0;const bu={kind:"null"},hn={kind:"number"},wi={kind:"string"},Ii={kind:"boolean"},Is={kind:"color"},Mu={kind:"object"},pi={kind:"value"},mp={kind:"collator"},wu={kind:"formatted"},Vh={kind:"resolvedImage"};function Yo(i,n){return{kind:"array",itemType:i,N:n}}function Ir(i){if(i.kind==="array"){const n=Ir(i.itemType);return typeof i.N=="number"?`array<${n}, ${i.N}>`:i.itemType.kind==="value"?"array":`array<${n}>`}return i.kind}const En=[bu,hn,wi,Ii,Is,wu,Mu,Yo(pi),Vh];function uc(i,n){if(n.kind==="error")return null;if(i.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!uc(i.itemType,n.itemType))&&(typeof i.N!="number"||i.N===n.N))return null}else{if(i.kind===n.kind)return null;if(i.kind==="value"){for(const o of En)if(!uc(o,n))return null}}return`Expected ${Ir(i)} but found ${Ir(n)} instead.`}function Rn(i,n){return n.some(o=>o.kind===i.kind)}function gl(i,n){return n.some(o=>o==="null"?i===null:o==="array"?Array.isArray(i):o==="object"?i&&!Array.isArray(i)&&typeof i=="object":o===typeof i)}class Jn{constructor(n,o,c){this.sensitivity=n?o?"variant":"case":o?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(n,o){return this.collator.compare(n,o)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Iu{constructor(n,o,c,d,p){this.text=n.normalize?n.normalize():n,this.image=o,this.scale=c,this.fontStack=d,this.textColor=p}}class po{constructor(n){this.sections=n}static fromString(n){return new po([new Iu(n,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(n=>n.text.length!==0||n.image&&n.image.namePrimary.length!==0)}static factory(n){return n instanceof po?n:po.fromString(n)}toString(){return this.sections.length===0?"":this.sections.map(n=>n.text).join("")}serialize(){const n=["format"];for(const o of this.sections){if(o.image){n.push(["image",o.image.namePrimary]);continue}n.push(o.text);const c={};o.fontStack&&(c["text-font"]=["literal",o.fontStack.split(",")]),o.scale&&(c["font-scale"]=o.scale),o.textColor&&(c["text-color"]=["rgba"].concat(o.textColor.toArray())),n.push(c)}return n}}class Dn{constructor(n){this.namePrimary=n.namePrimary,n.nameSecondary&&(this.nameSecondary=n.nameSecondary),this.available=n.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(n,o){return n?new Dn({namePrimary:n,nameSecondary:o,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function fb(i,n,o,c){return typeof i=="number"&&i>=0&&i<=255&&typeof n=="number"&&n>=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255?c===void 0||typeof c=="number"&&c>=0&&c<=1?null:`Invalid rgba value [${[i,n,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof c=="number"?[i,n,o,c]:[i,n,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function hc(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof Cr||i instanceof Jn||i instanceof po||i instanceof Dn)return!0;if(Array.isArray(i)){for(const n of i)if(!hc(n))return!1;return!0}if(typeof i=="object"){for(const n in i)if(!hc(i[n]))return!1;return!0}return!1}function kr(i){if(i===null)return bu;if(typeof i=="string")return wi;if(typeof i=="boolean")return Ii;if(typeof i=="number")return hn;if(i instanceof Cr)return Is;if(i instanceof Jn)return mp;if(i instanceof po)return wu;if(i instanceof Dn)return Vh;if(Array.isArray(i)){const n=i.length;let o;for(const c of i){const d=kr(c);if(o){if(o===d)continue;o=pi;break}o=d}return Yo(o||pi,n)}return Mu}function Ts(i){const n=typeof i;return i===null?"":n==="string"||n==="number"||n==="boolean"?String(i):i instanceof Cr||i instanceof po||i instanceof Dn?i.toString():JSON.stringify(i)}class yl{constructor(n,o){this.type=n,this.value=o}static parse(n,o){if(n.length!==2)return o.error(`'literal' expression requires exactly one argument, but found ${n.length-1} instead.`);if(!hc(n[1]))return o.error("invalid value");const c=n[1];let d=kr(c);const p=o.expectedType;return d.kind!=="array"||d.N!==0||!p||p.kind!=="array"||typeof p.N=="number"&&p.N!==0||(d=p),new yl(d,c)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Cr?["rgba"].concat(this.value.toArray()):this.value instanceof po?this.value.serialize():this.value}}var Ca=yl,Or=class{constructor(i){this.name="ExpressionEvaluationError",this.message=i}toJSON(){return this.message}};const b0={string:wi,number:hn,boolean:Ii,object:Mu};class M0{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");let c,d=1;const p=n[0];if(p==="array"){let b,w;if(n.length>2){const I=n[1];if(typeof I!="string"||!(I in b0)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);b=b0[I],d++}else b=pi;if(n.length>3){if(n[2]!==null&&(typeof n[2]!="number"||n[2]<0||n[2]!==Math.floor(n[2])))return o.error('The length argument to "array" must be a positive integer literal',2);w=n[2],d++}c=Yo(b,w)}else c=b0[p];const _=[];for(;d<n.length;d++){const b=o.parse(n[d],d,pi);if(!b)return null;_.push(b)}return new M0(c,_)}evaluate(n){for(let o=0;o<this.args.length;o++){const c=this.args[o].evaluate(n);if(!uc(this.type,kr(c)))return c;if(o===this.args.length-1)throw new Or(`Expected value to be of type ${Ir(this.type)}, but found ${Ir(kr(c))} instead.`)}return null}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=this.type,o=[n.kind];if(n.kind==="array"){const c=n.itemType;if(c.kind==="string"||c.kind==="number"||c.kind==="boolean"){o.push(c.kind);const d=n.N;(typeof d=="number"||this.args.length>1)&&o.push(d)}}return o.concat(this.args.map(c=>c.serialize()))}}var Na=M0;class Tu{constructor(n){this.type=wu,this.sections=n}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[1];if(!Array.isArray(c)&&typeof c=="object")return o.error("First argument must be an image or text section.");const d=[];let p=!1;for(let _=1;_<=n.length-1;++_){const b=n[_];if(p&&typeof b=="object"&&!Array.isArray(b)){p=!1;let w=null;if(b["font-scale"]&&(w=o.parse(b["font-scale"],1,hn),!w))return null;let I=null;if(b["text-font"]&&(I=o.parse(b["text-font"],1,Yo(wi)),!I))return null;let E=null;if(b["text-color"]&&(E=o.parse(b["text-color"],1,Is),!E))return null;const L=d[d.length-1];L.scale=w,L.font=I,L.textColor=E}else{const w=o.parse(n[_],1,pi);if(!w)return null;const I=w.type.kind;if(I!=="string"&&I!=="value"&&I!=="null"&&I!=="resolvedImage")return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");p=!0,d.push({content:w,scale:null,font:null,textColor:null})}}return new Tu(d)}evaluate(n){return new po(this.sections.map(o=>{const c=o.content.evaluate(n);return kr(c)===Vh?new Iu("",c,null,null,null):new Iu(Ts(c),null,o.scale?o.scale.evaluate(n):null,o.font?o.font.evaluate(n).join(","):null,o.textColor?o.textColor.evaluate(n):null)}))}eachChild(n){for(const o of this.sections)n(o.content),o.scale&&n(o.scale),o.font&&n(o.font),o.textColor&&n(o.textColor)}outputDefined(){return!1}serialize(){const n=["format"];for(const o of this.sections){n.push(o.content.serialize());const c={};o.scale&&(c["font-scale"]=o.scale.serialize()),o.font&&(c["text-font"]=o.font.serialize()),o.textColor&&(c["text-color"]=o.textColor.serialize()),n.push(c)}return n}}class dc{constructor(n,o){this.type=Vh,this.inputPrimary=n,this.inputSecondary=o}static parse(n,o){if(n.length<2)return o.error("Expected two or more arguments.");const c=o.parse(n[1],1,wi);if(!c)return o.error("No image name provided.");if(n.length===2)return new dc(c);const d=o.parse(n[2],1,wi);return d?new dc(c,d):o.error("Secondary image variant is not a string.")}evaluate(n){const o=Dn.fromString(this.inputPrimary.evaluate(n),this.inputSecondary?this.inputSecondary.evaluate(n):void 0);return o&&n.availableImages&&(o.available=n.availableImages.indexOf(o.namePrimary)>-1,o.nameSecondary&&o.available&&n.availableImages&&(o.available=n.availableImages.indexOf(o.nameSecondary)>-1)),o}eachChild(n){n(this.inputPrimary),this.inputSecondary&&n(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function Su(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}const Hs={"to-boolean":Ii,"to-color":Is,"to-number":hn,"to-string":wi};class gp{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[0],d=[];let p=bu;if(c==="to-array"){if(!Array.isArray(n[1]))return null;const _=n[1].length;if(o.expectedType){if(o.expectedType.kind!=="array")return o.error(`Expected ${o.expectedType.kind} but found array.`);p=Yo(o.expectedType.itemType,_)}else{if(!(_>0&&hc(n[1][0])))return null;p=Yo(kr(n[1][0]),_)}for(let b=0;b<_;b++){const w=n[1][b];let I;if(Su(w)==="array")I=o.parse(w,void 0,p.itemType);else{const E=Su(w);if(E!==p.itemType.kind)return o.error(`Expected ${p.itemType.kind} but found ${E}.`);I=o.registry.literal.parse(["literal",w===void 0?null:w],o)}if(!I)return null;d.push(I)}}else{if((c==="to-boolean"||c==="to-string")&&n.length!==2)return o.error("Expected one argument.");p=Hs[c];for(let _=1;_<n.length;_++){const b=o.parse(n[_],_,pi);if(!b)return null;d.push(b)}}return new gp(p,d)}evaluate(n){if(this.type.kind==="boolean")return!!this.args[0].evaluate(n);if(this.type.kind==="color"){let o,c;for(const d of this.args){if(o=d.evaluate(n),c=null,o instanceof Cr)return o;if(typeof o=="string"){const p=n.parseColor(o);if(p)return p}else if(Array.isArray(o)&&(c=o.length<3||o.length>4?`Invalid rbga value ${JSON.stringify(o)}: expected an array containing either three or four numeric values.`:fb(o[0],o[1],o[2],o[3]),!c))return new Cr(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new Or(c||`Could not parse color from value '${typeof o=="string"?o:String(JSON.stringify(o))}'`)}if(this.type.kind==="number"){let o=null;for(const c of this.args){if(o=c.evaluate(n),o===null)return 0;const d=Number(o);if(!isNaN(d))return d}throw new Or(`Could not convert ${JSON.stringify(o)} to number.`)}return this.type.kind==="formatted"?po.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?Dn.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="array"?this.args.map(o=>o.evaluate(n)):Ts(this.args[0].evaluate(n))}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Tu([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new dc(this.args[0]).serialize();const n=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(o=>{n.push(o.serialize())}),n}}var La=gp;const $h=["Unknown","Point","LineString","Polygon"];var pb=class{constructor(i,n){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=i,this.options=n}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?$h[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(i){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const i=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*n-i[0])+this.featureDistanceData.bearing[1]*(c*n-i[1])}return 0}parseColor(i){let n=this._parseColorCache[i];return n||(n=this._parseColorCache[i]=Cr.parse(i)),n}getConfig(i){return this.options?this.options.get(i):null}};class fc{constructor(n,o,c,d,p){this.name=n,this.type=o,this._evaluate=c,this.args=d,this._overloadIndex=p}evaluate(n){if(!this._evaluate){const o=fc.definitions[this.name];this._evaluate=Array.isArray(o)?o[2]:o.overloads[this._overloadIndex][1]}return this._evaluate(n,this.args)}eachChild(n){this.args.forEach(n)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(n=>n.serialize()))}static parse(n,o){const c=n[0],d=fc.definitions[c];if(!d)return o.error(`Unknown expression "${c}". If you wanted a literal array, use ["literal", [...]].`,0);const p=Array.isArray(d)?d[0]:d.type,_=Array.isArray(d)?[[d[1],d[2]]]:d.overloads,b=[];let w=null,I=-1;for(const[E,L]of _){if(Array.isArray(E)&&E.length!==n.length-1)continue;b.push(E),I++,w=new bb(o.registry,o.path,null,o.scope,void 0,o._scope,o.options);const k=[];let U=!1;for(let F=1;F<n.length;F++){const $=n[F],Z=Array.isArray(E)?E[F-1]:E.type,J=w.parse($,1+k.length,Z);if(!J){U=!0;break}k.push(J)}if(!U)if(Array.isArray(E)&&E.length!==k.length)w.error(`Expected ${E.length} arguments, but found ${k.length} instead.`);else{for(let F=0;F<k.length;F++){const $=Array.isArray(E)?E[F]:E.type,Z=k[F];w.concat(F+1).checkSubtype($,Z.type)}if(w.errors.length===0)return new fc(c,p,L,k,I)}}if(b.length===1)o.errors.push(...w.errors);else{const E=(b.length?b:_.map(([k])=>k)).map(mb).join(" | "),L=[];for(let k=1;k<n.length;k++){const U=o.parse(n[k],1+L.length);if(!U)return null;L.push(Ir(U.type))}o.error(`Expected arguments of type ${E}, but found (${L.join(", ")}) instead.`)}return null}static register(n,o){fc.definitions=o;for(const c in o)n[c]=fc}}function mb(i){return Array.isArray(i)?`(${i.map(Ir).join(", ")})`:`(${Ir(i.type)}...)`}var hi=fc;class Qh{constructor(n,o,c){this.type=mp,this.locale=c,this.caseSensitive=n,this.diacriticSensitive=o}static parse(n,o){if(n.length!==2)return o.error("Expected one argument.");const c=n[1];if(typeof c!="object"||Array.isArray(c))return o.error("Collator options argument must be an object.");const d=o.parse(c["case-sensitive"]!==void 0&&c["case-sensitive"],1,Ii);if(!d)return null;const p=o.parse(c["diacritic-sensitive"]!==void 0&&c["diacritic-sensitive"],1,Ii);if(!p)return null;let _=null;return c.locale&&(_=o.parse(c.locale,1,wi),!_)?null:new Qh(d,p,_)}evaluate(n){return new Jn(this.caseSensitive.evaluate(n),this.diacriticSensitive.evaluate(n),this.locale?this.locale.evaluate(n):null)}eachChild(n){n(this.caseSensitive),n(this.diacriticSensitive),this.locale&&n(this.locale)}outputDefined(){return!1}serialize(){const n={};return n["case-sensitive"]=this.caseSensitive.serialize(),n["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(n.locale=this.locale.serialize()),["collator",n]}}var w0={exports:{}};w0.exports=function(){function i(c,d,p,_,b){for(;_>p;){if(_-p>600){var w=_-p+1,I=d-p+1,E=Math.log(w),L=.5*Math.exp(2*E/3),k=.5*Math.sqrt(E*L*(w-L)/w)*(I-w/2<0?-1:1);i(c,d,Math.max(p,Math.floor(d-I*L/w+k)),Math.min(_,Math.floor(d+(w-I)*L/w+k)),b)}var U=c[d],F=p,$=_;for(n(c,p,d),b(c[_],U)>0&&n(c,p,_);F<$;){for(n(c,F,$),F++,$--;b(c[F],U)<0;)F++;for(;b(c[$],U)>0;)$--}b(c[p],U)===0?n(c,p,$):n(c,++$,_),$<=d&&(p=$+1),d<=$&&(_=$-1)}}function n(c,d,p){var _=c[d];c[d]=c[p],c[p]=_}function o(c,d){return c<d?-1:c>d?1:0}return function(c,d,p,_,b){i(c,d,p||0,_||c.length-1,b||o)}}();var WS=Y(w0.exports);function qS(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function _l(i,n){i[0]=Math.min(i[0],n[0]),i[1]=Math.min(i[1],n[1]),i[2]=Math.max(i[2],n[0]),i[3]=Math.max(i[3],n[1])}function vl(i,n){return!(i[0]<=n[0]||i[2]>=n[2]||i[1]<=n[1]||i[3]>=n[3])}function yp(i,n,o){const c=i[0]-n[0],d=i[1]-n[1],p=i[0]-o[0],_=i[1]-o[1];return c*_-p*d==0&&c*p<=0&&d*_<=0}function Eu(i,n,o=!1){let c=!1;for(let b=0,w=n.length;b<w;b++){const I=n[b];for(let E=0,L=I.length,k=L-1;E<L;k=E++){const U=I[k],F=I[E];if(yp(i,U,F))return o;(p=U)[1]>(d=i)[1]!=(_=F)[1]>d[1]&&d[0]<(_[0]-p[0])*(d[1]-p[1])/(_[1]-p[1])+p[0]&&(c=!c)}}var d,p,_;return c}function I0(i,n,o,c){const d=c[0]-o[0],p=c[1]-o[1],_=(i[0]-o[0])*p-d*(i[1]-o[1]),b=(n[0]-o[0])*p-d*(n[1]-o[1]);return _>0&&b<0||_<0&&b>0}function za(i,n,o,c){return(d=[c[0]-o[0],c[1]-o[1]])[0]*(p=[n[0]-i[0],n[1]-i[1]])[1]-d[1]*p[0]!=0&&!(!I0(i,n,o,c)||!I0(o,c,i,n));var d,p}const xl=8192;function Hh(i,n){const o=(180+i[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,d=Math.pow(2,n.z);return[Math.round(o*d*xl),Math.round(c*d*xl)]}function T0(i,n){for(let o=0;o<n.length;o++)if(Eu(i,n[o]))return!0;return!1}function S0(i,n,o){for(const c of o)for(let d=0,p=c.length,_=p-1;d<p;_=d++)if(za(i,n,c[_],c[d]))return!0;return!1}function Ss(i,n){for(let o=0;o<i.length;++o)if(!Eu(i[o],n))return!1;for(let o=0;o<i.length-1;++o)if(S0(i[o],i[o+1],n))return!1;return!0}function gb(i,n){for(let o=0;o<n.length;o++)if(Ss(i,n[o]))return!0;return!1}function E0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=[];for(let _=0;_<i[d].length;_++){const b=Hh(i[d][_],o);_l(n,b),p.push(b)}c.push(p)}return c}function D0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=E0(i[d],n,o);c.push(p)}return c}function A0(i,n,o,c){if(i[0]<o[0]||i[0]>o[2]){const d=.5*c;let p=i[0]-o[0]>d?-c:o[0]-i[0]>d?c:0;p===0&&(p=i[0]-o[2]>d?-c:o[2]-i[0]>d?c:0),i[0]+=p}_l(n,i)}function C0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const b of i)for(const w of b){const I=[w.x+p[0],w.y+p[1]];A0(I,n,o,d),_.push(I)}return _}function N0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const w of i){const I=[];for(const E of w){const L=[E.x+p[0],E.y+p[1]];_l(n,L),I.push(L)}_.push(I)}if(n[2]-n[0]<=d/2){(b=n)[0]=b[1]=1/0,b[2]=b[3]=-1/0;for(const w of _)for(const I of w)A0(I,n,o,d)}var b;return _}class Du{constructor(n,o){this.type=Ii,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'within' expression requires exactly one argument, but found ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection")for(let d=0;d<c.features.length;++d){const p=c.features[d].geometry.type;if(p==="Polygon"||p==="MultiPolygon")return new Du(c,c.features[d].geometry)}else if(c.type==="Feature"){const d=c.geometry.type;if(d==="Polygon"||d==="MultiPolygon")return new Du(c,c.geometry)}else if(c.type==="Polygon"||c.type==="MultiPolygon")return new Du(c,c)}return o.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(n){if(n.geometry()!=null&&n.canonicalID()!=null){if(n.geometryType()==="Point")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Eu(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!T0(I,b))return!1}return!0}(n,this.geometries);if(n.geometryType()==="LineString")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Ss(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!gb(I,b))return!1}return!0}(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var _p=Du,Yh={exports:{}};Yh.exports=function(){var i={kilometers:1,miles:.621371192237334,nauticalmiles:.5399568034557235,meters:1e3,metres:1e3,yards:1093.6132983377079,feet:3280.839895013123,inches:39370.078740157485},n=1/298.257223563,o=n*(2-n),c=Math.PI/180,d=function(I,E){if(I===void 0)throw new Error("No latitude given.");if(E&&!i[E])throw new Error("Unknown unit "+E+". Use one of: "+Object.keys(i).join(", "));var L=6378.137*c*(E?i[E]:1),k=Math.cos(I*c),U=1/(1-o*(1-k*k)),F=Math.sqrt(U);this.kx=L*F*k,this.ky=L*F*U*(1-o)},p={units:{configurable:!0}};function _(I,E){return I[0]===E[0]&&I[1]===E[1]}function b(I,E,L){var k=w(E[0]-I[0]);return[I[0]+k*L,I[1]+(E[1]-I[1])*L]}function w(I){for(;I<-180;)I+=360;for(;I>180;)I-=360;return I}return d.fromTile=function(I,E,L){var k=Math.PI*(1-2*(I+.5)/Math.pow(2,E)),U=Math.atan(.5*(Math.exp(k)-Math.exp(-k)))/c;return new d(U,L)},p.units.get=function(){return i},d.prototype.distance=function(I,E){var L=w(I[0]-E[0])*this.kx,k=(I[1]-E[1])*this.ky;return Math.sqrt(L*L+k*k)},d.prototype.bearing=function(I,E){var L=w(E[0]-I[0])*this.kx;return Math.atan2(L,(E[1]-I[1])*this.ky)/c},d.prototype.destination=function(I,E,L){var k=L*c;return this.offset(I,Math.sin(k)*E,Math.cos(k)*E)},d.prototype.offset=function(I,E,L){return[I[0]+E/this.kx,I[1]+L/this.ky]},d.prototype.lineDistance=function(I){for(var E=0,L=0;L<I.length-1;L++)E+=this.distance(I[L],I[L+1]);return E},d.prototype.area=function(I){for(var E=0,L=0;L<I.length;L++)for(var k=I[L],U=0,F=k.length,$=F-1;U<F;$=U++)E+=w(k[U][0]-k[$][0])*(k[U][1]+k[$][1])*(L?-1:1);return Math.abs(E)/2*this.kx*this.ky},d.prototype.along=function(I,E){var L=0;if(E<=0)return I[0];for(var k=0;k<I.length-1;k++){var U=I[k],F=I[k+1],$=this.distance(U,F);if((L+=$)>E)return b(U,F,(E-(L-$))/$)}return I[I.length-1]},d.prototype.pointToSegmentDistance=function(I,E,L){var k=E[0],U=E[1],F=w(L[0]-k)*this.kx,$=(L[1]-U)*this.ky,Z=0;return F===0&&$===0||((Z=(w(I[0]-k)*this.kx*F+(I[1]-U)*this.ky*$)/(F*F+$*$))>1?(k=L[0],U=L[1]):Z>0&&(k+=F/this.kx*Z,U+=$/this.ky*Z)),F=w(I[0]-k)*this.kx,$=(I[1]-U)*this.ky,Math.sqrt(F*F+$*$)},d.prototype.pointOnLine=function(I,E){for(var L,k,U,F,$=1/0,Z=0;Z<I.length-1;Z++){var J=I[Z][0],de=I[Z][1],ye=w(I[Z+1][0]-J)*this.kx,ge=(I[Z+1][1]-de)*this.ky,Se=0;ye===0&&ge===0||((Se=(w(E[0]-J)*this.kx*ye+(E[1]-de)*this.ky*ge)/(ye*ye+ge*ge))>1?(J=I[Z+1][0],de=I[Z+1][1]):Se>0&&(J+=ye/this.kx*Se,de+=ge/this.ky*Se));var we=(ye=w(E[0]-J)*this.kx)*ye+(ge=(E[1]-de)*this.ky)*ge;we<$&&($=we,L=J,k=de,U=Z,F=Se)}return{point:[L,k],index:U,t:Math.max(0,Math.min(1,F))}},d.prototype.lineSlice=function(I,E,L){var k=this.pointOnLine(L,I),U=this.pointOnLine(L,E);if(k.index>U.index||k.index===U.index&&k.t>U.t){var F=k;k=U,U=F}var $=[k.point],Z=k.index+1,J=U.index;!_(L[Z],$[0])&&Z<=J&&$.push(L[Z]);for(var de=Z+1;de<=J;de++)$.push(L[de]);return _(L[J],U.point)||$.push(U.point),$},d.prototype.lineSliceAlong=function(I,E,L){for(var k=0,U=[],F=0;F<L.length-1;F++){var $=L[F],Z=L[F+1],J=this.distance($,Z);if((k+=J)>I&&U.length===0&&U.push(b($,Z,(I-(k-J))/J)),k>=E)return U.push(b($,Z,(E-(k-J))/J)),U;k>I&&U.push(Z)}return U},d.prototype.bufferPoint=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[0]+k,I[1]+L]},d.prototype.bufferBBox=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[2]+k,I[3]+L]},d.prototype.insideBBox=function(I,E){return w(I[0]-E[0])>=0&&w(I[0]-E[2])<=0&&I[1]>=E[1]&&I[1]<=E[3]},Object.defineProperties(d,p),d}();var bl=Y(Yh.exports),L0={exports:{}};L0.exports=function(){var i=function(o,c){if(o===void 0&&(o=[]),c===void 0&&(c=n),this.data=o,this.length=this.data.length,this.compare=c,this.length>0)for(var d=(this.length>>1)-1;d>=0;d--)this._down(d)};function n(o,c){return o<c?-1:o>c?1:0}return i.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},i.prototype.pop=function(){if(this.length!==0){var o=this.data[0],c=this.data.pop();return this.length--,this.length>0&&(this.data[0]=c,this._down(0)),o}},i.prototype.peek=function(){return this.data[0]},i.prototype._up=function(o){for(var c=this.data,d=this.compare,p=c[o];o>0;){var _=o-1>>1,b=c[_];if(d(p,b)>=0)break;c[o]=b,o=_}c[o]=p},i.prototype._down=function(o){for(var c=this.data,d=this.compare,p=this.length>>1,_=c[o];o<p;){var b=1+(o<<1),w=c[b],I=b+1;if(I<this.length&&d(c[I],w)<0&&(b=I,w=c[I]),d(w,_)>=0)break;c[o]=w,o=b}c[o]=_},i}();var Es=Y(L0.exports),sn=8192;function vp(i,n){return n.dist-i.dist}const z0=100,Gh=50;function k0(i){const n=[1/0,1/0,-1/0,-1/0];if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++)if(n[o]!==i[o])return!1;return!0}function Ml(i){return i[1]-i[0]+1}function Ys(i,n){const o=i[1]>=i[0]&&i[1]<n;return o||console.warn("Distance Expression: Index is out of range"),o}function O0(i,n){if(i[0]>i[1])return[null,null];const o=Ml(i);if(n){if(o===2)return[i,null];const c=Math.floor(o/2);return[[i[0],i[0]+c],[i[0]+c,i[1]]]}{if(o===1)return[i,null];const c=Math.floor(o/2)-1;return[[i[0],i[0]+c],[i[0]+c+1,i[1]]]}}function pc(i,n){const o=[1/0,1/0,-1/0,-1/0];if(!Ys(n,i.length))return o;for(let c=n[0];c<=n[1];++c)_l(o,i[c]);return o}function xp(i){const n=[1/0,1/0,-1/0,-1/0];for(let o=0;o<i.length;++o)for(let c=0;c<i[o].length;++c)_l(n,i[o][c]);return n}function mc(i,n,o){if(k0(i)||k0(n))return NaN;let c=0,d=0;return i[2]<n[0]&&(c=n[0]-i[2]),i[0]>n[2]&&(c=i[0]-n[2]),i[1]>n[3]&&(d=i[1]-n[3]),i[3]<n[1]&&(d=n[1]-i[3]),o.distance([0,0],[c,d])}function j0(i){return 360*i-180}function KS(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}function Au(i,n){const o=Math.pow(2,n.z),c=(i.y/sn+n.y)/o;return[j0((i.x/sn+n.x)/o),KS(c)]}function XS(i,n){const o=[];for(let c=0;c<i.length;++c)o.push(Au(i[c],n));return o}function yb(i,n,o){const c=o.pointOnLine(n,i).point;return o.distance(i,c)}function _b(i,n,o,c,d){const p=o.slice(c[0],c[1]+1);let _=1/0;for(let b=n[0];b<=n[1];++b)if((_=Math.min(_,yb(i[b],p,d)))===0)return 0;return _}function R0(i,n,o,c,d){const p=Math.min(d.pointToSegmentDistance(i,o,c),d.pointToSegmentDistance(n,o,c)),_=Math.min(d.pointToSegmentDistance(o,i,n),d.pointToSegmentDistance(c,i,n));return Math.min(p,_)}function JS(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<n[1];++_)for(let b=c[0];b<c[1];++b){if(za(i[_],i[_+1],o[b],o[b+1]))return 0;p=Math.min(p,R0(i[_],i[_+1],o[b],o[b+1],d))}return p}function eE(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<=n[1];++_)for(let b=c[0];b<=c[1];++b)if((p=Math.min(p,d.distance(i[_],o[b])))===0)return p;return p}function tE(i,n,o){if(Eu(i,n,!0))return 0;let c=1/0;for(const d of n){const p=d.length;if(p<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(d[0]!==d[p-1]&&(c=Math.min(c,o.pointToSegmentDistance(i,d[p-1],d[0])))===0||(c=Math.min(c,yb(i,d,o)))===0)return c}return c}function vb(i,n,o,c){if(!Ys(n,i.length))return NaN;for(let p=n[0];p<=n[1];++p)if(Eu(i[p],o,!0))return 0;let d=1/0;for(let p=n[0];p<n[1];++p)for(const _ of o)for(let b=0,w=_.length,I=w-1;b<w;I=b++){if(za(i[p],i[p+1],_[I],_[b]))return 0;d=Math.min(d,R0(i[p],i[p+1],_[I],_[b],c))}return d}function Zh(i,n){for(const o of i)for(let c=0;c<=o.length-1;++c)if(Eu(o[c],n,!0))return!0;return!1}function nE(i,n,o,c=1/0){const d=xp(i),p=xp(n);if(c!==1/0&&mc(d,p,o)>=c)return c;if(vl(d,p)){if(Zh(i,n))return 0}else if(Zh(n,i))return 0;let _=c;for(const b of i)for(let w=0,I=b.length,E=I-1;w<I;E=w++)for(const L of n)for(let k=0,U=L.length,F=U-1;k<U;F=k++){if(za(b[E],b[w],L[F],L[k]))return 0;_=Math.min(_,R0(b[E],b[w],L[F],L[k],o))}return _}function bp(i,n,o,c,d,p,_){if(p===null||_===null)return;const b=mc(pc(c,p),pc(d,_),o);b<n&&i.push({dist:b,range1:p,range2:_})}function P0(i,n,o,c,d=1/0){let p=Math.min(c.distance(i[0],o[0][0]),d);if(p===0)return p;const _=new Es([{dist:0,range1:[0,i.length-1],range2:[0,0]}],vp),b=n?Gh:z0,w=xp(o);for(;_.length;){const I=_.pop();if(I.dist>=p)continue;const E=I.range1;if(Ml(E)<=b){if(!Ys(E,i.length))return NaN;if(n){const L=vb(i,E,o,c);if((p=Math.min(p,L))===0)return p}else for(let L=E[0];L<=E[1];++L){const k=tE(i[L],o,c);if((p=Math.min(p,k))===0)return p}}else{const L=O0(E,n);if(L[0]!==null){const k=mc(pc(i,L[0]),w,c);k<p&&_.push({dist:k,range1:L[0],range2:[0,0]})}if(L[1]!==null){const k=mc(pc(i,L[1]),w,c);k<p&&_.push({dist:k,range1:L[1],range2:[0,0]})}}}return p}function xb(i,n,o,c,d,p=1/0){let _=Math.min(p,d.distance(i[0],o[0]));if(_===0)return _;const b=new Es([{dist:0,range1:[0,i.length-1],range2:[0,o.length-1]}],vp),w=n?Gh:z0,I=c?Gh:z0;for(;b.length;){const E=b.pop();if(E.dist>=_)continue;const L=E.range1,k=E.range2;if(Ml(L)<=w&&Ml(k)<=I){if(!Ys(L,i.length)||!Ys(k,o.length))return NaN;if(n&&c?_=Math.min(_,JS(i,L,o,k,d)):n||c?n&&!c?_=Math.min(_,_b(o,k,i,L,d)):!n&&c&&(_=Math.min(_,_b(i,L,o,k,d))):_=Math.min(_,eE(i,L,o,k,d)),_===0)return _}else{const U=O0(L,n),F=O0(k,c);bp(b,_,d,i,o,U[0],F[0]),bp(b,_,d,i,o,U[0],F[1]),bp(b,_,d,i,o,U[1],F[0]),bp(b,_,d,i,o,U[1],F[1])}}return _}function U0(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o)if(!(p!==1/0&&mc(_,pc(b,[0,b.length-1]),c)>=p)&&(p=Math.min(p,xb(i,n,b,!0,c,p)),p===0))return p;return p}function Mp(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o){if(p!==1/0&&mc(_,xp(b),c)>=p)continue;const w=P0(i,n,b,c,p);if(isNaN(w))return w;if((p=Math.min(p,w))===0)return p}return p}function B0(i){return i==="Point"||i==="MultiPoint"||i==="LineString"||i==="MultiLineString"||i==="Polygon"||i==="MultiPolygon"}class gc{constructor(n,o){this.type=hn,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'distance' expression requires either one argument, but found ' ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection"){for(let d=0;d<c.features.length;++d)if(B0(c.features[d].geometry.type))return new gc(c,c.features[d].geometry)}else if(c.type==="Feature"){if(B0(c.geometry.type))return new gc(c,c.geometry)}else if(B0(c.type))return new gc(c,c)}return o.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(n){const o=n.geometry(),c=n.canonicalID();if(o!=null&&c!=null){if(n.geometryType()==="Point")return function(d,p,_){const b=[];for(const I of d)for(const E of I)b.push(Au(E,p));const w=new bl(b[0][1],"meters");return _.type==="Point"||_.type==="MultiPoint"||_.type==="LineString"?xb(b,!1,_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w):_.type==="MultiLineString"?U0(b,!1,_.coordinates,w):_.type==="Polygon"||_.type==="MultiPolygon"?Mp(b,!1,_.type==="Polygon"?[_.coordinates]:_.coordinates,w):null}(o,c,this.geometries);if(n.geometryType()==="LineString")return function(d,p,_){const b=[];for(const I of d){const E=[];for(const L of I)E.push(Au(L,p));b.push(E)}const w=new bl(b[0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return U0(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=U0(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}if(_.type==="Polygon"||_.type==="MultiPolygon"){let I=1/0;for(let E=0;E<b.length;E++){const L=Mp(b[E],!0,_.type==="Polygon"?[_.coordinates]:_.coordinates,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return null}(o,c,this.geometries);if(n.geometryType()==="Polygon")return function(d,p,_){const b=[];for(const I of function(E,L){const k=E.length;if(k<=1)return[E];const U=[];let F,$;for(let Z=0;Z<k;Z++){const J=qS(E[Z]);J!==0&&(E[Z].area=Math.abs(J),$===void 0&&($=J<0),$===J<0?(F&&U.push(F),F=[E[Z]]):F.push(E[Z]))}return F&&U.push(F),U}(d)){const E=[];for(let L=0;L<I.length;++L)E.push(XS(I[L],p));b.push(E)}const w=new bl(b[0][0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return Mp(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=Mp(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return _.type==="Polygon"||_.type==="MultiPolygon"?function(I,E,L){let k=1/0;for(const U of I)for(const F of E){const $=nE(U,F,L,k);if(isNaN($))return $;if((k=Math.min(k,$))===0)return k}return k}(_.type==="Polygon"?[_.coordinates]:_.coordinates,b,w):null}(o,c,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var wp=gc;function Wh(i,n){switch(i){case"string":return Ts(n);case"number":return+n;case"boolean":return!!n;case"color":return Cr.parse(n);case"formatted":return po.fromString(Ts(n));case"resolvedImage":return Dn.fromString(Ts(n))}return n}function F0(i,n,o,c){return c!==void 0&&(i=c*Math.round(i/c)),n!==void 0&&i<n&&(i=n),o!==void 0&&i>o&&(i=o),i}class qh{constructor(n,o,c){this.type=n,this.key=o,this.scope=c}static parse(n,o){let c=o.expectedType;if(c==null&&(c=pi),n.length<2||n.length>3)return o.error("Invalid number of arguments for 'config' expression.");const d=o.parse(n[1],1);if(!(d instanceof Ca))return o.error("Key name of 'config' expression must be a string literal.");if(n.length>=3){const p=o.parse(n[2],2);return p instanceof Ca?new qh(c,Ts(d.value),Ts(p.value)):o.error("Scope of 'config' expression must be a string literal.")}return new qh(c,Ts(d.value))}evaluate(n){const o=[this.key,this.scope,n.scope].filter(Boolean).join(""),c=n.getConfig(o);if(!c)return null;const{type:d,value:p,values:_,minValue:b,maxValue:w,stepValue:I}=c,E=c.default.evaluate(n);let L=E;if(p){const k=n.scope;n.scope=(k||"").split("").slice(1).join(""),L=p.evaluate(n),n.scope=k}return d&&(L=Wh(d,L)),L===void 0||b===void 0&&w===void 0&&I===void 0||(typeof L=="number"?L=F0(L,b,w,I):Array.isArray(L)&&(L=L.map(k=>typeof k=="number"?F0(k,b,w,I):k))),p!==void 0&&L!==void 0&&_&&!_.includes(L)&&(L=E,d&&(L=Wh(d,L))),(d&&d!==this.type||L!==void 0&&kr(L)!==this.type)&&(L=Wh(this.type.kind,L)),L}eachChild(){}outputDefined(){return!1}serialize(){const n=["config",this.key];return this.scope&&n.concat(this.key),n}}var Cu=qh;function Nu(i){if(i instanceof hi&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof _p||i instanceof wp)return!1;let n=!0;return i.eachChild(o=>{n&&!Nu(o)&&(n=!1)}),n}function Kh(i){if(i instanceof hi&&i.name==="feature-state")return!1;let n=!0;return i.eachChild(o=>{n&&!Kh(o)&&(n=!1)}),n}function Xh(i){if(i instanceof Cu)return!1;let n=!0;return i.eachChild(o=>{n&&!Xh(o)&&(n=!1)}),n}function mo(i,n){if(i instanceof hi&&n.indexOf(i.name)>=0)return!1;let o=!0;return i.eachChild(c=>{o&&!mo(c,n)&&(o=!1)}),o}class wl{constructor(n,o){this.type=o.type,this.name=n,this.boundExpression=o}static parse(n,o){if(n.length!==2||typeof n[1]!="string")return o.error("'var' expression requires exactly one string literal argument.");const c=n[1];return o.scope.has(c)?new wl(c,o.scope.get(c)):o.error(`Unknown variable "${c}". Make sure "${c}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(n){return this.boundExpression.evaluate(n)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ro=wl;class V0{constructor(n,o=[],c,d=new ZS,p=[],_,b){this.registry=n,this.path=o,this.key=o.map(w=>`[${w}]`).join(""),this.scope=d,this.errors=p,this.expectedType=c,this._scope=_,this.options=b}parse(n,o,c,d,p={}){return o||c?this.concat(o,c,d)._parse(n,p):this._parse(n,p)}_parse(n,o){function c(d,p,_){return _==="assert"?new Na(p,[d]):_==="coerce"?new La(p,[d]):d}if(n!==null&&typeof n!="string"&&typeof n!="boolean"&&typeof n!="number"||(n=["literal",n]),Array.isArray(n)){if(n.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const d=typeof n[0]=="string"?this.registry[n[0]]:void 0;if(d){let p=d.parse(n,this);if(!p)return null;if(this.expectedType){const _=this.expectedType,b=p.type;if(_.kind!=="string"&&_.kind!=="number"&&_.kind!=="boolean"&&_.kind!=="object"&&_.kind!=="array"||b.kind!=="value")if(_.kind!=="color"&&_.kind!=="formatted"&&_.kind!=="resolvedImage"||b.kind!=="value"&&b.kind!=="string"){if(this.checkSubtype(_,b))return null}else p=c(p,_,o.typeAnnotation||"coerce");else p=c(p,_,o.typeAnnotation||"assert")}if(!(p instanceof Ca)&&p.type.kind!=="resolvedImage"&&$0(p)){const _=new pb(this._scope,this.options);try{p=new Ca(p.type,p.evaluate(_))}catch(b){return this.error(b.message),null}}return p}return La.parse(["to-array",n],this)}return this.error(n===void 0?"'undefined' value invalid. Use null instead.":typeof n=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof n} instead.`)}concat(n,o,c){const d=typeof n=="number"?this.path.concat(n):this.path,p=c?this.scope.concat(c):this.scope;return new V0(this.registry,d,o||null,p,this.errors,this._scope,this.options)}error(n,...o){const c=`${this.key}${o.map(d=>`[${d}]`).join("")}`;this.errors.push(new fa(c,n))}checkSubtype(n,o){const c=uc(n,o);return c&&this.error(c),c}}var bb=V0;function $0(i){if(i instanceof Ro)return $0(i.boundExpression);if(i instanceof hi&&i.name==="error"||i instanceof Qh||i instanceof _p||i instanceof wp||i instanceof Cu)return!1;const n=i instanceof La||i instanceof Na;let o=!0;return i.eachChild(c=>{o=n?o&&$0(c):o&&c instanceof Ca}),!!o&&Nu(i)&&mo(i,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function yc(i,n){const o=i.length-1;let c,d,p=0,_=o,b=0;for(;p<=_;)if(b=Math.floor((p+_)/2),c=i[b],d=i[b+1],c<=n){if(b===o||n<d)return b;p=b+1}else{if(!(c>n))throw new Or("Input is not a number.");_=b-1}return 0}class Ip{constructor(n,o,c){this.type=n,this.input=o,this.labels=[],this.outputs=[];for(const[d,p]of c)this.labels.push(d),this.outputs.push(p)}static parse(n,o){if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=[];let p=null;o.expectedType&&o.expectedType.kind!=="value"&&(p=o.expectedType);for(let _=1;_<n.length;_+=2){const b=_===1?-1/0:n[_],w=n[_+1],I=_,E=_+1;if(typeof b!="number")return o.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',I);if(d.length&&d[d.length-1][0]>=b)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',I);const L=o.parse(w,E,p);if(!L)return null;p=p||L.type,d.push([b,L])}return new Ip(p,c,d)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;return d>=o[p-1]?c[p-1].evaluate(n):c[yc(o,d)].evaluate(n)}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){const n=["step",this.input.serialize()];for(let o=0;o<this.labels.length;o++)o>0&&n.push(this.labels[o]),n.push(this.outputs[o].serialize());return n}}var Jh=Ip;const Mb=.95047,Il=1.08883,wb=4/29,Lu=6/29,Q0=3*Lu*Lu,Ib=Lu*Lu*Lu,iE=Math.PI/180,Gs=180/Math.PI;function Tp(i){return i>Ib?Math.pow(i,1/3):i/Q0+wb}function Sp(i){return i>Lu?i*i*i:Q0*(i-wb)}function Ep(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Dp(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function H0(i){const n=Dp(i.r),o=Dp(i.g),c=Dp(i.b),d=Tp((.4124564*n+.3575761*o+.1804375*c)/Mb),p=Tp((.2126729*n+.7151522*o+.072175*c)/1);return{l:116*p-16,a:500*(d-p),b:200*(p-Tp((.0193339*n+.119192*o+.9503041*c)/Il)),alpha:i.a}}function Y0(i){let n=(i.l+16)/116,o=isNaN(i.a)?n:n+i.a/500,c=isNaN(i.b)?n:n-i.b/200;return n=1*Sp(n),o=Mb*Sp(o),c=Il*Sp(c),new Cr(Ep(3.2404542*o-1.5371385*n-.4985314*c),Ep(-.969266*o+1.8760108*n+.041556*c),Ep(.0556434*o-.2040259*n+1.0572252*c),i.alpha)}function Tb(i,n,o){const c=n-i;return i+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const zu={forward:H0,reverse:Y0,interpolate:function(i,n,o){return{l:li(i.l,n.l,o),a:li(i.a,n.a,o),b:li(i.b,n.b,o),alpha:li(i.alpha,n.alpha,o)}}},ku={forward:function(i){const{l:n,a:o,b:c}=H0(i),d=Math.atan2(c,o)*Gs;return{h:d<0?d+360:d,c:Math.sqrt(o*o+c*c),l:n,alpha:i.a}},reverse:function(i){const n=i.h*iE,o=i.c;return Y0({l:i.l,a:Math.cos(n)*o,b:Math.sin(n)*o,alpha:i.alpha})},interpolate:function(i,n,o){return{h:Tb(i.h,n.h,o),c:li(i.c,n.c,o),l:li(i.l,n.l,o),alpha:li(i.alpha,n.alpha,o)}}};var G0=Object.freeze({__proto__:null,hcl:ku,lab:zu});class ed{constructor(n,o,c,d,p){this.type=n,this.operator=o,this.interpolation=c,this.input=d,this.labels=[],this.outputs=[];for(const[_,b]of p)this.labels.push(_),this.outputs.push(b)}static interpolationFactor(n,o,c,d){let p=0;if(n.name==="exponential")p=Ou(o,n.base,c,d);else if(n.name==="linear")p=Ou(o,1,c,d);else if(n.name==="cubic-bezier"){const _=n.controlPoints;p=new fe(_[0],_[1],_[2],_[3]).solve(Ou(o,1,c,d))}return p}static parse(n,o){let[c,d,p,..._]=n;if(!Array.isArray(d)||d.length===0)return o.error("Expected an interpolation type expression.",1);if(d[0]==="linear")d={name:"linear"};else if(d[0]==="exponential"){const I=d[1];if(typeof I!="number")return o.error("Exponential interpolation requires a numeric base.",1,1);d={name:"exponential",base:I}}else{if(d[0]!=="cubic-bezier")return o.error(`Unknown interpolation type ${String(d[0])}`,1,0);{const I=d.slice(1);if(I.length!==4||I.some(E=>typeof E!="number"||E<0||E>1))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);d={name:"cubic-bezier",controlPoints:I}}}if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(p=o.parse(p,2,hn),!p)return null;const b=[];let w=null;c==="interpolate-hcl"||c==="interpolate-lab"?w=Is:o.expectedType&&o.expectedType.kind!=="value"&&(w=o.expectedType);for(let I=0;I<_.length;I+=2){const E=_[I],L=_[I+1],k=I+3,U=I+4;if(typeof E!="number")return o.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',k);if(b.length&&b[b.length-1][0]>=E)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const F=o.parse(L,U,w);if(!F)return null;w=w||F.type,b.push([E,F])}return w.kind==="number"||w.kind==="color"||w.kind==="array"&&w.itemType.kind==="number"&&typeof w.N=="number"?new ed(w,c,d,p,b):o.error(`Type ${Ir(w)} is not interpolatable.`)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;if(d>=o[p-1])return c[p-1].evaluate(n);const _=yc(o,d),b=ed.interpolationFactor(this.interpolation,d,o[_],o[_+1]),w=c[_].evaluate(n),I=c[_+1].evaluate(n);return this.operator==="interpolate"?pp[this.type.kind.toLowerCase()](w,I,b):this.operator==="interpolate-hcl"?ku.reverse(ku.interpolate(ku.forward(w),ku.forward(I),b)):zu.reverse(zu.interpolate(zu.forward(w),zu.forward(I),b))}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){let n;n=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const o=[this.operator,n,this.input.serialize()];for(let c=0;c<this.labels.length;c++)o.push(this.labels[c],this.outputs[c].serialize());return o}}function Ou(i,n,o,c){const d=c-o,p=i-o;return d===0?0:n===1?p/d:(Math.pow(n,p)-1)/(Math.pow(n,d)-1)}var us=ed;class ju{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expectected at least one argument.");let c=null;const d=o.expectedType;d&&d.kind!=="value"&&(c=d);const p=[];for(const b of n.slice(1)){const w=o.parse(b,1+p.length,c,void 0,{typeAnnotation:"omit"});if(!w)return null;c=c||w.type,p.push(w)}const _=d&&p.some(b=>uc(d,b.type));return new ju(_?pi:c,p)}evaluate(n){let o,c=null,d=0;for(const p of this.args){if(d++,c=p.evaluate(n),c&&c instanceof Dn&&!c.available&&(o||(o=c),c=null,d===this.args.length))return o;if(c!==null)break}return c}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=["coalesce"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Z0=ju;class Ap{constructor(n,o){this.type=o.type,this.bindings=[].concat(n),this.result=o}evaluate(n){return this.result.evaluate(n)}eachChild(n){for(const o of this.bindings)n(o[1]);n(this.result)}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found ${n.length-1} instead.`);const c=[];for(let p=1;p<n.length-1;p+=2){const _=n[p];if(typeof _!="string")return o.error(`Expected string, but found ${typeof _} instead.`,p);if(/[^a-zA-Z0-9_]/.test(_))return o.error("Variable names must contain only alphanumeric characters or '_'.",p);const b=o.parse(n[p+1],p+1);if(!b)return null;c.push([_,b])}const d=o.parse(n[n.length-1],n.length-1,o.expectedType,c);return d?new Ap(c,d):null}outputDefined(){return this.result.outputDefined()}serialize(){const n=["let"];for(const[o,c]of this.bindings)n.push(o,c.serialize());return n.push(this.result.serialize()),n}}var W0=Ap;class Tl{constructor(n,o,c){this.type=n,this.index=o,this.input=c}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,hn),d=o.parse(n[2],2,Yo(o.expectedType||pi));return c&&d?new Tl(d.type.itemType,c,d):null}evaluate(n){const o=this.index.evaluate(n),c=this.input.evaluate(n);if(o<0)throw new Or(`Array index out of bounds: ${o} < 0.`);if(o>=c.length)throw new Or(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new Or(`Array index must be an integer, but found ${o} instead.`);return c[o]}eachChild(n){n(this.index),n(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var mi=Tl;class q0{constructor(n,o){this.type=Ii,this.needle=n,this.haystack=o}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);return c&&d?Rn(c.type,[Ii,wi,hn,bu,pi])?new q0(c,d):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`):null}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(c==null)return!1;if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);return c.indexOf(o)>=0}eachChild(n){n(this.needle),n(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var rE=q0;class Cp{constructor(n,o,c){this.type=hn,this.needle=n,this.haystack=o,this.fromIndex=c}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);if(!c||!d)return null;if(!Rn(c.type,[Ii,wi,hn,bu,pi]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new Cp(c,d,p):null}return new Cp(c,d)}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);if(this.fromIndex){const d=this.fromIndex.evaluate(n);return c.indexOf(o,d)}return c.indexOf(o)}eachChild(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const n=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),n]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Sb=Cp;class K0{constructor(n,o,c,d,p,_){this.inputType=n,this.type=o,this.input=c,this.cases=d,this.outputs=p,this.otherwise=_}static parse(n,o){if(n.length<5)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if(n.length%2!=1)return o.error("Expected an even number of arguments.");let c,d;o.expectedType&&o.expectedType.kind!=="value"&&(d=o.expectedType);const p={},_=[];for(let I=2;I<n.length-1;I+=2){let E=n[I];const L=n[I+1];Array.isArray(E)||(E=[E]);const k=o.concat(I);if(E.length===0)return k.error("Expected at least one branch label.");for(const F of E){if(typeof F!="number"&&typeof F!="string")return k.error("Branch labels must be numbers or strings.");if(typeof F=="number"&&Math.abs(F)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof F=="number"&&Math.floor(F)!==F)return k.error("Numeric branch labels must be integer values.");if(c){if(k.checkSubtype(c,kr(F)))return null}else c=kr(F);if(p[String(F)]!==void 0)return k.error("Branch labels must be unique.");p[String(F)]=_.length}const U=o.parse(L,I,d);if(!U)return null;d=d||U.type,_.push(U)}const b=o.parse(n[1],1,pi);if(!b)return null;const w=o.parse(n[n.length-1],n.length-1,d);return w?b.type.kind!=="value"&&o.concat(1).checkSubtype(c,b.type)?null:new K0(c,d,b,p,_,w):null}evaluate(n){const o=this.input.evaluate(n);return(kr(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(n)}eachChild(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)}outputDefined(){return this.outputs.every(n=>n.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["match",this.input.serialize()],o=Object.keys(this.cases).sort(),c=[],d={};for(const _ of o){const b=d[this.cases[_]];b===void 0?(d[this.cases[_]]=c.length,c.push([this.cases[_],[_]])):c[b][1].push(_)}const p=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,b]of c)n.push(b.length===1?p(b[0]):b.map(p)),n.push(this.outputs[_].serialize());return n.push(this.otherwise.serialize()),n}}var Eb=K0;class Np{constructor(n,o,c){this.type=n,this.branches=o,this.otherwise=c}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found only ${n.length-1}.`);if(n.length%2!=0)return o.error("Expected an odd number of arguments.");let c;o.expectedType&&o.expectedType.kind!=="value"&&(c=o.expectedType);const d=[];for(let _=1;_<n.length-1;_+=2){const b=o.parse(n[_],_,Ii);if(!b)return null;const w=o.parse(n[_+1],_+1,c);if(!w)return null;d.push([b,w]),c=c||w.type}const p=o.parse(n[n.length-1],n.length-1,c);return p?new Np(c,d,p):null}evaluate(n){for(const[o,c]of this.branches)if(o.evaluate(n))return c.evaluate(n);return this.otherwise.evaluate(n)}eachChild(n){for(const[o,c]of this.branches)n(o),n(c);n(this.otherwise)}outputDefined(){return this.branches.every(([n,o])=>o.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["case"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Db=Np;class td{constructor(n,o,c,d){this.type=n,this.input=o,this.beginIndex=c,this.endIndex=d}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,hn);if(!c||!d)return null;if(!Rn(c.type,[Yo(pi),wi,pi]))return o.error(`Expected first argument to be of type array or string, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new td(c.type,c,d,p):null}return new td(c.type,c,d)}evaluate(n){const o=this.input.evaluate(n),c=this.beginIndex.evaluate(n);if(!gl(o,["string","array"]))throw new Or(`Expected first argument to be of type array or string, but found ${Ir(kr(o))} instead.`);if(this.endIndex){const d=this.endIndex.evaluate(n);return o.slice(c,d)}return o.slice(c)}eachChild(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const n=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),n]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Ru=td;function X0(i,n){return i==="=="||i==="!="?n.kind==="boolean"||n.kind==="string"||n.kind==="number"||n.kind==="null"||n.kind==="value":n.kind==="string"||n.kind==="number"||n.kind==="value"}function J0(i,n,o,c){return c.compare(n,o)===0}function Pu(i,n,o){const c=i!=="=="&&i!=="!=";return class iV{constructor(p,_,b){this.type=Ii,this.lhs=p,this.rhs=_,this.collator=b,this.hasUntypedArgument=p.type.kind==="value"||_.type.kind==="value"}static parse(p,_){if(p.length!==3&&p.length!==4)return _.error("Expected two or three arguments.");const b=p[0];let w=_.parse(p[1],1,pi);if(!w)return null;if(!X0(b,w.type))return _.concat(1).error(`"${b}" comparisons are not supported for type '${Ir(w.type)}'.`);let I=_.parse(p[2],2,pi);if(!I)return null;if(!X0(b,I.type))return _.concat(2).error(`"${b}" comparisons are not supported for type '${Ir(I.type)}'.`);if(w.type.kind!==I.type.kind&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error(`Cannot compare types '${Ir(w.type)}' and '${Ir(I.type)}'.`);c&&(w.type.kind==="value"&&I.type.kind!=="value"?w=new Na(I.type,[w]):w.type.kind!=="value"&&I.type.kind==="value"&&(I=new Na(w.type,[I])));let E=null;if(p.length===4){if(w.type.kind!=="string"&&I.type.kind!=="string"&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(E=_.parse(p[3],3,mp),!E)return null}return new iV(w,I,E)}evaluate(p){const _=this.lhs.evaluate(p),b=this.rhs.evaluate(p);if(c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!==I.kind||w.kind!=="string"&&w.kind!=="number")throw new Or(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${w.kind}, ${I.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!=="string"||I.kind!=="string")return n(p,_,b)}return this.collator?o(p,_,b,this.collator.evaluate(p)):n(p,_,b)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[i];return this.eachChild(_=>{p.push(_.serialize())}),p}}}const e1=Pu("==",function(i,n,o){return n===o},J0),t1=Pu("!=",function(i,n,o){return n!==o},function(i,n,o,c){return!J0(0,n,o,c)}),oE=Pu("<",function(i,n,o){return n<o},function(i,n,o,c){return c.compare(n,o)<0}),sE=Pu(">",function(i,n,o){return n>o},function(i,n,o,c){return c.compare(n,o)>0}),Ab=Pu("<=",function(i,n,o){return n<=o},function(i,n,o,c){return c.compare(n,o)<=0}),aE=Pu(">=",function(i,n,o){return n>=o},function(i,n,o,c){return c.compare(n,o)>=0});class n1{constructor(n,o,c,d,p,_){this.type=wi,this.number=n,this.locale=o,this.currency=c,this.unit=d,this.minFractionDigits=p,this.maxFractionDigits=_}static parse(n,o){if(n.length!==3)return o.error("Expected two arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=n[2];if(typeof d!="object"||Array.isArray(d))return o.error("NumberFormat options argument must be an object.");let p=null;if(d.locale&&(p=o.parse(d.locale,1,wi),!p))return null;let _=null;if(d.currency&&(_=o.parse(d.currency,1,wi),!_))return null;let b=null;if(d.unit&&(b=o.parse(d.unit,1,wi),!b))return null;let w=null;if(d["min-fraction-digits"]&&(w=o.parse(d["min-fraction-digits"],1,hn),!w))return null;let I=null;return d["max-fraction-digits"]&&(I=o.parse(d["max-fraction-digits"],1,hn),!I)?null:new n1(c,p,_,b,w,I)}evaluate(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(n):void 0,unit:this.unit?this.unit.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))}eachChild(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.unit&&n(this.unit),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const n={};return this.locale&&(n.locale=this.locale.serialize()),this.currency&&(n.currency=this.currency.serialize()),this.unit&&(n.unit=this.unit.serialize()),this.minFractionDigits&&(n["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(n["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),n]}}class i1{constructor(n){this.type=hn,this.input=n}static parse(n,o){if(n.length!==2)return o.error(`Expected 1 argument, but found ${n.length-1} instead.`);const c=o.parse(n[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?o.error(`Expected argument of type string or array, but found ${Ir(c.type)} instead.`):new i1(c):null}evaluate(n){const o=this.input.evaluate(n);if(typeof o=="string"||Array.isArray(o))return o.length;throw new Or(`Expected value to be of type string or array, but found ${Ir(kr(o))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(o=>{n.push(o.serialize())}),n}}function Cb(i){return function(){i=1831565813+(i|=0)|0;let n=Math.imul(i^i>>>15,1|i);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const r1={"==":e1,"!=":t1,">":sE,"<":oE,">=":aE,"<=":Ab,array:Na,at:mi,boolean:Na,case:Db,coalesce:Z0,collator:Qh,format:Tu,image:dc,in:rE,"index-of":Sb,interpolate:us,"interpolate-hcl":us,"interpolate-lab":us,length:i1,let:W0,literal:Ca,match:Eb,number:Na,"number-format":n1,object:Na,slice:Ru,step:Jh,string:Na,"to-boolean":La,"to-color":La,"to-number":La,"to-string":La,var:Ro,within:_p,distance:wp,config:Cu};function o1(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=fb(n,o,c,p);if(_)throw new Or(_);return new Cr(n/255*p,o/255*p,c/255*p,p)}function Nb(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=function(I,E,L,k){return typeof I=="number"&&I>=0&&I<=360?typeof E=="number"&&E>=0&&E<=100&&typeof L=="number"&&L>=0&&L<=100?k===void 0||typeof k=="number"&&k>=0&&k<=1?null:`Invalid hsla value [${[I,E,L,k].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 'h' must be between 0 and 360.`}(n,o,c,p);if(_)throw new Or(_);const b=`hsla(${n}, ${o}%, ${c}%, ${p})`,w=Cr.parse(b);if(!w)throw new Or(`Failed to parse HSLA color: ${b}`);return w}function s1(i,n){return i in n}function a1(i,n){const o=n[i];return o===void 0?null:o}function _c(i){return{type:i}}hi.register(r1,{error:[{kind:"error"},[wi],(i,[n])=>{throw new Or(n.evaluate(i))}],typeof:[wi,[pi],(i,[n])=>Ir(kr(n.evaluate(i)))],"to-rgba":[Yo(hn,4),[Is],(i,[n])=>n.evaluate(i).toArray()],rgb:[Is,[hn,hn,hn],o1],rgba:[Is,[hn,hn,hn,hn],o1],hsl:[Is,[hn,hn,hn],Nb],hsla:[Is,[hn,hn,hn,hn],Nb],has:{type:Ii,overloads:[[[wi],(i,[n])=>s1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>s1(n.evaluate(i),o.evaluate(i))]]},get:{type:pi,overloads:[[[wi],(i,[n])=>a1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>a1(n.evaluate(i),o.evaluate(i))]]},"feature-state":[pi,[wi],(i,[n])=>a1(n.evaluate(i),i.featureState||{})],properties:[Mu,[],i=>i.properties()],"geometry-type":[wi,[],i=>i.geometryType()],id:[pi,[],i=>i.id()],zoom:[hn,[],i=>i.globals.zoom],pitch:[hn,[],i=>i.globals.pitch||0],"distance-from-center":[hn,[],i=>i.distanceFromCenter()],"measure-light":[hn,[wi],(i,[n])=>i.measureLight(n.evaluate(i))],"heatmap-density":[hn,[],i=>i.globals.heatmapDensity||0],"line-progress":[hn,[],i=>i.globals.lineProgress||0],"raster-value":[hn,[],i=>i.globals.rasterValue||0],"raster-particle-speed":[hn,[],i=>i.globals.rasterParticleSpeed||0],"sky-radial-progress":[hn,[],i=>i.globals.skyRadialProgress||0],accumulated:[pi,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[hn,_c(hn),(i,n)=>{let o=0;for(const c of n)o+=c.evaluate(i);return o}],"*":[hn,_c(hn),(i,n)=>{let o=1;for(const c of n)o*=c.evaluate(i);return o}],"-":{type:hn,overloads:[[[hn,hn],(i,[n,o])=>n.evaluate(i)-o.evaluate(i)],[[hn],(i,[n])=>-n.evaluate(i)]]},"/":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)/o.evaluate(i)],"%":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)%o.evaluate(i)],ln2:[hn,[],()=>Math.LN2],pi:[hn,[],()=>Math.PI],e:[hn,[],()=>Math.E],"^":[hn,[hn,hn],(i,[n,o])=>Math.pow(n.evaluate(i),o.evaluate(i))],sqrt:[hn,[hn],(i,[n])=>Math.sqrt(n.evaluate(i))],log10:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN10],ln:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))],log2:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN2],sin:[hn,[hn],(i,[n])=>Math.sin(n.evaluate(i))],cos:[hn,[hn],(i,[n])=>Math.cos(n.evaluate(i))],tan:[hn,[hn],(i,[n])=>Math.tan(n.evaluate(i))],asin:[hn,[hn],(i,[n])=>Math.asin(n.evaluate(i))],acos:[hn,[hn],(i,[n])=>Math.acos(n.evaluate(i))],atan:[hn,[hn],(i,[n])=>Math.atan(n.evaluate(i))],min:[hn,_c(hn),(i,n)=>Math.min(...n.map(o=>o.evaluate(i)))],max:[hn,_c(hn),(i,n)=>Math.max(...n.map(o=>o.evaluate(i)))],abs:[hn,[hn],(i,[n])=>Math.abs(n.evaluate(i))],round:[hn,[hn],(i,[n])=>{const o=n.evaluate(i);return o<0?-Math.round(-o):Math.round(o)}],floor:[hn,[hn],(i,[n])=>Math.floor(n.evaluate(i))],ceil:[hn,[hn],(i,[n])=>Math.ceil(n.evaluate(i))],"filter-==":[Ii,[wi,pi],(i,[n,o])=>i.properties()[n.value]===o.value],"filter-id-==":[Ii,[pi],(i,[n])=>i.id()===n.value],"filter-type-==":[Ii,[wi],(i,[n])=>i.geometryType()===n.value],"filter-<":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<d}],"filter-id-<":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<c}],"filter->":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>d}],"filter-id->":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>c}],"filter-<=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<=d}],"filter-id-<=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<=c}],"filter->=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>=d}],"filter-id->=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>=c}],"filter-has":[Ii,[pi],(i,[n])=>n.value in i.properties()],"filter-has-id":[Ii,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ii,[Yo(wi)],(i,[n])=>n.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ii,[Yo(pi)],(i,[n])=>n.value.indexOf(i.id())>=0],"filter-in-small":[Ii,[wi,Yo(pi)],(i,[n,o])=>o.value.indexOf(i.properties()[n.value])>=0],"filter-in-large":[Ii,[wi,Yo(pi)],(i,[n,o])=>function(c,d,p,_){for(;p<=_;){const b=p+_>>1;if(d[b]===c)return!0;d[b]>c?_=b-1:p=b+1}return!1}(i.properties()[n.value],o.value,0,o.value.length-1)],all:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)&&o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(!o.evaluate(i))return!1;return!0}]]},any:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)||o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(o.evaluate(i))return!0;return!1}]]},"!":[Ii,[Ii],(i,[n])=>!n.evaluate(i)],"is-supported-script":[Ii,[wi],(i,[n])=>{const o=i.globals&&i.globals.isSupportedScript;return!o||o(n.evaluate(i))}],upcase:[wi,[wi],(i,[n])=>n.evaluate(i).toUpperCase()],downcase:[wi,[wi],(i,[n])=>n.evaluate(i).toLowerCase()],concat:[wi,_c(pi),(i,n)=>n.map(o=>Ts(o.evaluate(i))).join("")],"resolved-locale":[wi,[mp],(i,[n])=>n.evaluate(i).resolvedLocale()],random:[hn,[hn,hn,pi],(i,n)=>{const[o,c,d]=n.map(_=>_.evaluate(i));if(o>c||o===c)return o;let p;if(typeof d=="string")p=function(_){let b=0;if(_.length===0)return b;for(let w=0;w<_.length;w++)b=(b<<5)-b+_.charCodeAt(w),b|=0;return b}(d);else{if(typeof d!="number")throw new Or(`Invalid seed input: ${d}`);p=d}return o+Cb(p)()*(c-o)}]});var Uu=r1;function l1(i){return{result:"success",value:i}}function vc(i){return{result:"error",value:i}}function Lb(i,n){return!!i&&!!i.parameters&&i.parameters.indexOf(n)>-1}function Lp(i){return i["property-type"]==="data-driven"}function c1(i){return Lb(i.expression,"measure-light")}function zb(i){return Lb(i.expression,"zoom")}function u1(i){return!!i.expression&&i.expression.interpolated}function zp(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function kb(i){return i}function h1(i,n){const o=n.type==="color",c=i.stops&&typeof i.stops[0][0]=="object",d=c||!(c||i.property!==void 0),p=i.type||(u1(n)?"exponential":"interval");if(o&&((i=v0({},i)).stops&&(i.stops=i.stops.map(I=>[I[0],Cr.parse(I[1])])),i.default=Cr.parse(i.default?i.default:n.default)),i.colorSpace&&i.colorSpace!=="rgb"&&!G0[i.colorSpace])throw new Error(`Unknown color space: ${i.colorSpace}`);let _,b,w;if(p==="exponential")_=Ob;else if(p==="interval")_=cE;else if(p==="categorical"){_=lE,b=Object.create(null);for(const I of i.stops)b[I[0]]=I[1];w=typeof i.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);_=jb}if(c){const I={},E=[];for(let U=0;U<i.stops.length;U++){const F=i.stops[U],$=F[0].zoom;I[$]===void 0&&(I[$]={zoom:$,type:i.type,property:i.property,default:i.default,stops:[]},E.push($)),I[$].stops.push([F[0].value,F[1]])}const L=[];for(const U of E)L.push([I[U].zoom,h1(I[U],n)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:us.interpolationFactor.bind(void 0,k),zoomStops:L.map(U=>U[0]),evaluate:({zoom:U},F)=>Ob({stops:L,base:i.base},n,U).evaluate(U,F)}}if(d){const I=p==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:I,interpolationFactor:us.interpolationFactor.bind(void 0,I),zoomStops:i.stops.map(E=>E[0]),evaluate:({zoom:E})=>_(i,n,E,b,w)}}return{kind:"source",evaluate(I,E){const L=E&&E.properties?E.properties[i.property]:void 0;return L===void 0?nd(i.default,n.default):_(i,n,L,b,w)}}}function nd(i,n,o){return i!==void 0?i:n!==void 0?n:o!==void 0?o:void 0}function lE(i,n,o,c,d){return nd(typeof o===d?c[o]:void 0,i.default,n.default)}function cE(i,n,o){if(Su(o)!=="number")return nd(i.default,n.default);const c=i.stops.length;if(c===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[c-1][0])return i.stops[c-1][1];const d=yc(i.stops.map(p=>p[0]),o);return i.stops[d][1]}function Ob(i,n,o){const c=i.base!==void 0?i.base:1;if(Su(o)!=="number")return nd(i.default,n.default);const d=i.stops.length;if(d===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[d-1][0])return i.stops[d-1][1];const p=yc(i.stops.map(E=>E[0]),o),_=function(E,L,k,U){const F=U-k,$=E-k;return F===0?0:L===1?$/F:(Math.pow(L,$)-1)/(Math.pow(L,F)-1)}(o,c,i.stops[p][0],i.stops[p+1][0]),b=i.stops[p][1],w=i.stops[p+1][1];let I=pp[n.type]||kb;if(i.colorSpace&&i.colorSpace!=="rgb"){const E=G0[i.colorSpace];I=(L,k)=>E.reverse(E.interpolate(E.forward(L),E.forward(k),_))}return typeof b.evaluate=="function"?{evaluate(...E){const L=b.evaluate.apply(void 0,E),k=w.evaluate.apply(void 0,E);if(L!==void 0&&k!==void 0)return I(L,k,_)}}:I(b,w,_)}function jb(i,n,o){return n.type==="color"?o=Cr.parse(o):n.type==="formatted"?o=po.fromString(o.toString()):n.type==="resolvedImage"?o=Dn.fromString(o.toString()):Su(o)===n.type||n.type==="enum"&&n.values[o]||(o=void 0),nd(o,i.default,n.default)}class kp{constructor(n,o,c,d){this.expression=n,this._warningHistory={},this._evaluator=new pb(c,d),this._defaultValue=o?function(p){return p.type==="color"&&(zp(p.default)||Array.isArray(p.default))?new Cr(0,0,0,0):p.type==="color"?Cr.parse(p.default)||null:p.default===void 0?null:p.default}(o):null,this._enumValues=o&&o.type==="enum"?o.values:null}evaluateWithoutErrorHandling(n,o,c,d,p,_,b,w){return this._evaluator.globals=n,this._evaluator.feature=o,this._evaluator.featureState=c,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null,this.expression.evaluate(this._evaluator)}evaluate(n,o,c,d,p,_,b,w){this._evaluator.globals=n,this._evaluator.feature=o||null,this._evaluator.featureState=c||null,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_||null,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null;try{const I=this.expression.evaluate(this._evaluator);if(I==null||typeof I=="number"&&I!=I)return this._defaultValue;if(this._enumValues&&!(I in this._enumValues))throw new Or(`Expected value to be one of ${Object.keys(this._enumValues).map(E=>JSON.stringify(E)).join(", ")}, but found ${JSON.stringify(I)} instead.`);return I}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console<"u"&&console.warn(I.message)),this._defaultValue}}}function id(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in Uu}function Op(i,n,o,c){const d=new bb(Uu,[],n?function(_){const b={color:Is,string:wi,number:hn,enum:wi,boolean:Ii,formatted:wu,resolvedImage:Vh};return _.type==="array"?Yo(b[_.value]||pi,_.length):b[_.type]}(n):void 0,void 0,void 0,o,c),p=d.parse(i,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?l1(new kp(p,n,o,c)):vc(d.errors)}class d1{constructor(n,o,c){this.kind=n,this._styleExpression=o,this.isLightConstant=c,this.isStateDependent=n!=="constant"&&!Kh(o.expression),this.isConfigDependent=!Xh(o.expression)}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}}class rd{constructor(n,o,c,d,p){this.kind=n,this.zoomStops=c,this._styleExpression=o,this.isStateDependent=n!=="camera"&&!Kh(o.expression),this.isLightConstant=p,this.isConfigDependent=!Xh(o.expression),this.interpolationType=d}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}interpolationFactor(n,o,c){return this.interpolationType?us.interpolationFactor(this.interpolationType,n,o,c):0}}function jp(i,n,o,c){if((i=Op(i,n,o,c)).result==="error")return i;const d=i.value.expression,p=Nu(d);if(!p&&!Lp(n))return vc([new fa("","data expressions not supported")]);const _=mo(d,["zoom","pitch","distance-from-center"]);if(!_&&!zb(n))return vc([new fa("","zoom expressions not supported")]);const b=mo(d,["measure-light"]);if(!b&&!c1(n))return vc([new fa("","measure-light expression not supported")]);const w=n.expression&&n.expression.relaxZoomRestriction,I=sd(d);return I||_||w?I instanceof fa?vc([I]):I instanceof us&&!u1(n)?vc([new fa("",'"interpolate" expressions cannot be used with this property')]):l1(I?new rd(p?"camera":"composite",i.value,I.labels,I instanceof us?I.interpolation:void 0,b):new d1(p?"constant":"source",i.value,b)):vc([new fa("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class od{constructor(n,o){this._parameters=n,this._specification=o,v0(this,h1(this._parameters,this._specification))}static deserialize(n){return new od(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function sd(i){let n=null;if(i instanceof W0)n=sd(i.result);else if(i instanceof Z0){for(const o of i.args)if(n=sd(o),n)break}else(i instanceof Jh||i instanceof us)&&i.input instanceof hi&&i.input.name==="zoom"&&(n=i);return n instanceof fa||i.eachChild(o=>{const c=sd(o);c instanceof fa?n=c:n&&c&&n!==c&&(n=new fa("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}var uE=Ws,Zs=3;function Ws(i,n,o){var c=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var d=new Int32Array(this.arrayBuffer);i=d[0],this.d=(n=d[1])+2*(o=d[2]);for(var p=0;p<this.d*this.d;p++){var _=d[Zs+p],b=d[Zs+p+1];c.push(_===b?null:d.subarray(_,b))}var w=d[Zs+c.length+1];this.keys=d.subarray(d[Zs+c.length],w),this.bboxes=d.subarray(w),this.insert=this._insertReadonly}else{this.d=n+2*o;for(var I=0;I<this.d*this.d;I++)c.push([]);this.keys=[],this.bboxes=[]}this.n=n,this.extent=i,this.padding=o,this.scale=n/i,this.uid=0;var E=o/n*i;this.min=-E,this.max=i+E}Ws.prototype.insert=function(i,n,o,c,d){this._forEachCell(n,o,c,d,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(n),this.bboxes.push(o),this.bboxes.push(c),this.bboxes.push(d)},Ws.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ws.prototype._insertCell=function(i,n,o,c,d,p){this.cells[d].push(p)},Ws.prototype.query=function(i,n,o,c,d){var p=this.min,_=this.max;if(i<=p&&n<=p&&_<=o&&_<=c&&!d)return Array.prototype.slice.call(this.keys);var b=[];return this._forEachCell(i,n,o,c,this._queryCell,b,{},d),b},Ws.prototype._queryCell=function(i,n,o,c,d,p,_,b){var w=this.cells[d];if(w!==null)for(var I=this.keys,E=this.bboxes,L=0;L<w.length;L++){var k=w[L];if(_[k]===void 0){var U=4*k;(b?b(E[U+0],E[U+1],E[U+2],E[U+3]):i<=E[U+2]&&n<=E[U+3]&&o>=E[U+0]&&c>=E[U+1])?(_[k]=!0,p.push(I[k])):_[k]=!1}}},Ws.prototype._forEachCell=function(i,n,o,c,d,p,_,b){for(var w=this._convertToCellCoord(i),I=this._convertToCellCoord(n),E=this._convertToCellCoord(o),L=this._convertToCellCoord(c),k=w;k<=E;k++)for(var U=I;U<=L;U++){var F=this.d*U+k;if((!b||b(this._convertFromCellCoord(k),this._convertFromCellCoord(U),this._convertFromCellCoord(k+1),this._convertFromCellCoord(U+1)))&&d.call(this,i,n,o,c,F,p,_,b))return}},Ws.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},Ws.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},Ws.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,n=Zs+this.cells.length+1+1,o=0,c=0;c<this.cells.length;c++)o+=this.cells[c].length;var d=new Int32Array(n+o+this.keys.length+this.bboxes.length);d[0]=this.extent,d[1]=this.n,d[2]=this.padding;for(var p=n,_=0;_<i.length;_++){var b=i[_];d[Zs+_]=p,d.set(b,p),p+=b.length}return d[Zs+i.length]=p,d.set(this.keys,p),d[Zs+i.length+1]=p+=this.keys.length,d.set(this.bboxes,p),p+=this.bboxes.length,d.buffer};var ka=Y(uE);const ad={};function fn(i,n,o={}){Object.defineProperty(i,"_classRegistryKey",{value:n,writeable:!1}),ad[n]={klass:i,omit:o.omit||[]}}fn(Object,"Object"),ka.serialize=function(i,n){const o=i.toArrayBuffer();return n&&n.add(o),{buffer:o}},ka.deserialize=function(i){return new ka(i.buffer)},Object.defineProperty(ka,"name",{value:"Grid"}),fn(ka,"Grid"),fn(Cr,"Color"),fn(Error,"Error"),fn(po,"Formatted"),fn(Iu,"FormattedSection"),fn(Zn,"AJAXError"),fn(Dn,"ResolvedImage"),fn(od,"StylePropertyFunction"),fn(kp,"StyleExpression",{omit:["_evaluator"]}),fn(rd,"ZoomDependentExpression"),fn(d1,"ZoomConstantExpression"),fn(hi,"CompoundExpression",{omit:["_evaluate"]});for(const i in Uu)ad[Uu[i]._classRegistryKey]||fn(Uu[i],`Expression${i}`);function Rb(i){return i&&typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||i.constructor&&i.constructor.name==="ArrayBuffer")}function Rp(i){return self.ImageBitmap&&i instanceof ImageBitmap}function Sl(i,n){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp)return i;if(Rb(i)||Rp(i))return n&&n.add(i),i;if(ArrayBuffer.isView(i)){const o=i;return n&&n.add(o.buffer),o}if(i instanceof ImageData)return n&&n.add(i.data.buffer),i;if(Array.isArray(i)){const o=[];for(const c of i)o.push(Sl(c,n));return o}if(i instanceof Map){const o={$name:"Map"};for(const[c,d]of i.entries())o[c]=Sl(d);return o}if(typeof i=="object"){const o=i.constructor,c=o._classRegistryKey;if(!c)throw new Error(`can't serialize object of unregistered class ${c}`);const d=o.serialize?o.serialize(i,n):{};if(!o.serialize){for(const p in i)i.hasOwnProperty(p)&&(ad[c].omit.indexOf(p)>=0||(d[p]=Sl(i[p],n)));i instanceof Error&&(d.message=i.message)}if(d.$name)throw new Error("$name property is reserved for worker serialization logic.");return c!=="Object"&&(d.$name=c),d}throw new Error("can't serialize object of type "+typeof i)}function xc(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||Rb(i)||Rp(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(xc);if(typeof i=="object"){const n=i.$name||"Object";if(n==="Map"){const d=new Map;for(const p of Object.keys(i))p!=="$name"&&d.set(p,xc(i[p]));return d}const{klass:o}=ad[n];if(!o)throw new Error(`can't deserialize unregistered class ${n}`);if(o.deserialize)return o.deserialize(i);const c=Object.create(o.prototype);for(const d of Object.keys(i))d!=="$name"&&(c[d]=xc(i[d]));return c}throw new Error("can't deserialize object of type "+typeof i)}const _n={"Latin-1 Supplement":i=>i>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519,"CJK Unified Ideographs Extension B":i=>i>=131072&&i<=173791};function El(i){for(const n of i)if(f1(n.charCodeAt(0)))return!0;return!1}function hE(i){for(const n of i)if(!dE(n.charCodeAt(0)))return!1;return!0}function dE(i){return!(_n.Arabic(i)||_n["Arabic Supplement"](i)||_n["Arabic Extended-A"](i)||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i))}function f1(i){return!(i!==746&&i!==747&&(i<4352||!(_n["Bopomofo Extended"](i)||_n.Bopomofo(i)||_n["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||_n["CJK Compatibility Ideographs"](i)||_n["CJK Compatibility"](i)||_n["CJK Radicals Supplement"](i)||_n["CJK Strokes"](i)||!(!_n["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||_n["CJK Unified Ideographs Extension A"](i)||_n["CJK Unified Ideographs"](i)||_n["Enclosed CJK Letters and Months"](i)||_n["Hangul Compatibility Jamo"](i)||_n["Hangul Jamo Extended-A"](i)||_n["Hangul Jamo Extended-B"](i)||_n["Hangul Jamo"](i)||_n["Hangul Syllables"](i)||_n.Hiragana(i)||_n["Ideographic Description Characters"](i)||_n.Kanbun(i)||_n["Kangxi Radicals"](i)||_n["Katakana Phonetic Extensions"](i)||_n.Katakana(i)&&i!==12540||!(!_n["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!_n["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||_n["Unified Canadian Aboriginal Syllabics"](i)||_n["Unified Canadian Aboriginal Syllabics Extended"](i)||_n["Vertical Forms"](i)||_n["Yijing Hexagram Symbols"](i)||_n["Yi Syllables"](i)||_n["Yi Radicals"](i))))}function Pb(i){return!(f1(i)||function(n){return!!(_n["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||_n["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||_n["Letterlike Symbols"](n)||_n["Number Forms"](n)||_n["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||_n["Control Pictures"](n)&&n!==9251||_n["Optical Character Recognition"](n)||_n["Enclosed Alphanumerics"](n)||_n["Geometric Shapes"](n)||_n["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||_n["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||_n["CJK Symbols and Punctuation"](n)||_n.Katakana(n)||_n["Private Use Area"](n)||_n["CJK Compatibility Forms"](n)||_n["Small Form Variants"](n)||_n["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}(i))}function Ub(i){return i>=1424&&i<=2303||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i)}function Bb(i,n){return!(!n&&Ub(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||_n.Khmer(i))}function p1(i){for(const n of i)if(Ub(n.charCodeAt(0)))return!0;return!1}const m1="deferred",g1="loading",y1="loaded";let _1=null,Go="unavailable",Dl=null;const Fb=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(Go="error"),_1&&_1(i)};function v1(){x1.fire(new cc("pluginStateChange",{pluginStatus:Go,pluginURL:Dl}))}const x1=new xu,Al=function(){return Go},b1=function(){if(Go!==m1||!Dl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Go=g1,v1(),Dl&&It({url:Dl},i=>{i?Fb(i):(Go=y1,v1())})},hs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Go===y1||hs.applyArabicShaping!=null,isLoading:()=>Go===g1,setState(i){Go=i.pluginStatus,Dl=i.pluginURL},isParsed:()=>hs.applyArabicShaping!=null&&hs.processBidirectionalText!=null&&hs.processStyledBidirectionalText!=null,getPluginURL:()=>Dl};class rr{constructor(n,o){this.zoom=n,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.transition=o.transition,this.pitch=o.pitch,this.brightness=o.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(n){return function(o,c){for(const d of o)if(!Bb(d.charCodeAt(0),c))return!1;return!0}(n,hs.isLoaded())}}class Pp{constructor(n,o,c,d){this.property=n,this.value=o,this.expression=function(p,_,b,w){if(zp(p))return new od(p,_);if(id(p)||Array.isArray(p)&&p.length>0){const I=jp(p,_,b,w);if(I.result==="error")throw new Error(I.value.map(E=>`${E.key}: ${E.message}`).join(", "));return I.value}{let I=p;return typeof p=="string"&&_.type==="color"&&(I=Cr.parse(p)),{kind:"constant",isConfigDependent:!1,evaluate:()=>I}}}(o===void 0?n.specification.default:o,n.specification,c,d)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(n,o,c){return this.property.possiblyEvaluate(this,n,o,c)}}class M1{constructor(n,o,c){this.property=n,this.value=new Pp(n,void 0,o,c)}transitioned(n,o){return new w1(this.property,this.value,o,Te({},n.transition,this.transition),n.now)}untransitioned(){return new w1(this.property,this.value,null,{},0)}}class Oa{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultTransitionablePropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value.value)}setValue(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property,this._scope,this._options)),this._values[n].value=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].value.expression.isConfigDependent}setTransitionOrValue(n,o){o&&(this._options=o);const c=this._properties.properties;if(n)for(const d in n){const p=n[d];if(He(d,"-transition")){const _=d.slice(0,-11);c[_]&&this.setTransition(_,p)}else c[d]&&this.setValue(d,p)}}getTransition(n){return ut(this._values[n].transition)}setTransition(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property)),this._values[n].transition=ut(o)||void 0}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c);const d=this.getTransition(o);d!==void 0&&(n[`${o}-transition`]=d)}return n}transitioned(n,o){const c=new bc(this._properties);for(const d of Object.keys(this._values))c._values[d]=this._values[d].transitioned(n,o._values[d]);return c}untransitioned(){const n=new bc(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].untransitioned();return n}}class w1{constructor(n,o,c,d,p){const _=d.delay||0,b=d.duration||0;p=p||0,this.property=n,this.value=o,this.begin=p+_,this.end=this.begin+b,n.specification.transition&&(d.delay||d.duration)&&(this.prior=c)}possiblyEvaluate(n,o,c){const d=n.now||0,p=this.value.possiblyEvaluate(n,o,c),_=this.prior;if(_){if(d>this.end)return this.prior=null,p;if(this.value.isDataDriven())return this.prior=null,p;if(d<this.begin)return _.possiblyEvaluate(n,o,c);{const b=(d-this.begin)/(this.end-this.begin);return this.property.interpolate(_.possiblyEvaluate(n,o,c),p,Ee(b))}}return p}}class bc{constructor(n){this._properties=n,this._values=Object.create(n.defaultTransitioningPropertyValues)}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}hasTransition(){for(const n of Object.keys(this._values))if(this._values[n].prior)return!0;return!1}}class fE{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultPropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value)}setValue(n,o){this._values[n]=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].expression.isConfigDependent}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c)}return n}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}}class Bu{constructor(n,o,c){this.property=n,this.value=o,this.parameters=c}isConstant(){return this.value.kind==="constant"}constantOr(n){return this.value.kind==="constant"?this.value.value:n}evaluate(n,o,c,d){return this.property.evaluate(this.value,this.parameters,n,o,c,d)}}class ld{constructor(n){this._properties=n,this._values=Object.create(n.defaultPossiblyEvaluatedValues)}get(n){return this._values[n]}}class Wt{constructor(n){this.specification=n}possiblyEvaluate(n,o){return n.expression.evaluate(o)}interpolate(n,o,c){const d=pp[this.specification.type];return d?d(n,o,c):n}}class In{constructor(n,o){this.specification=n,this.overrides=o}possiblyEvaluate(n,o,c,d){return new Bu(this,n.expression.kind==="constant"||n.expression.kind==="camera"?{kind:"constant",value:n.expression.evaluate(o,null,{},c,d)}:n.expression,o)}interpolate(n,o,c){if(n.value.kind!=="constant"||o.value.kind!=="constant")return n;if(n.value.value===void 0||o.value.value===void 0)return new Bu(this,{kind:"constant",value:void 0},n.parameters);const d=pp[this.specification.type];return d?new Bu(this,{kind:"constant",value:d(n.value.value,o.value.value,c)},n.parameters):n}evaluate(n,o,c,d,p,_){return n.kind==="constant"?n.value:n.evaluate(o,c,d,p,_)}}class Mc{constructor(n){this.specification=n}possiblyEvaluate(n,o,c,d){return!!n.expression.evaluate(o,null,{},c,d)}interpolate(){return!1}}class or{constructor(n){this.properties=n,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const o=new rr(0,{});for(const c in n){const d=n[c];d.specification.overridable&&this.overridableProperties.push(c);const p=this.defaultPropertyValues[c]=new Pp(d,void 0),_=this.defaultTransitionablePropertyValues[c]=new M1(d);this.defaultTransitioningPropertyValues[c]=_.untransitioned(),this.defaultPossiblyEvaluatedValues[c]=p.possiblyEvaluate(o)}}}function cd(i){return i instanceof Number||i instanceof String||i instanceof Boolean?i.valueOf():i}function ud(i){if(Array.isArray(i))return i.map(ud);if(i instanceof Object&&!(i instanceof Number||i instanceof String||i instanceof Boolean)){const n={};for(const o in i)n[o]=ud(i[o]);return n}return cd(i)}fn(In,"DataDrivenProperty"),fn(Wt,"DataConstantProperty"),fn(Mc,"ColorRampProperty");var at=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function I1(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const n of i.slice(1))if(!I1(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function ds(i,n="fill"){if(i==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};I1(i)||(i=hd(i));const o=i;let c=!0;try{c=function(I){if(!Fu(I))return I;let E=ud(I);return T1(E),E=Vb(E),E}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
83
83
  This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
84
84
  and paste the contents of this message in the report.
85
85
  Thank you!
@@ -2192,14 +2192,14 @@ ${y.vertexSource}`;const te=z.createShader(z.FRAGMENT_SHADER);if(z.isContextLost
2192
2192
  translate(${h.x}px,${h.y}px)
2193
2193
  `}_calculateXYTransform(){const l=this._pos,h=this._map,y=this.getPitchAlignment();if(!h||!l||y!=="map")return"";if(!h._showingGlobe()){const z=h.getPitch();return z?`rotateX(${z}deg)`:""}const x=a.bF(a.d7(h.transform,this._lngLat)),M=l.sub(a.d8(h.transform)),T=Math.abs(M.x)+Math.abs(M.y);if(T===0)return"";const A=x/T;return`rotateX(${-M.y*A}deg) rotateY(${M.x*A}deg)`}_calculateZTransform(){const l=this._pos,h=this._map;if(!h||!l)return"";let y=0;const x=this.getRotationAlignment();if(x==="map")if(h._showingGlobe()){const M=h.project(new a.bn(this._lngLat.lng,this._lngLat.lat+.001)),T=h.project(new a.bn(this._lngLat.lng,this._lngLat.lat-.001)).sub(M);y=a.bF(Math.atan2(T.y,T.x))-90}else y=-h.getBearing();else if(x==="horizon"){const M=a.O(4,6,h.getZoom()),T=a.d8(h.transform);T.y+=M*h.transform.height;const A=l.sub(T),z=a.bF(Math.atan2(A.y,A.x));y=(z>90?z-270:z+90)*(1-M)}return y+=this._rotation,y?`rotateZ(${y}deg)`:""}_update(l){cancelAnimationFrame(this._updateFrameId);const h=this._map;h&&(h.transform.renderWorldCopies&&(this._lngLat=Id(this._lngLat,this._pos,h.transform)),this._pos=h.project(this._lngLat),l===!0?this._updateFrameId=requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),h._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(h._showingGlobe()||h.getTerrain()||h.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(l){return this._offset=a.P.convert(l),this._update(),this}addClassName(l){return this._element.classList.add(l),this}removeClassName(l){return this._element.classList.remove(l),this}toggleClassName(l){return this._element.classList.toggle(l)}_onMove(l){const h=this._map;if(!h)return;const y=this._pointerdownPos,x=this._positionDelta;if(y&&x){if(!this._isDragging){const M=this._clickTolerance||h._clickTolerance;if(l.point.dist(y)<M)return;this._isDragging=!0}this._pos=l.point.sub(x),this._lngLat=h.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.b("dragstart"))),this.fire(new a.b("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const l=this._map;l&&(l.off("mousemove",this._onMove),l.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new a.b("dragend")),this._state="inactive"}_addDragHandler(l){const h=this._map,y=this._pos;h&&y&&this._element.contains(l.originalEvent.target)&&(l.preventDefault(),this._positionDelta=l.point.sub(y),this._pointerdownPos=l.point,this._state="pending",h.on("mousemove",this._onMove),h.on("touchmove",this._onMove),h.once("mouseup",this._onUp),h.once("touchend",this._onUp))}setDraggable(l){this._draggable=!!l;const h=this._map;return h&&(l?(h.on("mousedown",this._addDragHandler),h.on("touchstart",this._addDragHandler)):(h.off("mousedown",this._addDragHandler),h.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(l){return this._rotation=l||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(l){return this._rotationAlignment=l||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment==="auto"||this._rotationAlignment==="horizon"&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(l){return this._pitchAlignment=l||"auto",this._update(),this}getPitchAlignment(){return this._pitchAlignment==="auto"?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(l){return this._occludedOpacity=l||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const iM={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},rM=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function oM(g=new a.P(0,0),l="bottom"){if(typeof g=="number"){const h=Math.round(Math.sqrt(.5*Math.pow(g,2)));switch(l){case"top":return new a.P(0,g);case"top-left":return new a.P(h,h);case"top-right":return new a.P(-h,h);case"bottom":return new a.P(0,-g);case"bottom-left":return new a.P(h,-h);case"bottom-right":return new a.P(-h,-h);case"left":return new a.P(g,0);case"right":return new a.P(-g,0)}return new a.P(0,0)}return g instanceof a.P||Array.isArray(g)?a.P.convert(g):a.P.convert(g[l]||[0,0])}class B1{constructor(l){this.jumpTo(l)}getValue(l){if(l<=this._startTime)return this._start;if(l>=this._endTime)return this._end;const h=a.cc((l-this._startTime)/(this._endTime-this._startTime));return this._start*(1-h)+this._end*h}isEasing(l){return l>=this._startTime&&l<=this._endTime}jumpTo(l){this._startTime=-1/0,this._endTime=-1/0,this._start=l,this._end=l}easeTo(l,h,y){this._start=this.getValue(h),this._end=l,this._startTime=h,this._endTime=h+y}}const Td={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},sM={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1};class F1{constructor(){this.showOverdrawInspector=!1,this.showTileBoundaries=!1,this.showParseStatus=!1,this.continuousRedraw=!1,this.showTileAABBs=!1,this.showPadding=!1,this.showTerrainWireframe=!1,this.showLayers2DWireframe=!1,this.showLayers3DWireframe=!1}}const Hp={showCompass:!0,showZoom:!0,visualizePitch:!1};class Ra{constructor(l,h,y=!1){this._clickTolerance=10,this.element=h,this.mouseRotate=new yd({clickTolerance:l.dragRotate._mouseRotate._clickTolerance}),this.map=l,y&&(this.mousePitch=new Vp({clickTolerance:l.dragRotate._mousePitch._clickTolerance})),a.aY(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),h.addEventListener("mousedown",this.mousedown),h.addEventListener("touchstart",this.touchstart,{passive:!1}),h.addEventListener("touchmove",this.touchmove),h.addEventListener("touchend",this.touchend),h.addEventListener("touchcancel",this.reset)}down(l,h){this.mouseRotate.mousedown(l,h),this.mousePitch&&this.mousePitch.mousedown(l,h),H()}move(l,h){const y=this.map,x=this.mouseRotate.mousemoveWindow(l,h),M=x&&x.bearingDelta;if(M&&y.setBearing(y.getBearing()+M),this.mousePitch){const T=this.mousePitch.mousemoveWindow(l,h),A=T&&T.pitchDelta;A&&y.setPitch(y.getPitch()+A)}}off(){const l=this.element;l.removeEventListener("mousedown",this.mousedown),l.removeEventListener("touchstart",this.touchstart,{passive:!1}),l.removeEventListener("touchmove",this.touchmove),l.removeEventListener("touchend",this.touchend),l.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){Y(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup)}mousedown(l){this.down(a.e({},l,{ctrlKey:!0,preventDefault:()=>l.preventDefault()}),fe(this.element,l)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)}mousemove(l){this.move(l,fe(this.element,l))}mouseup(l){this.mouseRotate.mouseupWindow(l),this.mousePitch&&this.mousePitch.mouseupWindow(l),this.offTemp()}touchstart(l){l.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=pe(this.element,l.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>l.preventDefault()},this._startPos))}touchmove(l){l.targetTouches.length!==1?this.reset():(this._lastPos=pe(this.element,l.targetTouches)[0],this.move({preventDefault:()=>l.preventDefault()},this._lastPos))}touchend(l){l.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const Yp={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},Co={maxWidth:100,unit:"metric"},zl={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"};return{version:a.dk,supported:S,setRTLTextPlugin:a.dm,getRTLTextPluginStatus:a.dn,Map:class extends gr{constructor(g){const l=g;if((g=a.e({},sM,g)).minZoom!=null&&g.maxZoom!=null&&g.minZoom>g.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(g.minPitch!=null&&g.maxPitch!=null&&g.minPitch>g.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(g.minPitch!=null&&g.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(g.maxPitch!=null&&g.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(g.antialias&&a.d9(window)&&(g.antialias=!1,a.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Xh(g.minZoom,g.maxZoom,g.minPitch,g.maxPitch,g.renderWorldCopies),g),this._repaint=!1,this._interactive=g.interactive,this._minTileCacheSize=g.minTileCacheSize,this._maxTileCacheSize=g.maxTileCacheSize,this._failIfMajorPerformanceCaveat=g.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=g.preserveDrawingBuffer,this._antialias=g.antialias,this._trackResize=g.trackResize,this._bearingSnap=g.bearingSnap,this._refreshExpiredTiles=g.refreshExpiredTiles,this._fadeDuration=g.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=g.crossSourceCollisions,this._collectResourceTiming=g.collectResourceTiming,this._language=this._parseLanguage(g.language),this._worldview=g.worldview,this._renderTaskQueue=new nM,this._domRenderTaskQueue=new nM,this._controls=[],this._markers=[],this._popups=[],this._mapId=a.aC(),this._locale=a.e({},Td,g.locale),this._clickTolerance=g.clickTolerance,this._cooperativeGestures=g.cooperativeGestures,this._performanceMetricsCollection=g.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new B1(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new a.da(g.transformRequest,g.accessToken,g.testMode),this._silenceAuthErrors=!!g.testMode,this._contextCreateOptions=g.contextCreateOptions?{...g.contextCreateOptions}:{},typeof g.container=="string"){const h=document.getElementById(g.container);if(!h)throw new Error(`Container '${g.container.toString()}' not found.`);this._container=h}else{if(!(g.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=g.container}if(this._container.childNodes.length>0&&a.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),g.maxBounds&&this.setMaxBounds(g.maxBounds),a.aY(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._debugParams=new F1,this._tp=g.devtools?new hd(this):new hd,this._tp.registerParameter(this._debugParams,["Debug"],"showOverdrawInspector",void 0,()=>{this._update()}),this._tp.registerParameter(this._debugParams,["Debug"],"showTileBoundaries",void 0,()=>{this._update()}),this._tp.registerParameter(this._debugParams,["Debug"],"showParseStatus",void 0,()=>{this._update()}),this._tp.registerParameter(this._debugParams,["Debug"],"continuousRedraw",void 0,h=>{this.repaint=h}),this._tp.registerParameter(this._debugParams,["Debug"],"showTileAABBs",void 0,h=>{this.showTileAABBs=h}),this._tp.registerParameter(this._debugParams,["Debug"],"showPadding",void 0,h=>{this.showPadding=h}),this._tp.registerParameter(this._debugParams,["Debug","Wireframe"],"showTerrainWireframe",void 0,()=>{this._update()}),this._tp.registerParameter(this._debugParams,["Debug","Wireframe"],"showLayers2DWireframe",void 0,()=>{this._update()}),this._tp.registerParameter(this._debugParams,["Debug","Wireframe"],"showLayers3DWireframe",void 0,()=>{this._update()}),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");if(this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new yE(this,g),this._localFontFamily=g.localFontFamily,this._localIdeographFontFamily=g.localIdeographFontFamily,(g.style||!g.testMode)&&this.setStyle(g.style||a.d5.DEFAULT_STYLE,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),g.projection&&this.setProjection(g.projection),g.hash&&(this._hash=new Up(typeof g.hash=="string"&&g.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){l.center==null&&l.zoom==null||(this.transform._unmodified=!1),this.jumpTo({center:g.center,zoom:g.zoom,bearing:g.bearing,pitch:g.pitch});const h=g.bounds;h&&(this.resize(),this.fitBounds(h,a.e({},g.fitBoundsOptions,{duration:0})))}this.resize(),g.attributionControl&&this.addControl(new P1({customAttribution:g.customAttribution})),this._logoControl=new tM,this.addControl(this._logoControl,g.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",h=>{this._update(h.dataType==="style"),this.fire(new a.b(`${h.dataType}data`,h))}),this.on("dataloading",h=>{this.fire(new a.b(`${h.dataType}dataloading`,h))})}_getMapId(){return this._mapId}addControl(g,l){if(l===void 0&&(l=g.getDefaultPosition?g.getDefaultPosition():"top-right"),!g||!g.onAdd)return this.fire(new a.a(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const h=g.onAdd(this);this._controls.push(g);const y=this._controlPositions[l];return l.indexOf("bottom")!==-1?y.insertBefore(h,y.firstChild):y.appendChild(h),this}removeControl(g){if(!g||!g.onRemove)return this.fire(new a.a(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const l=this._controls.indexOf(g);return l>-1&&this._controls.splice(l,1),g.onRemove(this),this}hasControl(g){return this._controls.indexOf(g)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(g){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const l=!this._moving;return l&&this.fire(new a.b("movestart",g)).fire(new a.b("move",g)),this.fire(new a.b("resize",g)),l&&this.fire(new a.b("moveend",g)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(g){return this.transform.setMaxBounds(a.ad.convert(g)),this._update()}setMinZoom(g){if((g=g??-2)>=-2&&g<=this.transform.maxZoom)return this.transform.minZoom=g,this._update(),this.getZoom()<g?this.setZoom(g):this.fire(new a.b("zoomstart")).fire(new a.b("zoom")).fire(new a.b("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(g){if((g=g??22)>=this.transform.minZoom)return this.transform.maxZoom=g,this._update(),this.getZoom()>g?this.setZoom(g):this.fire(new a.b("zoomstart")).fire(new a.b("zoom")).fire(new a.b("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(g){if((g=g??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(g>=0&&g<=this.transform.maxPitch)return this.transform.minPitch=g,this._update(),this.getPitch()<g?this.setPitch(g):this.fire(new a.b("pitchstart")).fire(new a.b("pitch")).fire(new a.b("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(g){if((g=g??85)>85)throw new Error("maxPitch must be less than or equal to 85");if(g>=this.transform.minPitch)return this.transform.maxPitch=g,this._update(),this.getPitch()>g?this.setPitch(g):this.fire(new a.b("pitchstart")).fire(new a.b("pitch")).fire(new a.b("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(g){return this.transform.renderWorldCopies=g,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(g){return g==="auto"?navigator.language:Array.isArray(g)?g.length===0?void 0:g.map(l=>l==="auto"?navigator.language:l):g}setLanguage(g){const l=this._parseLanguage(g);if(!this.style||l===this._language)return this;this._language=l,this.style.reloadSources();for(const h of this._controls)h._setLanguage&&h._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(g){return this.style&&g!==this._worldview?(this._worldview=g,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return this.transform.projection.name==="globe"}setProjection(g){return this._lazyInitEmptyStyle(),g?typeof g=="string"&&(g={name:g}):g=null,this._useExplicitProjection=!!g,this._prioritizeAndUpdateProjection(g,this.style.projection)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;const g=this.transform,l=g.projection.name;let h;l==="globe"&&g.zoom>=a.bx?(g.setMercatorFromTransition(),h=!0):l==="mercator"&&g.zoom<a.bx&&(g.setProjection({name:"globe"}),h=!0),h&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(g,l){return this._updateProjection(g||l||{name:"mercator"})}_updateProjection(g){let l;return l=g.name==="globe"&&this.transform.zoom>=a.bx?this.transform.setMercatorFromTransition():this.transform.setProjection(g),this.style.applyProjectionUpdate(),l&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(g){return this.transform.locationPoint3D(a.bn.convert(g))}unproject(g){return this.transform.pointLocation3D(a.P.convert(g))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(g,l,h){if(g==="mouseenter"||g==="mouseover"){let y=!1;const x=T=>{const A=l.filter(j=>this.getLayer(j)),z=A.length?this.queryRenderedFeatures(T.point,{layers:A}):[];z.length?y||(y=!0,h.call(this,new Po(g,this,T.originalEvent,{features:z}))):y=!1},M=()=>{y=!1};return{layers:new Set(l),listener:h,delegates:{mousemove:x,mouseout:M}}}if(g==="mouseleave"||g==="mouseout"){let y=!1;const x=T=>{const A=l.filter(z=>this.getLayer(z));(A.length?this.queryRenderedFeatures(T.point,{layers:A}):[]).length?y=!0:y&&(y=!1,h.call(this,new Po(g,this,T.originalEvent)))},M=T=>{y&&(y=!1,h.call(this,new Po(g,this,T.originalEvent)))};return{layers:new Set(l),listener:h,delegates:{mousemove:x,mouseout:M}}}{const y=x=>{const M=l.filter(A=>this.getLayer(A)),T=M.length?this.queryRenderedFeatures(x.point,{layers:M}):[];T.length&&(x.features=T,h.call(this,x),delete x.features)};return{layers:new Set(l),listener:h,delegates:{[g]:y}}}}on(g,l,h){if(h===void 0)return super.on(g,l);if(Array.isArray(l)||(l=[l]),l){for(const x of l)if(!this._isValidId(x))return this}const y=this._createDelegatedListener(g,l,h);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[g]=this._delegatedListeners[g]||[],this._delegatedListeners[g].push(y);for(const x in y.delegates)this.on(x,y.delegates[x]);return this}once(g,l,h){if(h===void 0)return super.once(g,l);if(Array.isArray(l)||(l=[l]),l){for(const x of l)if(!this._isValidId(x))return this}const y=this._createDelegatedListener(g,l,h);for(const x in y.delegates)this.once(x,y.delegates[x]);return this}off(g,l,h){if(h===void 0)return super.off(g,l);l=new Set(Array.isArray(l)?l:[l]);for(const M of l)if(!this._isValidId(M))return this;const y=(M,T)=>{if(M.size!==T.size)return!1;for(const A of M)if(!T.has(A))return!1;return!0},x=this._delegatedListeners?this._delegatedListeners[g]:void 0;return x&&(M=>{for(let T=0;T<M.length;T++){const A=M[T];if(A.listener===h&&y(A.layers,l)){for(const z in A.delegates)this.off(z,A.delegates[z]);return M.splice(T,1),this}}})(x),this}queryRenderedFeatures(g,l){if(!this.style)return[];if(l!==void 0||g===void 0||g instanceof a.P||Array.isArray(g)||(l=g,g=void 0),g=g||[[0,0],[this.transform.width,this.transform.height]],(l=l||{}).layers&&Array.isArray(l.layers)){for(const h of l.layers)if(!this._isValidId(h))return[]}return this.style.queryRenderedFeatures(g,l,this.transform)}querySourceFeatures(g,l){return this._isValidId(g)?this.style.querySourceFeatures(g,l):[]}isPointOnSurface(g){const{name:l}=this.transform.projection;return l!=="globe"&&l!=="mercator"&&a.w(`${l} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(a.P.convert(g))}setStyle(g,l){return(l=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},l)).diff!==!1&&l.localIdeographFontFamily===this._localIdeographFontFamily&&l.localFontFamily===this._localFontFamily&&this.style&&g?(this._diffStyle(g,l),this):(this._localIdeographFontFamily=l.localIdeographFontFamily,this._localFontFamily=l.localFontFamily,this._updateStyle(g,l))}_getUIString(g){const l=this._locale[g];if(l==null)throw new Error(`Missing UI string '${g}'`);return l}_updateStyle(g,l){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),g&&(this.style=new Gs(this,l||{}),this.style.setEventedParent(this,{style:this.style}),typeof g=="string"?this.style.loadURL(g):this.style.loadJSON(g)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Gs(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(g,l){if(typeof g=="string"){const h=this._requestManager.normalizeStyleURL(g),y=this._requestManager.transformRequest(h,a.R.Style);a.g(y,(x,M)=>{x?this.fire(new a.a(x)):M&&this._updateDiff(M,l)})}else typeof g=="object"&&this._updateDiff(g,l)}_updateDiff(g,l){try{this.style.setState(g)&&this._update(!0)}catch(h){a.w(`Unable to perform style diff: ${h.message||h.error||h}. Rebuilding the style from scratch.`),this._updateStyle(g,l)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(a.w("There is no style added to the map."),!1)}_isValidId(g){return g==null?(this.fire(new a.a(new Error("IDs can't be empty."))),!1):!a.c4(g)||(this.fire(new a.a(new Error(`IDs can't contain special symbols: "${g}".`))),!1)}addSource(g,l){return this._isValidId(g)?(this._lazyInitEmptyStyle(),this.style.addSource(g,l),this._update(!0)):this}isSourceLoaded(g){return!!this._isValidId(g)&&!!this.style&&this.style._isSourceCacheLoaded(g)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(g,l,h){this._lazyInitEmptyStyle(),this.style.addSourceType(g,l,h)}removeSource(g){return this._isValidId(g)?(this.style.removeSource(g),this._updateTerrain(),this._update(!0)):this}getSource(g){return this._isValidId(g)?this.style.getOwnSource(g):null}addImage(g,l,{pixelRatio:h=1,sdf:y=!1,stretchX:x,stretchY:M,content:T}={}){if(this._lazyInitEmptyStyle(),l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap){const{width:A,height:z,data:j}=a.f.getImageData(l);this.style.addImage(g,{data:new a.h({width:A,height:z},j),pixelRatio:h,stretchX:x,stretchY:M,content:T,sdf:y,version:0})}else if(l.width===void 0||l.height===void 0)this.fire(new a.a(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:A,height:z}=l,j=l;this.style.addImage(g,{data:new a.h({width:A,height:z},new Uint8Array(j.data)),pixelRatio:h,stretchX:x,stretchY:M,content:T,sdf:y,version:0,userImage:j}),j.onAdd&&j.onAdd(this,g)}}updateImage(g,l){this._lazyInitEmptyStyle();const h=this.style.getImage(g);if(!h)return void this.fire(new a.a(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const y=l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap?a.f.getImageData(l):l,{width:x,height:M}=y,T=y.data;if(x===void 0||M===void 0)return void this.fire(new a.a(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(x!==h.data.width||M!==h.data.height)return void this.fire(new a.a(new Error(`The width and height of the updated image (${x}, ${M})
2194
2194
  must be that same as the previous version of the image
2195
- (${h.data.width}, ${h.data.height})`)));const A=!(l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap);h.data.replace(T,A),this.style.updateImage(g,h)}hasImage(g){return g?!!this.style&&!!this.style.getImage(g):(this.fire(new a.a(new Error("Missing required image id"))),!1)}removeImage(g){this.style.removeImage(g)}loadImage(g,l){a.d(this._requestManager.transformRequest(g,a.R.Image),(h,y)=>{l(h,y instanceof HTMLImageElement?a.f.getImageData(y):y)})}listImages(){return this.style.listImages()}addModel(g,l){this._lazyInitEmptyStyle(),this.style.addModel(g,l)}hasModel(g){return g?this.style.hasModel(g):(this.fire(new a.a(new Error("Missing required model id"))),!1)}removeModel(g){this.style.removeModel(g)}listModels(){return this.style.listModels()}addLayer(g,l){return this._isValidId(g.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(g,l),this._update(!0)):this}getSlot(g){const l=this.getLayer(g);return l&&l.slot||null}setSlot(g,l){return this.style.setSlot(g,l),this.style.mergeLayers(),this._update(!0)}addImport(g,l){return this.style.addImport(g,l),this}updateImport(g,l){return typeof l!="string"&&l.id!==g?(this.removeImport(g),this.addImport(l)):(this.style.updateImport(g,l),this._update(!0))}removeImport(g){return this.style.removeImport(g),this}moveImport(g,l){return this.style.moveImport(g,l),this._update(!0)}moveLayer(g,l){return this._isValidId(g)?(this.style.moveLayer(g,l),this._update(!0)):this}removeLayer(g){return this._isValidId(g)?(this.style.removeLayer(g),this._update(!0)):this}getLayer(g){return this._isValidId(g)?this.style.getOwnLayer(g):null}setLayerZoomRange(g,l,h){return this._isValidId(g)?(this.style.setLayerZoomRange(g,l,h),this._update(!0)):this}setFilter(g,l,h={}){return this._isValidId(g)?(this.style.setFilter(g,l,h),this._update(!0)):this}getFilter(g){return this._isValidId(g)?this.style.getFilter(g):null}setPaintProperty(g,l,h,y={}){return this._isValidId(g)?(this.style.setPaintProperty(g,l,h,y),this._update(!0)):this}getPaintProperty(g,l){return this._isValidId(g)?this.style.getPaintProperty(g,l):null}setLayoutProperty(g,l,h,y={}){return this._isValidId(g)?(this.style.setLayoutProperty(g,l,h,y),this._update(!0)):this}getLayoutProperty(g,l){return this._isValidId(g)?this.style.getLayoutProperty(g,l):null}getConfigProperty(g,l){return this.style.getConfigProperty(g,l)}setConfigProperty(g,l,h){return this.style.setConfigProperty(g,l,h),this._update(!0)}setLights(g){if(this._lazyInitEmptyStyle(),g&&g.length===1&&g[0].type==="flat"){const l=g[0];l.properties?this.style.setFlatLight(l.properties,l.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(g),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const g=this.style.getLights()||[];return g.length===0&&g.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),g}setLight(g,l={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:g}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(g){return this._lazyInitEmptyStyle(),!g&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(g),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(g){return this._lazyInitEmptyStyle(),this.style.setFog(g),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setCamera(g){return this.style.setCamera(g),this._triggerCameraUpdate(g)}_triggerCameraUpdate(g){return this._update(this.transform.setOrthographicProjectionAtLowPitch(g["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(g){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(a.bn.convert(g),this.transform):0}setFeatureState(g,l){return this._isValidId(g.source)?(this.style.setFeatureState(g,l),this._update()):this}removeFeatureState(g,l){return this._isValidId(g.source)?(this.style.removeFeatureState(g,l),this._update()):this}getFeatureState(g){return this._isValidId(g.source)?this.style.getFeatureState(g):null}_updateContainerDimensions(){if(!this._container)return;const g=this._container.getBoundingClientRect().width||400,l=this._container.getBoundingClientRect().height||300;let h,y,x,M=this._container;for(;M&&(!y||!x);){const T=window.getComputedStyle(M).transform;T&&T!=="none"&&(h=T.match(/matrix.*\((.+)\)/)[1].split(", "),h[0]&&h[0]!=="0"&&h[0]!=="1"&&(y=h[0]),h[3]&&h[3]!=="0"&&h[3]!=="1"&&(x=h[3])),M=M.parentElement}this._containerWidth=y?Math.abs(g/y):g,this._containerHeight=x?Math.abs(l/x):l}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&a.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const g=this._container;g.classList.add("mapboxgl-map"),(this._missingCSSCanary=C("div","mapboxgl-canary",g)).style.visibility="hidden",this._detectMissingCSS();const l=this._canvasContainer=C("div","mapboxgl-canvas-container",g);this._canvas=C("canvas","mapboxgl-canvas",l),this._interactive&&(l.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const h=this._controlContainer=C("div","mapboxgl-control-container",g),y=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(x=>{y[x]=C("div",`mapboxgl-ctrl-${x}`,h)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(g,l){const h=a.f.devicePixelRatio||1;this._canvas.width=h*Math.ceil(g),this._canvas.height=h*Math.ceil(l),this._canvas.style.width=`${g}px`,this._canvas.style.height=`${l}px`}_addMarker(g){this._markers.push(g)}_removeMarker(g){const l=this._markers.indexOf(g);l!==-1&&this._markers.splice(l,1)}_addPopup(g){this._popups.push(g)}_removePopup(g){const l=this._popups.indexOf(g);l!==-1&&this._popups.splice(l,1)}_setupPainter(){const g=a.e({},S.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),l=this._canvas.getContext("webgl2",g);l?(a.db(l,!0),this.painter=new Qb(l,this._contextCreateOptions,this.transform,this._tp),this.on("data",h=>{h.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),a.dc.testSupport(l)):this.fire(new a.a(new Error("Failed to initialize WebGL")))}_contextLost(g){g.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new a.b("webglcontextlost",{originalEvent:g}))}_contextRestored(g){this._setupPainter(),this.resize(),this._update(),this.fire(new a.b("webglcontextrestored",{originalEvent:g}))}_onMapScroll(g){if(g.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(g){return this.style?(this._styleDirty=this._styleDirty||g,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(g){return this._update(),this._renderTaskQueue.add(g)}_cancelRenderFrame(g){this._renderTaskQueue.remove(g)}_requestDomTask(g){!this.loaded()||this.loaded()&&!this.isMoving()?g():this._domRenderTaskQueue.add(g)}_render(g){let l;this.fire(new a.b("renderstart"));const h=this.painter.context.extTimerQuery,y=a.f.now(),x=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(l=x.createQuery(),x.beginQuery(h.TIME_ELAPSED_EXT,l)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(g),this._domRenderTaskQueue.run(g),this._removed)return;this._updateProjectionTransition();const M=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const z=this.transform.zoom,j=this.transform.pitch,P=a.f.now(),B=new a.K(z,{now:P,fadeDuration:M,pitch:j,transition:this.style.transition});this.style.update(B)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let T=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),T=this._updateAverageElevation(y),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):T=this._updateAverageElevation(y),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,M,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries||this._debugParams.showTileBoundaries,showParseStatus:this.showParseStatus||this._debugParams.showParseStatus,wireframe:{terrain:this.showTerrainWireframe||this._debugParams.showTerrainWireframe,layers2D:this.showLayers2DWireframe||this._debugParams.showLayers2DWireframe,layers3D:this.showLayers3DWireframe||this._debugParams.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector||this._debugParams.showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs||this._debugParams.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:M,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding||this._debugParams.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new a.b("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new a.b("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),l){const z=a.f.now()-y;x.endQuery(h.TIME_ELAPSED_EXT),setTimeout(()=>{const j=x.getQueryParameter(l,x.QUERY_RESULT)/1e6;x.deleteQuery(l),this.fire(new a.b("gpu-timing-frame",{cpuTime:z,gpuTime:j}))},50)}if(this.listens("gpu-timing-layer")){const z=this.painter.collectGpuTimers();setTimeout(()=>{const j=this.painter.queryGpuTimers(z);this.fire(new a.b("gpu-timing-layer",{layerTimes:j}))},50)}if(this.listens("gpu-timing-deferred-render")){const z=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const j=this.painter.queryGpuTimeDeferredRender(z);this.fire(new a.b("gpu-timing-deferred-render",{gpuTime:j}))},50)}const A=this._sourcesDirty||this._styleDirty||this._placementDirty||T;if(A||this._repaint)this.triggerRepaint();else{const z=!this.isMoving()&&this.loaded();if(z&&(T=this._updateAverageElevation(y,!0)),T)this.triggerRepaint();else if(this._triggerFrame(!1),z&&(this.fire(new a.b("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const j=this._calculateSpeedIndex();this.fire(new a.b("speedindexcompleted",{speedIndex:j})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||A||(this._fullyLoaded=!0,this._performanceMetricsCollection&&a.dd(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(g){for(const l of this._markers)g&&!this.getRenderWorldCopies()&&(l._lngLat=l._lngLat.wrap()),l._update();for(const l of this._popups)!g||this.getRenderWorldCopies()||l._trackPointer||(l._lngLat=l._lngLat.wrap()),l._update()}_updateAverageElevation(g,l=!1){const h=x=>(this.transform.averageElevation=x,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&h(0);const y=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(y||(l||g-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(g)){const x=this.transform.averageElevation;let M=this.transform.sampleAverageElevation();this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(M)?M=0:this._averageElevationLastSampledAt=g;const T=Math.abs(x-M);if(T>1){if(this._isInitialLoad||y)return this._averageElevation.jumpTo(M),h(M);this._averageElevation.easeTo(M,g,300)}else if(T>1e-4)return this._averageElevation.jumpTo(M),h(M)}return!!this._averageElevation.isEasing(g)&&h(this._averageElevation.getValue(g))}_authenticate(){a.de(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,g=>{if(g&&(g.message===a.df||g.status===401)){const l=this.painter.context.gl;a.db(l,!1),this._logoControl instanceof tM&&this._logoControl._updateLogo(),l&&l.clear(l.DEPTH_BUFFER_BIT|l.COLOR_BUFFER_BIT|l.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new a.a(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),a.dg(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const g=this._isDragging();this.painter.updateTerrain(this.style,g)}_calculateSpeedIndex(){const g=this.painter.canvasCopy(),l=this.painter.getCanvasCopiesAndTimestamps();l.timeStamps.push(performance.now());const h=this.painter.context.gl,y=h.createFramebuffer();function x(M){h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,M,0);const T=new Uint8Array(h.drawingBufferWidth*h.drawingBufferHeight*4);return h.readPixels(0,0,h.drawingBufferWidth,h.drawingBufferHeight,h.RGBA,h.UNSIGNED_BYTE,T),T}return h.bindFramebuffer(h.FRAMEBUFFER,y),this._canvasPixelComparison(x(g),l.canvasCopies.map(x),l.timeStamps)}_canvasPixelComparison(g,l,h){let y=h[1]-h[0];const x=g.length/4;for(let M=0;M<l.length;M++){const T=l[M];let A=0;for(let z=0;z<T.length;z+=4)T[z]===g[z]&&T[z+1]===g[z+1]&&T[z+2]===g[z+2]&&T[z+3]===g[z+3]&&(A+=1);y+=(h[M+2]-h[M+1])*(1-A/x)}return y}remove(){this._hash&&this._hash.remove();for(const l of this._controls)l.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const g=this.painter.context.gl.getExtension("WEBGL_lose_context");g&&g.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),a.dh(this.painter.context.gl),a.di.remove(),a.dj.remove(),this._removed=!0,this.fire(new a.b("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(g){this._renderNextFrame=this._renderNextFrame||g,this.style&&!this._frame&&(this._frame=a.f.frame(l=>{const h=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,h&&this._render(l)}))}_preloadTiles(g){const l=this.style?Object.values(this.style._sourceCaches):[];return a.b1(l,(h,y)=>h._preloadTiles(g,y),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(g){this._trackResize&&this.resize({originalEvent:g})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(g){this._showTileBoundaries!==g&&(this._showTileBoundaries=g,this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(g){this._showParseStatus!==g&&(this._showParseStatus=g,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(g){this._showTerrainWireframe!==g&&(this._showTerrainWireframe=g,this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(g){this._showLayers2DWireframe!==g&&(this._showLayers2DWireframe=g,this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(g){this._showLayers3DWireframe!==g&&(this._showLayers3DWireframe=g,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(g){this._speedIndexTiming!==g&&(this._speedIndexTiming=g,this._update())}get showPadding(){return!!this._showPadding}set showPadding(g){this._showPadding!==g&&(this._showPadding=g,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(g){this._showCollisionBoxes!==g&&(this._showCollisionBoxes=g,g?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(g){this._showOverdrawInspector!==g&&(this._showOverdrawInspector=g,this._update())}get repaint(){return!!this._repaint}set repaint(g){this._repaint!==g&&(this._repaint=g,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(g){this._vertices=g,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(g){this._showTileAABBs!==g&&(this._showTileAABBs=g,g&&this._update())}_setCacheLimits(g,l){a.dl(g,l)}get version(){return a.dk}},NavigationControl:class{constructor(g){this.options=a.e({},Hp,g),this._container=C("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",l=>l.preventDefault()),this.options.showZoom&&(a.aY(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",l=>{this._map&&this._map.zoomIn({},{originalEvent:l})}),C("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",l=>{this._map&&this._map.zoomOut({},{originalEvent:l})}),C("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(a.aY(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",l=>{const h=this._map;h&&(this.options.visualizePitch?h.resetNorthPitch({},{originalEvent:l}):h.resetNorth({},{originalEvent:l}))}),this._compassIcon=C("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const g=this._map;if(!g)return;const l=g.getZoom(),h=l===g.getMaxZoom(),y=l===g.getMinZoom();this._zoomInButton.disabled=h,this._zoomOutButton.disabled=y,this._zoomInButton.setAttribute("aria-disabled",h.toString()),this._zoomOutButton.setAttribute("aria-disabled",y.toString())}_rotateCompassArrow(){const g=this._map;if(!g)return;const l=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(g.transform.pitch*(Math.PI/180)),.5)}) rotateX(${g.transform.pitch}deg) rotateZ(${g.transform.angle*(180/Math.PI)}deg)`:`rotate(${g.transform.angle*(180/Math.PI)}deg)`;g._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=l)})}onAdd(g){return this._map=g,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),g.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&g.on("pitch",this._rotateCompassArrow),g.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ra(g,this._compass,this.options.visualizePitch)),this._container}onRemove(){const g=this._map;g&&(this._container.remove(),this.options.showZoom&&g.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&g.off("pitch",this._rotateCompassArrow),g.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(g,l){const h=C("button",g,this._container);return h.type="button",h.addEventListener("click",l),h}_setButtonTitle(g,l){if(!this._map)return;const h=this._map._getUIString(`NavigationControl.${l}`);g.setAttribute("aria-label",h),g.firstElementChild&&g.firstElementChild.setAttribute("title",h)}},GeolocateControl:class extends a.E{constructor(g){super();const l=navigator.geolocation;this.options=a.e({geolocation:l},Yp,g),a.aY(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=fd(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(g){return this._map=g,this._container=C("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(g){const l=(h=!!this.options.geolocation)=>{this._supportsGeolocation=h,g(h)};this._supportsGeolocation!==void 0?g(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(h=>l(h.state!=="denied")).catch(()=>l()):l()}_isOutOfMapMaxBounds(g){const l=this._map.getMaxBounds(),h=g.coords;return!!l&&(h.longitude<l.getWest()||h.longitude>l.getEast()||h.latitude<l.getSouth()||h.latitude>l.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(g){if(this._map){if(this._isOutOfMapMaxBounds(g))return this._setErrorState(),this.fire(new a.b("outofmaxbounds",g)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=g,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(g),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(g),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new a.b("geolocate",g)),this._finish()}}_updateCamera(g){const l=new a.bn(g.coords.longitude,g.coords.latitude),h=g.coords.accuracy,y=this._map.getBearing(),x=a.e({bearing:y},this.options.fitBoundsOptions);this._map.fitBounds(l.toBounds(h),x,{geolocateSource:!0})}_updateMarker(g){if(g){const l=new a.bn(g.coords.longitude,g.coords.latitude);this._accuracyCircleMarker.setLngLat(l).addTo(this._map),this._userLocationDotMarker.setLngLat(l).addTo(this._map),this._accuracy=g.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const g=this._map.transform,l=a.bl(1,g._center.lat)*g.worldSize,h=Math.ceil(2*this._accuracy*l);this._circleElement.style.width=`${h}px`,this._circleElement.style.height=`${h}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(g){if(this._map){if(this.options.trackUserLocation)if(g.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(g.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new a.b("error",g)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(g){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",l=>l.preventDefault()),this._geolocateButton=C("button","mapboxgl-ctrl-geolocate",this._container),C("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",g===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}else{const l=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=C("div","mapboxgl-user-location"),this._dotElement.appendChild(C("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(C("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new U1({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=C("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new U1({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",l=>{l.geolocateSource||this._watchState!=="ACTIVE_LOCK"||l.originalEvent&&l.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new a.b("trackuserlocationend")))})}}_onDeviceOrientation(g){this._userLocationDotMarker&&(g.webkitCompassHeading?this._heading=g.webkitCompassHeading:g.absolute===!0&&(this._heading=-1*g.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.b("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.b("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.b("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let g;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(g={maximumAge:6e5,timeout:0},this._noTimeout=!0):(g=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,g),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const g=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(l=>{l==="granted"&&g()}).catch(console.error):g()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:P1,ScaleControl:class{constructor(g){this.options=a.e({},Co,g),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),a.aY(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const g=this.options.maxWidth||100,l=this._map,h=l._containerHeight/2,y=l._containerWidth/2-g/2,x=l.unproject([y,h]),M=l.unproject([y+g,h]),T=x.distanceTo(M);if(this.options.unit==="imperial"){const A=3.2808*T;A>5280?this._setScale(g,A/5280,"mile"):this._setScale(g,A,"foot")}else this.options.unit==="nautical"?this._setScale(g,T/1852,"nautical-mile"):T>=1e3?this._setScale(g,T/1e3,"kilometer"):this._setScale(g,T,"meter")}_setScale(g,l,h){this._map._requestDomTask(()=>{const y=function(M){const T=Math.pow(10,`${Math.floor(M)}`.length-1);let A=M/T;return A=A>=10?10:A>=5?5:A>=3?3:A>=2?2:A>=1?1:function(z){const j=Math.pow(10,Math.ceil(-Math.log(z)/Math.LN10));return Math.round(z*j)/j}(A),T*A}(l),x=y/l;this._container.innerHTML=this._isNumberFormatSupported&&h!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:h}).format(y):`${y}&nbsp;${zl[h]}`,this._container.style.width=g*x+"px"})}onAdd(g){return this._map=g,this._language=g.getLanguage(),this._container=C("div","mapboxgl-ctrl mapboxgl-ctrl-scale",g.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(g){this._language=g,this._update()}setUnit(g){this.options.unit=g,this._update()}},FullscreenControl:class{constructor(g){this._fullscreen=!1,g&&g.container&&(g.container instanceof HTMLElement?this._container=g.container:a.w("Full screen control 'container' must be a DOM element.")),a.aY(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(g){return this._map=g,this._container||(this._container=this._map.getContainer()),this._controlContainer=C("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const g=this._fullscreenButton=C("button","mapboxgl-ctrl-fullscreen",this._controlContainer);C("span","mapboxgl-ctrl-icon",g).setAttribute("aria-hidden","true"),g.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const g=this._getTitle();this._fullscreenButton.setAttribute("aria-label",g),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",g)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends a.E{constructor(g){super(),this.options=a.e(Object.create(iM),g),a.aY(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(g&&g.className?g.className.trim().split(/\s+/):[])}addTo(g){return this._map&&this.remove(),this._map=g,this.options.closeOnClick&&g.on("preclick",this._onClose),this.options.closeOnMove&&g.on("move",this._onClose),g.on("remove",this.remove),this._update(),g._addPopup(this),this._focusFirstElement(),this._trackPointer?(g.on("mousemove",this._onMouseEvent),g.on("mouseup",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")):g.on("move",this._update),this.fire(new a.b("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const g=this._map;return g&&(g.off("move",this._update),g.off("move",this._onClose),g.off("preclick",this._onClose),g.off("click",this._onClose),g.off("remove",this.remove),g.off("mousemove",this._onMouseEvent),g.off("mouseup",this._onMouseEvent),g.off("drag",this._onMouseEvent),g._canvasContainer&&g._canvasContainer.classList.remove("mapboxgl-track-pointer"),g._removePopup(this),this._map=void 0),this.fire(new a.b("close")),this}getLngLat(){return this._lngLat}setLngLat(g){this._lngLat=a.bn.convert(g),this._pos=null,this._trackPointer=!1,this._update();const l=this._map;return l&&(l.on("move",this._update),l.off("mousemove",this._onMouseEvent),l._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const g=this._map;return g&&(g.off("move",this._update),g.on("mousemove",this._onMouseEvent),g.on("drag",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(g){return this.setDOMContent(document.createTextNode(g))}setHTML(g){const l=document.createDocumentFragment(),h=document.createElement("body");let y;for(h.innerHTML=g;y=h.firstChild,y;)l.appendChild(y);return this.setDOMContent(l)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(g){return this.options.maxWidth=g,this._update(),this}setDOMContent(g){let l=this._content;if(l)for(;l.hasChildNodes();)l.firstChild&&l.removeChild(l.firstChild);else l=this._content=C("div","mapboxgl-popup-content",this._container||void 0);if(l.appendChild(g),this.options.closeButton){const h=this._closeButton=C("button","mapboxgl-popup-close-button",l);h.type="button",h.setAttribute("aria-label","Close popup"),h.setAttribute("aria-hidden","true"),h.innerHTML="&#215;",h.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(g){return this._classList.add(g),this._updateClassList(),this}removeClassName(g){return this._classList.delete(g),this._updateClassList(),this}setOffset(g){return this.options.offset=g,this._update(),this}toggleClassName(g){let l;return this._classList.delete(g)?l=!1:(this._classList.add(g),l=!0),this._updateClassList(),l}_onMouseEvent(g){this._update(g.point)}_getAnchor(g){if(this.options.anchor)return this.options.anchor;const l=this._map,h=this._container,y=this._pos;if(!l||!h||!y)return"bottom";const x=h.offsetWidth,M=h.offsetHeight,T=y.x<x/2,A=y.x>l.transform.width-x/2;if(y.y+g<M)return T?"top-left":A?"top-right":"top";if(y.y>l.transform.height-M){if(T)return"bottom-left";if(A)return"bottom-right"}return T?"left":A?"right":"bottom"}_updateClassList(){const g=this._container;if(!g)return;const l=[...this._classList];l.push("mapboxgl-popup"),this._anchor&&l.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&l.push("mapboxgl-popup-track-pointer"),g.className=l.join(" ")}_update(g){const l=this._map,h=this._content;if(!l||!this._lngLat&&!this._trackPointer||!h)return;let y=this._container;if(y||(y=this._container=C("div","mapboxgl-popup",l.getContainer()),this._tip=C("div","mapboxgl-popup-tip",y),y.appendChild(h)),this.options.maxWidth&&y.style.maxWidth!==this.options.maxWidth&&(y.style.maxWidth=this.options.maxWidth),l.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Id(this._lngLat,this._pos,l.transform)),!this._trackPointer||g){const x=this._pos=this._trackPointer&&g?g:l.project(this._lngLat),M=oM(this.options.offset),T=this._anchor=this._getAnchor(M.y),A=oM(this.options.offset,T),z=x.add(A).round();l._requestDomTask(()=>{this._container&&T&&(this._container.style.transform=`${Qp[T]} translate(${z.x}px,${z.y}px)`)})}if(!this._marker&&l._showingGlobe()){const x=a.d6(l.transform,this._lngLat)?0:1;this._setOpacity(x)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const g=this._container.querySelector(rM);g&&g.focus()}_onClose(){this.remove()}_setOpacity(g){this._container&&(this._container.style.opacity=`${g}`),this._content&&(this._content.style.pointerEvents=g?"auto":"none")}},Marker:U1,Style:Gs,LngLat:a.bn,LngLatBounds:a.ad,Point:a.P,MercatorCoordinate:a.L,FreeCameraOptions:qh,Evented:a.E,config:a.d5,prewarm:a.dp,clearPrewarmedResources:a.dq,get accessToken(){return a.d5.ACCESS_TOKEN},set accessToken(g){a.d5.ACCESS_TOKEN=g},get baseApiUrl(){return a.d5.API_URL},set baseApiUrl(g){a.d5.API_URL=g},get workerCount(){return a.dr.workerCount},set workerCount(g){a.dr.workerCount=g},get maxParallelImageRequests(){return a.d5.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.d5.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage(g){a.ds(g)},get workerUrl(){return a.dt.workerUrl},set workerUrl(g){a.dt.workerUrl=g},get workerClass(){return a.dt.workerClass},set workerClass(g){a.dt.workerClass=g},get workerParams(){return a.dt.workerParams},set workerParams(g){a.dt.workerParams=g},get dracoUrl(){return a.du()},set dracoUrl(g){a.dv(g)},get meshoptUrl(){return a.dw()},set meshoptUrl(g){a.dx(g)},setNow:a.f.setNow,restoreNow:a.f.restoreNow}});var m=u;return m})})(EO);var Eae=EO.exports;const DO=Rd(Eae),J_e="",eve="",Kg=ui({key:"mapboxAccessToken",default:null});let Sx;const Dae=new Uint8Array(16);function Aae(){if(!Sx&&(Sx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sx(Dae)}const jo=[];for(let e=0;e<256;++e)jo.push((e+256).toString(16).slice(1));function Cae(e,t=0){return jo[e[t+0]]+jo[e[t+1]]+jo[e[t+2]]+jo[e[t+3]]+"-"+jo[e[t+4]]+jo[e[t+5]]+"-"+jo[e[t+6]]+jo[e[t+7]]+"-"+jo[e[t+8]]+jo[e[t+9]]+"-"+jo[e[t+10]]+jo[e[t+11]]+jo[e[t+12]]+jo[e[t+13]]+jo[e[t+14]]+jo[e[t+15]]}const AO={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nae(e,t,r){if(AO.randomUUID&&!t&&!e)return AO.randomUUID();e=e||{};const s=e.random||(e.rng||Aae)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){r=r||0;for(let u=0;u<16;++u)t[r+u]=s[u];return t}return Cae(s)}const CO=ui({key:"miTransitionLevel",default:void 0});function Lae({onMapView:e,onPositionControl:t}){const r=on(Kg),[s,u]=Oe.useState(),[f,m]=Oe.useState(!1),[a,v]=Oe.useState(!1),[S,D]=Oe.useState(!1),N=on(bs),C=on(Aa),O=on(Wg),R=on(qg),V=oc(),q=on(CO);return Oe.useEffect(()=>{window.mapboxgl=DO;const H={accessToken:r,element:document.getElementById("map"),bearing:isNaN(parseInt(O))?0:parseInt(O),pitch:isNaN(parseInt(R))?0:parseInt(R)};q&&!isNaN(parseInt(q))&&(H.mapsIndoorsTransitionLevel=parseInt(q));const Y=new window.mapsindoors.mapView.MapboxV3View(H);u(Y);const W=new window.mapsindoors.directions.MapboxProvider(r);e(Y,W);const ee=Nae();sessionStorage.setItem("mapboxPlacesSessionToken",ee)},[]),Oe.useEffect(()=>{if(N&&s&&!a){const H=document.createElement("mi-my-position");H.mapsindoors=N,s.getMap().addControl({onAdd:()=>H,onRemove:function(){}},"top-right"),v(!0),t(H)}if(N&&s&&!S&&V&&(s.getMap().addControl(new DO.NavigationControl({showCompass:!1}),"top-right"),D(!0)),N&&s&&!f){const H=document.createElement("mi-floor-selector");H.mapsindoors=N,H.primaryColor=C,s.getMap().addControl({onAdd:()=>H,onRemove:function(){H.parentNode.removeChild(H)}},"top-right"),m(!0)}},[N,s,f,a,S]),Je.jsx("div",{className:"map-container",id:"map","data-sentry-component":"MapboxMap","data-sentry-source-file":"MapboxMap.jsx"})}const Ex=ui({key:"userPosition",default:null}),kI=ui({key:"directionsService",default:null}),OI=ui({key:"mapType",default:void 0}),jI=ui({key:"apiKey",default:null}),Dx=ui({key:"filteredLocations",default:void 0}),Ax=ui({key:"filteredLocationsByExternalID",default:void 0}),NO=ui({key:"tileStyle",default:null}),LO=ui({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),RI=ui({key:"solution",default:null,dangerouslyAllowMutability:!0}),PI=ui({key:"notificationMessage",default:null});var Ms=63710088e-1,zae={centimeters:Ms*100,centimetres:Ms*100,degrees:Ms/111325,feet:Ms*3.28084,inches:Ms*39.37,kilometers:Ms/1e3,kilometres:Ms/1e3,meters:Ms,metres:Ms,miles:Ms/1609.344,millimeters:Ms*1e3,millimetres:Ms*1e3,nauticalmiles:Ms/1852,radians:1,yards:Ms*1.0936};function zO(e,t,r){r===void 0&&(r={});var s={type:"Feature"};return(r.id===0||r.id)&&(s.id=r.id),r.bbox&&(s.bbox=r.bbox),s.properties=t||{},s.geometry=e,s}function kae(e,t,r){if(r===void 0&&(r={}),!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(!OO(e[0])||!OO(e[1]))throw new Error("coordinates must contain numbers");var s={type:"Point",coordinates:e};return zO(s,t,r)}function Oae(e,t,r){r===void 0&&(r={});for(var s=0,u=e;s<u.length;s++){var f=u[s];if(f.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var m=0;m<f[f.length-1].length;m++)if(f[f.length-1][m]!==f[0][m])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return zO(a,t,r)}function jae(e,t){t===void 0&&(t="kilometers");var r=zae[t];if(!r)throw new Error(t+" units is invalid");return e/r}function kO(e){var t=e%(2*Math.PI);return t*180/Math.PI}function UI(e){var t=e%360;return t*Math.PI/180}function OO(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function jO(e,t,r){if(e!==null)for(var s,u,f,m,a,v,S,D=0,N=0,C,O=e.type,R=O==="FeatureCollection",V=O==="Feature",q=R?e.features.length:1,H=0;H<q;H++){S=R?e.features[H].geometry:V?e.geometry:e,C=S?S.type==="GeometryCollection":!1,a=C?S.geometries.length:1;for(var Y=0;Y<a;Y++){var W=0,ee=0;if(m=C?S.geometries[Y]:S,m!==null){v=m.coordinates;var fe=m.type;switch(D=r&&(fe==="Polygon"||fe==="MultiPolygon")?1:0,fe){case null:break;case"Point":if(t(v,N,H,W,ee)===!1)return!1;N++,W++;break;case"LineString":case"MultiPoint":for(s=0;s<v.length;s++){if(t(v[s],N,H,W,ee)===!1)return!1;N++,fe==="MultiPoint"&&W++}fe==="LineString"&&W++;break;case"Polygon":case"MultiLineString":for(s=0;s<v.length;s++){for(u=0;u<v[s].length-D;u++){if(t(v[s][u],N,H,W,ee)===!1)return!1;N++}fe==="MultiLineString"&&W++,fe==="Polygon"&&ee++}fe==="Polygon"&&W++;break;case"MultiPolygon":for(s=0;s<v.length;s++){for(ee=0,u=0;u<v[s].length;u++){for(f=0;f<v[s][u].length-D;f++){if(t(v[s][u][f],N,H,W,ee)===!1)return!1;N++}ee++}W++}break;case"GeometryCollection":for(s=0;s<m.geometries.length;s++)if(jO(m.geometries[s],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Cx(e){var t=[1/0,1/0,-1/0,-1/0];return jO(e,function(r){t[0]>r[0]&&(t[0]=r[0]),t[1]>r[1]&&(t[1]=r[1]),t[2]<r[0]&&(t[2]=r[0]),t[3]<r[1]&&(t[3]=r[1])}),t}Cx.default=Cx;function Rae(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Pae(e,t,r,s){s===void 0&&(s={});var u=Rae(e),f=UI(u[0]),m=UI(u[1]),a=UI(r),v=jae(t,s.units),S=Math.asin(Math.sin(m)*Math.cos(v)+Math.cos(m)*Math.sin(v)*Math.cos(a)),D=f+Math.atan2(Math.sin(a)*Math.sin(v)*Math.cos(m),Math.cos(v)-Math.sin(m)*Math.sin(S)),N=kO(D),C=kO(S);return kae([N,C],s.properties)}function Uae(e,t,r){r===void 0&&(r={});for(var s=r.steps||64,u=r.properties?r.properties:!Array.isArray(e)&&e.type==="Feature"&&e.properties?e.properties:{},f=[],m=0;m<s;m++)f.push(Pae(e,t,m*-360/s,r).geometry.coordinates);return f.push(f[0]),Oae([f],u)}function RO(e){return(e==null?void 0:e.type)==="Point"?Cx(Uae(e,5,{units:"meters",steps:4})):Cx(e)}function BI(){return new Promise(e=>{const t=document.querySelector(".modal--open"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-(t==null?void 0:t.offsetTop));else{const s=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(s.disconnect(),e(r.offsetHeight-(u==null?void 0:u.offsetTop)))});s.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Xg=ui({key:"categories",default:[]}),Oh=ui({key:"currentVenueName",default:null}),PO=ui({key:"kioskOriginLocationId",default:void 0}),Nx=ui({key:"locationId",default:void 0}),UO=ui({key:"startZoomLevel",default:null}),FI=ui({key:"venues",default:[]}),BO=ui({key:"venue",default:void 0});function FO(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-t.offsetTop);else{const s=new MutationObserver(()=>{const u=document.querySelector(".sheet--active");u&&(s.disconnect(),e(r.offsetHeight-u.offsetTop))});s.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function VI(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const r=new MutationObserver(()=>{const s=document.querySelector(".modal--open");s&&(r.disconnect(),e((s==null?void 0:s.offsetWidth)+(s==null?void 0:s.offsetLeft)*2))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const $I=ui({key:"isMapReady",default:!1}),VO=ui({key:"timeout",default:void 0});function $O(){const[e,t]=Oe.useState(!1),r=on($I),s=on(VO);return Oe.useEffect(()=>{if(!r||!s)return;let u;const f=a=>{t(!1),window.clearTimeout(u),u=window.setTimeout(m,s*1e3)},m=()=>{t(!0)};return u=window.setTimeout(m,s*1e3),window.addEventListener("mousemove",f),window.addEventListener("mousedown",f),window.addEventListener("resize",f),window.addEventListener("keydown",f),window.addEventListener("touchstart",f),window.addEventListener("wheel",f),()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mousedown",f),window.removeEventListener("resize",f),window.removeEventListener("keydown",f),window.removeEventListener("touchstart",f),window.removeEventListener("wheel",f),window.clearTimeout(u)}},[s,r]),e}const Bae="MI-MAP-TEMPLATE-LAST-VENUE",QI=()=>{const[,e]=zn(Oh);return t=>{window.localStorage.removeItem(Bae),e(t)}},QO="MI-MAP-TEMPLATE-LAST-VENUE",Fae=()=>{const[e,t]=Oe.useState(!1),[r,s]=Oe.useState(),u=oc(),f=$O(),m=on(Wg),a=on(Xg),v=on(PO),S=on(Nx),D=on(OI),N=on(bs),C=on(qg),O=on(UO),R=on(Oh),V=on(BO),q=on(FI),H=QI(),[Y,W]=Oe.useState(!1);Oe.useEffect(()=>{f&&ee(V)},[f]),Oe.useEffect(()=>{ee()},[N,V,q,S,v,C,m,O,a]);function ee(pe){if(N&&q.length){pe&&H(pe);const he=Vae(pe||R,q);window.localStorage.setItem(QO,he.name),t(!0),v&&u?window.mapsindoors.services.LocationsService.getLocation(v).then(oe=>{if(oe){const Ve=oe.properties.floor;N.setFloor(Ve),fe(oe),BI().then(De=>{s(he),Lx(D,oe.geometry,N,De,0,O,C,m)})}}):S?window.mapsindoors.services.LocationsService.getLocation(S).then(oe=>{if(oe){const Ve=oe.properties.floor;N.setFloor(Ve),u?VI().then(De=>{s(he),Lx(D,oe.geometry,N,0,De,O,C,m)}):FO().then(De=>{s(he),Lx(D,oe.geometry,N,De,0,O,C,m)})}}):R&&(s(he),Lx(D,he.geometry,N,0,0,O,C,m))}}function fe(pe){if(Y)return;const he=N.getDisplayRule(pe);he.visible=!0,he.iconSize={width:he.iconSize.width*2,height:he.iconSize.height*2},he.iconVisible=!0,he.zoomFrom=0,he.zoomTo=999,he.clickable=!1,N.setDisplayRule(pe.id,he),W(!0)}return[e,r]};function Vae(e,t){if(t.length===0)return;if(t.length===1)return t[0];const r=window.localStorage.getItem(QO);if(r){const s=t.find(u=>u.name===r);if(s)return s}if(e){const s=t.find(u=>u.name===e);if(s)return s}return[...t].sort(function(s,u){return s.name>u.name?1:u.name>s.name?-1:0})[0]}function Lx(e,t,r,s,u,f,m,a){let v;t.coordinates&&t.type?v=RO(t):t.west&&t.south&&(v=[t.west,t.south,t.east,t.north]),e===ls.Google?Qae(v,r,s,u,f,m,a):e===ls.Mapbox&&$ae(v,r,s,u,f,m,a)}function $ae(e,t,r,s,u,f,m){t.getMap().fitBounds(e,{pitch:f||0,bearing:m||0,animate:!1,padding:{top:0,right:0,bottom:r,left:s}}),u&&t.setZoom(u)}function Qae(e,t,r,s,u,f,m){let a={west:e[0],south:e[1],east:e[2],north:e[3]};t.getMapView().fitBounds(a,{top:0,right:0,bottom:r,left:s}),u&&t.setZoom(parseInt(u)),isNaN(parseInt(f))||t.getMapView().tilt(parseInt(f)),isNaN(parseInt(m))||t.getMapView().rotate(parseInt(m))}let HI;function Hae({onLocationClick:e,onVenueChangedOnMap:t,useMapProviderModule:r,onMapPositionKnown:s}){const u=on(jI),f=on(Tx),m=on(Kg),[a,v]=zn(OI),[S,D]=zn(bs),[,N]=zn(Ex),[,C]=zn(kI),O=on(Dx),R=on(Ax),V=on(NO),q=on(Wg),H=on(qg),[,Y]=zn(LO),W=on(RI),[,ee]=zn(PI),[,fe]=zn(Oh);wae(u);const[pe,he]=Fae();Oe.useEffect(()=>{if(!W||f===null&&m===null)return;let Ge;const it=W.modules.map(Ee=>Ee.toLowerCase()).includes("mapbox");r?it?m&&(Ge=ls.Mapbox):f&&(Ge=ls.Google):m?Ge=ls.Mapbox:Ge=ls.Google,Ge?v(Ge):(ee({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),v(void 0))},[f,m,W]),Oe.useEffect(()=>{pe&&s()},[pe]),Oe.useEffect(()=>{he&&(fe(he.name),t(he))},[he]),Oe.useEffect(()=>{S&&(O?S.highlight?S.highlight(O.map(Ge=>Ge.id)):S.filter&&S.filter(O.map(Ge=>Ge.id)):R&&(S.highlight?S.highlight(R.map(Ge=>Ge.id)):S.filter&&S.filter(R.map(Ge=>Ge.id))))},[O,R,S]),Oe.useEffect(()=>{S&&(isNaN(parseInt(H))||S.getMapView().tilt(parseInt(H)),isNaN(parseInt(q))||S.getMapView().rotate(parseInt(q)))},[q,H,S]);const oe=Ge=>{Ve(Ge)},Ve=Ge=>{if(Ge&&HI){let it=Ge.getTileURL();if(it){it=Ge.getTileURL().replace("default",HI);const Ee=it==null?void 0:it.replace("{floor}",Ge.getFloor());Ge.getMapView().setMapsIndoorsTileURL(Ee)}}},De=async(Ge,it)=>{const Ee=new window.mapsindoors.MapsIndoors({mapView:Ge});Ee.on("mouseenter",()=>{var Le;const ze=Ee.getHoveredLocation();((Le=ze==null?void 0:ze.properties.locationSettings)==null?void 0:Le.selectable)===!1&&Ee.unhoverLocation()}),Ee.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Ee.on("click",ze=>e(ze)),Ee.once("building_changed",()=>oe(Ee)),Ee.on("floor_changed",()=>Ve(Ee)),D(Ee);const Ze=new window.mapsindoors.services.DirectionsService(it);C(Ze)},Ae=Ge=>{Ge.nodeName==="MI-MY-POSITION"?Ge.addEventListener("position_received",it=>{it.detail.accurate===!0&&N(it.detail.position)}):Ge.on("position_received",it=>{it.accurate===!0&&N(it.position)}),Y(Ge)};return Oe.useEffect(()=>{HI=V||"default",Ve(S)},[V]),Je.jsxs(Je.Fragment,{children:[a===ls.Google&&Je.jsx(Sae,{onMapView:De,onPositionControl:Ae}),a===ls.Mapbox&&Je.jsx(Lae,{onMapView:De,onPositionControl:Ae})]})}const nve="",YI=ui({key:"logo",default:void 0});function Yae(){const e=on(Aa),t=on(YI);return Je.jsx("div",{className:"splash-screen","data-sentry-component":"SplashScreen","data-sentry-source-file":"SplashScreen.jsx",children:Je.jsxs("div",{className:"splash-screen__container",children:[Je.jsx("img",{className:"splash-screen__logo",src:t,alt:"logo"}),Je.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}const Gae=mJ(Yae,{name:"SplashScreen"});function HO(e,t){if(e==null)return{};var r={},s=Object.keys(e),u,f;for(f=0;f<s.length;f++)u=s[f],!(t.indexOf(u)>=0)&&(r[u]=e[u]);return r}function GI(e,t){return GI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,u){return s.__proto__=u,s},GI(e,t)}function YO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,GI(e,t)}function Zae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Wae(e,t){e.classList?e.classList.add(t):Zae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GO(e.className,t):e.setAttribute("class",GO(e.className&&e.className.baseVal||"",t))}const ZO={disabled:!1},WO=Vi.createContext(null);var qO=function(t){return t.scrollTop},Jg="unmounted",jh="exited",Rh="entering",Jf="entered",ZI="exiting",sc=function(e){YO(t,e);function t(s,u){var f;f=e.call(this,s,u)||this;var m=u,a=m&&!m.isMounting?s.enter:s.appear,v;return f.appearStatus=null,s.in?a?(v=jh,f.appearStatus=Rh):v=Jf:s.unmountOnExit||s.mountOnEnter?v=Jg:v=jh,f.state={status:v},f.nextCallback=null,f}t.getDerivedStateFromProps=function(u,f){var m=u.in;return m&&f.status===Jg?{status:jh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(u){var f=null;if(u!==this.props){var m=this.state.status;this.props.in?m!==Rh&&m!==Jf&&(f=Rh):(m===Rh||m===Jf)&&(f=ZI)}this.updateStatus(!1,f)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var u=this.props.timeout,f,m,a;return f=m=a=u,u!=null&&typeof u!="number"&&(f=u.exit,m=u.enter,a=u.appear!==void 0?u.appear:m),{exit:f,enter:m,appear:a}},r.updateStatus=function(u,f){if(u===void 0&&(u=!1),f!==null)if(this.cancelNextCallback(),f===Rh){if(this.props.unmountOnExit||this.props.mountOnEnter){var m=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this);m&&qO(m)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jh&&this.setState({status:Jg})},r.performEnter=function(u){var f=this,m=this.props.enter,a=this.context?this.context.isMounting:u,v=this.props.nodeRef?[a]:[og.findDOMNode(this),a],S=v[0],D=v[1],N=this.getTimeouts(),C=a?N.appear:N.enter;if(!u&&!m||ZO.disabled){this.safeSetState({status:Jf},function(){f.props.onEntered(S)});return}this.props.onEnter(S,D),this.safeSetState({status:Rh},function(){f.props.onEntering(S,D),f.onTransitionEnd(C,function(){f.safeSetState({status:Jf},function(){f.props.onEntered(S,D)})})})},r.performExit=function(){var u=this,f=this.props.exit,m=this.getTimeouts(),a=this.props.nodeRef?void 0:og.findDOMNode(this);if(!f||ZO.disabled){this.safeSetState({status:jh},function(){u.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ZI},function(){u.props.onExiting(a),u.onTransitionEnd(m.exit,function(){u.safeSetState({status:jh},function(){u.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(u,f){f=this.setNextCallback(f),this.setState(u,f)},r.setNextCallback=function(u){var f=this,m=!0;return this.nextCallback=function(a){m&&(m=!1,f.nextCallback=null,u(a))},this.nextCallback.cancel=function(){m=!1},this.nextCallback},r.onTransitionEnd=function(u,f){this.setNextCallback(f);var m=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this),a=u==null&&!this.props.addEndListener;if(!m||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[m,this.nextCallback],S=v[0],D=v[1];this.props.addEndListener(S,D)}u!=null&&setTimeout(this.nextCallback,u)},r.render=function(){var u=this.state.status;if(u===Jg)return null;var f=this.props,m=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var a=HO(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Vi.createElement(WO.Provider,{value:null},typeof m=="function"?m(u,a):Vi.cloneElement(Vi.Children.only(m),a))},t}(Vi.Component);sc.contextType=WO,sc.propTypes={};function ep(){}sc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ep,onEntering:ep,onEntered:ep,onExit:ep,onExiting:ep,onExited:ep},sc.UNMOUNTED=Jg,sc.EXITED=jh,sc.ENTERING=Rh,sc.ENTERED=Jf,sc.EXITING=ZI;const Kae=sc;var Xae=function(t,r){return t&&r&&r.split(" ").forEach(function(s){return Wae(t,s)})},WI=function(t,r){return t&&r&&r.split(" ").forEach(function(s){return qae(t,s)})},qI=function(e){YO(t,e);function t(){for(var s,u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return s=e.call.apply(e,[this].concat(f))||this,s.appliedClasses={appear:{},enter:{},exit:{}},s.onEnter=function(a,v){var S=s.resolveArguments(a,v),D=S[0],N=S[1];s.removeClasses(D,"exit"),s.addClass(D,N?"appear":"enter","base"),s.props.onEnter&&s.props.onEnter(a,v)},s.onEntering=function(a,v){var S=s.resolveArguments(a,v),D=S[0],N=S[1],C=N?"appear":"enter";s.addClass(D,C,"active"),s.props.onEntering&&s.props.onEntering(a,v)},s.onEntered=function(a,v){var S=s.resolveArguments(a,v),D=S[0],N=S[1],C=N?"appear":"enter";s.removeClasses(D,C),s.addClass(D,C,"done"),s.props.onEntered&&s.props.onEntered(a,v)},s.onExit=function(a){var v=s.resolveArguments(a),S=v[0];s.removeClasses(S,"appear"),s.removeClasses(S,"enter"),s.addClass(S,"exit","base"),s.props.onExit&&s.props.onExit(a)},s.onExiting=function(a){var v=s.resolveArguments(a),S=v[0];s.addClass(S,"exit","active"),s.props.onExiting&&s.props.onExiting(a)},s.onExited=function(a){var v=s.resolveArguments(a),S=v[0];s.removeClasses(S,"exit"),s.addClass(S,"exit","done"),s.props.onExited&&s.props.onExited(a)},s.resolveArguments=function(a,v){return s.props.nodeRef?[s.props.nodeRef.current,a]:[a,v]},s.getClassNames=function(a){var v=s.props.classNames,S=typeof v=="string",D=S&&v?v+"-":"",N=S?""+D+a:v[a],C=S?N+"-active":v[a+"Active"],O=S?N+"-done":v[a+"Done"];return{baseClassName:N,activeClassName:C,doneClassName:O}},s}var r=t.prototype;return r.addClass=function(u,f,m){var a=this.getClassNames(f)[m+"ClassName"],v=this.getClassNames("enter"),S=v.doneClassName;f==="appear"&&m==="done"&&S&&(a+=" "+S),m==="active"&&u&&qO(u),a&&(this.appliedClasses[f][m]=a,Xae(u,a))},r.removeClasses=function(u,f){var m=this.appliedClasses[f],a=m.base,v=m.active,S=m.done;this.appliedClasses[f]={},a&&WI(u,a),v&&WI(u,v),S&&WI(u,S)},r.render=function(){var u=this.props;u.classNames;var f=HO(u,["classNames"]);return Vi.createElement(Kae,NI({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Vi.Component);qI.defaultProps={classNames:""},qI.propTypes={};const Jae=qI,ive="",ele=e=>Oe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),zx=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Oe.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),rve="";function tle({venue:e,isCurrent:t,onVenueClicked:r}){const{t:s}=ua(),[u,f]=Oe.useState({});return Oe.useEffect(()=>{const m={};e.image&&(m.backgroundImage=`url('${e.image}')`),f(m)},[e]),Je.jsxs("button",{className:"venue",onClick:()=>r(),"data-sentry-component":"Venue","data-sentry-source-file":"Venue.jsx",children:[Je.jsx("div",{className:"venue__image",style:u}),Je.jsxs("div",{className:"venue__content",children:[Je.jsx("div",{children:e.venueInfo.name}),t&&Je.jsx("div",{className:"venue__current",children:s("Current")})]})]})}const KI=ui({key:"isLocationClicked",default:!1});function KO(e,t,r,s,u,f,m){const a=RO(e.geometry);let v={west:a[0],south:a[1],east:a[2],north:a[3]};t.getMapView().fitBounds(v,{top:0,right:0,bottom:r,left:s}).then(()=>{u&&t.setZoom(parseInt(u)),isNaN(parseInt(f))||t.getMapView().tilt(parseInt(f)),isNaN(parseInt(m))||t.getMapView().rotate(parseInt(m))})}function nle({onOpen:e,onClose:t,active:r}){const{t:s}=ua(),u=Oe.useRef(null),f=on(FI),m=on(bs),a=QI(),v=on(Oh),[,S]=zn(KI),D=O=>{a(O.name),KO(O,m,0,0),N()},N=()=>{r?t():e()};function C(O){D(O),S(!1)}return Je.jsxs(Je.Fragment,{children:[Je.jsx("button",{className:`venue-selector__button ${r?"venue-selector__button--open":""}`,onClick:()=>N(),"aria-label":s("Venues"),children:r?Je.jsx(zx,{}):Je.jsx(ele,{})}),Je.jsx(Jae,{unmountOnExit:!0,in:r,nodeRef:u,timeout:400,classNames:"venue-selector__content","data-sentry-element":"CSSTransition","data-sentry-source-file":"VenueSelector.jsx",children:Je.jsxs("div",{className:"venue-selector__content",ref:u,children:[Je.jsx("h1",{children:s("Select venue")}),Je.jsx("div",{className:"venue-selector__list",children:f.map(O=>Je.jsx(tle,{isCurrent:v===O.name,venue:O,onVenueClicked:()=>C(O)},O.id))})]})})]})}const XO=Oe.createContext(),gu=ui({key:"currentLocation",default:null}),ile="Left",rle="Right",ole="Up",sle="Down",tp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},XI={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},JO="mousemove",e7="mouseup",ale="touchend",lle="touchmove",cle="touchstart";function ule(e,t,r,s){return e>t?r>0?rle:ile:s>0?sle:ole}function t7(e,t){if(t===0)return e;const r=Math.PI/180*t,s=e[0]*Math.cos(r)+e[1]*Math.sin(r),u=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[s,u]}function hle(e,t){const r=D=>{const N="touches"in D;N&&D.touches.length>1||e((C,O)=>{O.trackMouse&&!N&&(document.addEventListener(JO,s),document.addEventListener(e7,m));const{clientX:R,clientY:V}=N?D.touches[0]:D,q=t7([R,V],O.rotationAngle);return O.onTouchStartOrOnMouseDown&&O.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},C),XI),{initial:q.slice(),xy:q,start:D.timeStamp||0})})},s=D=>{e((N,C)=>{const O="touches"in D;if(O&&D.touches.length>1)return N;if(D.timeStamp-N.start>C.swipeDuration)return N.swiping?Object.assign(Object.assign({},N),{swiping:!1}):N;const{clientX:R,clientY:V}=O?D.touches[0]:D,[q,H]=t7([R,V],C.rotationAngle),Y=q-N.xy[0],W=H-N.xy[1],ee=Math.abs(Y),fe=Math.abs(W),pe=(D.timeStamp||0)-N.start,he=Math.sqrt(ee*ee+fe*fe)/(pe||1),oe=[Y/(pe||1),W/(pe||1)],Ve=ule(ee,fe,Y,W),De=typeof C.delta=="number"?C.delta:C.delta[Ve.toLowerCase()]||tp.delta;if(ee<De&&fe<De&&!N.swiping)return N;const Ae={absX:ee,absY:fe,deltaX:Y,deltaY:W,dir:Ve,event:D,first:N.first,initial:N.initial,velocity:he,vxvy:oe};Ae.first&&C.onSwipeStart&&C.onSwipeStart(Ae),C.onSwiping&&C.onSwiping(Ae);let Ge=!1;return(C.onSwiping||C.onSwiped||C[`onSwiped${Ve}`])&&(Ge=!0),Ge&&C.preventScrollOnSwipe&&C.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},N),{first:!1,eventData:Ae,swiping:!0})})},u=D=>{e((N,C)=>{let O;if(N.swiping&&N.eventData){if(D.timeStamp-N.start<C.swipeDuration){O=Object.assign(Object.assign({},N.eventData),{event:D}),C.onSwiped&&C.onSwiped(O);const R=C[`onSwiped${O.dir}`];R&&R(O)}}else C.onTap&&C.onTap({event:D});return C.onTouchEndOrOnMouseUp&&C.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},N),XI),{eventData:O})})},f=()=>{document.removeEventListener(JO,s),document.removeEventListener(e7,m)},m=D=>{f(),u(D)},a=(D,N)=>{let C=()=>{};if(D&&D.addEventListener){const O=Object.assign(Object.assign({},tp.touchEventOptions),N.touchEventOptions),R=[[cle,r,O],[lle,s,Object.assign(Object.assign({},O),N.preventScrollOnSwipe?{passive:!1}:{})],[ale,u,O]];R.forEach(([V,q,H])=>D.addEventListener(V,q,H)),C=()=>R.forEach(([V,q])=>D.removeEventListener(V,q))}return C},S={ref:D=>{D!==null&&e((N,C)=>{if(N.el===D)return N;const O={};return N.el&&N.el!==D&&N.cleanUpTouch&&(N.cleanUpTouch(),O.cleanUpTouch=void 0),C.trackTouch&&D&&(O.cleanUpTouch=a(D,C)),Object.assign(Object.assign(Object.assign({},N),{el:D}),O)})}};return t.trackMouse&&(S.onMouseDown=r),[S,a]}function dle(e,t,r,s){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==r.preventScrollOnSwipe||t.touchEventOptions.passive!==r.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:s(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:s(e.el,t)})}function n7(e){const{trackMouse:t}=e,r=Oe.useRef(Object.assign({},XI)),s=Oe.useRef(Object.assign({},tp)),u=Oe.useRef(Object.assign({},s.current));u.current=Object.assign({},s.current),s.current=Object.assign(Object.assign({},tp),e);let f;for(f in tp)s.current[f]===void 0&&(s.current[f]=tp[f]);const[m,a]=Oe.useMemo(()=>hle(v=>r.current=v(r.current,s.current),{trackMouse:t}),[t]);return r.current=dle(r.current,s.current,u.current,a),m}const Ar={MIN:1,FIT:2,MAX:3},ove="",i7=ui({key:"isBottomSheetLoaded",default:!1});let JI;function e0({children:e,isOpen:t,minHeight:r,preferredSizeSnapPoint:s,onSwipedToSnapPoint:u}){const f=Oe.useRef(),m=Oe.useRef(),[a,v]=Oe.useState(Ar.FIT),[S,D]=Oe.useState(!1),[N,C]=Oe.useState(),O=Oe.useContext(XO),[R,V]=Oe.useState(),[q,H]=Oe.useState({}),[,Y]=zn(i7);function W(pe){pe===Ar.MIN&&R<=r||(a===Ar.FIT&&(f.current.style.height=`${R}px`),requestAnimationFrame(()=>{switch(pe){case Ar.MAX:H({height:`${O.current.clientHeight}px`});break;case Ar.FIT:H({height:`${R}px`});break;case Ar.MIN:H({height:`${r}px`});break}v(pe)}),typeof u=="function"&&f.current.addEventListener("transitionend",()=>{u(pe)},{once:!0}))}Oe.useEffect(()=>{f.current.addEventListener("transitionend",()=>{Y(!0)},{once:!0})},[]),Oe.useEffect(()=>{s!==void 0&&(f.current.style.height=`${f.current.clientHeight}px`,requestAnimationFrame(()=>{W(s)}))},[s]);const ee=n7({onSwipeStart:pe=>{D(!0),C(pe.dir),JI=f.current.clientHeight},onSwiping:pe=>{const he=Math.max(JI-pe.deltaY,r);H({height:`${he}px`})},onSwiped:pe=>{D(!1);const he=Math.max(JI-pe.deltaY,r);let oe,Ve;N.toUpperCase()==="DOWN"?(oe=R-60,Ve=O.current.clientHeight-60):(oe=parseInt(r)+60,Ve=R+60);let De;he<=oe?De=Ar.MIN:he<=Ve?De=Ar.FIT:De=Ar.MAX,W(De)},trackMouse:!0,preventScrollOnSwipe:!0});Oe.useEffect(()=>{t===!1?(V(),f.current.style.height=""):V(m.current.clientHeight)},[e.length,t]);const fe=pe=>{ee.ref(pe),f.current=pe};return Je.jsx("div",{...ee,ref:fe,style:q,className:`sheet ${t?"sheet--active":""} ${S?"sheet--dragging":""}`,"data-sentry-component":"Sheet","data-sentry-source-file":"Sheet.jsx",children:Je.jsx("div",{ref:m,className:"sheet__content",style:q,children:e})})}const sve="",ave="",fle=(e,t)=>{const[r,s]=Oe.useState(void 0),[u,f]=Oe.useState(void 0);return Oe.useEffect(()=>{const m=(a=!1)=>{var S,D;const v=((S=t.current)==null?void 0:S.scrollHeight)>((D=t.current)==null?void 0:D.clientHeight);s(v),a===!0&&f(v)};m(!0),t.current&&new ResizeObserver(m).observe(t.current)},[e,t]),[r,u]},np=()=>n7({onSwiping:({event:e})=>e.stopPropagation()});function r7(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const kx=ui({key:"directionsResponse",default:null}),eT=ui({key:"hasFoundRoute",default:!0}),o7=(e,t,r,s,u)=>{const[f,m]=Oe.useState(),[a,v]=Oe.useState(),[S,D]=zn(eT),[,N]=zn(kx);return Oe.useEffect(()=>{e!=null&&e.geometry&&(t!=null&&t.geometry)&&r.getRoute({origin:r7(e),destination:r7(t),travelMode:s,avoidStairs:u}).then(C=>{if(C&&C.legs){D(!0);const O=C.legs.reduce((V,q)=>V+q.distance.value,0),R=C.legs.reduce((V,q)=>V+q.duration.value,0);m(O),v(R),N({originLocation:e,destinationLocation:t,totalDistance:O,totalTime:R,directionsResult:C})}else D(!1)},()=>{D(!1)})},[e,t,r,u,s]),[f,a,S]},Ph={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Ox=ui({key:"travelMode",default:Ph.WALKING}),ac=ui({key:"kioskLocation",default:null}),jx=ui({key:"accessibilityOn",default:!1});function s7({onBack:e,onStartWayfinding:t,onSetSize:r,snapPointSwiped:s,onStartDirections:u}){const{t:f}=ua(),m=Oe.useRef(null),a=Oe.useRef(null),v=Oe.useRef(null),[S,D]=Oe.useState(!1),[N,C]=Oe.useState(!1),[O,R]=Oe.useState(!1),[V,q]=Oe.useState(null),H=on(bs),Y=on(gu),[W,ee]=fle(Y,v),fe=np(),pe=on(Aa),he=on(ac),oe=on(kI),[Ve,De]=Oe.useState(),[Ae,Ge]=Oe.useState(),it=oc(),Ee=on(Ox),Ze=on(jx),[,,ze]=o7(Ae,Ve,oe,Ee,Ze);Oe.useEffect(()=>{D(!1),C(!1),R(!1),q(null),Y&&(m.current.location=Y,q(H.getDisplayRule(Y)),De(Y)),he&&Ge(he)},[Y,H,he]);function Le(xe){typeof r=="function"&&r(xe)}Oe.useEffect(()=>{s!==void 0&&(D(s===Ar.MAX),s===Ar.MAX?qe():Ie())},[s]);function Ye(){S===!1?(Le(Ar.MAX),qe()):(Le(Ar.FIT),Ie())}function qe(){requestAnimationFrame(()=>{D(!0),Te()})}function Ie(){D(!1),le()}function Te(){requestAnimationFrame(()=>{C(a.current.scrollTop>0),R(a.current.scrollTop<a.current.scrollHeight-a.current.offsetHeight-1)})}function le(){C(!1),R(!1)}function X(){D(!1),C(!1),R(!1),Le(Ar.FIT),t()}function ie(){D(!1),C(!1),R(!1),Le(Ar.FIT),u()}function Me(){D(!1),C(!1),R(!1),Le(Ar.FIT),e()}return Je.jsx("div",{className:`location-details ${N?"location-details--content-above":""} ${O?"location-details--content-below":""}`,"data-sentry-component":"LocationDetails","data-sentry-source-file":"LocationDetails.jsx",children:Y&&Je.jsxs(Je.Fragment,{children:[Je.jsxs("div",{className:"location-info",children:[Je.jsx("div",{className:"location-info__icon",children:V&&Je.jsx("img",{alt:"",src:V.icon.src?V.icon.src:V.icon})}),Je.jsxs("div",{className:"location-info__content",children:[Je.jsx("div",{className:"location-info__name",children:Y.properties.name}),Je.jsx("mi-location-info",{level:f("Level"),ref:m,"show-external-id":!1})]}),Je.jsx("button",{className:"location-info__close",onClick:()=>Me(),children:Je.jsx(zx,{})})]}),Je.jsxs("div",{ref:a,onScroll:xe=>Te(),className:"location-details__details",children:[Y.properties.imageURL&&Je.jsx("img",{alt:"",src:Y.properties.imageURL,className:"location-details__image"}),Object.keys(Y.properties.categories).length>0&&Je.jsx("p",{className:"location-details__categories",children:Object.values(Y.properties.categories).map((xe,$e,He)=>Je.jsxs(Vi.Fragment,{children:[xe,$e<He.length-1&&Je.jsx(Je.Fragment,{children:"・"})]},xe))}),Y.properties.description&&!S&&Je.jsxs("section",{className:"location-details__description",children:[Je.jsx("div",{ref:v,children:Y.properties.description}),(W||ee)&&Je.jsx("button",{onClick:()=>Ye(),children:f("Read full description")})]}),Y.properties.description&&S&&Je.jsxs("section",{className:"location-details__description location-details__description--full prevent-scroll",...fe,children:[Je.jsx("div",{children:Y.properties.description}),ee&&Je.jsx("button",{onClick:()=>Ye(),children:f("Close")})]})]}),he&&it?Je.jsx("button",{disabled:!ze,onClick:()=>ie(),className:`location-details__wayfinding ${ze?"":"location-details--no-route"}`,style:{background:pe},children:f(ze?"Start directions":"Directions not available")}):Je.jsx("button",{onClick:()=>X(),style:{background:pe},className:"location-details__wayfinding",children:f("Start wayfinding")})]})})}const lve="",ple=e=>Oe.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_1663_3931)"},Oe.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_1663_3931"},Oe.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),a7=e=>Oe.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),mle=e=>Oe.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),Oe.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),cve="";function tT({location:e,locationClicked:t,icon:r,isHovered:s}){const{t:u}=ua(),f=Oe.useRef(),m=on(bs);return Oe.useEffect(()=>{var N;const a=C=>t(C.detail),v=()=>{var C;((C=e.properties.locationSettings)==null?void 0:C.selectable)!==!1&&m.hoverLocation(e)},S=()=>{var C;(C=e.properties.locationSettings)!=null&&C.selectable||m.unhoverLocation(e)};((N=e.properties.locationSettings)==null?void 0:N.selectable)===!1&&f.current.classList.add("non-selectable");const{current:D}=f;return D.location=e,D.icon=r||m.getDisplayRule(e).icon,D.addEventListener("locationClicked",a),D.addEventListener("mouseover",v),D.addEventListener("mouseout",S),s?f.current.classList.add("hovered"):f.current.classList.remove("hovered"),()=>{D.removeEventListener("locationClicked",a),D.removeEventListener("mouseover",v),D.removeEventListener("mouseout",S)}},[e,t,s]),Je.jsx("mi-list-item-location",{level:u("Level"),ref:f,"data-sentry-element":"mi-list-item-location","data-sentry-component":"ListItemLocation","data-sentry-source-file":"ListItemLocation.jsx"})}const gle=()=>{const[e,t]=Oe.useState(),r=on(bs),s=on($I);return Oe.useEffect(()=>{function u(){const f=r.getMapView().getCenter();t(f.lat+","+f.lng)}return r&&s?(r.getMapView().addListener("idle",u),u()):r&&r.getMapView().removeListener("idle",u),()=>{r&&r.getMapView().removeListener("idle",u)}},[r,s]),e},t0=ui({key:"language",default:void 0}),l7=ui({key:"searchInput",default:void 0}),nT=ui({key:"searchAllVenues",default:!1}),iT=Oe.forwardRef(({placeholder:e,mapsindoors:t,results:r,clicked:s,cleared:u,changed:f,category:m,google:a,mapbox:v,disabled:S=!1},D)=>{const N=Oe.useRef(),C=on(Ex),O=on(t0),[,R]=zn(l7),V=sessionStorage.getItem("mapboxPlacesSessionToken"),q={longitude:C==null?void 0:C.coords.longitude,latitude:C==null?void 0:C.coords.latitude},H=gle(),Y=on(Oh),W=on(nT);return Oe.useImperativeHandle(D,()=>({triggerSearch(){N.current.triggerSearch()},getValue(){return N.current.value},setDisplayText(ee){N.current.setDisplayText(ee)},focusInput(){N.current.focusInput()},clear(){N.current.clear()},getInputField(){return N.current.getInputField().then(ee=>R(ee))}})),Oe.useEffect(()=>{const{current:ee}=N;ee.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{ee.triggerSearch()})},[O]),Oe.useEffect(()=>{const ee=he=>r(he.detail),{current:fe}=N;t===!0&&(fe.mapsindoors="true");function pe(){fe.getValue||fe.focusInput(),u()}return fe.addEventListener("results",ee),fe.addEventListener("click",s),fe.addEventListener("cleared",pe),fe.addEventListener("changed",f),()=>{fe.removeEventListener("results",ee),fe.removeEventListener("click",s),fe.removeEventListener("cleared",pe),fe.removeEventListener("changed",f)}},[e,t,r,s,u,a,v,f]),Je.jsx("mi-search",{ref:N,"id-attribute":"search",placeholder:e,"session-token":V,"user-position":q.latitude!==void 0&&q.longitude!==void 0?Object.values(q).join(","):null,"mi-near":H,"mi-categories":m,disabled:S,mapbox:v,google:a,"mi-venue":W?void 0:Y,language:O})});function rT(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:CI("My position"),anchor:t},type:"Feature"}}let oT;function yle(e){return new Promise((t,r)=>{oT||(oT=new window.google.maps.Geocoder),oT.geocode({placeId:e.properties.placeId},s=>{s.length>0?(e.geometry={type:"Point",coordinates:[s[0].geometry.location.lng(),s[0].geometry.location.lat()]},t(e)):r()})})}const _le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",c7=e=>Oe.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),u7=e=>Oe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_1697_57490)"},Oe.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_1697_57490"},Oe.createElement("rect",{width:20,height:20,fill:"white"})))),vle=e=>Oe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_3407_1703)"},Oe.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_3407_1703"},Oe.createElement("rect",{width:20,height:20,fill:"white"}))));function xle({selectionChanged:e,children:t}){const r=Oe.useRef();return Oe.useEffect(()=>{const s=f=>e(f.detail),{current:u}=r;return u.addEventListener("change",s),()=>u.removeEventListener("change",s)},[e]),Je.jsx("mi-dropdown",{ref:r,"data-sentry-element":"mi-dropdown","data-sentry-component":"Dropdown","data-sentry-source-file":"Dropdown.jsx",children:t})}function ble(e,t){const r=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((s,u)=>{const f=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${r}&access_token=${t}`;fetch(f).then(m=>m.status!==200?u():m.json()).then(m=>{e.geometry={type:"Point",coordinates:[m.features[0].geometry.coordinates[0],m.features[0].geometry.coordinates[1]]},s(e)}).catch(()=>{u()})})}const Mle=O9({key:"unitSystem",get:({get:e})=>e(t0)==="en-US"?"imperial":"metric"}),wle=e=>Oe.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_1663_3939)"},Oe.createElement("path",{d:"M8.00028 15.1429C11.9452 15.1429 15.1431 11.9449 15.1431 8.00003C15.1431 4.05514 11.9452 0.857178 8.00028 0.857178C4.05539 0.857178 0.857422 4.05514 0.857422 8.00003C0.857422 11.9449 4.05539 15.1429 8.00028 15.1429Z",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Oe.createElement("path",{d:"M8.00084 8.51903C8.00084 8.1064 8.33644 7.85329 8.92853 7.45767C9.47773 7.0907 9.76742 6.61467 9.63856 5.96686C9.50971 5.31903 8.97443 4.78376 8.3266 4.65489C7.30969 4.45262 6.33105 5.25576 6.33105 6.29258",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Oe.createElement("path",{d:"M8 11.376V11.0903",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_1663_3939"},Oe.createElement("rect",{width:16,height:16,fill:"white"})))),uve="";function Ile({text:e}){return Je.jsxs("div",{className:"tooltip","data-sentry-component":"Tooltip","data-sentry-source-file":"Tooltip.jsx",children:[Je.jsx(wle,{"data-sentry-element":"QuestionIcon","data-sentry-source-file":"Tooltip.jsx"}),Je.jsxs("div",{className:"tooltip__text",children:[Je.jsx("p",{children:e}),Je.jsx("i",{})]})]})}const hve="";function h7({onAccessibilityChanged:e}){const t=on(Aa),[r,s]=zn(jx);function u(f){s(f.target.checked),e&&e()}return Je.jsxs("div",{className:"accessibility","data-sentry-component":"Accessibility","data-sentry-source-file":"Accessibility.jsx",children:[Je.jsx("input",{className:"mi-toggle",type:"checkbox",checked:r,onChange:f=>u(f),style:{backgroundColor:r?t:""}}),Je.jsx("div",{children:CI("Accessibility")}),Je.jsx(Ile,{text:CI("Turn on Accessibility to get directions that avoid stairs and escalators."),"data-sentry-element":"Tooltip","data-sentry-source-file":"Accessibility.jsx"})]})}const bo={TO:"TO",FROM:"FROM"},Tle="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";function d7({onStartDirections:e,onBack:t,directionsToLocation:r,directionsFromLocation:s,onSetSize:u,isActive:f}){const{t:m}=ua(),a=Oe.useRef(),v=Oe.useRef(),S=Oe.useRef(),D=Oe.useRef(),N=on(kI),C=on(Ex),O=on(gu),R=on(OI),V=on(Aa),[q,H]=Oe.useState(),[,Y]=zn(eT),[W,ee]=Oe.useState(!0),[fe,pe]=Oe.useState(!1),[he,oe]=Oe.useState([]),[Ve,De]=Oe.useState(),[Ae,Ge]=Oe.useState(),it=on(jx),Ee=np(),[Ze,ze]=Oe.useState(!1),[Le,Ye]=zn(Ox),[qe,Ie]=Oe.useState(!1),Te=on(Kg),le=on(Mle),[X,ie,Me]=o7(Ae,Ve,N,Le,it);function xe(Tt){return R===ls.Google&&Tt.properties.type==="google_places"?yle(Tt):R===ls.Mapbox&&Tt.properties.type==="mapbox_places"?ble(Tt,Te):Promise.resolve(Tt)}function $e(Tt){q===bo.TO?xe(Tt).then(kn=>{De(kn),S.current.setDisplayText(kn.properties.name)},()=>Y(!1)):q===bo.FROM&&xe(Tt).then(kn=>{Ge(kn),D.current.setDisplayText(kn.properties.name)},()=>Y(!1)),ze(!1),pe(!1),oe([]),Ie(!1)}function He(Tt,kn){if(H(kn),Y(!0),Tt.length===0)ee(!1),ze(!1),oe([]);else{ee(!0),oe(Tt);const An=Tt.filter(Cn=>Cn.properties.type==="google_places").length>0;ze(An)}}function Ue(Tt){typeof u=="function"&&u(Tt)}function Xe(){const Tt=rT(C);q===bo.TO?(S.current.setDisplayText(Tt.properties.name),De(Tt)):q===bo.FROM&&(D.current.setDisplayText(Tt.properties.name),Ge(Tt)),oe([]),Y(!0),ee(!0),ze(!1),pe(!1),Ie(!1)}function ut(Tt){(Ae==null?void 0:Ae.id)==="USER_POSITION"&&Tt===bo.TO||(Ve==null?void 0:Ve.id)==="USER_POSITION"&&Tt===bo.FROM?Ie(!1):Ie(!0)}function _t(Tt){ut(Tt)}function et(Tt){H(Tt),Rt(Tt),Y(!0),ze(!1),ut(Tt)}function bt(Tt){Ie(!0),H(Tt),Ot(Tt),oe([]),Y(!0),ze(!1),ee(!0)}function Ot(Tt){Tt===bo.TO?De():Tt===bo.FROM&&Ge()}function Rt(Tt){Tt===bo.TO?(oe([]),S.current.getValue()&&(pe(!0),S.current.triggerSearch())):Tt===bo.FROM&&(oe([]),D.current.getValue()&&(pe(!0),D.current.triggerSearch()))}function dn(){(Ve||Ae)&&(Ae?S.current.setDisplayText(Ae.properties.name):S.current.clear(),Ve?D.current.setDisplayText(Ve.properties.name):D.current.clear(),De(Ae),Ge(Ve))}function Bn(){Ge(),D.current.setDisplayText(""),t()}return Oe.useEffect(()=>{var kn;Ue(Ar.MAX);let Tt=!1;if((s==null?void 0:s.id)==="USER_POSITION"&&(r==null?void 0:r.id)==="USER_POSITION"&&(r=void 0),r!=null&&r.properties&&!O&&(S.current.setDisplayText(r.properties.name),De(r)),s!=null&&s.properties?Ae||(D.current.setDisplayText(s.properties.name),Ge(s),Tt=!0):H(bo.FROM),f&&!((kn=D.current)!=null&&kn.getValue())){const An=a.current.closest(".sheet");if(An?An.addEventListener("transitionend",()=>{s!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput()},{once:!0}):s!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput(),C&&!Ae&&(r==null?void 0:r.id)!=="USER_POSITION"&&!Tt){const Cn=rT(C);D.current.setDisplayText(Cn.properties.name),Ge(Cn),Y(!0),ee(!0),oe([])}}},[f,r,s]),Oe.useEffect(()=>{R===ls.Mapbox&&(ze(!1),oe(he.filter(Tt=>Tt.properties.type!=="google_places")))},[R]),Oe.useEffect(()=>{O&&(De(O),S.current.setDisplayText(O.properties.name))},[O]),Je.jsxs("div",{className:"wayfinding",ref:a,"data-sentry-component":"Wayfinding","data-sentry-source-file":"Wayfinding.jsx",children:[Je.jsxs("div",{className:"wayfinding__directions",children:[Je.jsx("div",{className:"wayfinding__title",children:m("Start wayfinding")}),Je.jsx("button",{className:"wayfinding__close",onClick:()=>Bn(),"aria-label":"Close",children:Je.jsx(zx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"Wayfinding.jsx"})}),Je.jsxs("div",{className:"wayfinding__locations",children:[Je.jsxs("label",{className:"wayfinding__label",children:[m("From").toUpperCase(),Je.jsx(iT,{ref:D,mapsindoors:!0,google:R===ls.Google,mapbox:R===ls.Mapbox,placeholder:m("Search by name, category, building..."),results:Tt=>He(Tt,bo.FROM),clicked:()=>et(bo.FROM),cleared:()=>bt(bo.FROM),changed:()=>_t(bo.FROM),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]}),Je.jsx("button",{onClick:()=>dn(),"aria-label":m("Switch"),className:"wayfinding__switch",children:Je.jsx(mle,{"data-sentry-element":"SwitchIcon","data-sentry-source-file":"Wayfinding.jsx"})}),Je.jsxs("label",{className:"wayfinding__label",children:[m("To").toUpperCase(),Je.jsx(iT,{ref:S,mapsindoors:!0,google:R===ls.Google,mapbox:R===ls.Mapbox,placeholder:m("Search by name, category, building..."),results:Tt=>He(Tt,bo.TO),clicked:()=>et(bo.TO),cleared:()=>bt(bo.TO),changed:()=>_t(bo.TO),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]})]})]}),!Me&&Je.jsx("p",{className:"wayfinding__error",children:m("No route found")}),!W&&!qe&&Je.jsx("p",{className:"wayfinding__error",children:m("Nothing was found")}),C&&qe&&Je.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Xe(),children:[Je.jsx(vle,{}),m("My position")]}),he.length>0&&Je.jsx("div",{className:"wayfinding__scrollable",...Ee,children:Je.jsxs("div",{className:"wayfinding__results",children:[he.map(Tt=>Je.jsx(tT,{icon:Tt.properties.type==="google_places"||Tt.properties.type==="mapbox_places"?Tle:void 0,location:Tt,locationClicked:kn=>$e(kn)},Tt.id)),Ze&&Je.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:_le})]})}),!fe&&!qe&&Me&&!Ze&&Ae&&Ve&&Je.jsxs("div",{className:"wayfinding__details",ref:v,children:[Je.jsxs("div",{className:"wayfinding__settings",children:[Je.jsx(h7,{}),Je.jsx("div",{className:"wayfinding__travel",children:Je.jsxs(xle,{selectionChanged:Tt=>Ye(Tt[0].value),children:[Je.jsxs("mi-dropdown-item",{selected:!0,value:Ph.WALKING,children:[Je.jsx(a7,{}),m("Walk")]}),Je.jsxs("mi-dropdown-item",{value:Ph.DRIVING,children:[Je.jsx(c7,{}),m("Drive")]}),Je.jsxs("mi-dropdown-item",{value:Ph.BICYCLING,children:[Je.jsx(u7,{}),m("Bike")]})]})})]}),Je.jsx("hr",{}),Je.jsxs("div",{className:"wayfinding__info",children:[Je.jsxs("div",{className:"wayfinding__distance",children:[Le===Ph.WALKING&&Je.jsx(a7,{}),Le===Ph.DRIVING&&Je.jsx(c7,{}),Le===Ph.BICYCLING&&Je.jsx(u7,{}),Je.jsxs("div",{children:[m("Distance"),":"]}),Je.jsx("div",{className:"wayfinding__meters",children:X&&Je.jsx("mi-distance",{unit:le,meters:X})})]}),Je.jsxs("div",{className:"wayfinding__time",children:[Je.jsx(ple,{}),Je.jsxs("div",{children:[m("Estimated time"),":"]}),Je.jsx("div",{className:"wayfinding__minutes",children:ie&&Je.jsx("mi-time",{translations:JSON.stringify({days:m("d"),hours:m("h"),minutes:m("min")}),seconds:ie})})]})]}),Je.jsx("button",{className:"wayfinding__button",style:{background:V},onClick:()=>e(),children:m("Go!")})]})]})}const dve="",Sle=e=>Oe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{opacity:.12},Oe.createElement("path",{d:"M16.3335 5.36667C16.3335 4.71327 16.3335 4.38657 16.4607 4.13701C16.5725 3.91749 16.7509 3.73901 16.9705 3.62715C17.22 3.5 17.5467 3.5 18.2002 3.5H22.6335C23.2869 3.5 23.6136 3.5 23.8632 3.62715C24.0827 3.73901 24.2611 3.91749 24.373 4.13701C24.5002 4.38657 24.5002 4.71327 24.5002 5.36667V9.8C24.5002 10.4534 24.5002 10.7801 24.373 11.0297C24.2611 11.2492 24.0827 11.4277 23.8632 11.5395C23.6136 11.6667 23.2869 11.6667 22.6335 11.6667H18.2002C17.5467 11.6667 17.22 11.6667 16.9705 11.5395C16.7509 11.4277 16.5725 11.2492 16.4607 11.0297C16.3335 10.7801 16.3335 10.4534 16.3335 9.8V5.36667Z",fill:"#1F2937"}),Oe.createElement("path",{d:"M3.5 5.36667C3.5 4.71327 3.5 4.38657 3.62715 4.13701C3.73901 3.91749 3.91749 3.73901 4.13701 3.62715C4.38657 3.5 4.71327 3.5 5.36667 3.5H9.8C10.4534 3.5 10.7801 3.5 11.0297 3.62715C11.2492 3.73901 11.4277 3.91749 11.5395 4.13701C11.6667 4.38657 11.6667 4.71327 11.6667 5.36667V9.8C11.6667 10.4534 11.6667 10.7801 11.5395 11.0297C11.4277 11.2492 11.2492 11.4277 11.0297 11.5395C10.7801 11.6667 10.4534 11.6667 9.8 11.6667H5.36667C4.71327 11.6667 4.38657 11.6667 4.13701 11.5395C3.91749 11.4277 3.73901 11.2492 3.62715 11.0297C3.5 10.7801 3.5 10.4534 3.5 9.8V5.36667Z",fill:"#1F2937"}),Oe.createElement("path",{d:"M3.5 18.2C3.5 17.5466 3.5 17.2199 3.62715 16.9704C3.73901 16.7508 3.91749 16.5724 4.13701 16.4605C4.38657 16.3334 4.71327 16.3334 5.36667 16.3334H9.8C10.4534 16.3334 10.7801 16.3334 11.0297 16.4605C11.2492 16.5724 11.4277 16.7508 11.5395 16.9704C11.6667 17.2199 11.6667 17.5466 11.6667 18.2V22.6334C11.6667 23.2868 11.6667 23.6135 11.5395 23.863C11.4277 24.0826 11.2492 24.261 11.0297 24.3729C10.7801 24.5 10.4534 24.5 9.8 24.5H5.36667C4.71327 24.5 4.38657 24.5 4.13701 24.3729C3.91749 24.261 3.73901 24.0826 3.62715 23.863C3.5 23.6135 3.5 23.2868 3.5 22.6334V18.2Z",fill:"#1F2937"})),Oe.createElement("path",{d:"M7.58333 7.58333H7.595M20.4167 7.58333H20.4283M7.58333 20.4167H7.595M15.1667 15.1667H15.1783M20.4167 20.4167H20.4283M19.8333 24.5H24.5V19.8333M16.3333 19.25V24.5M24.5 16.3333H19.25M18.2 11.6667H22.6333C23.2868 11.6667 23.6134 11.6667 23.863 11.5395C24.0826 11.4277 24.261 11.2492 24.3728 11.0297C24.5 10.7801 24.5 10.4534 24.5 9.8V5.36667C24.5 4.71327 24.5 4.38657 24.3728 4.13701C24.261 3.91749 24.0826 3.73901 23.863 3.62715C23.6134 3.5 23.2868 3.5 22.6333 3.5H18.2C17.5465 3.5 17.2199 3.5 16.9703 3.62715C16.7508 3.73901 16.5724 3.91749 16.4605 4.13701C16.3333 4.38657 16.3333 4.71327 16.3333 5.36667V9.8C16.3333 10.4534 16.3333 10.7801 16.4605 11.0297C16.5724 11.2492 16.7508 11.4277 16.9703 11.5395C17.2199 11.6667 17.5465 11.6667 18.2 11.6667ZM5.36667 11.6667H9.8C10.4534 11.6667 10.7801 11.6667 11.0297 11.5395C11.2492 11.4277 11.4277 11.2492 11.5395 11.0297C11.6667 10.7801 11.6667 10.4534 11.6667 9.8V5.36667C11.6667 4.71327 11.6667 4.38657 11.5395 4.13701C11.4277 3.91749 11.2492 3.73901 11.0297 3.62715C10.7801 3.5 10.4534 3.5 9.8 3.5H5.36667C4.71327 3.5 4.38657 3.5 4.13701 3.62715C3.91749 3.73901 3.73901 3.91749 3.62715 4.13701C3.5 4.38657 3.5 4.71327 3.5 5.36667V9.8C3.5 10.4534 3.5 10.7801 3.62715 11.0297C3.73901 11.2492 3.91749 11.4277 4.13701 11.5395C4.38657 11.6667 4.71327 11.6667 5.36667 11.6667ZM5.36667 24.5H9.8C10.4534 24.5 10.7801 24.5 11.0297 24.3728C11.2492 24.261 11.4277 24.0826 11.5395 23.863C11.6667 23.6134 11.6667 23.2868 11.6667 22.6333V18.2C11.6667 17.5465 11.6667 17.2199 11.5395 16.9703C11.4277 16.7508 11.2492 16.5724 11.0297 16.4605C10.7801 16.3333 10.4534 16.3333 9.8 16.3333H5.36667C4.71327 16.3333 4.38657 16.3333 4.13701 16.4605C3.91749 16.5724 3.73901 16.7508 3.62715 16.9703C3.5 17.2199 3.5 17.5465 3.5 18.2V22.6333C3.5 23.2868 3.5 23.6134 3.62715 23.863C3.73901 24.0826 3.91749 24.261 4.13701 24.3728C4.38657 24.5 4.71327 24.5 5.36667 24.5Z",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),fve="",Ele=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Dle=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),sT=ui({key:"activeStep",default:0}),n0=ui({key:"substepsToggled",default:!1}),Ale=ui({key:"triggerSubsteps",default:!1}),i0=()=>{const e=on(ac),t=oc();return!(!e||e&&!t)},Cle=Oe.forwardRef(({totalSteps:e,activeStep:t,previous:r,originLocation:s,directions:u},f)=>{var O;const m=Oe.useRef(),{t:a}=ua(),[v,S]=zn(n0),[,D]=zn(Ale),N=i0();Oe.useImperativeHandle(f,()=>({openSubsteps(){m.current.openSubsteps()},closeSubsteps(){m.current.closeSubsteps()}}));const C={walk:a("Walk"),bike:a("Bike"),transit:a("Transit"),drive:a("Drive"),destination:a("You have arrived"),leave:a("Leave"),from:a("From"),park:a("Park"),at:a("at"),building:a("Building"),venue:a("Venue"),takeStaircaseToLevel:a("Take staircase to level"),takeLadderToLevel:a("Take the ladder to level"),takeElevatorToLevel:a("Take elevator to level"),takeEscalatorToLevel:a("Take escalator to level"),takeWheelchairLiftToLevel:a("Take wheelchair lift to level"),takeWheelchairRampToLevel:a("Take wheelchair ramp to level"),exit:a("Exit"),enter:a("Enter"),stops:a("stops"),andContinue:a("and continue"),continueStraightAhead:a("Continue straight ahead"),goLeft:a("Go left"),goSharpLeft:a("Go sharp left"),goSlightLeft:a("Go slight left"),goRight:a("Go right"),goSharpRight:a("Go sharp right"),goSlightRight:a("Go slight right"),turnAround:a("Turn around"),days:a("d"),hours:a("h"),minutes:a("min")};return Oe.useEffect(()=>{const{current:R}=m;function V(){D(!0),S(!v)}return R.addEventListener("substepsToggled",V),()=>{R.removeEventListener("substepsToggled",V)}},[v]),Je.jsx("mi-route-instructions-step",{ref:m,"show-toggle-button":!N,step:JSON.stringify(e[t]),translations:JSON.stringify(C),"destination-location":u==null?void 0:u.destinationLocation.properties.name,"from-travel-mode":(r==null?void 0:r.travel_mode)??"","from-route-context":(r==null?void 0:r.route_context)??((O=s==null?void 0:s.properties)==null?void 0:O.name)??""})}),Nle=()=>{const e=on(bs),t=on(RI);return()=>{if(e&&t){const s=t.modules.map(u=>u.toLowerCase()).includes("z22");e.setZoom(s?22:21)}}},f7=ui({key:"isDestinationStep",default:!1});function Lle({steps:e,onNextStep:t,onPreviousStep:r,originLocation:s,isOpen:u,onFitCurrentDirections:f}){const{t:m}=ua(),a=np(),v=Oe.useRef(),[S,D]=Oe.useState(),[N,C]=zn(sT),[O,R]=Oe.useState(),V=on(kx),q=on(bs),H=on(n0),[,Y]=zn(f7),W=Nle(),ee=i0();Oe.useEffect(()=>{const oe={...e[e.length-1]};oe.travel_mode="DESTINATION",oe.steps=null,e.push(oe),R(e)},[e]),Oe.useEffect(()=>{var he,oe;if(u){if(N===(O==null?void 0:O.length)-1&&(V!=null&&V.destinationLocation)){Y(!0);const Ve=V==null?void 0:V.destinationLocation,De=(Ve==null?void 0:Ve.geometry.type)==="Point"?Ve==null?void 0:Ve.geometry.coordinates:Ve==null?void 0:Ve.properties.anchor.coordinates;q.getMapView().setCenter({lat:De[1],lng:De[0]}),W()}else Y(!1);H===!1?(he=v.current)==null||he.closeSubsteps():H===!0&&((oe=v.current)==null||oe.openSubsteps())}},[u,N,O,H]);function fe(){D(O[N]),C(N+1),t()}function pe(){D(O[N-2]),C(N-1),N===(O==null?void 0:O.length)-1?f():r()}return Je.jsx("div",{className:"route-instructions prevent-scroll",...a,"data-sentry-component":"RouteInstructions","data-sentry-source-file":"RouteInstructions.jsx",children:O&&Je.jsxs(Je.Fragment,{children:[Je.jsx(Cle,{totalSteps:O,activeStep:N,previous:S,directions:V,originLocation:s,ref:v}),Je.jsx("div",{className:`route-instructions__footer ${ee?"route-instructions__footer--kiosk":""}`,children:Je.jsxs("div",{className:"route-instructions__actions",children:[Je.jsx("button",{className:`route-instructions__button ${ee?"route-instructions__button--kiosk":""}`,onClick:()=>pe(),"aria-label":m("Previous"),disabled:N===0,children:Je.jsx(Dle,{})}),Je.jsx("div",{className:"route-instructions__overview",children:m("StepYofX",{activeStep:N+1,totalSteps:O.length})}),Je.jsx("button",{className:`route-instructions__button ${ee?"route-instructions__button--kiosk":""}`,onClick:()=>fe(),"aria-label":m("Next"),disabled:N===O.length-1,children:Je.jsx(Ele,{})})]})})]})})}const Rx=ui({key:"showQRCodeDialog",default:!1});let uo;function p7({isOpen:e,onBack:t,onSetSize:r,snapPointSwiped:s,onRouteFinished:u}){const{t:f}=ua(),[m,a]=Oe.useState(null),v=Oe.useRef(null),[S,D]=Oe.useState(),N=on(bs),C=on(Ox),O=on(kx),[,R]=zn(sT),[V,q]=zn(n0),H=on(ac),Y=oc(),[,W]=zn(Rx),ee=on(f7),fe=on(Aa),pe=i0();Oe.useEffect(()=>{if(a(null),e&&O){D(O.totalTime);const Le=Math.min(window.innerHeight,window.innerWidth)*.06;uo==null||uo.setRoute(null),uo=null,Promise.all([he(Le),oe(Le)]).then(([Ye,qe])=>{uo=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:N,fitBoundsPadding:{top:Le,bottom:Ye,left:qe,right:Le}}),uo.setRoute(O.directionsResult),uo.setStepIndex(0),v.current.location=O.destinationLocation,O.destinationLocation.id==="USER_POSITION"?a(null):a(N.getDisplayRule(O.destinationLocation))})}},[e,O,N,C]);function he(Le){return new Promise(Ye=>{if(Y)H?BI().then(qe=>Ye(qe)):Ye(Le);else return FO().then(qe=>Ye(qe))})}function oe(Le){return new Promise(Ye=>{Y?H?Ye(Le):VI().then(qe=>Ye(qe)):Ye(Le)})}Oe.useEffect(()=>{!e&&uo&&it()},[e]);function Ve(){return O?O.directionsResult.legs.reduce((Le,Ye)=>{for(const qe in Ye.steps){const Ie=Ye.steps[qe];Le.push(Ie)}return Le},[]):[]}function De(){uo&&uo.nextStep()}function Ae(){uo&&uo.previousStep()}function Ge(){uo&&uo.setStepIndex(uo.getStepIndex(),uo.getLegIndex())}function it(){uo==null||uo.setRoute(null),uo=null}function Ee(){R(0),q(!1),ze(Ar.FIT)}function Ze(){Ee(),it(),t()}function ze(Le){typeof r=="function"&&r(Le)}return Oe.useEffect(()=>{ze(V?Ar.MAX:Ar.FIT)},[V]),Oe.useEffect(()=>{e&&s&&q(s===Ar.MAX)},[e,s]),Je.jsxs("div",{className:"directions",style:{display:pe?"block":"grid"},"data-sentry-component":"Directions","data-sentry-source-file":"Directions.jsx",children:[Je.jsxs("div",{className:"directions__steps",children:[Je.jsx("div",{className:"directions__minutes",children:S&&Je.jsx("mi-time",{translations:JSON.stringify({days:f("d"),hours:f("h"),minutes:f("min")}),seconds:S})}),Je.jsx(Lle,{steps:Ve(),originLocation:O==null?void 0:O.originLocation,onNextStep:()=>De(),isOpen:e,onPreviousStep:()=>Ae(),onFitCurrentDirections:()=>Ge(),"data-sentry-element":"RouteInstructions","data-sentry-source-file":"Directions.jsx"})]}),pe&&Je.jsxs(Je.Fragment,{children:[Je.jsx("hr",{}),Je.jsxs("div",{className:"directions__kiosk",children:[Je.jsx(h7,{onAccessibilityChanged:()=>Ee()}),Je.jsxs("button",{className:"directions__qr-code",onClick:()=>W(!0),children:[Je.jsx(Sle,{}),f("Scan QR code")]})]})]}),Je.jsxs("div",{className:"directions__actions",children:[Je.jsx("div",{className:"directions__details",children:(O==null?void 0:O.destinationLocation)&&Je.jsxs("div",{className:"directions__info",children:[m&&O.destinationLocation.id!=="USER_POSITION"&&Je.jsx("div",{className:"directions__icon",children:Je.jsx("img",{alt:"",src:m.icon.src?m.icon.src:m.icon})}),Je.jsxs("div",{className:"directions__content",children:[Je.jsx("div",{className:"directions__name",children:O==null?void 0:O.destinationLocation.properties.name}),Je.jsx("mi-location-info",{ref:v,"show-external-id":!1})]})]})}),ee?Je.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:fe},children:f("Finish route")}):Je.jsx("button",{className:"directions__cancel",onClick:()=>Ze(),children:f("Cancel route")})]})]})}const pve="",m7=ui({key:"useKeyboard",default:!1}),zle=Oe.forwardRef(({searchInputElement:e},t)=>{const r=Oe.useRef(),s=on(t0);return Oe.useImperativeHandle(t,()=>({clearInputField(){r.current.clearInputField()}})),Oe.useEffect(()=>{const{current:u}=r;e&&(u.inputElement=e)},[e]),Je.jsx("mi-keyboard",{language:s,ref:r})}),aT=ui({key:"searchResults",default:[]}),lT=ui({key:"selectedCategory",default:void 0}),mve="",kle=e=>Oe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),Ole=e=>Oe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function jle(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const r=new MutationObserver(()=>{const s=document.querySelector(".chip--active");s&&(r.disconnect(),e(s))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const g7=ui({key:"category",default:void 0});function Rle({onSetSize:e,getFilteredLocations:t,searchFieldRef:r}){const s=Oe.useRef(),u=on(Xg),f=oc(),[m,a]=Oe.useState(!0),[v,S]=Oe.useState(!1),D=on(Aa),[N,C]=zn(lT),[,O]=zn(aT),[,R]=zn(Dx),V=np(),[q,H]=Oe.useState(),Y=on(i7),W=on(g7);function ee(oe){typeof e=="function"&&e(oe)}function fe(oe){C(oe),ee(Ar.MAX),N===oe?(O([]),C(null),R([]),r.current.getValue()&&r.current.triggerSearch()):r.current.getValue()?r.current.triggerSearch():t(oe)}function pe(){(s==null?void 0:s.current.scrollLeft)===0?a(!0):m&&a(!1),(s==null?void 0:s.current.scrollWidth)-(s==null?void 0:s.current.scrollLeft)===(s==null?void 0:s.current.clientWidth)?S(!0):v&&S(!1)}function he(oe){s==null||s.current.scroll({left:(s==null?void 0:s.current.scrollLeft)+oe,behavior:"smooth"})}return s.current&&s.current.addEventListener("scroll",()=>{pe()}),Oe.useEffect(()=>{N&&(jle().then(oe=>H(oe)),ee(Ar.MAX))},[N]),Oe.useEffect(()=>{q&&W!==void 0&&(f||!f&&Y)&&q.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[q,W,Y]),Je.jsx("div",{className:"categories prevent-scroll",...V,"data-sentry-component":"Categories","data-sentry-source-file":"Categories.jsx",children:u.length>0&&Je.jsxs(Je.Fragment,{children:[f&&Je.jsx("button",{className:"categories__scroll-button",onClick:()=>he(-300),disabled:m,children:Je.jsx(Ole,{})}),Je.jsx("div",{ref:s,className:"categories__list",children:u==null?void 0:u.map(([oe,Ve])=>Je.jsx("mi-chip",{icon:Ve.iconUrl,"background-color":D,content:Ve.displayName,active:N===oe,onClick:()=>fe(oe)},oe))}),f&&Je.jsx("button",{className:"categories__scroll-button",onClick:()=>he(300),disabled:v,children:Je.jsx(kle,{})})]})})}const Ple=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),Oe.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Px=ui({key:"isLegendDialogVisible",default:!1}),y7=O9({key:"legendFields",get:({get:e})=>{const t=e(ac);if(!(t!=null&&t.properties.fields))return;const r=[];for(const u of Object.keys(t.properties.fields)){const f=parseInt(u.charAt(0));if(!Number.isInteger(f))continue;const m=r.find(S=>S.index===f),a=u.toLowerCase().includes("legendheading"),v=u.toLowerCase().includes("legendcontent");if(m)a?m.heading=t.properties.fields[u].value:v&&(m.content=t.properties.fields[u].value);else{const S={index:f,heading:a?t.properties.fields[u].value:null,content:v?t.properties.fields[u].value:null};r.push(S)}}return r.sort((u,f)=>u.index-f.index)}});function _7({onSetSize:e,isOpen:t}){const{t:r}=ua(),s=Oe.useRef(),u=Oe.useRef(),f=Oe.useRef(),m=Oe.useRef(),[a,v]=Oe.useState(!0),[S,D]=zn(aT),N=on(Xg),C=on(m7),[O,R]=Oe.useState(!1),[V,q]=zn(lT),H=np(),[Y,W]=Oe.useState(),ee=on(bs),[,fe]=zn(Dx),[,pe]=zn(gu),[,he]=zn(KI),[oe,Ve]=zn(Oh),De=on(t0),Ae=oc(),Ge=on(ac),[it,Ee]=Oe.useState(!1),Ze=on(l7),ze=i0(),[,Le]=zn(Px),[Ye,qe]=Oe.useState(!1),Ie=on(y7),Te=on(nT);function le(_t){window.mapsindoors.services.LocationsService.getLocations({categories:_t,venue:Te?void 0:oe}).then(ie)}function X(_t){typeof e=="function"&&e(_t)}function ie(_t){D(_t),fe(_t),R(_t.length===0)}function Me(){D([]),R(!1),V&&le(V),fe([]),m.current!==null&&m.current.clearInputField()}function xe(){X(Ar.MAX),v(!1),f.current.getInputField();const _t=s.current.closest(".sheet");_t?_t.addEventListener("transitionend",()=>{f.current.focusInput()},{once:!0}):f.current.focusInput()}function $e(_t){W(_t)}function He(_t){pe(_t),_t.properties.venueId!==oe&&(Ve(_t.properties.venueId),he(!0));const et=ee.getFloor(),bt=_t.properties.floor;bt!==et&&ee.setFloor(bt),Promise.all([Ue(),Xe()]).then(([Ot,Rt])=>{KO(_t,ee,Ot,Rt)})}function Ue(){return new Promise(_t=>{Ae?Ge?BI().then(et=>_t(et)):_t(0):_t(200)})}function Xe(){return new Promise(_t=>{Ae?Ge?_t(0):VI().then(et=>_t(et)):_t(0)})}function ut(){if(S.length>0){let _t;return Ae?_t=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":_t="100%",{display:"flex",flexDirection:"column",maxHeight:_t,overflow:"hidden"}}else return{minHeight:N.length>0?"136px":"80px"}}return Oe.useEffect(()=>{V&&(D([]),q(null))},[oe]),Oe.useEffect(()=>{V&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{f.current.triggerSearch()})},[De]),Oe.useEffect(()=>(ee.on("mouseenter",$e),()=>{ee.off("mouseenter",$e)})),Oe.useEffect(()=>{if(t&&ze&&S.length>0){const _t=document.querySelector(".mapsindoors-map .search__results");u.current.scrollContainerElementRef=_t}},[S,t]),Oe.useEffect(()=>{if(C){const _t=et=>{et.target.closest("mi-keyboard")||et.target.tagName.toUpperCase()==="MI-SEARCH"||et.target.tagName.toUpperCase()==="INPUT"?Ee(!0):Ee(!1)};return window.addEventListener("click",_t,!1),()=>{window.removeEventListener("click",_t,!1)}}},[C]),Oe.useEffect(()=>{V&&le(V)},[V]),Oe.useEffect(()=>{Ge&&qe(Ie.length>0)},[Ge]),Je.jsxs("div",{className:"search",ref:s,style:ut(),"data-sentry-component":"Search","data-sentry-source-file":"Search.jsx",children:[Je.jsxs("div",{className:"search__info",style:{gridTemplateColumns:ze&&Ye?"min-content 1fr":"auto"},children:[ze&&Ye&&Je.jsx("button",{className:"search__legend",onClick:()=>Le(!0),children:Je.jsx(Ple,{})}),Je.jsx(iT,{ref:f,mapsindoors:!0,placeholder:r("Search by name, category, building..."),results:_t=>ie(_t),clicked:()=>xe(),cleared:()=>Me(),category:V,disabled:a,"data-sentry-element":"SearchField","data-sentry-source-file":"Search.jsx"})]}),N.length>0&&Je.jsx(Rle,{onSetSize:e,searchFieldRef:f,getFilteredLocations:_t=>le(_t)}),O&&Je.jsxs("p",{className:"search__error",children:[" ",r("Nothing was found")]}),S.length>0&&Je.jsx("div",{className:"search__results prevent-scroll",...H,children:S.map(_t=>Je.jsx(tT,{location:_t,locationClicked:()=>He(_t),isHovered:(_t==null?void 0:_t.id)===(Y==null?void 0:Y.id)},_t.id))}),it&&Ae&&Je.jsx(zle,{ref:m,searchInputElement:Ze}),t&&ze&&S.length>0&&m4.createPortal(Je.jsx("div",{className:"search__scroll-buttons",children:Je.jsx("mi-scroll-buttons",{ref:u})}),document.querySelector(".mapsindoors-map"))]})}const gve="";function v7({onBack:e,onLocationClick:t,locations:r,onSetSize:s}){const{t:u}=ua(),f=np();function m(a){typeof s=="function"&&s(a)}return Oe.useEffect(()=>{m(Ar.FIT)},[]),Je.jsxs("div",{className:"locations-list","data-sentry-component":"LocationsList","data-sentry-source-file":"LocationsList.jsx",children:[Je.jsxs("div",{className:"locations-list__header",children:[Je.jsxs("div",{className:"locations-list__title",children:[r==null?void 0:r.length," ",u("Locations")]}),Je.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":u("Close"),children:Je.jsx(zx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"LocationsList.jsx"})})]}),Je.jsx("div",{className:"locations-list__scrollable prevent-scroll",...f,children:Je.jsx("div",{className:"locations-list__list",children:r==null?void 0:r.map(a=>Je.jsx(tT,{location:a,locationClicked:v=>t(v)},a.id))})})]})}function Ule({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:s,appViews:u,onRouteFinished:f}){const m=Oe.useRef(),[a,v]=Oe.useState(),[S,D]=Oe.useState(),[N,C]=Oe.useState(),[O,R]=Oe.useState(),[V,q]=Oe.useState(),[H,Y]=Oe.useState(),[W,ee]=Oe.useState(),fe=on(Xg),[pe,he]=zn(gu),[oe,Ve]=zn(Ax),[,De]=zn(Nx);Oe.useEffect(()=>{e&&t&&s===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):pe?r(u.LOCATION_DETAILS,pe):(oe==null?void 0:oe.length)>1?r(u.EXTERNALIDS):(oe==null?void 0:oe.length)===1?(he(oe[0]),De(oe[0].id)):r(u.SEARCH))},[pe,e,t,oe]);function Ae(){(oe==null?void 0:oe.length)>1?(r(u.EXTERNALIDS),he()):(oe==null?void 0:oe.length)===1?(r(u.SEARCH),he(),Ve([])):(r(u.SEARCH),he())}function Ge(){r(u.SEARCH),he(),Ve([])}const it=[Je.jsx(e0,{minHeight:fe.length>0?"136":"80",preferredSizeSnapPoint:H,isOpen:s===u.SEARCH,children:Je.jsx(_7,{onSetSize:Ee=>Y(Ee)})},"A"),Je.jsx(e0,{minHeight:"200",isOpen:s===u.EXTERNALIDS,preferredSizeSnapPoint:W,children:Je.jsx(v7,{onSetSize:Ee=>ee(Ee),onBack:()=>Ge(),locations:oe,onLocationClick:Ee=>he(Ee),onLocationsFiltered:Ee=>Ve(Ee)})},"B"),Je.jsx(e0,{minHeight:"128",preferredSizeSnapPoint:a,isOpen:s===u.LOCATION_DETAILS,onSwipedToSnapPoint:Ee=>D(Ee),children:Je.jsx(s7,{onSetSize:Ee=>v(Ee),onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>Ae(),snapPointSwiped:S,onStartDirections:()=>r(u.DIRECTIONS)})},"C"),Je.jsx(e0,{minHeight:"238",isOpen:s===u.WAYFINDING,preferredSizeSnapPoint:V,children:Je.jsx(d7,{onSetSize:Ee=>q(Ee),onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(pe?u.LOCATION_DETAILS:u.SEARCH),isActive:s===u.WAYFINDING})},"D"),Je.jsx(e0,{minHeight:"220",isOpen:s===u.DIRECTIONS,preferredSizeSnapPoint:N,onSwipedToSnapPoint:Ee=>R(Ee),children:Je.jsx(p7,{onSetSize:Ee=>C(Ee),isOpen:s===u.DIRECTIONS,onBack:()=>r(u.WAYFINDING),snapPointSwiped:O,onRouteFinished:()=>f()})},"E")];return Je.jsx("div",{ref:m,className:"bottom-sheets","data-sentry-component":"BottomSheet","data-sentry-source-file":"BottomSheet.jsx",children:Je.jsx(XO.Provider,{value:m,"data-sentry-element":"unknown","data-sentry-source-file":"BottomSheet.jsx",children:it})})}const Ble={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},Fle=()=>{const[e,t]=Oe.useState(void 0),[r,s]=Oe.useState(),[u,f]=Oe.useState(null);Oe.useEffect(()=>{function S(D){var N,C;t((N=D.state)==null?void 0:N.value),s((C=D.state)==null?void 0:C.payload)}return window.addEventListener("popstate",S),()=>{window.removeEventListener("popstate",S)}},[]);const m=(S,D)=>{window.history.pushState({value:S,payload:D},""),t(S),u===null&&f({value:S,payload:D})};return[m,()=>{window.history.back()},e,r,Ble,()=>{m(u.value,u.payload)}]};function Vle(){const e=ca(sT),t=ca(gu),r=ca(kx),s=ca(eT),u=ca(KI),f=ca(PI),m=ca(Rx),a=ca(n0),v=ca(Ox),S=ca(aT),D=ca(jx),N=ca(Px);return()=>{e(),t(),r(),s(),u(),f(),m(),a(),v(),S(),D(),N()}}const yve="";function r0({children:e,isOpen:t}){const[r,s]=Oe.useState(!1),u=on(n0),f=on(ac),m=Oe.useRef(),a=Oe.useRef();return Oe.useEffect(()=>{if(!a)return;const v=new MutationObserver(()=>{var N;const S=a.current.clientHeight,D=(N=m.current)==null?void 0:N.clientHeight;s(S>D)});return v.observe(a.current,{childList:!0,subtree:!0}),()=>{v.disconnect()}},[a]),Je.jsx("div",{ref:m,className:`modal ${t?"modal--open":""} ${r?"modal--full":""} ${u?"modal--substeps":""} ${f?"modal--kiosk":""}`,"data-sentry-component":"Modal","data-sentry-source-file":"Modal.jsx",children:Je.jsx("div",{ref:a,className:"modal__content",children:e})})}function $le({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:s,appViews:u,onRouteFinished:f}){const[m,a]=zn(gu),[v,S]=zn(Ax),[,D]=zn(Nx),N=on(ac);Oe.useEffect(()=>{e&&t&&s===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):m?r(u.LOCATION_DETAILS,m):(v==null?void 0:v.length)>1?r(u.EXTERNALIDS):(v==null?void 0:v.length)===1?(a(v[0]),D(v[0].id)):r(u.SEARCH))},[m,e,t,v]);function C(){(v==null?void 0:v.length)>1?(r(u.EXTERNALIDS),a()):(v==null?void 0:v.length)===1?(r(u.SEARCH),a(),S([])):(r(u.SEARCH),a())}function O(){r(u.SEARCH),a(),S([])}function R(){r(N?u.LOCATION_DETAILS:u.WAYFINDING)}const V=[Je.jsx(r0,{isOpen:s===u.SEARCH,children:Je.jsx(_7,{isOpen:s===u.SEARCH})},"A"),Je.jsx(r0,{isOpen:s===u.EXTERNALIDS,children:Je.jsx(v7,{onBack:()=>O(),locations:v,onLocationClick:q=>a(q),onLocationsFiltered:q=>S(q)})},"B"),Je.jsx(r0,{isOpen:s===u.LOCATION_DETAILS,children:Je.jsx(s7,{onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>C(),onStartDirections:()=>r(u.DIRECTIONS)})},"C"),Je.jsx(r0,{isOpen:s===u.WAYFINDING,children:Je.jsx(d7,{onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(m?u.LOCATION_DETAILS:u.SEARCH),isActive:s===u.WAYFINDING})},"D"),Je.jsx(r0,{isOpen:s===u.DIRECTIONS,children:Je.jsx(p7,{isOpen:s===u.DIRECTIONS,onBack:()=>R(),onRouteFinished:()=>f()})},"E")];return Je.jsx("div",{"data-sentry-component":"Sidebar","data-sentry-source-file":"Sidebar.jsx",children:V})}const x7=e=>{const[t,r]=Oe.useState(),s=on(Ex),u=on(LO);return Oe.useEffect(()=>{u&&e&&(e==="USER_POSITION"&&!s?(r("USER_POSITION_PENDING"),u.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(f=>r(f)),s&&e==="USER_POSITION"&&r(rT(s)))},[e,s,u]),t},_ve="";function Qle(){const e=on(PI),t=Oe.useRef();return Oe.useEffect(()=>{var r;(r=t.current)==null||r.classList.add("notification"),e?t.current.push(e.text,e.type,!0):t.current.clearAll()},[e]),Je.jsx("mi-notification",{ref:t,position:"top-center","data-sentry-element":"mi-notification","data-sentry-component":"Notification","data-sentry-source-file":"Notification.jsx"})}const vve="";var o0={},Hle=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},b7={},$s={};let cT;const Yle=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];$s.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},$s.getSymbolTotalCodewords=function(t){return Yle[t]},$s.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},$s.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');cT=t},$s.isKanjiModeEnabled=function(){return typeof cT<"u"},$s.toSJIS=function(t){return cT(t)};var Ux={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,u){if(e.isValid(s))return s;try{return t(s)}catch{return u}}})(Ux);function M7(){this.buffer=[],this.length=0}M7.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Gle=M7;function s0(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}s0.prototype.set=function(e,t,r,s){const u=e*this.size+t;this.data[u]=r,s&&(this.reservedBit[u]=!0)},s0.prototype.get=function(e,t){return this.data[e*this.size+t]},s0.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},s0.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Zle=s0,w7={};(function(e){const t=$s.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const u=Math.floor(s/7)+2,f=t(s),m=f===145?26:Math.ceil((f-13)/(2*u-2))*2,a=[f-7];for(let v=1;v<u-1;v++)a[v]=a[v-1]-m;return a.push(6),a.reverse()},e.getPositions=function(s){const u=[],f=e.getRowColCoords(s),m=f.length;for(let a=0;a<m;a++)for(let v=0;v<m;v++)a===0&&v===0||a===0&&v===m-1||a===m-1&&v===0||u.push([f[a],f[v]]);return u}})(w7);var I7={};const Wle=$s.getSymbolSize,T7=7;I7.getPositions=function(t){const r=Wle(t);return[[0,0],[r-T7,0],[0,r-T7]]};var S7={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(u){return u!=null&&u!==""&&!isNaN(u)&&u>=0&&u<=7},e.from=function(u){return e.isValid(u)?parseInt(u,10):void 0},e.getPenaltyN1=function(u){const f=u.size;let m=0,a=0,v=0,S=null,D=null;for(let N=0;N<f;N++){a=v=0,S=D=null;for(let C=0;C<f;C++){let O=u.get(N,C);O===S?a++:(a>=5&&(m+=t.N1+(a-5)),S=O,a=1),O=u.get(C,N),O===D?v++:(v>=5&&(m+=t.N1+(v-5)),D=O,v=1)}a>=5&&(m+=t.N1+(a-5)),v>=5&&(m+=t.N1+(v-5))}return m},e.getPenaltyN2=function(u){const f=u.size;let m=0;for(let a=0;a<f-1;a++)for(let v=0;v<f-1;v++){const S=u.get(a,v)+u.get(a,v+1)+u.get(a+1,v)+u.get(a+1,v+1);(S===4||S===0)&&m++}return m*t.N2},e.getPenaltyN3=function(u){const f=u.size;let m=0,a=0,v=0;for(let S=0;S<f;S++){a=v=0;for(let D=0;D<f;D++)a=a<<1&2047|u.get(S,D),D>=10&&(a===1488||a===93)&&m++,v=v<<1&2047|u.get(D,S),D>=10&&(v===1488||v===93)&&m++}return m*t.N3},e.getPenaltyN4=function(u){let f=0;const m=u.data.length;for(let v=0;v<m;v++)f+=u.data[v];return Math.abs(Math.ceil(f*100/m/5)-10)*t.N4};function r(s,u,f){switch(s){case e.Patterns.PATTERN000:return(u+f)%2===0;case e.Patterns.PATTERN001:return u%2===0;case e.Patterns.PATTERN010:return f%3===0;case e.Patterns.PATTERN011:return(u+f)%3===0;case e.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(f/3))%2===0;case e.Patterns.PATTERN101:return u*f%2+u*f%3===0;case e.Patterns.PATTERN110:return(u*f%2+u*f%3)%2===0;case e.Patterns.PATTERN111:return(u*f%3+(u+f)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}e.applyMask=function(u,f){const m=f.size;for(let a=0;a<m;a++)for(let v=0;v<m;v++)f.isReserved(v,a)||f.xor(v,a,r(u,v,a))},e.getBestMask=function(u,f){const m=Object.keys(e.Patterns).length;let a=0,v=1/0;for(let S=0;S<m;S++){f(S),e.applyMask(S,u);const D=e.getPenaltyN1(u)+e.getPenaltyN2(u)+e.getPenaltyN3(u)+e.getPenaltyN4(u);e.applyMask(S,u),D<v&&(v=D,a=S)}return a}})(S7);var Bx={};const yu=Ux,Fx=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Vx=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Bx.getBlocksCount=function(t,r){switch(r){case yu.L:return Fx[(t-1)*4+0];case yu.M:return Fx[(t-1)*4+1];case yu.Q:return Fx[(t-1)*4+2];case yu.H:return Fx[(t-1)*4+3];default:return}},Bx.getTotalCodewordsCount=function(t,r){switch(r){case yu.L:return Vx[(t-1)*4+0];case yu.M:return Vx[(t-1)*4+1];case yu.Q:return Vx[(t-1)*4+2];case yu.H:return Vx[(t-1)*4+3];default:return}};var E7={},$x={};const a0=new Uint8Array(512),Qx=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)a0[r]=t,Qx[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)a0[r]=a0[r-255]})(),$x.log=function(t){if(t<1)throw new Error("log("+t+")");return Qx[t]},$x.exp=function(t){return a0[t]},$x.mul=function(t,r){return t===0||r===0?0:a0[Qx[t]+Qx[r]]},function(e){const t=$x;e.mul=function(s,u){const f=new Uint8Array(s.length+u.length-1);for(let m=0;m<s.length;m++)for(let a=0;a<u.length;a++)f[m+a]^=t.mul(s[m],u[a]);return f},e.mod=function(s,u){let f=new Uint8Array(s);for(;f.length-u.length>=0;){const m=f[0];for(let v=0;v<u.length;v++)f[v]^=t.mul(u[v],m);let a=0;for(;a<f.length&&f[a]===0;)a++;f=f.slice(a)}return f},e.generateECPolynomial=function(s){let u=new Uint8Array([1]);for(let f=0;f<s;f++)u=e.mul(u,new Uint8Array([1,t.exp(f)]));return u}}(E7);const D7=E7;function uT(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}uT.prototype.initialize=function(t){this.degree=t,this.genPoly=D7.generateECPolynomial(this.degree)},uT.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const s=D7.mod(r,this.genPoly),u=this.degree-s.length;if(u>0){const f=new Uint8Array(this.degree);return f.set(s,u),f}return s};var qle=uT,A7={},_u={},hT={};hT.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var hl={};const C7="[0-9]+",Kle="[A-Z $%*+\\-./:]+";let l0="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";l0=l0.replace(/u/g,"\\u");const Xle="(?:(?![A-Z0-9 $%*+\\-./:]|"+l0+`)(?:.|[\r
2195
+ (${h.data.width}, ${h.data.height})`)));const A=!(l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap);h.data.replace(T,A),this.style.updateImage(g,h)}hasImage(g){return g?!!this.style&&!!this.style.getImage(g):(this.fire(new a.a(new Error("Missing required image id"))),!1)}removeImage(g){this.style.removeImage(g)}loadImage(g,l){a.d(this._requestManager.transformRequest(g,a.R.Image),(h,y)=>{l(h,y instanceof HTMLImageElement?a.f.getImageData(y):y)})}listImages(){return this.style.listImages()}addModel(g,l){this._lazyInitEmptyStyle(),this.style.addModel(g,l)}hasModel(g){return g?this.style.hasModel(g):(this.fire(new a.a(new Error("Missing required model id"))),!1)}removeModel(g){this.style.removeModel(g)}listModels(){return this.style.listModels()}addLayer(g,l){return this._isValidId(g.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(g,l),this._update(!0)):this}getSlot(g){const l=this.getLayer(g);return l&&l.slot||null}setSlot(g,l){return this.style.setSlot(g,l),this.style.mergeLayers(),this._update(!0)}addImport(g,l){return this.style.addImport(g,l),this}updateImport(g,l){return typeof l!="string"&&l.id!==g?(this.removeImport(g),this.addImport(l)):(this.style.updateImport(g,l),this._update(!0))}removeImport(g){return this.style.removeImport(g),this}moveImport(g,l){return this.style.moveImport(g,l),this._update(!0)}moveLayer(g,l){return this._isValidId(g)?(this.style.moveLayer(g,l),this._update(!0)):this}removeLayer(g){return this._isValidId(g)?(this.style.removeLayer(g),this._update(!0)):this}getLayer(g){return this._isValidId(g)?this.style.getOwnLayer(g):null}setLayerZoomRange(g,l,h){return this._isValidId(g)?(this.style.setLayerZoomRange(g,l,h),this._update(!0)):this}setFilter(g,l,h={}){return this._isValidId(g)?(this.style.setFilter(g,l,h),this._update(!0)):this}getFilter(g){return this._isValidId(g)?this.style.getFilter(g):null}setPaintProperty(g,l,h,y={}){return this._isValidId(g)?(this.style.setPaintProperty(g,l,h,y),this._update(!0)):this}getPaintProperty(g,l){return this._isValidId(g)?this.style.getPaintProperty(g,l):null}setLayoutProperty(g,l,h,y={}){return this._isValidId(g)?(this.style.setLayoutProperty(g,l,h,y),this._update(!0)):this}getLayoutProperty(g,l){return this._isValidId(g)?this.style.getLayoutProperty(g,l):null}getConfigProperty(g,l){return this.style.getConfigProperty(g,l)}setConfigProperty(g,l,h){return this.style.setConfigProperty(g,l,h),this._update(!0)}setLights(g){if(this._lazyInitEmptyStyle(),g&&g.length===1&&g[0].type==="flat"){const l=g[0];l.properties?this.style.setFlatLight(l.properties,l.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(g),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const g=this.style.getLights()||[];return g.length===0&&g.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),g}setLight(g,l={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:g}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(g){return this._lazyInitEmptyStyle(),!g&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(g),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(g){return this._lazyInitEmptyStyle(),this.style.setFog(g),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setCamera(g){return this.style.setCamera(g),this._triggerCameraUpdate(g)}_triggerCameraUpdate(g){return this._update(this.transform.setOrthographicProjectionAtLowPitch(g["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(g){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(a.bn.convert(g),this.transform):0}setFeatureState(g,l){return this._isValidId(g.source)?(this.style.setFeatureState(g,l),this._update()):this}removeFeatureState(g,l){return this._isValidId(g.source)?(this.style.removeFeatureState(g,l),this._update()):this}getFeatureState(g){return this._isValidId(g.source)?this.style.getFeatureState(g):null}_updateContainerDimensions(){if(!this._container)return;const g=this._container.getBoundingClientRect().width||400,l=this._container.getBoundingClientRect().height||300;let h,y,x,M=this._container;for(;M&&(!y||!x);){const T=window.getComputedStyle(M).transform;T&&T!=="none"&&(h=T.match(/matrix.*\((.+)\)/)[1].split(", "),h[0]&&h[0]!=="0"&&h[0]!=="1"&&(y=h[0]),h[3]&&h[3]!=="0"&&h[3]!=="1"&&(x=h[3])),M=M.parentElement}this._containerWidth=y?Math.abs(g/y):g,this._containerHeight=x?Math.abs(l/x):l}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&a.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const g=this._container;g.classList.add("mapboxgl-map"),(this._missingCSSCanary=C("div","mapboxgl-canary",g)).style.visibility="hidden",this._detectMissingCSS();const l=this._canvasContainer=C("div","mapboxgl-canvas-container",g);this._canvas=C("canvas","mapboxgl-canvas",l),this._interactive&&(l.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const h=this._controlContainer=C("div","mapboxgl-control-container",g),y=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(x=>{y[x]=C("div",`mapboxgl-ctrl-${x}`,h)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(g,l){const h=a.f.devicePixelRatio||1;this._canvas.width=h*Math.ceil(g),this._canvas.height=h*Math.ceil(l),this._canvas.style.width=`${g}px`,this._canvas.style.height=`${l}px`}_addMarker(g){this._markers.push(g)}_removeMarker(g){const l=this._markers.indexOf(g);l!==-1&&this._markers.splice(l,1)}_addPopup(g){this._popups.push(g)}_removePopup(g){const l=this._popups.indexOf(g);l!==-1&&this._popups.splice(l,1)}_setupPainter(){const g=a.e({},S.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),l=this._canvas.getContext("webgl2",g);l?(a.db(l,!0),this.painter=new Qb(l,this._contextCreateOptions,this.transform,this._tp),this.on("data",h=>{h.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),a.dc.testSupport(l)):this.fire(new a.a(new Error("Failed to initialize WebGL")))}_contextLost(g){g.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new a.b("webglcontextlost",{originalEvent:g}))}_contextRestored(g){this._setupPainter(),this.resize(),this._update(),this.fire(new a.b("webglcontextrestored",{originalEvent:g}))}_onMapScroll(g){if(g.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(g){return this.style?(this._styleDirty=this._styleDirty||g,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(g){return this._update(),this._renderTaskQueue.add(g)}_cancelRenderFrame(g){this._renderTaskQueue.remove(g)}_requestDomTask(g){!this.loaded()||this.loaded()&&!this.isMoving()?g():this._domRenderTaskQueue.add(g)}_render(g){let l;this.fire(new a.b("renderstart"));const h=this.painter.context.extTimerQuery,y=a.f.now(),x=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(l=x.createQuery(),x.beginQuery(h.TIME_ELAPSED_EXT,l)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(g),this._domRenderTaskQueue.run(g),this._removed)return;this._updateProjectionTransition();const M=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const z=this.transform.zoom,j=this.transform.pitch,P=a.f.now(),B=new a.K(z,{now:P,fadeDuration:M,pitch:j,transition:this.style.transition});this.style.update(B)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let T=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),T=this._updateAverageElevation(y),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):T=this._updateAverageElevation(y),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,M,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries||this._debugParams.showTileBoundaries,showParseStatus:this.showParseStatus||this._debugParams.showParseStatus,wireframe:{terrain:this.showTerrainWireframe||this._debugParams.showTerrainWireframe,layers2D:this.showLayers2DWireframe||this._debugParams.showLayers2DWireframe,layers3D:this.showLayers3DWireframe||this._debugParams.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector||this._debugParams.showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs||this._debugParams.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:M,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding||this._debugParams.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new a.b("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new a.b("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),l){const z=a.f.now()-y;x.endQuery(h.TIME_ELAPSED_EXT),setTimeout(()=>{const j=x.getQueryParameter(l,x.QUERY_RESULT)/1e6;x.deleteQuery(l),this.fire(new a.b("gpu-timing-frame",{cpuTime:z,gpuTime:j}))},50)}if(this.listens("gpu-timing-layer")){const z=this.painter.collectGpuTimers();setTimeout(()=>{const j=this.painter.queryGpuTimers(z);this.fire(new a.b("gpu-timing-layer",{layerTimes:j}))},50)}if(this.listens("gpu-timing-deferred-render")){const z=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const j=this.painter.queryGpuTimeDeferredRender(z);this.fire(new a.b("gpu-timing-deferred-render",{gpuTime:j}))},50)}const A=this._sourcesDirty||this._styleDirty||this._placementDirty||T;if(A||this._repaint)this.triggerRepaint();else{const z=!this.isMoving()&&this.loaded();if(z&&(T=this._updateAverageElevation(y,!0)),T)this.triggerRepaint();else if(this._triggerFrame(!1),z&&(this.fire(new a.b("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const j=this._calculateSpeedIndex();this.fire(new a.b("speedindexcompleted",{speedIndex:j})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||A||(this._fullyLoaded=!0,this._performanceMetricsCollection&&a.dd(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(g){for(const l of this._markers)g&&!this.getRenderWorldCopies()&&(l._lngLat=l._lngLat.wrap()),l._update();for(const l of this._popups)!g||this.getRenderWorldCopies()||l._trackPointer||(l._lngLat=l._lngLat.wrap()),l._update()}_updateAverageElevation(g,l=!1){const h=x=>(this.transform.averageElevation=x,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&h(0);const y=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(y||(l||g-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(g)){const x=this.transform.averageElevation;let M=this.transform.sampleAverageElevation();this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(M)?M=0:this._averageElevationLastSampledAt=g;const T=Math.abs(x-M);if(T>1){if(this._isInitialLoad||y)return this._averageElevation.jumpTo(M),h(M);this._averageElevation.easeTo(M,g,300)}else if(T>1e-4)return this._averageElevation.jumpTo(M),h(M)}return!!this._averageElevation.isEasing(g)&&h(this._averageElevation.getValue(g))}_authenticate(){a.de(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,g=>{if(g&&(g.message===a.df||g.status===401)){const l=this.painter.context.gl;a.db(l,!1),this._logoControl instanceof tM&&this._logoControl._updateLogo(),l&&l.clear(l.DEPTH_BUFFER_BIT|l.COLOR_BUFFER_BIT|l.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new a.a(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),a.dg(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const g=this._isDragging();this.painter.updateTerrain(this.style,g)}_calculateSpeedIndex(){const g=this.painter.canvasCopy(),l=this.painter.getCanvasCopiesAndTimestamps();l.timeStamps.push(performance.now());const h=this.painter.context.gl,y=h.createFramebuffer();function x(M){h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,M,0);const T=new Uint8Array(h.drawingBufferWidth*h.drawingBufferHeight*4);return h.readPixels(0,0,h.drawingBufferWidth,h.drawingBufferHeight,h.RGBA,h.UNSIGNED_BYTE,T),T}return h.bindFramebuffer(h.FRAMEBUFFER,y),this._canvasPixelComparison(x(g),l.canvasCopies.map(x),l.timeStamps)}_canvasPixelComparison(g,l,h){let y=h[1]-h[0];const x=g.length/4;for(let M=0;M<l.length;M++){const T=l[M];let A=0;for(let z=0;z<T.length;z+=4)T[z]===g[z]&&T[z+1]===g[z+1]&&T[z+2]===g[z+2]&&T[z+3]===g[z+3]&&(A+=1);y+=(h[M+2]-h[M+1])*(1-A/x)}return y}remove(){this._hash&&this._hash.remove();for(const l of this._controls)l.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const g=this.painter.context.gl.getExtension("WEBGL_lose_context");g&&g.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),a.dh(this.painter.context.gl),a.di.remove(),a.dj.remove(),this._removed=!0,this.fire(new a.b("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(g){this._renderNextFrame=this._renderNextFrame||g,this.style&&!this._frame&&(this._frame=a.f.frame(l=>{const h=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,h&&this._render(l)}))}_preloadTiles(g){const l=this.style?Object.values(this.style._sourceCaches):[];return a.b1(l,(h,y)=>h._preloadTiles(g,y),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(g){this._trackResize&&this.resize({originalEvent:g})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(g){this._showTileBoundaries!==g&&(this._showTileBoundaries=g,this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(g){this._showParseStatus!==g&&(this._showParseStatus=g,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(g){this._showTerrainWireframe!==g&&(this._showTerrainWireframe=g,this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(g){this._showLayers2DWireframe!==g&&(this._showLayers2DWireframe=g,this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(g){this._showLayers3DWireframe!==g&&(this._showLayers3DWireframe=g,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(g){this._speedIndexTiming!==g&&(this._speedIndexTiming=g,this._update())}get showPadding(){return!!this._showPadding}set showPadding(g){this._showPadding!==g&&(this._showPadding=g,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(g){this._showCollisionBoxes!==g&&(this._showCollisionBoxes=g,g?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(g){this._showOverdrawInspector!==g&&(this._showOverdrawInspector=g,this._update())}get repaint(){return!!this._repaint}set repaint(g){this._repaint!==g&&(this._repaint=g,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(g){this._vertices=g,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(g){this._showTileAABBs!==g&&(this._showTileAABBs=g,g&&this._update())}_setCacheLimits(g,l){a.dl(g,l)}get version(){return a.dk}},NavigationControl:class{constructor(g){this.options=a.e({},Hp,g),this._container=C("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",l=>l.preventDefault()),this.options.showZoom&&(a.aY(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",l=>{this._map&&this._map.zoomIn({},{originalEvent:l})}),C("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",l=>{this._map&&this._map.zoomOut({},{originalEvent:l})}),C("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(a.aY(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",l=>{const h=this._map;h&&(this.options.visualizePitch?h.resetNorthPitch({},{originalEvent:l}):h.resetNorth({},{originalEvent:l}))}),this._compassIcon=C("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const g=this._map;if(!g)return;const l=g.getZoom(),h=l===g.getMaxZoom(),y=l===g.getMinZoom();this._zoomInButton.disabled=h,this._zoomOutButton.disabled=y,this._zoomInButton.setAttribute("aria-disabled",h.toString()),this._zoomOutButton.setAttribute("aria-disabled",y.toString())}_rotateCompassArrow(){const g=this._map;if(!g)return;const l=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(g.transform.pitch*(Math.PI/180)),.5)}) rotateX(${g.transform.pitch}deg) rotateZ(${g.transform.angle*(180/Math.PI)}deg)`:`rotate(${g.transform.angle*(180/Math.PI)}deg)`;g._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=l)})}onAdd(g){return this._map=g,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),g.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&g.on("pitch",this._rotateCompassArrow),g.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ra(g,this._compass,this.options.visualizePitch)),this._container}onRemove(){const g=this._map;g&&(this._container.remove(),this.options.showZoom&&g.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&g.off("pitch",this._rotateCompassArrow),g.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(g,l){const h=C("button",g,this._container);return h.type="button",h.addEventListener("click",l),h}_setButtonTitle(g,l){if(!this._map)return;const h=this._map._getUIString(`NavigationControl.${l}`);g.setAttribute("aria-label",h),g.firstElementChild&&g.firstElementChild.setAttribute("title",h)}},GeolocateControl:class extends a.E{constructor(g){super();const l=navigator.geolocation;this.options=a.e({geolocation:l},Yp,g),a.aY(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=fd(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(g){return this._map=g,this._container=C("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(g){const l=(h=!!this.options.geolocation)=>{this._supportsGeolocation=h,g(h)};this._supportsGeolocation!==void 0?g(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(h=>l(h.state!=="denied")).catch(()=>l()):l()}_isOutOfMapMaxBounds(g){const l=this._map.getMaxBounds(),h=g.coords;return!!l&&(h.longitude<l.getWest()||h.longitude>l.getEast()||h.latitude<l.getSouth()||h.latitude>l.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(g){if(this._map){if(this._isOutOfMapMaxBounds(g))return this._setErrorState(),this.fire(new a.b("outofmaxbounds",g)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=g,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(g),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(g),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new a.b("geolocate",g)),this._finish()}}_updateCamera(g){const l=new a.bn(g.coords.longitude,g.coords.latitude),h=g.coords.accuracy,y=this._map.getBearing(),x=a.e({bearing:y},this.options.fitBoundsOptions);this._map.fitBounds(l.toBounds(h),x,{geolocateSource:!0})}_updateMarker(g){if(g){const l=new a.bn(g.coords.longitude,g.coords.latitude);this._accuracyCircleMarker.setLngLat(l).addTo(this._map),this._userLocationDotMarker.setLngLat(l).addTo(this._map),this._accuracy=g.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const g=this._map.transform,l=a.bl(1,g._center.lat)*g.worldSize,h=Math.ceil(2*this._accuracy*l);this._circleElement.style.width=`${h}px`,this._circleElement.style.height=`${h}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(g){if(this._map){if(this.options.trackUserLocation)if(g.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(g.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new a.b("error",g)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(g){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",l=>l.preventDefault()),this._geolocateButton=C("button","mapboxgl-ctrl-geolocate",this._container),C("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",g===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}else{const l=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=C("div","mapboxgl-user-location"),this._dotElement.appendChild(C("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(C("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new U1({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=C("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new U1({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",l=>{l.geolocateSource||this._watchState!=="ACTIVE_LOCK"||l.originalEvent&&l.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new a.b("trackuserlocationend")))})}}_onDeviceOrientation(g){this._userLocationDotMarker&&(g.webkitCompassHeading?this._heading=g.webkitCompassHeading:g.absolute===!0&&(this._heading=-1*g.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return a.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.b("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.b("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.b("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let g;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(g={maximumAge:6e5,timeout:0},this._noTimeout=!0):(g=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,g),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const g=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(l=>{l==="granted"&&g()}).catch(console.error):g()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:P1,ScaleControl:class{constructor(g){this.options=a.e({},Co,g),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),a.aY(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const g=this.options.maxWidth||100,l=this._map,h=l._containerHeight/2,y=l._containerWidth/2-g/2,x=l.unproject([y,h]),M=l.unproject([y+g,h]),T=x.distanceTo(M);if(this.options.unit==="imperial"){const A=3.2808*T;A>5280?this._setScale(g,A/5280,"mile"):this._setScale(g,A,"foot")}else this.options.unit==="nautical"?this._setScale(g,T/1852,"nautical-mile"):T>=1e3?this._setScale(g,T/1e3,"kilometer"):this._setScale(g,T,"meter")}_setScale(g,l,h){this._map._requestDomTask(()=>{const y=function(M){const T=Math.pow(10,`${Math.floor(M)}`.length-1);let A=M/T;return A=A>=10?10:A>=5?5:A>=3?3:A>=2?2:A>=1?1:function(z){const j=Math.pow(10,Math.ceil(-Math.log(z)/Math.LN10));return Math.round(z*j)/j}(A),T*A}(l),x=y/l;this._container.innerHTML=this._isNumberFormatSupported&&h!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:h}).format(y):`${y}&nbsp;${zl[h]}`,this._container.style.width=g*x+"px"})}onAdd(g){return this._map=g,this._language=g.getLanguage(),this._container=C("div","mapboxgl-ctrl mapboxgl-ctrl-scale",g.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(g){this._language=g,this._update()}setUnit(g){this.options.unit=g,this._update()}},FullscreenControl:class{constructor(g){this._fullscreen=!1,g&&g.container&&(g.container instanceof HTMLElement?this._container=g.container:a.w("Full screen control 'container' must be a DOM element.")),a.aY(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(g){return this._map=g,this._container||(this._container=this._map.getContainer()),this._controlContainer=C("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const g=this._fullscreenButton=C("button","mapboxgl-ctrl-fullscreen",this._controlContainer);C("span","mapboxgl-ctrl-icon",g).setAttribute("aria-hidden","true"),g.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const g=this._getTitle();this._fullscreenButton.setAttribute("aria-label",g),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",g)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends a.E{constructor(g){super(),this.options=a.e(Object.create(iM),g),a.aY(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(g&&g.className?g.className.trim().split(/\s+/):[])}addTo(g){return this._map&&this.remove(),this._map=g,this.options.closeOnClick&&g.on("preclick",this._onClose),this.options.closeOnMove&&g.on("move",this._onClose),g.on("remove",this.remove),this._update(),g._addPopup(this),this._focusFirstElement(),this._trackPointer?(g.on("mousemove",this._onMouseEvent),g.on("mouseup",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")):g.on("move",this._update),this.fire(new a.b("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const g=this._map;return g&&(g.off("move",this._update),g.off("move",this._onClose),g.off("preclick",this._onClose),g.off("click",this._onClose),g.off("remove",this.remove),g.off("mousemove",this._onMouseEvent),g.off("mouseup",this._onMouseEvent),g.off("drag",this._onMouseEvent),g._canvasContainer&&g._canvasContainer.classList.remove("mapboxgl-track-pointer"),g._removePopup(this),this._map=void 0),this.fire(new a.b("close")),this}getLngLat(){return this._lngLat}setLngLat(g){this._lngLat=a.bn.convert(g),this._pos=null,this._trackPointer=!1,this._update();const l=this._map;return l&&(l.on("move",this._update),l.off("mousemove",this._onMouseEvent),l._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const g=this._map;return g&&(g.off("move",this._update),g.on("mousemove",this._onMouseEvent),g.on("drag",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(g){return this.setDOMContent(document.createTextNode(g))}setHTML(g){const l=document.createDocumentFragment(),h=document.createElement("body");let y;for(h.innerHTML=g;y=h.firstChild,y;)l.appendChild(y);return this.setDOMContent(l)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(g){return this.options.maxWidth=g,this._update(),this}setDOMContent(g){let l=this._content;if(l)for(;l.hasChildNodes();)l.firstChild&&l.removeChild(l.firstChild);else l=this._content=C("div","mapboxgl-popup-content",this._container||void 0);if(l.appendChild(g),this.options.closeButton){const h=this._closeButton=C("button","mapboxgl-popup-close-button",l);h.type="button",h.setAttribute("aria-label","Close popup"),h.setAttribute("aria-hidden","true"),h.innerHTML="&#215;",h.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(g){return this._classList.add(g),this._updateClassList(),this}removeClassName(g){return this._classList.delete(g),this._updateClassList(),this}setOffset(g){return this.options.offset=g,this._update(),this}toggleClassName(g){let l;return this._classList.delete(g)?l=!1:(this._classList.add(g),l=!0),this._updateClassList(),l}_onMouseEvent(g){this._update(g.point)}_getAnchor(g){if(this.options.anchor)return this.options.anchor;const l=this._map,h=this._container,y=this._pos;if(!l||!h||!y)return"bottom";const x=h.offsetWidth,M=h.offsetHeight,T=y.x<x/2,A=y.x>l.transform.width-x/2;if(y.y+g<M)return T?"top-left":A?"top-right":"top";if(y.y>l.transform.height-M){if(T)return"bottom-left";if(A)return"bottom-right"}return T?"left":A?"right":"bottom"}_updateClassList(){const g=this._container;if(!g)return;const l=[...this._classList];l.push("mapboxgl-popup"),this._anchor&&l.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&l.push("mapboxgl-popup-track-pointer"),g.className=l.join(" ")}_update(g){const l=this._map,h=this._content;if(!l||!this._lngLat&&!this._trackPointer||!h)return;let y=this._container;if(y||(y=this._container=C("div","mapboxgl-popup",l.getContainer()),this._tip=C("div","mapboxgl-popup-tip",y),y.appendChild(h)),this.options.maxWidth&&y.style.maxWidth!==this.options.maxWidth&&(y.style.maxWidth=this.options.maxWidth),l.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Id(this._lngLat,this._pos,l.transform)),!this._trackPointer||g){const x=this._pos=this._trackPointer&&g?g:l.project(this._lngLat),M=oM(this.options.offset),T=this._anchor=this._getAnchor(M.y),A=oM(this.options.offset,T),z=x.add(A).round();l._requestDomTask(()=>{this._container&&T&&(this._container.style.transform=`${Qp[T]} translate(${z.x}px,${z.y}px)`)})}if(!this._marker&&l._showingGlobe()){const x=a.d6(l.transform,this._lngLat)?0:1;this._setOpacity(x)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const g=this._container.querySelector(rM);g&&g.focus()}_onClose(){this.remove()}_setOpacity(g){this._container&&(this._container.style.opacity=`${g}`),this._content&&(this._content.style.pointerEvents=g?"auto":"none")}},Marker:U1,Style:Gs,LngLat:a.bn,LngLatBounds:a.ad,Point:a.P,MercatorCoordinate:a.L,FreeCameraOptions:qh,Evented:a.E,config:a.d5,prewarm:a.dp,clearPrewarmedResources:a.dq,get accessToken(){return a.d5.ACCESS_TOKEN},set accessToken(g){a.d5.ACCESS_TOKEN=g},get baseApiUrl(){return a.d5.API_URL},set baseApiUrl(g){a.d5.API_URL=g},get workerCount(){return a.dr.workerCount},set workerCount(g){a.dr.workerCount=g},get maxParallelImageRequests(){return a.d5.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){a.d5.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage(g){a.ds(g)},get workerUrl(){return a.dt.workerUrl},set workerUrl(g){a.dt.workerUrl=g},get workerClass(){return a.dt.workerClass},set workerClass(g){a.dt.workerClass=g},get workerParams(){return a.dt.workerParams},set workerParams(g){a.dt.workerParams=g},get dracoUrl(){return a.du()},set dracoUrl(g){a.dv(g)},get meshoptUrl(){return a.dw()},set meshoptUrl(g){a.dx(g)},setNow:a.f.setNow,restoreNow:a.f.restoreNow}});var m=u;return m})})(EO);var Eae=EO.exports;const DO=Rd(Eae),J_e="",eve="",Kg=ui({key:"mapboxAccessToken",default:null});let Sx;const Dae=new Uint8Array(16);function Aae(){if(!Sx&&(Sx=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sx))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sx(Dae)}const jo=[];for(let e=0;e<256;++e)jo.push((e+256).toString(16).slice(1));function Cae(e,t=0){return jo[e[t+0]]+jo[e[t+1]]+jo[e[t+2]]+jo[e[t+3]]+"-"+jo[e[t+4]]+jo[e[t+5]]+"-"+jo[e[t+6]]+jo[e[t+7]]+"-"+jo[e[t+8]]+jo[e[t+9]]+"-"+jo[e[t+10]]+jo[e[t+11]]+jo[e[t+12]]+jo[e[t+13]]+jo[e[t+14]]+jo[e[t+15]]}const AO={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nae(e,t,r){if(AO.randomUUID&&!t&&!e)return AO.randomUUID();e=e||{};const s=e.random||(e.rng||Aae)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){r=r||0;for(let u=0;u<16;++u)t[r+u]=s[u];return t}return Cae(s)}const CO=ui({key:"miTransitionLevel",default:void 0});function Lae({onMapView:e,onPositionControl:t}){const r=on(Kg),[s,u]=Oe.useState(),[f,m]=Oe.useState(!1),[a,v]=Oe.useState(!1),[S,D]=Oe.useState(!1),N=on(bs),C=on(Aa),O=on(Wg),R=on(qg),V=oc(),q=on(CO);return Oe.useEffect(()=>{window.mapboxgl=DO;const H={accessToken:r,element:document.getElementById("map"),bearing:isNaN(parseInt(O))?0:parseInt(O),pitch:isNaN(parseInt(R))?0:parseInt(R)};q&&!isNaN(parseInt(q))&&(H.mapsIndoorsTransitionLevel=parseInt(q));const Y=new window.mapsindoors.mapView.MapboxV3View(H);u(Y);const W=new window.mapsindoors.directions.MapboxProvider(r);e(Y,W);const ee=Nae();sessionStorage.setItem("mapboxPlacesSessionToken",ee)},[]),Oe.useEffect(()=>{if(N&&s&&!a){const H=document.createElement("mi-my-position");H.mapsindoors=N,s.getMap().addControl({onAdd:()=>H,onRemove:function(){}},"top-right"),v(!0),t(H)}if(N&&s&&!S&&V&&(s.getMap().addControl(new DO.NavigationControl({showCompass:!1}),"top-right"),D(!0)),N&&s&&!f){const H=document.createElement("mi-floor-selector");H.mapsindoors=N,H.primaryColor=C,s.getMap().addControl({onAdd:()=>H,onRemove:function(){H.parentNode.removeChild(H)}},"top-right"),m(!0)}},[N,s,f,a,S]),Je.jsx("div",{className:"map-container",id:"map","data-sentry-component":"MapboxMap","data-sentry-source-file":"MapboxMap.jsx"})}const Ex=ui({key:"userPosition",default:null}),kI=ui({key:"directionsService",default:null}),OI=ui({key:"mapType",default:void 0}),jI=ui({key:"apiKey",default:null}),Dx=ui({key:"filteredLocations",default:void 0}),Ax=ui({key:"filteredLocationsByExternalID",default:void 0}),NO=ui({key:"tileStyle",default:null}),LO=ui({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),RI=ui({key:"solution",default:null,dangerouslyAllowMutability:!0}),PI=ui({key:"notificationMessage",default:null});var Ms=63710088e-1,zae={centimeters:Ms*100,centimetres:Ms*100,degrees:Ms/111325,feet:Ms*3.28084,inches:Ms*39.37,kilometers:Ms/1e3,kilometres:Ms/1e3,meters:Ms,metres:Ms,miles:Ms/1609.344,millimeters:Ms*1e3,millimetres:Ms*1e3,nauticalmiles:Ms/1852,radians:1,yards:Ms*1.0936};function zO(e,t,r){r===void 0&&(r={});var s={type:"Feature"};return(r.id===0||r.id)&&(s.id=r.id),r.bbox&&(s.bbox=r.bbox),s.properties=t||{},s.geometry=e,s}function kae(e,t,r){if(r===void 0&&(r={}),!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(!OO(e[0])||!OO(e[1]))throw new Error("coordinates must contain numbers");var s={type:"Point",coordinates:e};return zO(s,t,r)}function Oae(e,t,r){r===void 0&&(r={});for(var s=0,u=e;s<u.length;s++){var f=u[s];if(f.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var m=0;m<f[f.length-1].length;m++)if(f[f.length-1][m]!==f[0][m])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return zO(a,t,r)}function jae(e,t){t===void 0&&(t="kilometers");var r=zae[t];if(!r)throw new Error(t+" units is invalid");return e/r}function kO(e){var t=e%(2*Math.PI);return t*180/Math.PI}function UI(e){var t=e%360;return t*Math.PI/180}function OO(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function jO(e,t,r){if(e!==null)for(var s,u,f,m,a,v,S,D=0,N=0,C,O=e.type,R=O==="FeatureCollection",V=O==="Feature",q=R?e.features.length:1,H=0;H<q;H++){S=R?e.features[H].geometry:V?e.geometry:e,C=S?S.type==="GeometryCollection":!1,a=C?S.geometries.length:1;for(var Y=0;Y<a;Y++){var W=0,ee=0;if(m=C?S.geometries[Y]:S,m!==null){v=m.coordinates;var fe=m.type;switch(D=r&&(fe==="Polygon"||fe==="MultiPolygon")?1:0,fe){case null:break;case"Point":if(t(v,N,H,W,ee)===!1)return!1;N++,W++;break;case"LineString":case"MultiPoint":for(s=0;s<v.length;s++){if(t(v[s],N,H,W,ee)===!1)return!1;N++,fe==="MultiPoint"&&W++}fe==="LineString"&&W++;break;case"Polygon":case"MultiLineString":for(s=0;s<v.length;s++){for(u=0;u<v[s].length-D;u++){if(t(v[s][u],N,H,W,ee)===!1)return!1;N++}fe==="MultiLineString"&&W++,fe==="Polygon"&&ee++}fe==="Polygon"&&W++;break;case"MultiPolygon":for(s=0;s<v.length;s++){for(ee=0,u=0;u<v[s].length;u++){for(f=0;f<v[s][u].length-D;f++){if(t(v[s][u][f],N,H,W,ee)===!1)return!1;N++}ee++}W++}break;case"GeometryCollection":for(s=0;s<m.geometries.length;s++)if(jO(m.geometries[s],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Cx(e){var t=[1/0,1/0,-1/0,-1/0];return jO(e,function(r){t[0]>r[0]&&(t[0]=r[0]),t[1]>r[1]&&(t[1]=r[1]),t[2]<r[0]&&(t[2]=r[0]),t[3]<r[1]&&(t[3]=r[1])}),t}Cx.default=Cx;function Rae(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Pae(e,t,r,s){s===void 0&&(s={});var u=Rae(e),f=UI(u[0]),m=UI(u[1]),a=UI(r),v=jae(t,s.units),S=Math.asin(Math.sin(m)*Math.cos(v)+Math.cos(m)*Math.sin(v)*Math.cos(a)),D=f+Math.atan2(Math.sin(a)*Math.sin(v)*Math.cos(m),Math.cos(v)-Math.sin(m)*Math.sin(S)),N=kO(D),C=kO(S);return kae([N,C],s.properties)}function Uae(e,t,r){r===void 0&&(r={});for(var s=r.steps||64,u=r.properties?r.properties:!Array.isArray(e)&&e.type==="Feature"&&e.properties?e.properties:{},f=[],m=0;m<s;m++)f.push(Pae(e,t,m*-360/s,r).geometry.coordinates);return f.push(f[0]),Oae([f],u)}function RO(e){return(e==null?void 0:e.type)==="Point"?Cx(Uae(e,5,{units:"meters",steps:4})):Cx(e)}function BI(){return new Promise(e=>{const t=document.querySelector(".modal--open"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-(t==null?void 0:t.offsetTop));else{const s=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(s.disconnect(),e(r.offsetHeight-(u==null?void 0:u.offsetTop)))});s.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Xg=ui({key:"categories",default:[]}),Oh=ui({key:"currentVenueName",default:null}),PO=ui({key:"kioskOriginLocationId",default:void 0}),Nx=ui({key:"locationId",default:void 0}),UO=ui({key:"startZoomLevel",default:null}),FI=ui({key:"venues",default:[]}),BO=ui({key:"venue",default:void 0});function FO(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-t.offsetTop);else{const s=new MutationObserver(()=>{const u=document.querySelector(".sheet--active");u&&(s.disconnect(),e(r.offsetHeight-u.offsetTop))});s.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function VI(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const r=new MutationObserver(()=>{const s=document.querySelector(".modal--open");s&&(r.disconnect(),e((s==null?void 0:s.offsetWidth)+(s==null?void 0:s.offsetLeft)*2))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const $I=ui({key:"isMapReady",default:!1}),VO=ui({key:"timeout",default:void 0});function $O(){const[e,t]=Oe.useState(!1),r=on($I),s=on(VO);return Oe.useEffect(()=>{if(!r||!s)return;let u;const f=a=>{t(!1),window.clearTimeout(u),u=window.setTimeout(m,s*1e3)},m=()=>{t(!0)};return u=window.setTimeout(m,s*1e3),window.addEventListener("mousemove",f),window.addEventListener("mousedown",f),window.addEventListener("resize",f),window.addEventListener("keydown",f),window.addEventListener("touchstart",f),window.addEventListener("wheel",f),()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mousedown",f),window.removeEventListener("resize",f),window.removeEventListener("keydown",f),window.removeEventListener("touchstart",f),window.removeEventListener("wheel",f),window.clearTimeout(u)}},[s,r]),e}const Bae="MI-MAP-TEMPLATE-LAST-VENUE",QI=()=>{const[,e]=zn(Oh);return t=>{window.localStorage.removeItem(Bae),e(t)}},QO="MI-MAP-TEMPLATE-LAST-VENUE",Fae=()=>{const[e,t]=Oe.useState(!1),[r,s]=Oe.useState(),u=oc(),f=$O(),m=on(Wg),a=on(Xg),v=on(PO),S=on(Nx),D=on(OI),N=on(bs),C=on(qg),O=on(UO),R=on(Oh),V=on(BO),q=on(FI),H=QI(),[Y,W]=Oe.useState(!1);Oe.useEffect(()=>{f&&ee(V)},[f]),Oe.useEffect(()=>{ee()},[N,V,q,S,v,C,m,O,a]);function ee(pe){if(N&&q.length){pe&&H(pe);const he=Vae(pe||R,q);window.localStorage.setItem(QO,he.name),t(!0),v&&u?window.mapsindoors.services.LocationsService.getLocation(v).then(oe=>{if(oe){const Ve=oe.properties.floor;N.setFloor(Ve),fe(oe),BI().then(De=>{s(he),Lx(D,oe.geometry,N,De,0,O,C,m)})}}):S?window.mapsindoors.services.LocationsService.getLocation(S).then(oe=>{if(oe){const Ve=oe.properties.floor;N.setFloor(Ve),u?VI().then(De=>{s(he),Lx(D,oe.geometry,N,0,De,O,C,m)}):FO().then(De=>{s(he),Lx(D,oe.geometry,N,De,0,O,C,m)})}}):R&&(s(he),Lx(D,he.geometry,N,0,0,O,C,m))}}function fe(pe){if(Y)return;const he=N.getDisplayRule(pe);he.visible=!0,he.iconSize={width:he.iconSize.width*2,height:he.iconSize.height*2},he.iconVisible=!0,he.zoomFrom=0,he.zoomTo=999,he.clickable=!1,N.setDisplayRule(pe.id,he),W(!0)}return[e,r]};function Vae(e,t){if(t.length===0)return;if(t.length===1)return t[0];const r=window.localStorage.getItem(QO);if(r){const s=t.find(u=>u.name===r);if(s)return s}if(e){const s=t.find(u=>u.name===e);if(s)return s}return[...t].sort(function(s,u){return s.name>u.name?1:u.name>s.name?-1:0})[0]}function Lx(e,t,r,s,u,f,m,a){let v;t.coordinates&&t.type?v=RO(t):t.west&&t.south&&(v=[t.west,t.south,t.east,t.north]),e===ls.Google?Qae(v,r,s,u,f,m,a):e===ls.Mapbox&&$ae(v,r,s,u,f,m,a)}function $ae(e,t,r,s,u,f,m){t.getMap().fitBounds(e,{pitch:f||0,bearing:m||0,animate:!1,padding:{top:0,right:0,bottom:r,left:s}}),u&&t.setZoom(u)}function Qae(e,t,r,s,u,f,m){let a={west:e[0],south:e[1],east:e[2],north:e[3]};t.getMapView().fitBounds(a,{top:0,right:0,bottom:r,left:s}),u&&t.setZoom(parseInt(u)),isNaN(parseInt(f))||t.getMapView().tilt(parseInt(f)),isNaN(parseInt(m))||t.getMapView().rotate(parseInt(m))}let HI;function Hae({onLocationClick:e,onVenueChangedOnMap:t,useMapProviderModule:r,onMapPositionKnown:s}){const u=on(jI),f=on(Tx),m=on(Kg),[a,v]=zn(OI),[S,D]=zn(bs),[,N]=zn(Ex),[,C]=zn(kI),O=on(Dx),R=on(Ax),V=on(NO),q=on(Wg),H=on(qg),[,Y]=zn(LO),W=on(RI),[,ee]=zn(PI),[,fe]=zn(Oh);wae(u);const[pe,he]=Fae();Oe.useEffect(()=>{if(!W||f===null&&m===null)return;let Ge;const it=W.modules.map(Ee=>Ee.toLowerCase()).includes("mapbox");r?it?m&&(Ge=ls.Mapbox):f&&(Ge=ls.Google):m?Ge=ls.Mapbox:Ge=ls.Google,Ge?v(Ge):(ee({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),v(void 0))},[f,m,W]),Oe.useEffect(()=>{pe&&s()},[pe]),Oe.useEffect(()=>{he&&(fe(he.name),t(he))},[he]),Oe.useEffect(()=>{S&&(O?S.highlight?S.highlight(O.map(Ge=>Ge.id)):S.filter&&S.filter(O.map(Ge=>Ge.id)):R&&(S.highlight?S.highlight(R.map(Ge=>Ge.id)):S.filter&&S.filter(R.map(Ge=>Ge.id))))},[O,R,S]),Oe.useEffect(()=>{S&&(isNaN(parseInt(H))||S.getMapView().tilt(parseInt(H)),isNaN(parseInt(q))||S.getMapView().rotate(parseInt(q)))},[q,H,S]);const oe=Ge=>{Ve(Ge)},Ve=Ge=>{if(Ge&&HI){let it=Ge.getTileURL();if(it){it=Ge.getTileURL().replace("default",HI);const Ee=it==null?void 0:it.replace("{floor}",Ge.getFloor());Ge.getMapView().setMapsIndoorsTileURL(Ee)}}},De=async(Ge,it)=>{const Ee=new window.mapsindoors.MapsIndoors({mapView:Ge});Ee.on("mouseenter",()=>{var Le;const ze=Ee.getHoveredLocation();((Le=ze==null?void 0:ze.properties.locationSettings)==null?void 0:Le.selectable)===!1&&Ee.unhoverLocation()}),Ee.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Ee.on("click",ze=>e(ze)),Ee.once("building_changed",()=>oe(Ee)),Ee.on("floor_changed",()=>Ve(Ee)),D(Ee);const Ze=new window.mapsindoors.services.DirectionsService(it);C(Ze)},Ae=Ge=>{Ge.nodeName==="MI-MY-POSITION"?Ge.addEventListener("position_received",it=>{it.detail.accurate===!0&&N(it.detail.position)}):Ge.on("position_received",it=>{it.accurate===!0&&N(it.position)}),Y(Ge)};return Oe.useEffect(()=>{HI=V||"default",Ve(S)},[V]),Je.jsxs(Je.Fragment,{children:[a===ls.Google&&Je.jsx(Sae,{onMapView:De,onPositionControl:Ae}),a===ls.Mapbox&&Je.jsx(Lae,{onMapView:De,onPositionControl:Ae})]})}const nve="",YI=ui({key:"logo",default:void 0});function Yae(){const e=on(Aa),t=on(YI);return Je.jsx("div",{className:"splash-screen","data-sentry-component":"SplashScreen","data-sentry-source-file":"SplashScreen.jsx",children:Je.jsxs("div",{className:"splash-screen__container",children:[Je.jsx("img",{className:"splash-screen__logo",src:t,alt:"logo"}),Je.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}const Gae=mJ(Yae,{name:"SplashScreen"});function HO(e,t){if(e==null)return{};var r={},s=Object.keys(e),u,f;for(f=0;f<s.length;f++)u=s[f],!(t.indexOf(u)>=0)&&(r[u]=e[u]);return r}function GI(e,t){return GI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,u){return s.__proto__=u,s},GI(e,t)}function YO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,GI(e,t)}function Zae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Wae(e,t){e.classList?e.classList.add(t):Zae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function qae(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GO(e.className,t):e.setAttribute("class",GO(e.className&&e.className.baseVal||"",t))}const ZO={disabled:!1},WO=Vi.createContext(null);var qO=function(t){return t.scrollTop},Jg="unmounted",jh="exited",Rh="entering",Jf="entered",ZI="exiting",sc=function(e){YO(t,e);function t(s,u){var f;f=e.call(this,s,u)||this;var m=u,a=m&&!m.isMounting?s.enter:s.appear,v;return f.appearStatus=null,s.in?a?(v=jh,f.appearStatus=Rh):v=Jf:s.unmountOnExit||s.mountOnEnter?v=Jg:v=jh,f.state={status:v},f.nextCallback=null,f}t.getDerivedStateFromProps=function(u,f){var m=u.in;return m&&f.status===Jg?{status:jh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(u){var f=null;if(u!==this.props){var m=this.state.status;this.props.in?m!==Rh&&m!==Jf&&(f=Rh):(m===Rh||m===Jf)&&(f=ZI)}this.updateStatus(!1,f)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var u=this.props.timeout,f,m,a;return f=m=a=u,u!=null&&typeof u!="number"&&(f=u.exit,m=u.enter,a=u.appear!==void 0?u.appear:m),{exit:f,enter:m,appear:a}},r.updateStatus=function(u,f){if(u===void 0&&(u=!1),f!==null)if(this.cancelNextCallback(),f===Rh){if(this.props.unmountOnExit||this.props.mountOnEnter){var m=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this);m&&qO(m)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===jh&&this.setState({status:Jg})},r.performEnter=function(u){var f=this,m=this.props.enter,a=this.context?this.context.isMounting:u,v=this.props.nodeRef?[a]:[og.findDOMNode(this),a],S=v[0],D=v[1],N=this.getTimeouts(),C=a?N.appear:N.enter;if(!u&&!m||ZO.disabled){this.safeSetState({status:Jf},function(){f.props.onEntered(S)});return}this.props.onEnter(S,D),this.safeSetState({status:Rh},function(){f.props.onEntering(S,D),f.onTransitionEnd(C,function(){f.safeSetState({status:Jf},function(){f.props.onEntered(S,D)})})})},r.performExit=function(){var u=this,f=this.props.exit,m=this.getTimeouts(),a=this.props.nodeRef?void 0:og.findDOMNode(this);if(!f||ZO.disabled){this.safeSetState({status:jh},function(){u.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ZI},function(){u.props.onExiting(a),u.onTransitionEnd(m.exit,function(){u.safeSetState({status:jh},function(){u.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(u,f){f=this.setNextCallback(f),this.setState(u,f)},r.setNextCallback=function(u){var f=this,m=!0;return this.nextCallback=function(a){m&&(m=!1,f.nextCallback=null,u(a))},this.nextCallback.cancel=function(){m=!1},this.nextCallback},r.onTransitionEnd=function(u,f){this.setNextCallback(f);var m=this.props.nodeRef?this.props.nodeRef.current:og.findDOMNode(this),a=u==null&&!this.props.addEndListener;if(!m||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[m,this.nextCallback],S=v[0],D=v[1];this.props.addEndListener(S,D)}u!=null&&setTimeout(this.nextCallback,u)},r.render=function(){var u=this.state.status;if(u===Jg)return null;var f=this.props,m=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var a=HO(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Vi.createElement(WO.Provider,{value:null},typeof m=="function"?m(u,a):Vi.cloneElement(Vi.Children.only(m),a))},t}(Vi.Component);sc.contextType=WO,sc.propTypes={};function ep(){}sc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ep,onEntering:ep,onEntered:ep,onExit:ep,onExiting:ep,onExited:ep},sc.UNMOUNTED=Jg,sc.EXITED=jh,sc.ENTERING=Rh,sc.ENTERED=Jf,sc.EXITING=ZI;const Kae=sc;var Xae=function(t,r){return t&&r&&r.split(" ").forEach(function(s){return Wae(t,s)})},WI=function(t,r){return t&&r&&r.split(" ").forEach(function(s){return qae(t,s)})},qI=function(e){YO(t,e);function t(){for(var s,u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];return s=e.call.apply(e,[this].concat(f))||this,s.appliedClasses={appear:{},enter:{},exit:{}},s.onEnter=function(a,v){var S=s.resolveArguments(a,v),D=S[0],N=S[1];s.removeClasses(D,"exit"),s.addClass(D,N?"appear":"enter","base"),s.props.onEnter&&s.props.onEnter(a,v)},s.onEntering=function(a,v){var S=s.resolveArguments(a,v),D=S[0],N=S[1],C=N?"appear":"enter";s.addClass(D,C,"active"),s.props.onEntering&&s.props.onEntering(a,v)},s.onEntered=function(a,v){var S=s.resolveArguments(a,v),D=S[0],N=S[1],C=N?"appear":"enter";s.removeClasses(D,C),s.addClass(D,C,"done"),s.props.onEntered&&s.props.onEntered(a,v)},s.onExit=function(a){var v=s.resolveArguments(a),S=v[0];s.removeClasses(S,"appear"),s.removeClasses(S,"enter"),s.addClass(S,"exit","base"),s.props.onExit&&s.props.onExit(a)},s.onExiting=function(a){var v=s.resolveArguments(a),S=v[0];s.addClass(S,"exit","active"),s.props.onExiting&&s.props.onExiting(a)},s.onExited=function(a){var v=s.resolveArguments(a),S=v[0];s.removeClasses(S,"exit"),s.addClass(S,"exit","done"),s.props.onExited&&s.props.onExited(a)},s.resolveArguments=function(a,v){return s.props.nodeRef?[s.props.nodeRef.current,a]:[a,v]},s.getClassNames=function(a){var v=s.props.classNames,S=typeof v=="string",D=S&&v?v+"-":"",N=S?""+D+a:v[a],C=S?N+"-active":v[a+"Active"],O=S?N+"-done":v[a+"Done"];return{baseClassName:N,activeClassName:C,doneClassName:O}},s}var r=t.prototype;return r.addClass=function(u,f,m){var a=this.getClassNames(f)[m+"ClassName"],v=this.getClassNames("enter"),S=v.doneClassName;f==="appear"&&m==="done"&&S&&(a+=" "+S),m==="active"&&u&&qO(u),a&&(this.appliedClasses[f][m]=a,Xae(u,a))},r.removeClasses=function(u,f){var m=this.appliedClasses[f],a=m.base,v=m.active,S=m.done;this.appliedClasses[f]={},a&&WI(u,a),v&&WI(u,v),S&&WI(u,S)},r.render=function(){var u=this.props;u.classNames;var f=HO(u,["classNames"]);return Vi.createElement(Kae,NI({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Vi.Component);qI.defaultProps={classNames:""},qI.propTypes={};const Jae=qI,ive="",ele=e=>Oe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),zx=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Oe.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),rve="";function tle({venue:e,isCurrent:t,onVenueClicked:r}){const{t:s}=ua(),[u,f]=Oe.useState({});return Oe.useEffect(()=>{const m={};e.image&&(m.backgroundImage=`url('${e.image}')`),f(m)},[e]),Je.jsxs("button",{className:"venue",onClick:()=>r(),"data-sentry-component":"Venue","data-sentry-source-file":"Venue.jsx",children:[Je.jsx("div",{className:"venue__image",style:u}),Je.jsxs("div",{className:"venue__content",children:[Je.jsx("div",{children:e.venueInfo.name}),t&&Je.jsx("div",{className:"venue__current",children:s("Current")})]})]})}const KI=ui({key:"isLocationClicked",default:!1});function KO(e,t,r,s,u,f,m){const a=RO(e.geometry);let v={west:a[0],south:a[1],east:a[2],north:a[3]};t.getMapView().fitBounds(v,{top:0,right:0,bottom:r,left:s}).then(()=>{u&&t.setZoom(parseInt(u)),isNaN(parseInt(f))||t.getMapView().tilt(parseInt(f)),isNaN(parseInt(m))||t.getMapView().rotate(parseInt(m))})}function nle({onOpen:e,onClose:t,active:r}){const{t:s}=ua(),u=Oe.useRef(null),f=on(FI),m=on(bs),a=QI(),v=on(Oh),[,S]=zn(KI),D=O=>{a(O.name),KO(O,m,0,0),N()},N=()=>{r?t():e()};function C(O){D(O),S(!1)}return Je.jsxs(Je.Fragment,{children:[Je.jsx("button",{className:`venue-selector__button ${r?"venue-selector__button--open":""}`,onClick:()=>N(),"aria-label":s("Venues"),children:r?Je.jsx(zx,{}):Je.jsx(ele,{})}),Je.jsx(Jae,{unmountOnExit:!0,in:r,nodeRef:u,timeout:400,classNames:"venue-selector__content","data-sentry-element":"CSSTransition","data-sentry-source-file":"VenueSelector.jsx",children:Je.jsxs("div",{className:"venue-selector__content",ref:u,children:[Je.jsx("h1",{children:s("Select venue")}),Je.jsx("div",{className:"venue-selector__list",children:f.map(O=>Je.jsx(tle,{isCurrent:v===O.name,venue:O,onVenueClicked:()=>C(O)},O.id))})]})})]})}const XO=Oe.createContext(),gu=ui({key:"currentLocation",default:null}),ile="Left",rle="Right",ole="Up",sle="Down",tp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},XI={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},JO="mousemove",e7="mouseup",ale="touchend",lle="touchmove",cle="touchstart";function ule(e,t,r,s){return e>t?r>0?rle:ile:s>0?sle:ole}function t7(e,t){if(t===0)return e;const r=Math.PI/180*t,s=e[0]*Math.cos(r)+e[1]*Math.sin(r),u=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[s,u]}function hle(e,t){const r=D=>{const N="touches"in D;N&&D.touches.length>1||e((C,O)=>{O.trackMouse&&!N&&(document.addEventListener(JO,s),document.addEventListener(e7,m));const{clientX:R,clientY:V}=N?D.touches[0]:D,q=t7([R,V],O.rotationAngle);return O.onTouchStartOrOnMouseDown&&O.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},C),XI),{initial:q.slice(),xy:q,start:D.timeStamp||0})})},s=D=>{e((N,C)=>{const O="touches"in D;if(O&&D.touches.length>1)return N;if(D.timeStamp-N.start>C.swipeDuration)return N.swiping?Object.assign(Object.assign({},N),{swiping:!1}):N;const{clientX:R,clientY:V}=O?D.touches[0]:D,[q,H]=t7([R,V],C.rotationAngle),Y=q-N.xy[0],W=H-N.xy[1],ee=Math.abs(Y),fe=Math.abs(W),pe=(D.timeStamp||0)-N.start,he=Math.sqrt(ee*ee+fe*fe)/(pe||1),oe=[Y/(pe||1),W/(pe||1)],Ve=ule(ee,fe,Y,W),De=typeof C.delta=="number"?C.delta:C.delta[Ve.toLowerCase()]||tp.delta;if(ee<De&&fe<De&&!N.swiping)return N;const Ae={absX:ee,absY:fe,deltaX:Y,deltaY:W,dir:Ve,event:D,first:N.first,initial:N.initial,velocity:he,vxvy:oe};Ae.first&&C.onSwipeStart&&C.onSwipeStart(Ae),C.onSwiping&&C.onSwiping(Ae);let Ge=!1;return(C.onSwiping||C.onSwiped||C[`onSwiped${Ve}`])&&(Ge=!0),Ge&&C.preventScrollOnSwipe&&C.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},N),{first:!1,eventData:Ae,swiping:!0})})},u=D=>{e((N,C)=>{let O;if(N.swiping&&N.eventData){if(D.timeStamp-N.start<C.swipeDuration){O=Object.assign(Object.assign({},N.eventData),{event:D}),C.onSwiped&&C.onSwiped(O);const R=C[`onSwiped${O.dir}`];R&&R(O)}}else C.onTap&&C.onTap({event:D});return C.onTouchEndOrOnMouseUp&&C.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},N),XI),{eventData:O})})},f=()=>{document.removeEventListener(JO,s),document.removeEventListener(e7,m)},m=D=>{f(),u(D)},a=(D,N)=>{let C=()=>{};if(D&&D.addEventListener){const O=Object.assign(Object.assign({},tp.touchEventOptions),N.touchEventOptions),R=[[cle,r,O],[lle,s,Object.assign(Object.assign({},O),N.preventScrollOnSwipe?{passive:!1}:{})],[ale,u,O]];R.forEach(([V,q,H])=>D.addEventListener(V,q,H)),C=()=>R.forEach(([V,q])=>D.removeEventListener(V,q))}return C},S={ref:D=>{D!==null&&e((N,C)=>{if(N.el===D)return N;const O={};return N.el&&N.el!==D&&N.cleanUpTouch&&(N.cleanUpTouch(),O.cleanUpTouch=void 0),C.trackTouch&&D&&(O.cleanUpTouch=a(D,C)),Object.assign(Object.assign(Object.assign({},N),{el:D}),O)})}};return t.trackMouse&&(S.onMouseDown=r),[S,a]}function dle(e,t,r,s){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==r.preventScrollOnSwipe||t.touchEventOptions.passive!==r.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:s(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:s(e.el,t)})}function n7(e){const{trackMouse:t}=e,r=Oe.useRef(Object.assign({},XI)),s=Oe.useRef(Object.assign({},tp)),u=Oe.useRef(Object.assign({},s.current));u.current=Object.assign({},s.current),s.current=Object.assign(Object.assign({},tp),e);let f;for(f in tp)s.current[f]===void 0&&(s.current[f]=tp[f]);const[m,a]=Oe.useMemo(()=>hle(v=>r.current=v(r.current,s.current),{trackMouse:t}),[t]);return r.current=dle(r.current,s.current,u.current,a),m}const Ar={MIN:1,FIT:2,MAX:3},ove="",i7=ui({key:"isBottomSheetLoaded",default:!1});let JI;function e0({children:e,isOpen:t,minHeight:r,preferredSizeSnapPoint:s,onSwipedToSnapPoint:u}){const f=Oe.useRef(),m=Oe.useRef(),[a,v]=Oe.useState(Ar.FIT),[S,D]=Oe.useState(!1),[N,C]=Oe.useState(),O=Oe.useContext(XO),[R,V]=Oe.useState(),[q,H]=Oe.useState({}),[,Y]=zn(i7);function W(pe){pe===Ar.MIN&&R<=r||(a===Ar.FIT&&(f.current.style.height=`${R}px`),requestAnimationFrame(()=>{switch(pe){case Ar.MAX:H({height:`${O.current.clientHeight}px`});break;case Ar.FIT:H({height:`${R}px`});break;case Ar.MIN:H({height:`${r}px`});break}v(pe)}),typeof u=="function"&&f.current.addEventListener("transitionend",()=>{u(pe)},{once:!0}))}Oe.useEffect(()=>{f.current.addEventListener("transitionend",()=>{Y(!0)},{once:!0})},[]),Oe.useEffect(()=>{s!==void 0&&(f.current.style.height=`${f.current.clientHeight}px`,requestAnimationFrame(()=>{W(s)}))},[s]);const ee=n7({onSwipeStart:pe=>{D(!0),C(pe.dir),JI=f.current.clientHeight},onSwiping:pe=>{const he=Math.max(JI-pe.deltaY,r);H({height:`${he}px`})},onSwiped:pe=>{D(!1);const he=Math.max(JI-pe.deltaY,r);let oe,Ve;N.toUpperCase()==="DOWN"?(oe=R-60,Ve=O.current.clientHeight-60):(oe=parseInt(r)+60,Ve=R+60);let De;he<=oe?De=Ar.MIN:he<=Ve?De=Ar.FIT:De=Ar.MAX,W(De)},trackMouse:!0,preventScrollOnSwipe:!0});Oe.useEffect(()=>{t===!1?(V(),f.current.style.height=""):V(m.current.clientHeight)},[e.length,t]);const fe=pe=>{ee.ref(pe),f.current=pe};return Je.jsx("div",{...ee,ref:fe,style:q,className:`sheet ${t?"sheet--active":""} ${S?"sheet--dragging":""}`,"data-sentry-component":"Sheet","data-sentry-source-file":"Sheet.jsx",children:Je.jsx("div",{ref:m,className:"sheet__content",style:q,children:e})})}const sve="",ave="",fle=(e,t)=>{const[r,s]=Oe.useState(void 0),[u,f]=Oe.useState(void 0);return Oe.useEffect(()=>{const m=(a=!1)=>{var S,D;const v=((S=t.current)==null?void 0:S.scrollHeight)>((D=t.current)==null?void 0:D.clientHeight);s(v),a===!0&&f(v)};m(!0),t.current&&new ResizeObserver(m).observe(t.current)},[e,t]),[r,u]},np=()=>n7({onSwiping:({event:e})=>e.stopPropagation()});function r7(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const kx=ui({key:"directionsResponse",default:null}),eT=ui({key:"hasFoundRoute",default:!0}),o7=(e,t,r,s,u)=>{const[f,m]=Oe.useState(),[a,v]=Oe.useState(),[S,D]=zn(eT),[,N]=zn(kx);return Oe.useEffect(()=>{e!=null&&e.geometry&&(t!=null&&t.geometry)&&r.getRoute({origin:r7(e),destination:r7(t),travelMode:s,avoidStairs:u}).then(C=>{if(C&&C.legs){D(!0);const O=C.legs.reduce((V,q)=>V+q.distance.value,0),R=C.legs.reduce((V,q)=>V+q.duration.value,0);m(O),v(R),N({originLocation:e,destinationLocation:t,totalDistance:O,totalTime:R,directionsResult:C})}else D(!1)},()=>{D(!1)})},[e,t,r,u,s]),[f,a,S]},Ph={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Ox=ui({key:"travelMode",default:Ph.WALKING}),ac=ui({key:"kioskLocation",default:null}),jx=ui({key:"accessibilityOn",default:!1});function s7({onBack:e,onStartWayfinding:t,onSetSize:r,snapPointSwiped:s,onStartDirections:u}){const{t:f}=ua(),m=Oe.useRef(null),a=Oe.useRef(null),v=Oe.useRef(null),[S,D]=Oe.useState(!1),[N,C]=Oe.useState(!1),[O,R]=Oe.useState(!1),[V,q]=Oe.useState(null),H=on(bs),Y=on(gu),[W,ee]=fle(Y,v),fe=np(),pe=on(Aa),he=on(ac),oe=on(kI),[Ve,De]=Oe.useState(),[Ae,Ge]=Oe.useState(),it=oc(),Ee=on(Ox),Ze=on(jx),[,,ze]=o7(Ae,Ve,oe,Ee,Ze);Oe.useEffect(()=>{D(!1),C(!1),R(!1),q(null),Y&&(m.current.location=Y,q(H.getDisplayRule(Y)),De(Y)),he&&Ge(he)},[Y,H,he]);function Le(xe){typeof r=="function"&&r(xe)}Oe.useEffect(()=>{s!==void 0&&(D(s===Ar.MAX),s===Ar.MAX?qe():Ie())},[s]);function Ye(){S===!1?(Le(Ar.MAX),qe()):(Le(Ar.FIT),Ie())}function qe(){requestAnimationFrame(()=>{D(!0),Te()})}function Ie(){D(!1),le()}function Te(){requestAnimationFrame(()=>{C(a.current.scrollTop>0),R(a.current.scrollTop<a.current.scrollHeight-a.current.offsetHeight-1)})}function le(){C(!1),R(!1)}function X(){D(!1),C(!1),R(!1),Le(Ar.FIT),t()}function ie(){D(!1),C(!1),R(!1),Le(Ar.FIT),u()}function Me(){D(!1),C(!1),R(!1),Le(Ar.FIT),e()}return Je.jsx("div",{className:`location-details ${N?"location-details--content-above":""} ${O?"location-details--content-below":""}`,"data-sentry-component":"LocationDetails","data-sentry-source-file":"LocationDetails.jsx",children:Y&&Je.jsxs(Je.Fragment,{children:[Je.jsxs("div",{className:"location-info",children:[Je.jsx("div",{className:"location-info__icon",children:V&&Je.jsx("img",{alt:"",src:V.icon.src?V.icon.src:V.icon})}),Je.jsxs("div",{className:"location-info__content",children:[Je.jsx("div",{className:"location-info__name",children:Y.properties.name}),Je.jsx("mi-location-info",{level:f("Level"),ref:m,"show-external-id":!1})]}),Je.jsx("button",{className:"location-info__close",onClick:()=>Me(),children:Je.jsx(zx,{})})]}),Je.jsxs("div",{ref:a,onScroll:xe=>Te(),className:"location-details__details",children:[Y.properties.imageURL&&Je.jsx("img",{alt:"",src:Y.properties.imageURL,className:"location-details__image"}),Object.keys(Y.properties.categories).length>0&&Je.jsx("p",{className:"location-details__categories",children:Object.values(Y.properties.categories).map((xe,$e,He)=>Je.jsxs(Vi.Fragment,{children:[xe,$e<He.length-1&&Je.jsx(Je.Fragment,{children:"・"})]},xe))}),Y.properties.description&&!S&&Je.jsxs("section",{className:"location-details__description",children:[Je.jsx("div",{ref:v,children:Y.properties.description}),(W||ee)&&Je.jsx("button",{onClick:()=>Ye(),children:f("Read full description")})]}),Y.properties.description&&S&&Je.jsxs("section",{className:"location-details__description location-details__description--full prevent-scroll",...fe,children:[Je.jsx("div",{children:Y.properties.description}),ee&&Je.jsx("button",{onClick:()=>Ye(),children:f("Close")})]})]}),he&&it?Je.jsx("button",{disabled:!ze,onClick:()=>ie(),className:`location-details__wayfinding ${ze?"":"location-details--no-route"}`,style:{background:pe},children:f(ze?"Start directions":"Directions not available")}):Je.jsx("button",{onClick:()=>X(),style:{background:pe},className:"location-details__wayfinding",children:f("Start wayfinding")})]})})}const lve="",ple=e=>Oe.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_1663_3931)"},Oe.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_1663_3931"},Oe.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),a7=e=>Oe.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),mle=e=>Oe.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),Oe.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),cve="";function tT({location:e,locationClicked:t,icon:r,isHovered:s}){const{t:u}=ua(),f=Oe.useRef(),m=on(bs);return Oe.useEffect(()=>{var N;const a=C=>t(C.detail),v=()=>{var C;((C=e.properties.locationSettings)==null?void 0:C.selectable)!==!1&&m.hoverLocation(e)},S=()=>{var C;(C=e.properties.locationSettings)!=null&&C.selectable||m.unhoverLocation(e)};((N=e.properties.locationSettings)==null?void 0:N.selectable)===!1&&f.current.classList.add("non-selectable");const{current:D}=f;return D.location=e,D.icon=r||m.getDisplayRule(e).icon,D.addEventListener("locationClicked",a),D.addEventListener("mouseover",v),D.addEventListener("mouseout",S),s?f.current.classList.add("hovered"):f.current.classList.remove("hovered"),()=>{D.removeEventListener("locationClicked",a),D.removeEventListener("mouseover",v),D.removeEventListener("mouseout",S)}},[e,t,s]),Je.jsx("mi-list-item-location",{level:u("Level"),ref:f,"show-external-id":!1,"data-sentry-element":"mi-list-item-location","data-sentry-component":"ListItemLocation","data-sentry-source-file":"ListItemLocation.jsx"})}const gle=()=>{const[e,t]=Oe.useState(),r=on(bs),s=on($I);return Oe.useEffect(()=>{function u(){const f=r.getMapView().getCenter();t(f.lat+","+f.lng)}return r&&s?(r.getMapView().addListener("idle",u),u()):r&&r.getMapView().removeListener("idle",u),()=>{r&&r.getMapView().removeListener("idle",u)}},[r,s]),e},t0=ui({key:"language",default:void 0}),l7=ui({key:"searchInput",default:void 0}),nT=ui({key:"searchAllVenues",default:!1}),iT=Oe.forwardRef(({placeholder:e,mapsindoors:t,results:r,clicked:s,cleared:u,changed:f,category:m,google:a,mapbox:v,disabled:S=!1},D)=>{const N=Oe.useRef(),C=on(Ex),O=on(t0),[,R]=zn(l7),V=sessionStorage.getItem("mapboxPlacesSessionToken"),q={longitude:C==null?void 0:C.coords.longitude,latitude:C==null?void 0:C.coords.latitude},H=gle(),Y=on(Oh),W=on(nT);return Oe.useImperativeHandle(D,()=>({triggerSearch(){N.current.triggerSearch()},getValue(){return N.current.value},setDisplayText(ee){N.current.setDisplayText(ee)},focusInput(){N.current.focusInput()},clear(){N.current.clear()},getInputField(){return N.current.getInputField().then(ee=>R(ee))}})),Oe.useEffect(()=>{const{current:ee}=N;ee.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{ee.triggerSearch()})},[O]),Oe.useEffect(()=>{const ee=he=>r(he.detail),{current:fe}=N;t===!0&&(fe.mapsindoors="true");function pe(){fe.getValue||fe.focusInput(),u()}return fe.addEventListener("results",ee),fe.addEventListener("click",s),fe.addEventListener("cleared",pe),fe.addEventListener("changed",f),()=>{fe.removeEventListener("results",ee),fe.removeEventListener("click",s),fe.removeEventListener("cleared",pe),fe.removeEventListener("changed",f)}},[e,t,r,s,u,a,v,f]),Je.jsx("mi-search",{ref:N,"id-attribute":"search",placeholder:e,"session-token":V,"user-position":q.latitude!==void 0&&q.longitude!==void 0?Object.values(q).join(","):null,"mi-near":H,"mi-categories":m,disabled:S,mapbox:v,google:a,"mi-venue":W?void 0:Y,language:O})});function rT(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:CI("My position"),anchor:t},type:"Feature"}}let oT;function yle(e){return new Promise((t,r)=>{oT||(oT=new window.google.maps.Geocoder),oT.geocode({placeId:e.properties.placeId},s=>{s.length>0?(e.geometry={type:"Point",coordinates:[s[0].geometry.location.lng(),s[0].geometry.location.lat()]},t(e)):r()})})}const _le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",c7=e=>Oe.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),u7=e=>Oe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_1697_57490)"},Oe.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),Oe.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_1697_57490"},Oe.createElement("rect",{width:20,height:20,fill:"white"})))),vle=e=>Oe.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_3407_1703)"},Oe.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_3407_1703"},Oe.createElement("rect",{width:20,height:20,fill:"white"}))));function xle({selectionChanged:e,children:t}){const r=Oe.useRef();return Oe.useEffect(()=>{const s=f=>e(f.detail),{current:u}=r;return u.addEventListener("change",s),()=>u.removeEventListener("change",s)},[e]),Je.jsx("mi-dropdown",{ref:r,"data-sentry-element":"mi-dropdown","data-sentry-component":"Dropdown","data-sentry-source-file":"Dropdown.jsx",children:t})}function ble(e,t){const r=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((s,u)=>{const f=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${r}&access_token=${t}`;fetch(f).then(m=>m.status!==200?u():m.json()).then(m=>{e.geometry={type:"Point",coordinates:[m.features[0].geometry.coordinates[0],m.features[0].geometry.coordinates[1]]},s(e)}).catch(()=>{u()})})}const Mle=O9({key:"unitSystem",get:({get:e})=>e(t0)==="en-US"?"imperial":"metric"}),wle=e=>Oe.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{clipPath:"url(#clip0_1663_3939)"},Oe.createElement("path",{d:"M8.00028 15.1429C11.9452 15.1429 15.1431 11.9449 15.1431 8.00003C15.1431 4.05514 11.9452 0.857178 8.00028 0.857178C4.05539 0.857178 0.857422 4.05514 0.857422 8.00003C0.857422 11.9449 4.05539 15.1429 8.00028 15.1429Z",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Oe.createElement("path",{d:"M8.00084 8.51903C8.00084 8.1064 8.33644 7.85329 8.92853 7.45767C9.47773 7.0907 9.76742 6.61467 9.63856 5.96686C9.50971 5.31903 8.97443 4.78376 8.3266 4.65489C7.30969 4.45262 6.33105 5.25576 6.33105 6.29258",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Oe.createElement("path",{d:"M8 11.376V11.0903",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Oe.createElement("defs",null,Oe.createElement("clipPath",{id:"clip0_1663_3939"},Oe.createElement("rect",{width:16,height:16,fill:"white"})))),uve="";function Ile({text:e}){return Je.jsxs("div",{className:"tooltip","data-sentry-component":"Tooltip","data-sentry-source-file":"Tooltip.jsx",children:[Je.jsx(wle,{"data-sentry-element":"QuestionIcon","data-sentry-source-file":"Tooltip.jsx"}),Je.jsxs("div",{className:"tooltip__text",children:[Je.jsx("p",{children:e}),Je.jsx("i",{})]})]})}const hve="";function h7({onAccessibilityChanged:e}){const t=on(Aa),[r,s]=zn(jx);function u(f){s(f.target.checked),e&&e()}return Je.jsxs("div",{className:"accessibility","data-sentry-component":"Accessibility","data-sentry-source-file":"Accessibility.jsx",children:[Je.jsx("input",{className:"mi-toggle",type:"checkbox",checked:r,onChange:f=>u(f),style:{backgroundColor:r?t:""}}),Je.jsx("div",{children:CI("Accessibility")}),Je.jsx(Ile,{text:CI("Turn on Accessibility to get directions that avoid stairs and escalators."),"data-sentry-element":"Tooltip","data-sentry-source-file":"Accessibility.jsx"})]})}const bo={TO:"TO",FROM:"FROM"},Tle="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";function d7({onStartDirections:e,onBack:t,directionsToLocation:r,directionsFromLocation:s,onSetSize:u,isActive:f}){const{t:m}=ua(),a=Oe.useRef(),v=Oe.useRef(),S=Oe.useRef(),D=Oe.useRef(),N=on(kI),C=on(Ex),O=on(gu),R=on(OI),V=on(Aa),[q,H]=Oe.useState(),[,Y]=zn(eT),[W,ee]=Oe.useState(!0),[fe,pe]=Oe.useState(!1),[he,oe]=Oe.useState([]),[Ve,De]=Oe.useState(),[Ae,Ge]=Oe.useState(),it=on(jx),Ee=np(),[Ze,ze]=Oe.useState(!1),[Le,Ye]=zn(Ox),[qe,Ie]=Oe.useState(!1),Te=on(Kg),le=on(Mle),[X,ie,Me]=o7(Ae,Ve,N,Le,it);function xe(Tt){return R===ls.Google&&Tt.properties.type==="google_places"?yle(Tt):R===ls.Mapbox&&Tt.properties.type==="mapbox_places"?ble(Tt,Te):Promise.resolve(Tt)}function $e(Tt){q===bo.TO?xe(Tt).then(kn=>{De(kn),S.current.setDisplayText(kn.properties.name)},()=>Y(!1)):q===bo.FROM&&xe(Tt).then(kn=>{Ge(kn),D.current.setDisplayText(kn.properties.name)},()=>Y(!1)),ze(!1),pe(!1),oe([]),Ie(!1)}function He(Tt,kn){if(H(kn),Y(!0),Tt.length===0)ee(!1),ze(!1),oe([]);else{ee(!0),oe(Tt);const An=Tt.filter(Cn=>Cn.properties.type==="google_places").length>0;ze(An)}}function Ue(Tt){typeof u=="function"&&u(Tt)}function Xe(){const Tt=rT(C);q===bo.TO?(S.current.setDisplayText(Tt.properties.name),De(Tt)):q===bo.FROM&&(D.current.setDisplayText(Tt.properties.name),Ge(Tt)),oe([]),Y(!0),ee(!0),ze(!1),pe(!1),Ie(!1)}function ut(Tt){(Ae==null?void 0:Ae.id)==="USER_POSITION"&&Tt===bo.TO||(Ve==null?void 0:Ve.id)==="USER_POSITION"&&Tt===bo.FROM?Ie(!1):Ie(!0)}function _t(Tt){ut(Tt)}function et(Tt){H(Tt),Rt(Tt),Y(!0),ze(!1),ut(Tt)}function bt(Tt){Ie(!0),H(Tt),Ot(Tt),oe([]),Y(!0),ze(!1),ee(!0)}function Ot(Tt){Tt===bo.TO?De():Tt===bo.FROM&&Ge()}function Rt(Tt){Tt===bo.TO?(oe([]),S.current.getValue()&&(pe(!0),S.current.triggerSearch())):Tt===bo.FROM&&(oe([]),D.current.getValue()&&(pe(!0),D.current.triggerSearch()))}function dn(){(Ve||Ae)&&(Ae?S.current.setDisplayText(Ae.properties.name):S.current.clear(),Ve?D.current.setDisplayText(Ve.properties.name):D.current.clear(),De(Ae),Ge(Ve))}function Bn(){Ge(),D.current.setDisplayText(""),t()}return Oe.useEffect(()=>{var kn;Ue(Ar.MAX);let Tt=!1;if((s==null?void 0:s.id)==="USER_POSITION"&&(r==null?void 0:r.id)==="USER_POSITION"&&(r=void 0),r!=null&&r.properties&&!O&&(S.current.setDisplayText(r.properties.name),De(r)),s!=null&&s.properties?Ae||(D.current.setDisplayText(s.properties.name),Ge(s),Tt=!0):H(bo.FROM),f&&!((kn=D.current)!=null&&kn.getValue())){const An=a.current.closest(".sheet");if(An?An.addEventListener("transitionend",()=>{s!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput()},{once:!0}):s!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput(),C&&!Ae&&(r==null?void 0:r.id)!=="USER_POSITION"&&!Tt){const Cn=rT(C);D.current.setDisplayText(Cn.properties.name),Ge(Cn),Y(!0),ee(!0),oe([])}}},[f,r,s]),Oe.useEffect(()=>{R===ls.Mapbox&&(ze(!1),oe(he.filter(Tt=>Tt.properties.type!=="google_places")))},[R]),Oe.useEffect(()=>{O&&(De(O),S.current.setDisplayText(O.properties.name))},[O]),Je.jsxs("div",{className:"wayfinding",ref:a,"data-sentry-component":"Wayfinding","data-sentry-source-file":"Wayfinding.jsx",children:[Je.jsxs("div",{className:"wayfinding__directions",children:[Je.jsx("div",{className:"wayfinding__title",children:m("Start wayfinding")}),Je.jsx("button",{className:"wayfinding__close",onClick:()=>Bn(),"aria-label":"Close",children:Je.jsx(zx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"Wayfinding.jsx"})}),Je.jsxs("div",{className:"wayfinding__locations",children:[Je.jsxs("label",{className:"wayfinding__label",children:[m("From").toUpperCase(),Je.jsx(iT,{ref:D,mapsindoors:!0,google:R===ls.Google,mapbox:R===ls.Mapbox,placeholder:m("Search by name, category, building..."),results:Tt=>He(Tt,bo.FROM),clicked:()=>et(bo.FROM),cleared:()=>bt(bo.FROM),changed:()=>_t(bo.FROM),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]}),Je.jsx("button",{onClick:()=>dn(),"aria-label":m("Switch"),className:"wayfinding__switch",children:Je.jsx(mle,{"data-sentry-element":"SwitchIcon","data-sentry-source-file":"Wayfinding.jsx"})}),Je.jsxs("label",{className:"wayfinding__label",children:[m("To").toUpperCase(),Je.jsx(iT,{ref:S,mapsindoors:!0,google:R===ls.Google,mapbox:R===ls.Mapbox,placeholder:m("Search by name, category, building..."),results:Tt=>He(Tt,bo.TO),clicked:()=>et(bo.TO),cleared:()=>bt(bo.TO),changed:()=>_t(bo.TO),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]})]})]}),!Me&&Je.jsx("p",{className:"wayfinding__error",children:m("No route found")}),!W&&!qe&&Je.jsx("p",{className:"wayfinding__error",children:m("Nothing was found")}),C&&qe&&Je.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Xe(),children:[Je.jsx(vle,{}),m("My position")]}),he.length>0&&Je.jsx("div",{className:"wayfinding__scrollable",...Ee,children:Je.jsxs("div",{className:"wayfinding__results",children:[he.map(Tt=>Je.jsx(tT,{icon:Tt.properties.type==="google_places"||Tt.properties.type==="mapbox_places"?Tle:void 0,location:Tt,locationClicked:kn=>$e(kn)},Tt.id)),Ze&&Je.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:_le})]})}),!fe&&!qe&&Me&&!Ze&&Ae&&Ve&&Je.jsxs("div",{className:"wayfinding__details",ref:v,children:[Je.jsxs("div",{className:"wayfinding__settings",children:[Je.jsx(h7,{}),Je.jsx("div",{className:"wayfinding__travel",children:Je.jsxs(xle,{selectionChanged:Tt=>Ye(Tt[0].value),children:[Je.jsxs("mi-dropdown-item",{selected:!0,value:Ph.WALKING,children:[Je.jsx(a7,{}),m("Walk")]}),Je.jsxs("mi-dropdown-item",{value:Ph.DRIVING,children:[Je.jsx(c7,{}),m("Drive")]}),Je.jsxs("mi-dropdown-item",{value:Ph.BICYCLING,children:[Je.jsx(u7,{}),m("Bike")]})]})})]}),Je.jsx("hr",{}),Je.jsxs("div",{className:"wayfinding__info",children:[Je.jsxs("div",{className:"wayfinding__distance",children:[Le===Ph.WALKING&&Je.jsx(a7,{}),Le===Ph.DRIVING&&Je.jsx(c7,{}),Le===Ph.BICYCLING&&Je.jsx(u7,{}),Je.jsxs("div",{children:[m("Distance"),":"]}),Je.jsx("div",{className:"wayfinding__meters",children:X&&Je.jsx("mi-distance",{unit:le,meters:X})})]}),Je.jsxs("div",{className:"wayfinding__time",children:[Je.jsx(ple,{}),Je.jsxs("div",{children:[m("Estimated time"),":"]}),Je.jsx("div",{className:"wayfinding__minutes",children:ie&&Je.jsx("mi-time",{translations:JSON.stringify({days:m("d"),hours:m("h"),minutes:m("min")}),seconds:ie})})]})]}),Je.jsx("button",{className:"wayfinding__button",style:{background:V},onClick:()=>e(),children:m("Go!")})]})]})}const dve="",Sle=e=>Oe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("g",{opacity:.12},Oe.createElement("path",{d:"M16.3335 5.36667C16.3335 4.71327 16.3335 4.38657 16.4607 4.13701C16.5725 3.91749 16.7509 3.73901 16.9705 3.62715C17.22 3.5 17.5467 3.5 18.2002 3.5H22.6335C23.2869 3.5 23.6136 3.5 23.8632 3.62715C24.0827 3.73901 24.2611 3.91749 24.373 4.13701C24.5002 4.38657 24.5002 4.71327 24.5002 5.36667V9.8C24.5002 10.4534 24.5002 10.7801 24.373 11.0297C24.2611 11.2492 24.0827 11.4277 23.8632 11.5395C23.6136 11.6667 23.2869 11.6667 22.6335 11.6667H18.2002C17.5467 11.6667 17.22 11.6667 16.9705 11.5395C16.7509 11.4277 16.5725 11.2492 16.4607 11.0297C16.3335 10.7801 16.3335 10.4534 16.3335 9.8V5.36667Z",fill:"#1F2937"}),Oe.createElement("path",{d:"M3.5 5.36667C3.5 4.71327 3.5 4.38657 3.62715 4.13701C3.73901 3.91749 3.91749 3.73901 4.13701 3.62715C4.38657 3.5 4.71327 3.5 5.36667 3.5H9.8C10.4534 3.5 10.7801 3.5 11.0297 3.62715C11.2492 3.73901 11.4277 3.91749 11.5395 4.13701C11.6667 4.38657 11.6667 4.71327 11.6667 5.36667V9.8C11.6667 10.4534 11.6667 10.7801 11.5395 11.0297C11.4277 11.2492 11.2492 11.4277 11.0297 11.5395C10.7801 11.6667 10.4534 11.6667 9.8 11.6667H5.36667C4.71327 11.6667 4.38657 11.6667 4.13701 11.5395C3.91749 11.4277 3.73901 11.2492 3.62715 11.0297C3.5 10.7801 3.5 10.4534 3.5 9.8V5.36667Z",fill:"#1F2937"}),Oe.createElement("path",{d:"M3.5 18.2C3.5 17.5466 3.5 17.2199 3.62715 16.9704C3.73901 16.7508 3.91749 16.5724 4.13701 16.4605C4.38657 16.3334 4.71327 16.3334 5.36667 16.3334H9.8C10.4534 16.3334 10.7801 16.3334 11.0297 16.4605C11.2492 16.5724 11.4277 16.7508 11.5395 16.9704C11.6667 17.2199 11.6667 17.5466 11.6667 18.2V22.6334C11.6667 23.2868 11.6667 23.6135 11.5395 23.863C11.4277 24.0826 11.2492 24.261 11.0297 24.3729C10.7801 24.5 10.4534 24.5 9.8 24.5H5.36667C4.71327 24.5 4.38657 24.5 4.13701 24.3729C3.91749 24.261 3.73901 24.0826 3.62715 23.863C3.5 23.6135 3.5 23.2868 3.5 22.6334V18.2Z",fill:"#1F2937"})),Oe.createElement("path",{d:"M7.58333 7.58333H7.595M20.4167 7.58333H20.4283M7.58333 20.4167H7.595M15.1667 15.1667H15.1783M20.4167 20.4167H20.4283M19.8333 24.5H24.5V19.8333M16.3333 19.25V24.5M24.5 16.3333H19.25M18.2 11.6667H22.6333C23.2868 11.6667 23.6134 11.6667 23.863 11.5395C24.0826 11.4277 24.261 11.2492 24.3728 11.0297C24.5 10.7801 24.5 10.4534 24.5 9.8V5.36667C24.5 4.71327 24.5 4.38657 24.3728 4.13701C24.261 3.91749 24.0826 3.73901 23.863 3.62715C23.6134 3.5 23.2868 3.5 22.6333 3.5H18.2C17.5465 3.5 17.2199 3.5 16.9703 3.62715C16.7508 3.73901 16.5724 3.91749 16.4605 4.13701C16.3333 4.38657 16.3333 4.71327 16.3333 5.36667V9.8C16.3333 10.4534 16.3333 10.7801 16.4605 11.0297C16.5724 11.2492 16.7508 11.4277 16.9703 11.5395C17.2199 11.6667 17.5465 11.6667 18.2 11.6667ZM5.36667 11.6667H9.8C10.4534 11.6667 10.7801 11.6667 11.0297 11.5395C11.2492 11.4277 11.4277 11.2492 11.5395 11.0297C11.6667 10.7801 11.6667 10.4534 11.6667 9.8V5.36667C11.6667 4.71327 11.6667 4.38657 11.5395 4.13701C11.4277 3.91749 11.2492 3.73901 11.0297 3.62715C10.7801 3.5 10.4534 3.5 9.8 3.5H5.36667C4.71327 3.5 4.38657 3.5 4.13701 3.62715C3.91749 3.73901 3.73901 3.91749 3.62715 4.13701C3.5 4.38657 3.5 4.71327 3.5 5.36667V9.8C3.5 10.4534 3.5 10.7801 3.62715 11.0297C3.73901 11.2492 3.91749 11.4277 4.13701 11.5395C4.38657 11.6667 4.71327 11.6667 5.36667 11.6667ZM5.36667 24.5H9.8C10.4534 24.5 10.7801 24.5 11.0297 24.3728C11.2492 24.261 11.4277 24.0826 11.5395 23.863C11.6667 23.6134 11.6667 23.2868 11.6667 22.6333V18.2C11.6667 17.5465 11.6667 17.2199 11.5395 16.9703C11.4277 16.7508 11.2492 16.5724 11.0297 16.4605C10.7801 16.3333 10.4534 16.3333 9.8 16.3333H5.36667C4.71327 16.3333 4.38657 16.3333 4.13701 16.4605C3.91749 16.5724 3.73901 16.7508 3.62715 16.9703C3.5 17.2199 3.5 17.5465 3.5 18.2V22.6333C3.5 23.2868 3.5 23.6134 3.62715 23.863C3.73901 24.0826 3.91749 24.261 4.13701 24.3728C4.38657 24.5 4.71327 24.5 5.36667 24.5Z",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),fve="",Ele=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Dle=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),sT=ui({key:"activeStep",default:0}),n0=ui({key:"substepsToggled",default:!1}),Ale=ui({key:"triggerSubsteps",default:!1}),i0=()=>{const e=on(ac),t=oc();return!(!e||e&&!t)},Cle=Oe.forwardRef(({totalSteps:e,activeStep:t,previous:r,originLocation:s,directions:u},f)=>{var O;const m=Oe.useRef(),{t:a}=ua(),[v,S]=zn(n0),[,D]=zn(Ale),N=i0();Oe.useImperativeHandle(f,()=>({openSubsteps(){m.current.openSubsteps()},closeSubsteps(){m.current.closeSubsteps()}}));const C={walk:a("Walk"),bike:a("Bike"),transit:a("Transit"),drive:a("Drive"),destination:a("You have arrived"),leave:a("Leave"),from:a("From"),park:a("Park"),at:a("at"),building:a("Building"),venue:a("Venue"),takeStaircaseToLevel:a("Take staircase to level"),takeLadderToLevel:a("Take the ladder to level"),takeElevatorToLevel:a("Take elevator to level"),takeEscalatorToLevel:a("Take escalator to level"),takeWheelchairLiftToLevel:a("Take wheelchair lift to level"),takeWheelchairRampToLevel:a("Take wheelchair ramp to level"),exit:a("Exit"),enter:a("Enter"),stops:a("stops"),andContinue:a("and continue"),continueStraightAhead:a("Continue straight ahead"),goLeft:a("Go left"),goSharpLeft:a("Go sharp left"),goSlightLeft:a("Go slight left"),goRight:a("Go right"),goSharpRight:a("Go sharp right"),goSlightRight:a("Go slight right"),turnAround:a("Turn around"),days:a("d"),hours:a("h"),minutes:a("min")};return Oe.useEffect(()=>{const{current:R}=m;function V(){D(!0),S(!v)}return R.addEventListener("substepsToggled",V),()=>{R.removeEventListener("substepsToggled",V)}},[v]),Je.jsx("mi-route-instructions-step",{ref:m,"show-toggle-button":!N,step:JSON.stringify(e[t]),translations:JSON.stringify(C),"destination-location":u==null?void 0:u.destinationLocation.properties.name,"from-travel-mode":(r==null?void 0:r.travel_mode)??"","from-route-context":(r==null?void 0:r.route_context)??((O=s==null?void 0:s.properties)==null?void 0:O.name)??""})}),Nle=()=>{const e=on(bs),t=on(RI);return()=>{if(e&&t){const s=t.modules.map(u=>u.toLowerCase()).includes("z22");e.setZoom(s?22:21)}}},f7=ui({key:"isDestinationStep",default:!1});function Lle({steps:e,onNextStep:t,onPreviousStep:r,originLocation:s,isOpen:u,onFitCurrentDirections:f}){const{t:m}=ua(),a=np(),v=Oe.useRef(),[S,D]=Oe.useState(),[N,C]=zn(sT),[O,R]=Oe.useState(),V=on(kx),q=on(bs),H=on(n0),[,Y]=zn(f7),W=Nle(),ee=i0();Oe.useEffect(()=>{const oe={...e[e.length-1]};oe.travel_mode="DESTINATION",oe.steps=null,e.push(oe),R(e)},[e]),Oe.useEffect(()=>{var he,oe;if(u){if(N===(O==null?void 0:O.length)-1&&(V!=null&&V.destinationLocation)){Y(!0);const Ve=V==null?void 0:V.destinationLocation,De=(Ve==null?void 0:Ve.geometry.type)==="Point"?Ve==null?void 0:Ve.geometry.coordinates:Ve==null?void 0:Ve.properties.anchor.coordinates;q.getMapView().setCenter({lat:De[1],lng:De[0]}),W()}else Y(!1);H===!1?(he=v.current)==null||he.closeSubsteps():H===!0&&((oe=v.current)==null||oe.openSubsteps())}},[u,N,O,H]);function fe(){D(O[N]),C(N+1),t()}function pe(){D(O[N-2]),C(N-1),N===(O==null?void 0:O.length)-1?f():r()}return Je.jsx("div",{className:"route-instructions prevent-scroll",...a,"data-sentry-component":"RouteInstructions","data-sentry-source-file":"RouteInstructions.jsx",children:O&&Je.jsxs(Je.Fragment,{children:[Je.jsx(Cle,{totalSteps:O,activeStep:N,previous:S,directions:V,originLocation:s,ref:v}),Je.jsx("div",{className:`route-instructions__footer ${ee?"route-instructions__footer--kiosk":""}`,children:Je.jsxs("div",{className:"route-instructions__actions",children:[Je.jsx("button",{className:`route-instructions__button ${ee?"route-instructions__button--kiosk":""}`,onClick:()=>pe(),"aria-label":m("Previous"),disabled:N===0,children:Je.jsx(Dle,{})}),Je.jsx("div",{className:"route-instructions__overview",children:m("StepYofX",{activeStep:N+1,totalSteps:O.length})}),Je.jsx("button",{className:`route-instructions__button ${ee?"route-instructions__button--kiosk":""}`,onClick:()=>fe(),"aria-label":m("Next"),disabled:N===O.length-1,children:Je.jsx(Ele,{})})]})})]})})}const Rx=ui({key:"showQRCodeDialog",default:!1});let uo;function p7({isOpen:e,onBack:t,onSetSize:r,snapPointSwiped:s,onRouteFinished:u}){const{t:f}=ua(),[m,a]=Oe.useState(null),v=Oe.useRef(null),[S,D]=Oe.useState(),N=on(bs),C=on(Ox),O=on(kx),[,R]=zn(sT),[V,q]=zn(n0),H=on(ac),Y=oc(),[,W]=zn(Rx),ee=on(f7),fe=on(Aa),pe=i0();Oe.useEffect(()=>{if(a(null),e&&O){D(O.totalTime);const Le=Math.min(window.innerHeight,window.innerWidth)*.06;uo==null||uo.setRoute(null),uo=null,Promise.all([he(Le),oe(Le)]).then(([Ye,qe])=>{uo=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:N,fitBoundsPadding:{top:Le,bottom:Ye,left:qe,right:Le}}),uo.setRoute(O.directionsResult),uo.setStepIndex(0),v.current.location=O.destinationLocation,O.destinationLocation.id==="USER_POSITION"?a(null):a(N.getDisplayRule(O.destinationLocation))})}},[e,O,N,C]);function he(Le){return new Promise(Ye=>{if(Y)H?BI().then(qe=>Ye(qe)):Ye(Le);else return FO().then(qe=>Ye(qe))})}function oe(Le){return new Promise(Ye=>{Y?H?Ye(Le):VI().then(qe=>Ye(qe)):Ye(Le)})}Oe.useEffect(()=>{!e&&uo&&it()},[e]);function Ve(){return O?O.directionsResult.legs.reduce((Le,Ye)=>{for(const qe in Ye.steps){const Ie=Ye.steps[qe];Le.push(Ie)}return Le},[]):[]}function De(){uo&&uo.nextStep()}function Ae(){uo&&uo.previousStep()}function Ge(){uo&&uo.setStepIndex(uo.getStepIndex(),uo.getLegIndex())}function it(){uo==null||uo.setRoute(null),uo=null}function Ee(){R(0),q(!1),ze(Ar.FIT)}function Ze(){Ee(),it(),t()}function ze(Le){typeof r=="function"&&r(Le)}return Oe.useEffect(()=>{ze(V?Ar.MAX:Ar.FIT)},[V]),Oe.useEffect(()=>{e&&s&&q(s===Ar.MAX)},[e,s]),Je.jsxs("div",{className:"directions",style:{display:pe?"block":"grid"},"data-sentry-component":"Directions","data-sentry-source-file":"Directions.jsx",children:[Je.jsxs("div",{className:"directions__steps",children:[Je.jsx("div",{className:"directions__minutes",children:S&&Je.jsx("mi-time",{translations:JSON.stringify({days:f("d"),hours:f("h"),minutes:f("min")}),seconds:S})}),Je.jsx(Lle,{steps:Ve(),originLocation:O==null?void 0:O.originLocation,onNextStep:()=>De(),isOpen:e,onPreviousStep:()=>Ae(),onFitCurrentDirections:()=>Ge(),"data-sentry-element":"RouteInstructions","data-sentry-source-file":"Directions.jsx"})]}),pe&&Je.jsxs(Je.Fragment,{children:[Je.jsx("hr",{}),Je.jsxs("div",{className:"directions__kiosk",children:[Je.jsx(h7,{onAccessibilityChanged:()=>Ee()}),Je.jsxs("button",{className:"directions__qr-code",onClick:()=>W(!0),children:[Je.jsx(Sle,{}),f("Scan QR code")]})]})]}),Je.jsxs("div",{className:"directions__actions",children:[Je.jsx("div",{className:"directions__details",children:(O==null?void 0:O.destinationLocation)&&Je.jsxs("div",{className:"directions__info",children:[m&&O.destinationLocation.id!=="USER_POSITION"&&Je.jsx("div",{className:"directions__icon",children:Je.jsx("img",{alt:"",src:m.icon.src?m.icon.src:m.icon})}),Je.jsxs("div",{className:"directions__content",children:[Je.jsx("div",{className:"directions__name",children:O==null?void 0:O.destinationLocation.properties.name}),Je.jsx("mi-location-info",{ref:v,"show-external-id":!1})]})]})}),ee?Je.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:fe},children:f("Finish route")}):Je.jsx("button",{className:"directions__cancel",onClick:()=>Ze(),children:f("Cancel route")})]})]})}const pve="",m7=ui({key:"useKeyboard",default:!1}),zle=Oe.forwardRef(({searchInputElement:e},t)=>{const r=Oe.useRef(),s=on(t0);return Oe.useImperativeHandle(t,()=>({clearInputField(){r.current.clearInputField()}})),Oe.useEffect(()=>{const{current:u}=r;e&&(u.inputElement=e)},[e]),Je.jsx("mi-keyboard",{language:s,ref:r})}),aT=ui({key:"searchResults",default:[]}),lT=ui({key:"selectedCategory",default:void 0}),mve="",kle=e=>Oe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),Ole=e=>Oe.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function jle(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const r=new MutationObserver(()=>{const s=document.querySelector(".chip--active");s&&(r.disconnect(),e(s))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const g7=ui({key:"category",default:void 0});function Rle({onSetSize:e,getFilteredLocations:t,searchFieldRef:r}){const s=Oe.useRef(),u=on(Xg),f=oc(),[m,a]=Oe.useState(!0),[v,S]=Oe.useState(!1),D=on(Aa),[N,C]=zn(lT),[,O]=zn(aT),[,R]=zn(Dx),V=np(),[q,H]=Oe.useState(),Y=on(i7),W=on(g7);function ee(oe){typeof e=="function"&&e(oe)}function fe(oe){C(oe),ee(Ar.MAX),N===oe?(O([]),C(null),R([]),r.current.getValue()&&r.current.triggerSearch()):r.current.getValue()?r.current.triggerSearch():t(oe)}function pe(){(s==null?void 0:s.current.scrollLeft)===0?a(!0):m&&a(!1),(s==null?void 0:s.current.scrollWidth)-(s==null?void 0:s.current.scrollLeft)===(s==null?void 0:s.current.clientWidth)?S(!0):v&&S(!1)}function he(oe){s==null||s.current.scroll({left:(s==null?void 0:s.current.scrollLeft)+oe,behavior:"smooth"})}return s.current&&s.current.addEventListener("scroll",()=>{pe()}),Oe.useEffect(()=>{N&&(jle().then(oe=>H(oe)),ee(Ar.MAX))},[N]),Oe.useEffect(()=>{q&&W!==void 0&&(f||!f&&Y)&&q.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[q,W,Y]),Je.jsx("div",{className:"categories prevent-scroll",...V,"data-sentry-component":"Categories","data-sentry-source-file":"Categories.jsx",children:u.length>0&&Je.jsxs(Je.Fragment,{children:[f&&Je.jsx("button",{className:"categories__scroll-button",onClick:()=>he(-300),disabled:m,children:Je.jsx(Ole,{})}),Je.jsx("div",{ref:s,className:"categories__list",children:u==null?void 0:u.map(([oe,Ve])=>Je.jsx("mi-chip",{icon:Ve.iconUrl,"background-color":D,content:Ve.displayName,active:N===oe,onClick:()=>fe(oe)},oe))}),f&&Je.jsx("button",{className:"categories__scroll-button",onClick:()=>he(300),disabled:v,children:Je.jsx(kle,{})})]})})}const Ple=e=>Oe.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Oe.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),Oe.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Px=ui({key:"isLegendDialogVisible",default:!1}),y7=O9({key:"legendFields",get:({get:e})=>{const t=e(ac);if(!(t!=null&&t.properties.fields))return;const r=[];for(const u of Object.keys(t.properties.fields)){const f=parseInt(u.charAt(0));if(!Number.isInteger(f))continue;const m=r.find(S=>S.index===f),a=u.toLowerCase().includes("legendheading"),v=u.toLowerCase().includes("legendcontent");if(m)a?m.heading=t.properties.fields[u].value:v&&(m.content=t.properties.fields[u].value);else{const S={index:f,heading:a?t.properties.fields[u].value:null,content:v?t.properties.fields[u].value:null};r.push(S)}}return r.sort((u,f)=>u.index-f.index)}});function _7({onSetSize:e,isOpen:t}){const{t:r}=ua(),s=Oe.useRef(),u=Oe.useRef(),f=Oe.useRef(),m=Oe.useRef(),[a,v]=Oe.useState(!0),[S,D]=zn(aT),N=on(Xg),C=on(m7),[O,R]=Oe.useState(!1),[V,q]=zn(lT),H=np(),[Y,W]=Oe.useState(),ee=on(bs),[,fe]=zn(Dx),[,pe]=zn(gu),[,he]=zn(KI),[oe,Ve]=zn(Oh),De=on(t0),Ae=oc(),Ge=on(ac),[it,Ee]=Oe.useState(!1),Ze=on(l7),ze=i0(),[,Le]=zn(Px),[Ye,qe]=Oe.useState(!1),Ie=on(y7),Te=on(nT);function le(_t){window.mapsindoors.services.LocationsService.getLocations({categories:_t,venue:Te?void 0:oe}).then(ie)}function X(_t){typeof e=="function"&&e(_t)}function ie(_t){D(_t),fe(_t),R(_t.length===0)}function Me(){D([]),R(!1),V&&le(V),fe([]),m.current!==null&&m.current.clearInputField()}function xe(){X(Ar.MAX),v(!1),f.current.getInputField();const _t=s.current.closest(".sheet");_t?_t.addEventListener("transitionend",()=>{f.current.focusInput()},{once:!0}):f.current.focusInput()}function $e(_t){W(_t)}function He(_t){pe(_t),_t.properties.venueId!==oe&&(Ve(_t.properties.venueId),he(!0));const et=ee.getFloor(),bt=_t.properties.floor;bt!==et&&ee.setFloor(bt),Promise.all([Ue(),Xe()]).then(([Ot,Rt])=>{KO(_t,ee,Ot,Rt)})}function Ue(){return new Promise(_t=>{Ae?Ge?BI().then(et=>_t(et)):_t(0):_t(200)})}function Xe(){return new Promise(_t=>{Ae?Ge?_t(0):VI().then(et=>_t(et)):_t(0)})}function ut(){if(S.length>0){let _t;return Ae?_t=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":_t="100%",{display:"flex",flexDirection:"column",maxHeight:_t,overflow:"hidden"}}else return{minHeight:N.length>0?"136px":"80px"}}return Oe.useEffect(()=>{V&&(D([]),q(null))},[oe]),Oe.useEffect(()=>{V&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{f.current.triggerSearch()})},[De]),Oe.useEffect(()=>(ee.on("mouseenter",$e),()=>{ee.off("mouseenter",$e)})),Oe.useEffect(()=>{if(t&&ze&&S.length>0){const _t=document.querySelector(".mapsindoors-map .search__results");u.current.scrollContainerElementRef=_t}},[S,t]),Oe.useEffect(()=>{if(C){const _t=et=>{et.target.closest("mi-keyboard")||et.target.tagName.toUpperCase()==="MI-SEARCH"||et.target.tagName.toUpperCase()==="INPUT"?Ee(!0):Ee(!1)};return window.addEventListener("click",_t,!1),()=>{window.removeEventListener("click",_t,!1)}}},[C]),Oe.useEffect(()=>{V&&le(V)},[V]),Oe.useEffect(()=>{Ge&&qe(Ie.length>0)},[Ge]),Je.jsxs("div",{className:"search",ref:s,style:ut(),"data-sentry-component":"Search","data-sentry-source-file":"Search.jsx",children:[Je.jsxs("div",{className:"search__info",style:{gridTemplateColumns:ze&&Ye?"min-content 1fr":"auto"},children:[ze&&Ye&&Je.jsx("button",{className:"search__legend",onClick:()=>Le(!0),children:Je.jsx(Ple,{})}),Je.jsx(iT,{ref:f,mapsindoors:!0,placeholder:r("Search by name, category, building..."),results:_t=>ie(_t),clicked:()=>xe(),cleared:()=>Me(),category:V,disabled:a,"data-sentry-element":"SearchField","data-sentry-source-file":"Search.jsx"})]}),N.length>0&&Je.jsx(Rle,{onSetSize:e,searchFieldRef:f,getFilteredLocations:_t=>le(_t)}),O&&Je.jsxs("p",{className:"search__error",children:[" ",r("Nothing was found")]}),S.length>0&&Je.jsx("div",{className:"search__results prevent-scroll",...H,children:S.map(_t=>Je.jsx(tT,{location:_t,locationClicked:()=>He(_t),isHovered:(_t==null?void 0:_t.id)===(Y==null?void 0:Y.id)},_t.id))}),it&&Ae&&Je.jsx(zle,{ref:m,searchInputElement:Ze}),t&&ze&&S.length>0&&m4.createPortal(Je.jsx("div",{className:"search__scroll-buttons",children:Je.jsx("mi-scroll-buttons",{ref:u})}),document.querySelector(".mapsindoors-map"))]})}const gve="";function v7({onBack:e,onLocationClick:t,locations:r,onSetSize:s}){const{t:u}=ua(),f=np();function m(a){typeof s=="function"&&s(a)}return Oe.useEffect(()=>{m(Ar.FIT)},[]),Je.jsxs("div",{className:"locations-list","data-sentry-component":"LocationsList","data-sentry-source-file":"LocationsList.jsx",children:[Je.jsxs("div",{className:"locations-list__header",children:[Je.jsxs("div",{className:"locations-list__title",children:[r==null?void 0:r.length," ",u("Locations")]}),Je.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":u("Close"),children:Je.jsx(zx,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"LocationsList.jsx"})})]}),Je.jsx("div",{className:"locations-list__scrollable prevent-scroll",...f,children:Je.jsx("div",{className:"locations-list__list",children:r==null?void 0:r.map(a=>Je.jsx(tT,{location:a,locationClicked:v=>t(v)},a.id))})})]})}function Ule({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:s,appViews:u,onRouteFinished:f}){const m=Oe.useRef(),[a,v]=Oe.useState(),[S,D]=Oe.useState(),[N,C]=Oe.useState(),[O,R]=Oe.useState(),[V,q]=Oe.useState(),[H,Y]=Oe.useState(),[W,ee]=Oe.useState(),fe=on(Xg),[pe,he]=zn(gu),[oe,Ve]=zn(Ax),[,De]=zn(Nx);Oe.useEffect(()=>{e&&t&&s===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):pe?r(u.LOCATION_DETAILS,pe):(oe==null?void 0:oe.length)>1?r(u.EXTERNALIDS):(oe==null?void 0:oe.length)===1?(he(oe[0]),De(oe[0].id)):r(u.SEARCH))},[pe,e,t,oe]);function Ae(){(oe==null?void 0:oe.length)>1?(r(u.EXTERNALIDS),he()):(oe==null?void 0:oe.length)===1?(r(u.SEARCH),he(),Ve([])):(r(u.SEARCH),he())}function Ge(){r(u.SEARCH),he(),Ve([])}const it=[Je.jsx(e0,{minHeight:fe.length>0?"136":"80",preferredSizeSnapPoint:H,isOpen:s===u.SEARCH,children:Je.jsx(_7,{onSetSize:Ee=>Y(Ee)})},"A"),Je.jsx(e0,{minHeight:"200",isOpen:s===u.EXTERNALIDS,preferredSizeSnapPoint:W,children:Je.jsx(v7,{onSetSize:Ee=>ee(Ee),onBack:()=>Ge(),locations:oe,onLocationClick:Ee=>he(Ee),onLocationsFiltered:Ee=>Ve(Ee)})},"B"),Je.jsx(e0,{minHeight:"128",preferredSizeSnapPoint:a,isOpen:s===u.LOCATION_DETAILS,onSwipedToSnapPoint:Ee=>D(Ee),children:Je.jsx(s7,{onSetSize:Ee=>v(Ee),onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>Ae(),snapPointSwiped:S,onStartDirections:()=>r(u.DIRECTIONS)})},"C"),Je.jsx(e0,{minHeight:"238",isOpen:s===u.WAYFINDING,preferredSizeSnapPoint:V,children:Je.jsx(d7,{onSetSize:Ee=>q(Ee),onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(pe?u.LOCATION_DETAILS:u.SEARCH),isActive:s===u.WAYFINDING})},"D"),Je.jsx(e0,{minHeight:"220",isOpen:s===u.DIRECTIONS,preferredSizeSnapPoint:N,onSwipedToSnapPoint:Ee=>R(Ee),children:Je.jsx(p7,{onSetSize:Ee=>C(Ee),isOpen:s===u.DIRECTIONS,onBack:()=>r(u.WAYFINDING),snapPointSwiped:O,onRouteFinished:()=>f()})},"E")];return Je.jsx("div",{ref:m,className:"bottom-sheets","data-sentry-component":"BottomSheet","data-sentry-source-file":"BottomSheet.jsx",children:Je.jsx(XO.Provider,{value:m,"data-sentry-element":"unknown","data-sentry-source-file":"BottomSheet.jsx",children:it})})}const Ble={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},Fle=()=>{const[e,t]=Oe.useState(void 0),[r,s]=Oe.useState(),[u,f]=Oe.useState(null);Oe.useEffect(()=>{function S(D){var N,C;t((N=D.state)==null?void 0:N.value),s((C=D.state)==null?void 0:C.payload)}return window.addEventListener("popstate",S),()=>{window.removeEventListener("popstate",S)}},[]);const m=(S,D)=>{window.history.pushState({value:S,payload:D},""),t(S),u===null&&f({value:S,payload:D})};return[m,()=>{window.history.back()},e,r,Ble,()=>{m(u.value,u.payload)}]};function Vle(){const e=ca(sT),t=ca(gu),r=ca(kx),s=ca(eT),u=ca(KI),f=ca(PI),m=ca(Rx),a=ca(n0),v=ca(Ox),S=ca(aT),D=ca(jx),N=ca(Px);return()=>{e(),t(),r(),s(),u(),f(),m(),a(),v(),S(),D(),N()}}const yve="";function r0({children:e,isOpen:t}){const[r,s]=Oe.useState(!1),u=on(n0),f=on(ac),m=Oe.useRef(),a=Oe.useRef();return Oe.useEffect(()=>{if(!a)return;const v=new MutationObserver(()=>{var N;const S=a.current.clientHeight,D=(N=m.current)==null?void 0:N.clientHeight;s(S>D)});return v.observe(a.current,{childList:!0,subtree:!0}),()=>{v.disconnect()}},[a]),Je.jsx("div",{ref:m,className:`modal ${t?"modal--open":""} ${r?"modal--full":""} ${u?"modal--substeps":""} ${f?"modal--kiosk":""}`,"data-sentry-component":"Modal","data-sentry-source-file":"Modal.jsx",children:Je.jsx("div",{ref:a,className:"modal__content",children:e})})}function $le({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:s,appViews:u,onRouteFinished:f}){const[m,a]=zn(gu),[v,S]=zn(Ax),[,D]=zn(Nx),N=on(ac);Oe.useEffect(()=>{e&&t&&s===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):m?r(u.LOCATION_DETAILS,m):(v==null?void 0:v.length)>1?r(u.EXTERNALIDS):(v==null?void 0:v.length)===1?(a(v[0]),D(v[0].id)):r(u.SEARCH))},[m,e,t,v]);function C(){(v==null?void 0:v.length)>1?(r(u.EXTERNALIDS),a()):(v==null?void 0:v.length)===1?(r(u.SEARCH),a(),S([])):(r(u.SEARCH),a())}function O(){r(u.SEARCH),a(),S([])}function R(){r(N?u.LOCATION_DETAILS:u.WAYFINDING)}const V=[Je.jsx(r0,{isOpen:s===u.SEARCH,children:Je.jsx(_7,{isOpen:s===u.SEARCH})},"A"),Je.jsx(r0,{isOpen:s===u.EXTERNALIDS,children:Je.jsx(v7,{onBack:()=>O(),locations:v,onLocationClick:q=>a(q),onLocationsFiltered:q=>S(q)})},"B"),Je.jsx(r0,{isOpen:s===u.LOCATION_DETAILS,children:Je.jsx(s7,{onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>C(),onStartDirections:()=>r(u.DIRECTIONS)})},"C"),Je.jsx(r0,{isOpen:s===u.WAYFINDING,children:Je.jsx(d7,{onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(m?u.LOCATION_DETAILS:u.SEARCH),isActive:s===u.WAYFINDING})},"D"),Je.jsx(r0,{isOpen:s===u.DIRECTIONS,children:Je.jsx(p7,{isOpen:s===u.DIRECTIONS,onBack:()=>R(),onRouteFinished:()=>f()})},"E")];return Je.jsx("div",{"data-sentry-component":"Sidebar","data-sentry-source-file":"Sidebar.jsx",children:V})}const x7=e=>{const[t,r]=Oe.useState(),s=on(Ex),u=on(LO);return Oe.useEffect(()=>{u&&e&&(e==="USER_POSITION"&&!s?(r("USER_POSITION_PENDING"),u.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(f=>r(f)),s&&e==="USER_POSITION"&&r(rT(s)))},[e,s,u]),t},_ve="";function Qle(){const e=on(PI),t=Oe.useRef();return Oe.useEffect(()=>{var r;(r=t.current)==null||r.classList.add("notification"),e?t.current.push(e.text,e.type,!0):t.current.clearAll()},[e]),Je.jsx("mi-notification",{ref:t,position:"top-center","data-sentry-element":"mi-notification","data-sentry-component":"Notification","data-sentry-source-file":"Notification.jsx"})}const vve="";var o0={},Hle=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},b7={},$s={};let cT;const Yle=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];$s.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},$s.getSymbolTotalCodewords=function(t){return Yle[t]},$s.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},$s.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');cT=t},$s.isKanjiModeEnabled=function(){return typeof cT<"u"},$s.toSJIS=function(t){return cT(t)};var Ux={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,u){if(e.isValid(s))return s;try{return t(s)}catch{return u}}})(Ux);function M7(){this.buffer=[],this.length=0}M7.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Gle=M7;function s0(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}s0.prototype.set=function(e,t,r,s){const u=e*this.size+t;this.data[u]=r,s&&(this.reservedBit[u]=!0)},s0.prototype.get=function(e,t){return this.data[e*this.size+t]},s0.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},s0.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Zle=s0,w7={};(function(e){const t=$s.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const u=Math.floor(s/7)+2,f=t(s),m=f===145?26:Math.ceil((f-13)/(2*u-2))*2,a=[f-7];for(let v=1;v<u-1;v++)a[v]=a[v-1]-m;return a.push(6),a.reverse()},e.getPositions=function(s){const u=[],f=e.getRowColCoords(s),m=f.length;for(let a=0;a<m;a++)for(let v=0;v<m;v++)a===0&&v===0||a===0&&v===m-1||a===m-1&&v===0||u.push([f[a],f[v]]);return u}})(w7);var I7={};const Wle=$s.getSymbolSize,T7=7;I7.getPositions=function(t){const r=Wle(t);return[[0,0],[r-T7,0],[0,r-T7]]};var S7={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(u){return u!=null&&u!==""&&!isNaN(u)&&u>=0&&u<=7},e.from=function(u){return e.isValid(u)?parseInt(u,10):void 0},e.getPenaltyN1=function(u){const f=u.size;let m=0,a=0,v=0,S=null,D=null;for(let N=0;N<f;N++){a=v=0,S=D=null;for(let C=0;C<f;C++){let O=u.get(N,C);O===S?a++:(a>=5&&(m+=t.N1+(a-5)),S=O,a=1),O=u.get(C,N),O===D?v++:(v>=5&&(m+=t.N1+(v-5)),D=O,v=1)}a>=5&&(m+=t.N1+(a-5)),v>=5&&(m+=t.N1+(v-5))}return m},e.getPenaltyN2=function(u){const f=u.size;let m=0;for(let a=0;a<f-1;a++)for(let v=0;v<f-1;v++){const S=u.get(a,v)+u.get(a,v+1)+u.get(a+1,v)+u.get(a+1,v+1);(S===4||S===0)&&m++}return m*t.N2},e.getPenaltyN3=function(u){const f=u.size;let m=0,a=0,v=0;for(let S=0;S<f;S++){a=v=0;for(let D=0;D<f;D++)a=a<<1&2047|u.get(S,D),D>=10&&(a===1488||a===93)&&m++,v=v<<1&2047|u.get(D,S),D>=10&&(v===1488||v===93)&&m++}return m*t.N3},e.getPenaltyN4=function(u){let f=0;const m=u.data.length;for(let v=0;v<m;v++)f+=u.data[v];return Math.abs(Math.ceil(f*100/m/5)-10)*t.N4};function r(s,u,f){switch(s){case e.Patterns.PATTERN000:return(u+f)%2===0;case e.Patterns.PATTERN001:return u%2===0;case e.Patterns.PATTERN010:return f%3===0;case e.Patterns.PATTERN011:return(u+f)%3===0;case e.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(f/3))%2===0;case e.Patterns.PATTERN101:return u*f%2+u*f%3===0;case e.Patterns.PATTERN110:return(u*f%2+u*f%3)%2===0;case e.Patterns.PATTERN111:return(u*f%3+(u+f)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}e.applyMask=function(u,f){const m=f.size;for(let a=0;a<m;a++)for(let v=0;v<m;v++)f.isReserved(v,a)||f.xor(v,a,r(u,v,a))},e.getBestMask=function(u,f){const m=Object.keys(e.Patterns).length;let a=0,v=1/0;for(let S=0;S<m;S++){f(S),e.applyMask(S,u);const D=e.getPenaltyN1(u)+e.getPenaltyN2(u)+e.getPenaltyN3(u)+e.getPenaltyN4(u);e.applyMask(S,u),D<v&&(v=D,a=S)}return a}})(S7);var Bx={};const yu=Ux,Fx=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Vx=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Bx.getBlocksCount=function(t,r){switch(r){case yu.L:return Fx[(t-1)*4+0];case yu.M:return Fx[(t-1)*4+1];case yu.Q:return Fx[(t-1)*4+2];case yu.H:return Fx[(t-1)*4+3];default:return}},Bx.getTotalCodewordsCount=function(t,r){switch(r){case yu.L:return Vx[(t-1)*4+0];case yu.M:return Vx[(t-1)*4+1];case yu.Q:return Vx[(t-1)*4+2];case yu.H:return Vx[(t-1)*4+3];default:return}};var E7={},$x={};const a0=new Uint8Array(512),Qx=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)a0[r]=t,Qx[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)a0[r]=a0[r-255]})(),$x.log=function(t){if(t<1)throw new Error("log("+t+")");return Qx[t]},$x.exp=function(t){return a0[t]},$x.mul=function(t,r){return t===0||r===0?0:a0[Qx[t]+Qx[r]]},function(e){const t=$x;e.mul=function(s,u){const f=new Uint8Array(s.length+u.length-1);for(let m=0;m<s.length;m++)for(let a=0;a<u.length;a++)f[m+a]^=t.mul(s[m],u[a]);return f},e.mod=function(s,u){let f=new Uint8Array(s);for(;f.length-u.length>=0;){const m=f[0];for(let v=0;v<u.length;v++)f[v]^=t.mul(u[v],m);let a=0;for(;a<f.length&&f[a]===0;)a++;f=f.slice(a)}return f},e.generateECPolynomial=function(s){let u=new Uint8Array([1]);for(let f=0;f<s;f++)u=e.mul(u,new Uint8Array([1,t.exp(f)]));return u}}(E7);const D7=E7;function uT(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}uT.prototype.initialize=function(t){this.degree=t,this.genPoly=D7.generateECPolynomial(this.degree)},uT.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const s=D7.mod(r,this.genPoly),u=this.degree-s.length;if(u>0){const f=new Uint8Array(this.degree);return f.set(s,u),f}return s};var qle=uT,A7={},_u={},hT={};hT.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var hl={};const C7="[0-9]+",Kle="[A-Z $%*+\\-./:]+";let l0="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";l0=l0.replace(/u/g,"\\u");const Xle="(?:(?![A-Z0-9 $%*+\\-./:]|"+l0+`)(?:.|[\r
2196
2196
  ]))+`;hl.KANJI=new RegExp(l0,"g"),hl.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),hl.BYTE=new RegExp(Xle,"g"),hl.NUMERIC=new RegExp(C7,"g"),hl.ALPHANUMERIC=new RegExp(Kle,"g");const Jle=new RegExp("^"+l0+"$"),ece=new RegExp("^"+C7+"$"),tce=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");hl.testKanji=function(t){return Jle.test(t)},hl.testNumeric=function(t){return ece.test(t)},hl.testAlphanumeric=function(t){return tce.test(t)},function(e){const t=hT,r=hl;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(f,m){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!t.isValid(m))throw new Error("Invalid version: "+m);return m>=1&&m<10?f.ccBits[0]:m<27?f.ccBits[1]:f.ccBits[2]},e.getBestModeForData=function(f){return r.testNumeric(f)?e.NUMERIC:r.testAlphanumeric(f)?e.ALPHANUMERIC:r.testKanji(f)?e.KANJI:e.BYTE},e.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},e.isValid=function(f){return f&&f.bit&&f.ccBits};function s(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+u)}}e.from=function(f,m){if(e.isValid(f))return f;try{return s(f)}catch{return m}}}(_u),function(e){const t=$s,r=Bx,s=Ux,u=_u,f=hT,m=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=t.getBCHDigit(m);function v(C,O,R){for(let V=1;V<=40;V++)if(O<=e.getCapacity(V,R,C))return V}function S(C,O){return u.getCharCountIndicator(C,O)+4}function D(C,O){let R=0;return C.forEach(function(V){const q=S(V.mode,O);R+=q+V.getBitsLength()}),R}function N(C,O){for(let R=1;R<=40;R++)if(D(C,R)<=e.getCapacity(R,O,u.MIXED))return R}e.from=function(O,R){return f.isValid(O)?parseInt(O,10):R},e.getCapacity=function(O,R,V){if(!f.isValid(O))throw new Error("Invalid QR Code version");typeof V>"u"&&(V=u.BYTE);const q=t.getSymbolTotalCodewords(O),H=r.getTotalCodewordsCount(O,R),Y=(q-H)*8;if(V===u.MIXED)return Y;const W=Y-S(V,O);switch(V){case u.NUMERIC:return Math.floor(W/10*3);case u.ALPHANUMERIC:return Math.floor(W/11*2);case u.KANJI:return Math.floor(W/13);case u.BYTE:default:return Math.floor(W/8)}},e.getBestVersionForData=function(O,R){let V;const q=s.from(R,s.M);if(Array.isArray(O)){if(O.length>1)return N(O,q);if(O.length===0)return 1;V=O[0]}else V=O;return v(V.mode,V.getLength(),q)},e.getEncodedBits=function(O){if(!f.isValid(O)||O<7)throw new Error("Invalid QR Code version");let R=O<<12;for(;t.getBCHDigit(R)-a>=0;)R^=m<<t.getBCHDigit(R)-a;return O<<12|R}}(A7);var N7={};const dT=$s,L7=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,nce=1<<14|1<<12|1<<10|1<<4|1<<1,z7=dT.getBCHDigit(L7);N7.getEncodedBits=function(t,r){const s=t.bit<<3|r;let u=s<<10;for(;dT.getBCHDigit(u)-z7>=0;)u^=L7<<dT.getBCHDigit(u)-z7;return(s<<10|u)^nce};var k7={};const ice=_u;function ip(e){this.mode=ice.NUMERIC,this.data=e.toString()}ip.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},ip.prototype.getLength=function(){return this.data.length},ip.prototype.getBitsLength=function(){return ip.getBitsLength(this.data.length)},ip.prototype.write=function(t){let r,s,u;for(r=0;r+3<=this.data.length;r+=3)s=this.data.substr(r,3),u=parseInt(s,10),t.put(u,10);const f=this.data.length-r;f>0&&(s=this.data.substr(r),u=parseInt(s,10),t.put(u,f*3+1))};var rce=ip;const oce=_u,fT=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function rp(e){this.mode=oce.ALPHANUMERIC,this.data=e}rp.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},rp.prototype.getLength=function(){return this.data.length},rp.prototype.getBitsLength=function(){return rp.getBitsLength(this.data.length)},rp.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let s=fT.indexOf(this.data[r])*45;s+=fT.indexOf(this.data[r+1]),t.put(s,11)}this.data.length%2&&t.put(fT.indexOf(this.data[r]),6)};var sce=rp,ace=function(t){for(var r=[],s=t.length,u=0;u<s;u++){var f=t.charCodeAt(u);if(f>=55296&&f<=56319&&s>u+1){var m=t.charCodeAt(u+1);m>=56320&&m<=57343&&(f=(f-55296)*1024+m-56320+65536,u+=1)}if(f<128){r.push(f);continue}if(f<2048){r.push(f>>6|192),r.push(f&63|128);continue}if(f<55296||f>=57344&&f<65536){r.push(f>>12|224),r.push(f>>6&63|128),r.push(f&63|128);continue}if(f>=65536&&f<=1114111){r.push(f>>18|240),r.push(f>>12&63|128),r.push(f>>6&63|128),r.push(f&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const lce=ace,cce=_u;function op(e){this.mode=cce.BYTE,typeof e=="string"&&(e=lce(e)),this.data=new Uint8Array(e)}op.getBitsLength=function(t){return t*8},op.prototype.getLength=function(){return this.data.length},op.prototype.getBitsLength=function(){return op.getBitsLength(this.data.length)},op.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var uce=op;const hce=_u,dce=$s;function sp(e){this.mode=hce.KANJI,this.data=e}sp.getBitsLength=function(t){return t*13},sp.prototype.getLength=function(){return this.data.length},sp.prototype.getBitsLength=function(){return sp.getBitsLength(this.data.length)},sp.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=dce.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
2197
2197
  Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var fce=sp,O7={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,s,u){var f={},m={};m[s]=0;var a=t.PriorityQueue.make();a.push(s,0);for(var v,S,D,N,C,O,R,V,q;!a.empty();){v=a.pop(),S=v.value,N=v.cost,C=r[S]||{};for(D in C)C.hasOwnProperty(D)&&(O=C[D],R=N+O,V=m[D],q=typeof m[D]>"u",(q||V>R)&&(m[D]=R,a.push(D,R),f[D]=S))}if(typeof u<"u"&&typeof m[u]>"u"){var H=["Could not find a path from ",s," to ",u,"."].join("");throw new Error(H)}return f},extract_shortest_path_from_predecessor_list:function(r,s){for(var u=[],f=s;f;)u.push(f),r[f],f=r[f];return u.reverse(),u},find_path:function(r,s,u){var f=t.single_source_shortest_paths(r,s,u);return t.extract_shortest_path_from_predecessor_list(f,u)},PriorityQueue:{make:function(r){var s=t.PriorityQueue,u={},f;r=r||{};for(f in s)s.hasOwnProperty(f)&&(u[f]=s[f]);return u.queue=[],u.sorter=r.sorter||s.default_sorter,u},default_sorter:function(r,s){return r.cost-s.cost},push:function(r,s){var u={value:r,cost:s};this.queue.push(u),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(O7);var pce=O7.exports;(function(e){const t=_u,r=rce,s=sce,u=uce,f=fce,m=hl,a=$s,v=pce;function S(H){return unescape(encodeURIComponent(H)).length}function D(H,Y,W){const ee=[];let fe;for(;(fe=H.exec(W))!==null;)ee.push({data:fe[0],index:fe.index,mode:Y,length:fe[0].length});return ee}function N(H){const Y=D(m.NUMERIC,t.NUMERIC,H),W=D(m.ALPHANUMERIC,t.ALPHANUMERIC,H);let ee,fe;return a.isKanjiModeEnabled()?(ee=D(m.BYTE,t.BYTE,H),fe=D(m.KANJI,t.KANJI,H)):(ee=D(m.BYTE_KANJI,t.BYTE,H),fe=[]),Y.concat(W,ee,fe).sort(function(he,oe){return he.index-oe.index}).map(function(he){return{data:he.data,mode:he.mode,length:he.length}})}function C(H,Y){switch(Y){case t.NUMERIC:return r.getBitsLength(H);case t.ALPHANUMERIC:return s.getBitsLength(H);case t.KANJI:return f.getBitsLength(H);case t.BYTE:return u.getBitsLength(H)}}function O(H){return H.reduce(function(Y,W){const ee=Y.length-1>=0?Y[Y.length-1]:null;return ee&&ee.mode===W.mode?(Y[Y.length-1].data+=W.data,Y):(Y.push(W),Y)},[])}function R(H){const Y=[];for(let W=0;W<H.length;W++){const ee=H[W];switch(ee.mode){case t.NUMERIC:Y.push([ee,{data:ee.data,mode:t.ALPHANUMERIC,length:ee.length},{data:ee.data,mode:t.BYTE,length:ee.length}]);break;case t.ALPHANUMERIC:Y.push([ee,{data:ee.data,mode:t.BYTE,length:ee.length}]);break;case t.KANJI:Y.push([ee,{data:ee.data,mode:t.BYTE,length:S(ee.data)}]);break;case t.BYTE:Y.push([{data:ee.data,mode:t.BYTE,length:S(ee.data)}])}}return Y}function V(H,Y){const W={},ee={start:{}};let fe=["start"];for(let pe=0;pe<H.length;pe++){const he=H[pe],oe=[];for(let Ve=0;Ve<he.length;Ve++){const De=he[Ve],Ae=""+pe+Ve;oe.push(Ae),W[Ae]={node:De,lastCount:0},ee[Ae]={};for(let Ge=0;Ge<fe.length;Ge++){const it=fe[Ge];W[it]&&W[it].node.mode===De.mode?(ee[it][Ae]=C(W[it].lastCount+De.length,De.mode)-C(W[it].lastCount,De.mode),W[it].lastCount+=De.length):(W[it]&&(W[it].lastCount=De.length),ee[it][Ae]=C(De.length,De.mode)+4+t.getCharCountIndicator(De.mode,Y))}}fe=oe}for(let pe=0;pe<fe.length;pe++)ee[fe[pe]].end=0;return{map:ee,table:W}}function q(H,Y){let W;const ee=t.getBestModeForData(H);if(W=t.from(Y,ee),W!==t.BYTE&&W.bit<ee.bit)throw new Error('"'+H+'" cannot be encoded with mode '+t.toString(W)+`.
2198
2198
  Suggested mode is: `+t.toString(ee));switch(W===t.KANJI&&!a.isKanjiModeEnabled()&&(W=t.BYTE),W){case t.NUMERIC:return new r(H);case t.ALPHANUMERIC:return new s(H);case t.KANJI:return new f(H);case t.BYTE:return new u(H)}}e.fromArray=function(Y){return Y.reduce(function(W,ee){return typeof ee=="string"?W.push(q(ee,null)):ee.data&&W.push(q(ee.data,ee.mode)),W},[])},e.fromString=function(Y,W){const ee=N(Y,a.isKanjiModeEnabled()),fe=R(ee),pe=V(fe,W),he=v.find_path(pe.map,"start","end"),oe=[];for(let Ve=1;Ve<he.length-1;Ve++)oe.push(pe.table[he[Ve]].node);return e.fromArray(O(oe))},e.rawSplit=function(Y){return e.fromArray(N(Y,a.isKanjiModeEnabled()))}})(k7);const Hx=$s,pT=Ux,mce=Gle,gce=Zle,yce=w7,_ce=I7,mT=S7,gT=Bx,vce=qle,Yx=A7,xce=N7,bce=_u,yT=k7;function Mce(e,t){const r=e.size,s=_ce.getPositions(t);for(let u=0;u<s.length;u++){const f=s[u][0],m=s[u][1];for(let a=-1;a<=7;a++)if(!(f+a<=-1||r<=f+a))for(let v=-1;v<=7;v++)m+v<=-1||r<=m+v||(a>=0&&a<=6&&(v===0||v===6)||v>=0&&v<=6&&(a===0||a===6)||a>=2&&a<=4&&v>=2&&v<=4?e.set(f+a,m+v,!0,!0):e.set(f+a,m+v,!1,!0))}}function wce(e){const t=e.size;for(let r=8;r<t-8;r++){const s=r%2===0;e.set(r,6,s,!0),e.set(6,r,s,!0)}}function Ice(e,t){const r=yce.getPositions(t);for(let s=0;s<r.length;s++){const u=r[s][0],f=r[s][1];for(let m=-2;m<=2;m++)for(let a=-2;a<=2;a++)m===-2||m===2||a===-2||a===2||m===0&&a===0?e.set(u+m,f+a,!0,!0):e.set(u+m,f+a,!1,!0)}}function Tce(e,t){const r=e.size,s=Yx.getEncodedBits(t);let u,f,m;for(let a=0;a<18;a++)u=Math.floor(a/3),f=a%3+r-8-3,m=(s>>a&1)===1,e.set(u,f,m,!0),e.set(f,u,m,!0)}function _T(e,t,r){const s=e.size,u=xce.getEncodedBits(t,r);let f,m;for(f=0;f<15;f++)m=(u>>f&1)===1,f<6?e.set(f,8,m,!0):f<8?e.set(f+1,8,m,!0):e.set(s-15+f,8,m,!0),f<8?e.set(8,s-f-1,m,!0):f<9?e.set(8,15-f-1+1,m,!0):e.set(8,15-f-1,m,!0);e.set(s-8,8,1,!0)}function Sce(e,t){const r=e.size;let s=-1,u=r-1,f=7,m=0;for(let a=r-1;a>0;a-=2)for(a===6&&a--;;){for(let v=0;v<2;v++)if(!e.isReserved(u,a-v)){let S=!1;m<t.length&&(S=(t[m]>>>f&1)===1),e.set(u,a-v,S),f--,f===-1&&(m++,f=7)}if(u+=s,u<0||r<=u){u-=s,s=-s;break}}}function Ece(e,t,r){const s=new mce;r.forEach(function(v){s.put(v.mode.bit,4),s.put(v.getLength(),bce.getCharCountIndicator(v.mode,e)),v.write(s)});const u=Hx.getSymbolTotalCodewords(e),f=gT.getTotalCodewordsCount(e,t),m=(u-f)*8;for(s.getLengthInBits()+4<=m&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const a=(m-s.getLengthInBits())/8;for(let v=0;v<a;v++)s.put(v%2?17:236,8);return Dce(s,e,t)}function Dce(e,t,r){const s=Hx.getSymbolTotalCodewords(t),u=gT.getTotalCodewordsCount(t,r),f=s-u,m=gT.getBlocksCount(t,r),a=s%m,v=m-a,S=Math.floor(s/m),D=Math.floor(f/m),N=D+1,C=S-D,O=new vce(C);let R=0;const V=new Array(m),q=new Array(m);let H=0;const Y=new Uint8Array(e.buffer);for(let he=0;he<m;he++){const oe=he<v?D:N;V[he]=Y.slice(R,R+oe),q[he]=O.encode(V[he]),R+=oe,H=Math.max(H,oe)}const W=new Uint8Array(s);let ee=0,fe,pe;for(fe=0;fe<H;fe++)for(pe=0;pe<m;pe++)fe<V[pe].length&&(W[ee++]=V[pe][fe]);for(fe=0;fe<C;fe++)for(pe=0;pe<m;pe++)W[ee++]=q[pe][fe];return W}function Ace(e,t,r,s){let u;if(Array.isArray(e))u=yT.fromArray(e);else if(typeof e=="string"){let S=t;if(!S){const D=yT.rawSplit(e);S=Yx.getBestVersionForData(D,r)}u=yT.fromString(e,S||40)}else throw new Error("Invalid data");const f=Yx.getBestVersionForData(u,r);if(!f)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=f;else if(t<f)throw new Error(`
2199
2199
  The chosen QR Code version cannot contain this amount of data.
2200
2200
  Minimum version required to store current data is: `+f+`.
2201
2201
  `);const m=Ece(t,r,u),a=Hx.getSymbolSize(t),v=new gce(a);return Mce(v,t),wce(v),Ice(v,t),_T(v,r,0),t>=7&&Tce(v,t),Sce(v,m),isNaN(s)&&(s=mT.getBestMask(v,_T.bind(null,v,r))),mT.applyMask(s,v),_T(v,r,s),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:s,segments:u}}b7.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let s=pT.M,u,f;return typeof r<"u"&&(s=pT.from(r.errorCorrectionLevel,pT.M),u=Yx.from(r.version),f=mT.from(r.maskPattern),r.toSJISFunc&&Hx.setToSJISFunction(r.toSJISFunc)),Ace(t,u,s,f)};var j7={},vT={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let s=r.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+r);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(f){return[f,f]}))),s.length===6&&s.push("F","F");const u=parseInt(s.join(""),16);return{r:u>>24&255,g:u>>16&255,b:u>>8&255,a:u&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const u=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,f=s.width&&s.width>=21?s.width:void 0,m=s.scale||4;return{width:f,scale:f?4:m,margin:u,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,u){return u.width&&u.width>=s+u.margin*2?u.width/(s+u.margin*2):u.scale},e.getImageWidth=function(s,u){const f=e.getScale(s,u);return Math.floor((s+u.margin*2)*f)},e.qrToImageData=function(s,u,f){const m=u.modules.size,a=u.modules.data,v=e.getScale(m,f),S=Math.floor((m+f.margin*2)*v),D=f.margin*v,N=[f.color.light,f.color.dark];for(let C=0;C<S;C++)for(let O=0;O<S;O++){let R=(C*S+O)*4,V=f.color.light;if(C>=D&&O>=D&&C<S-D&&O<S-D){const q=Math.floor((C-D)/v),H=Math.floor((O-D)/v);V=N[a[q*m+H]?1:0]}s[R++]=V.r,s[R++]=V.g,s[R++]=V.b,s[R]=V.a}}})(vT),function(e){const t=vT;function r(u,f,m){u.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=m,f.width=m,f.style.height=m+"px",f.style.width=m+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(f,m,a){let v=a,S=m;typeof v>"u"&&(!m||!m.getContext)&&(v=m,m=void 0),m||(S=s()),v=t.getOptions(v);const D=t.getImageWidth(f.modules.size,v),N=S.getContext("2d"),C=N.createImageData(D,D);return t.qrToImageData(C.data,f,v),r(N,S,D),N.putImageData(C,0,0),S},e.renderToDataURL=function(f,m,a){let v=a;typeof v>"u"&&(!m||!m.getContext)&&(v=m,m=void 0),v||(v={});const S=e.render(f,m,v),D=v.type||"image/png",N=v.rendererOpts||{};return S.toDataURL(D,N.quality)}}(j7);var R7={};const Cce=vT;function P7(e,t){const r=e.a/255,s=t+'="'+e.hex+'"';return r<1?s+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':s}function xT(e,t,r){let s=e+t;return typeof r<"u"&&(s+=" "+r),s}function Nce(e,t,r){let s="",u=0,f=!1,m=0;for(let a=0;a<e.length;a++){const v=Math.floor(a%t),S=Math.floor(a/t);!v&&!f&&(f=!0),e[a]?(m++,a>0&&v>0&&e[a-1]||(s+=f?xT("M",v+r,.5+S+r):xT("m",u,0),u=0,f=!1),v+1<t&&e[a+1]||(s+=xT("h",m),m=0)):u++}return s}R7.render=function(t,r,s){const u=Cce.getOptions(r),f=t.modules.size,m=t.modules.data,a=f+u.margin*2,v=u.color.light.a?"<path "+P7(u.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",S="<path "+P7(u.color.dark,"stroke")+' d="'+Nce(m,f,u.margin)+'"/>',D='viewBox="0 0 '+a+" "+a+'"',C='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+D+' shape-rendering="crispEdges">'+v+S+`</svg>
2202
- `;return typeof s=="function"&&s(null,C),C};const Lce=Hle,bT=b7,U7=j7,zce=R7;function MT(e,t,r,s,u){const f=[].slice.call(arguments,1),m=f.length,a=typeof f[m-1]=="function";if(!a&&!Lce())throw new Error("Callback required as last argument");if(a){if(m<2)throw new Error("Too few arguments provided");m===2?(u=r,r=t,t=s=void 0):m===3&&(t.getContext&&typeof u>"u"?(u=s,s=void 0):(u=s,s=r,r=t,t=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(r=t,t=s=void 0):m===2&&!t.getContext&&(s=r,r=t,t=void 0),new Promise(function(v,S){try{const D=bT.create(r,s);v(e(D,t,s))}catch(D){S(D)}})}try{const v=bT.create(r,s);u(null,e(v,t,s))}catch(v){u(v)}}o0.create=bT.create,o0.toCanvas=MT.bind(null,U7.render),o0.toDataURL=MT.bind(null,U7.renderToDataURL),o0.toString=MT.bind(null,function(e,t,r){return zce.render(e,r)});function kce(){const{t:e}=ua(),[,t]=zn(Rx),r=Oe.useRef(),s=on(Aa),u=on(jI),f=on(YI),m=on(Tx),a=on(Kg),v=on(ac),S=on(gu);return Oe.useEffect(()=>{if(v&&S){let D=window.location.origin+window.location.pathname.replace(/\/$/,"");const N=new URLSearchParams(window.location.search),C=new URLSearchParams;[["gmApiKey",m],["mapboxAccessToken",a],["apiKey",u],["primaryColor",s],["logo",f]].forEach(([q,H])=>{if(N.has(q)){const Y=N.get(q);C.append(q,Y)}else H&&(H===s?C.append(q,s.replace("#","")):C.append(q,H))});const O=C.toString();let R=`${D}/?${O}&directionsFrom=${v.id}&directionsTo=${S.id}`;const V={errorCorrectionLevel:"L",margin:0,width:"225"};o0.toDataURL(R,V).then(q=>{r.current.src=q})}},[v,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"background"}),Je.jsxs("div",{className:"qr-code",children:[Je.jsx("img",{alt:"",className:"qr-code__image",ref:r}),Je.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Je.jsx("button",{className:"qr-code__button",style:{background:s},onClick:()=>t(!1),children:e("Done")})]})]})}const Oce=ui({key:"supportsUrlParameters",default:!1}),xve="";function jce(){const{t:e}=ua(),t=on(Aa),r=on(y7),s=i0(),u=Oe.useRef(),f=Oe.useRef(),m=Oe.useRef(),[a,v]=zn(Px),[S,D]=Oe.useState(!1),N=Oe.useRef();let C=700;return Oe.useEffect(()=>{a&&s&&D(N.current.clientHeight>C)},[a,s]),Oe.useEffect(()=>{if(a&&s&&S){const O=document.querySelector(".legend__sections");m.current.scrollContainerElementRef=O}},[a,r,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"legend__background"}),Je.jsxs("div",{className:"legend",ref:u,children:[r.length>0&&Je.jsx("div",{className:`legend__sections ${S?"legend__sections--scrollable":""}`,ref:N,style:{maxHeight:S?`${C}px`:"auto",overflowY:S?"scroll":"auto"},children:r.map((O,R)=>Je.jsxs("div",{className:"legend__section",ref:f,children:[Je.jsx("div",{className:"legend__heading",children:O.heading}),Je.jsx("div",{className:"legend__content",children:O.content})]},R))}),Je.jsx("button",{className:"legend__button",style:{background:t},onClick:()=>v(!1),children:e("Close")}),s&&a&&S&&Je.jsx("div",{className:"scroll-buttons",children:Je.jsx("mi-scroll-buttons",{ref:m})})]})]})}Rse();function Rce({apiKey:e,gmApiKey:t,mapboxAccessToken:r,venue:s,locationId:u,primaryColor:f,logo:m,appUserRoles:a,directionsFrom:v,directionsTo:S,externalIDs:D,tileStyle:N,startZoomLevel:C,bearing:O,pitch:R,gmMapId:V,useMapProviderModule:q,kioskOriginLocationId:H,language:Y,supportsUrlParameters:W,useKeyboard:ee,timeout:fe,miTransitionLevel:pe,category:he,searchAllVenues:oe}){const[,Ve]=zn(jI),[,De]=zn(Tx),[,Ae]=zn(Kg),[Ge,it]=zn($I),[Ee,Ze]=zn(FI),[,ze]=zn(BO),[Le,Ye]=zn(gu),[qe,Ie]=zn(Xg),[,Te]=zn(Nx),[,le]=zn(Aa),[,X]=zn(YI),[,ie]=zn(TO),Me=on(bs),[xe,$e]=zn(t0),[,He]=zn(ac),[,Ue]=zn(PO),[,Xe]=zn(VO),ut=$O(),[,_t]=zn(Oce),[,et]=zn(m7),[,bt]=zn(CO),[,Ot]=zn(lT),[,Rt]=zn(nT),[,dn]=zn(g7),[Bn,Tt]=Oe.useState(!0),[kn,An]=Oe.useState(!0),Cn=x7(v),$n=x7(S),[ni,st]=Oe.useState(!1),[,se]=zn(Ax),[ce,Ne]=zn(Dx),[ht,vt]=Oe.useState(),[pt,Ct]=Oe.useState(),[,mt]=zn(RI),[,an]=zn(NO),[,Fe]=zn(UO),[,Pe]=zn(Wg),[,St]=zn(qg),Xt=oc(),Dt=SO("(max-width: 991px)"),kt=Vle(),Ft=QI(),Vt=on(Oh),[tn,Sn,Xn,ai,Ei,Wi]=Fle(),qi=Oe.useRef(),[Zn,Ki]=Oe.useState(!1),Mt=on(Rx),It=on(Px),[Bt,qt]=Oe.useState(0);function Ht(){return new Promise(Gt=>{if(window.mapsindoors!==void 0)return Gt();const wn=document.createElement("script");wn.setAttribute("type","text/javascript"),wn.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.32.0/mapsindoors-4.32.0.js.gz"),wn.setAttribute("integrity","sha384-pobsiCLAduarZklerr0Y1Yj0gkSVov1spL2XwAMLQ1lm3t6USIXIBAAMeJqiWXSc"),wn.setAttribute("crossorigin","anonymous"),document.body.appendChild(wn),wn.onload=()=>{Gt()}})}Oe.useEffect(()=>{ut&&ln()},[ut]),Oe.useEffect(()=>{Ht().then(()=>{Ki(!0)})},[]),Oe.useEffect(()=>{if(Zn){const Gt=Y||navigator.language;window.mapsindoors.MapsIndoors.setLanguage(Gt),window.mapsindoors.services.LocationsService.once("update_completed",()=>{qe.length>0&&Yt(s),Ee.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(wn=>{wn=wn.map(cn=>(cn.image=pt.venueImages[cn.name.toLowerCase()],cn)),Ze(wn)}),Le&&window.mapsindoors.services.LocationsService.getLocation(Le.id).then(wn=>Ye(wn))}),xe?Oo.changeLanguage(Gt):Mae(Gt),$e(Gt)}},[Y,Zn]),Oe.useEffect(()=>{Zn&&(Ve(e),it(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(Gt=>(Ct(Gt),Gt)),window.mapsindoors.services.SolutionsService.getSolution().then(Gt=>(mt(Gt),Gt)),new Promise(Gt=>setTimeout(Gt,3e3))]).then(([Gt,wn])=>{Gt=Gt.map(cn=>(cn.image=wn.venueImages[cn.name.toLowerCase()],cn)),Ze(Gt)}),it(!1))},[e,Zn]),Oe.useEffect(()=>{var Gt,wn;Zn&&pt&&(Ae(r||((Gt=pt.appSettings)==null?void 0:Gt.mapboxAccessToken)),De(t||((wn=pt.appSettings)==null?void 0:wn.gmKey)))},[t,r,Zn,pt]),Oe.useEffect(()=>{Zn&&window.mapsindoors.services.SolutionsService.getUserRoles().then(Gt=>{const wn=Gt.filter(cn=>a==null?void 0:a.includes(cn.name));window.mapsindoors.MapsIndoors.setUserRoles(wn)})},[a,Zn]),Oe.useEffect(()=>{Zn&&(D?window.mapsindoors.services.LocationsService.getLocationsByExternalId(D).then(Gt=>{se(Gt)}):se([]))},[D,Zn]),Oe.useEffect(()=>{Zn&&(Te(u),u&&window.mapsindoors.services.LocationsService.getLocation(u).then(Gt=>{Gt&&(Ft(Gt.properties.venueId),Ye(Gt))}))},[u,Zn,Bt]),Oe.useEffect(()=>{Zn&&ie(V)},[V,Zn]),Oe.useEffect(()=>{Xn===Ei.LOCATION_DETAILS&&ai&&!Le&&Ye(ai),qi.current=Xn===Ei.DIRECTIONS,qi.current?(vt(ce),Ne([])):Ne(ht)},[Xn]),Oe.useEffect(()=>{ze(s),Ft(s)},[s]),Oe.useEffect(()=>{an(N)},[N]),Oe.useEffect(()=>{le(f)},[f]),Oe.useEffect(()=>{Fe(C)},[C]),Oe.useEffect(()=>{St(R)},[R]),Oe.useEffect(()=>{Pe(O)},[O]),Oe.useEffect(()=>{X(m)},[m]),Oe.useEffect(()=>{bt(pe)},[pe]),Oe.useEffect(()=>{Le&&Le.id!==H?Me!=null&&Me.selectLocation&&Me.selectLocation(Le):Me!=null&&Me.deselectLocation&&Me.deselectLocation()},[Le]),Oe.useEffect(()=>{Zn&&(Ue(H),H?window.mapsindoors.services.LocationsService.getLocation(H).then(Gt=>{Ft(Gt.properties.venueId),He(Gt)}):He(),H&&Xt?(Tt(!1),An(!1)):(Tt(!0),An(!0)))},[H,Zn]),Oe.useEffect(()=>{Xe(fe)},[fe]),Oe.useEffect(()=>{_t(W)},[W]),Oe.useEffect(()=>{Zn&&ee&&H&&et(ee)},[ee,H,Zn]),Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&Ot(he)},[he,qe,Zn]),Oe.useEffect(()=>{Zn&&oe&&Rt(oe)},[oe,Zn]),Oe.useEffect(()=>{Zn&&Vt&&Yt(Vt)},[Vt,Zn]);function en(Gt){Ge===!1&&it(!0),Yt(Gt.name)}function nn(Gt){qi.current!==!0&&Gt.id!==H&&Ye(Gt)}function Yt(Gt){window.mapsindoors.services.LocationsService.getLocations({}).then(wn=>{const cn=wn.filter(Di=>Di.properties.venueId===Gt);Jt(cn)})}function ln(){kt(),Wi(),qt(Gt=>Gt+1)}function Jt(Gt){let wn=new Map;for(const cn of Gt){const Di=Object.keys(cn.properties.categories);for(const ji of Di){const Ci=pt==null?void 0:pt.menuInfo.mainmenu.find(mr=>mr.categoryKey===ji);if(wn.has(ji)){let mr=wn.get(ji).count;wn.set(ji,{count:++mr,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}else wn.set(ji,{count:1,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}}wn=Array.from(wn).sort((cn,Di)=>Di[1].count-cn[1].count),Ie(wn)}return Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&(Ot(he),dn(he))},[he,qe,Zn]),Je.jsxs("div",{className:`mapsindoors-map ${qi.current?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"} ${kn?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,"data-sentry-component":"MapTemplate","data-sentry-source-file":"MapTemplate.jsx",children:[Je.jsx(Qle,{"data-sentry-element":"Notification","data-sentry-source-file":"MapTemplate.jsx"}),!Ge&&Je.jsx(Gae,{}),Ee.length>1&&Bn&&Je.jsx(nle,{onOpen:()=>tn(Ei.VENUE_SELECTOR),onClose:()=>Sn(),active:Xn===Ei.VENUE_SELECTOR}),Mt&&Je.jsx(kce,{}),It&&Je.jsx(jce,{}),ni&&Je.jsxs(Oe.Fragment,{children:[Xt&&Je.jsx($le,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()}),Dt&&Je.jsx(Ule,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()})]},Bt),Je.jsx(Hae,{useMapProviderModule:q,onVenueChangedOnMap:Gt=>en(Gt),onMapPositionKnown:()=>st(!0),onLocationClick:Gt=>nn(Gt),"data-sentry-element":"MIMap","data-sentry-source-file":"MapTemplate.jsx"})]})}function B7(e){const[t,r]=Oe.useState();return Oe.useEffect(()=>{var Ee,Ze;const s=window.location.search,u=new URLSearchParams(s),f={apiKey:"mapspeople3d",venue:"AUSTINOFFICE",logo:"https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg",primaryColor:"#005655",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1},m=u.get("apiKey"),a=u.get("venue"),v=u.get("locationId"),S=u.get("logo"),D=u.get("directionsFrom"),N=u.get("directionsTo"),C=u.get("tileStyle"),O=u.get("startZoomLevel"),R=u.get("pitch"),V=u.get("bearing"),q=u.get("gmApiKey"),H=u.get("mapboxAccessToken"),Y=u.get("primaryColor"),W=(Ee=u.get("appUserRoles"))==null?void 0:Ee.split(","),ee=(Ze=u.get("externalIDs"))==null?void 0:Ze.split(","),fe=u.get("gmMapId"),pe=wT(u.get("useMapProviderModule")),he=u.get("kioskOriginLocationId"),oe=u.get("timeout"),Ve=u.get("language"),De=wT(u.get("useKeyboard")),Ae=u.get("miTransitionLevel"),Ge=u.get("category"),it=wT(u.get("searchAllVenues"));r({apiKey:e.supportsUrlParameters&&m?m:e.apiKey||f.apiKey,venue:e.supportsUrlParameters&&a?a:e.venue||f.venue,locationId:e.supportsUrlParameters&&v?v:e.locationId,logo:e.supportsUrlParameters&&S?S:e.logo||f.logo,directionsFrom:e.supportsUrlParameters&&D?D:e.directionsFrom,directionsTo:e.supportsUrlParameters&&N?N:e.directionsTo,tileStyle:e.supportsUrlParameters&&C?C:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&O?O:e.startZoomLevel,pitch:e.supportsUrlParameters&&R?R:e.pitch,bearing:e.supportsUrlParameters&&V?V:e.bearing,gmApiKey:e.supportsUrlParameters&&q?q:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&H?H:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&Y?"#"+Y:e.primaryColor||f.primaryColor,appUserRoles:e.supportsUrlParameters&&W?W:e.appUserRoles,externalIDs:e.supportsUrlParameters&&ee?ee:e.externalIDs,gmMapId:e.supportsUrlParameters&&fe?fe:e.gmMapId,useMapProviderModule:e.supportsUrlParameters&&pe?pe:e.useMapProviderModule||f.useMapProviderModule,kioskOriginLocationId:e.supportsUrlParameters&&he?he:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&oe?oe:e.timeout,language:e.supportsUrlParameters&&Ve?Ve:e.language,supportsUrlParameters:e.supportsUrlParameters,useKeyboard:e.supportsUrlParameters&&De?De:e.useKeyboard||f.useKeyboard,miTransitionLevel:e.supportsUrlParameters&&Ae?Ae:e.miTransitionLevel,category:e.supportsUrlParameters&&Ge?Ge:e.category,searchAllVenues:e.supportsUrlParameters&&it?it:e.searchAllVenues||f.searchAllVenues})},[e]),Je.jsx(nse,{"data-sentry-element":"RecoilRoot","data-sentry-component":"MapsIndoorsMap","data-sentry-source-file":"MapsIndoorsMap.jsx",children:t&&Je.jsx(Rce,{...t})})}WX({dsn:"https://0ee7fa162023d958c96db25e99c8ff6c@o351128.ingest.sentry.io/4506851619831808",environment:window.location.hostname==="localhost"?"localhost":"production",integrations:[gJ({useEffect:Vi.useEffect,useLocation:rh.useLocation,useNavigationType:rh.useNavigationType,createRoutesFromChildren:rh.createRoutesFromChildren,matchRoutes:rh.matchRoutes}),GX()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/api\.mapsindoors\.com/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1});function wT(e){return e==="true"}B7.propTypes={apiKey:Tr.string.isRequired,gmApiKey:Tr.string,mapboxAccessToken:Tr.string,venue:Tr.string,locationId:Tr.string,primaryColor:Tr.string,logo:Tr.string,appUserRoles:Tr.string,directionsFrom:Tr.string,directionsTo:Tr.string,externalIDs:Tr.array,tileStyle:Tr.string,startZoomLevel:Tr.number,gmMapId:Tr.string,supportsUrlParameters:Tr.bool,bearing:Tr.number,pitch:Tr.number,kioskOriginLocationId:Tr.string,useMapProviderModule:Tr.bool,timeout:Tr.number,miTransitionLevel:Tr.number,category:Tr.string,language:Tr.string,searchAllVenues:Tr.bool,useKeyboard:Tr.bool};const F7=AQ(B7,Vi,rh);window.customElements.define("mapsindoors-map",F7);const Pce=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Ri(this,e),this.selected=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),Uce=':host{box-sizing:border-box;display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',V7=class{constructor(e){Ri(this,e)}render(){return ke("slot",null)}};V7.style=Uce;const Bce=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",$7=class{constructor(e){Ri(this,e),this.inverse=!1}render(){return ke(co,null,ke("div",{class:`spinner ${this.inverse?"inverse":""}`},ke("div",{class:"bounce1"}),ke("div",{class:"bounce2"}),ke("div",{class:"bounce3"})))}};$7.style=Bce;const Fce=Object.freeze(Object.defineProperty({__proto__:null,mi_card:V7,mi_spinner:$7},Symbol.toStringTag,{value:"Module"})),Vce=':root{--z-index-top:999999;--z-index-popup:950;--z-index-modal:900;--z-index-spinner:800;--z-index-overlay:700;--z-index-dropdown:600;--z-index-toast:500;--z-index-header:400;--z-index-sticky:300;--z-index-mask:200;--z-index-masked:100;--z-index-default:1;--z-index-deep:-999999;--transition-slowly:600ms ease;--transition-quickly:300ms ease;--tailwind-colors-rose-900:#881337;--tailwind-colors-rose-800:#9f1239;--tailwind-colors-rose-700:#be123c;--tailwind-colors-rose-600:#e11d48;--tailwind-colors-rose-500:#f43f5e;--tailwind-colors-rose-400:#fb7185;--tailwind-colors-rose-300:#fda4af;--tailwind-colors-rose-200:#fecdd3;--tailwind-colors-rose-100:#ffe4e6;--tailwind-colors-rose-50:#fff1f2;--tailwind-colors-pink-900:#831843;--tailwind-colors-pink-800:#9d174d;--tailwind-colors-pink-700:#be185d;--tailwind-colors-pink-600:#db2777;--tailwind-colors-pink-500:#ec4899;--tailwind-colors-pink-400:#f472b6;--tailwind-colors-pink-300:#f9a8d4;--tailwind-colors-pink-200:#fbcfe8;--tailwind-colors-pink-100:#fce7f3;--tailwind-colors-pink-50:#fdf2f8;--tailwind-colors-fuchsia-900:#701a75;--tailwind-colors-fuchsia-800:#86198f;--tailwind-colors-fuchsia-700:#a21caf;--tailwind-colors-fuchsia-600:#c026d3;--tailwind-colors-fuchsia-500:#d946ef;--tailwind-colors-fuchsia-400:#e879f9;--tailwind-colors-fuchsia-300:#f0abfc;--tailwind-colors-fuchsia-200:#f5d0fe;--tailwind-colors-fuchsia-100:#fae8ff;--tailwind-colors-fuchsia-50:#fdf4ff;--tailwind-colors-purple-900:#581c87;--tailwind-colors-purple-800:#6b21a8;--tailwind-colors-purple-700:#7e22ce;--tailwind-colors-purple-600:#9333ea;--tailwind-colors-purple-500:#a855f7;--tailwind-colors-purple-400:#c084fc;--tailwind-colors-purple-300:#d8b4fe;--tailwind-colors-purple-200:#e9d5ff;--tailwind-colors-purple-100:#f3e8ff;--tailwind-colors-purple-50:#faf5ff;--tailwind-colors-violet-900:#4c1d95;--tailwind-colors-violet-800:#5b21b6;--tailwind-colors-violet-700:#6d28d9;--tailwind-colors-violet-600:#7c3aed;--tailwind-colors-violet-500:#8b5cf6;--tailwind-colors-violet-400:#a78bfa;--tailwind-colors-violet-300:#c4b5fd;--tailwind-colors-violet-200:#ddd6fe;--tailwind-colors-violet-100:#ede9fe;--tailwind-colors-violet-50:#f5f3ff;--tailwind-colors-indigo-900:#312e81;--tailwind-colors-indigo-800:#3730a3;--tailwind-colors-indigo-700:#4338ca;--tailwind-colors-indigo-600:#4f46e5;--tailwind-colors-indigo-500:#6366f1;--tailwind-colors-indigo-400:#818cf8;--tailwind-colors-indigo-300:#a5b4fc;--tailwind-colors-indigo-200:#c7d2fe;--tailwind-colors-indigo-100:#e0e7ff;--tailwind-colors-indigo-50:#eef2ff;--tailwind-colors-blue-900:#1e3a8a;--tailwind-colors-blue-800:#1e40af;--tailwind-colors-blue-700:#1d4ed8;--tailwind-colors-blue-600:#2563eb;--tailwind-colors-blue-500:#3b82f6;--tailwind-colors-blue-400:#60a5fa;--tailwind-colors-blue-300:#93c5fd;--tailwind-colors-blue-200:#bfdbfe;--tailwind-colors-blue-100:#dbeafe;--tailwind-colors-blue-50:#eff6ff;--tailwind-colors-sky-900:#0c4a6e;--tailwind-colors-sky-800:#075985;--tailwind-colors-sky-700:#0369a1;--tailwind-colors-sky-600:#0284c7;--tailwind-colors-sky-500:#0ea5e9;--tailwind-colors-sky-400:#38bdf8;--tailwind-colors-sky-300:#7dd3fc;--tailwind-colors-sky-200:#bae6fd;--tailwind-colors-sky-100:#e0f2fe;--tailwind-colors-sky-50:#f0f9ff;--tailwind-colors-cyan-900:#164e63;--tailwind-colors-cyan-800:#155e75;--tailwind-colors-cyan-700:#0e7490;--tailwind-colors-cyan-600:#0891b2;--tailwind-colors-cyan-500:#06b6d4;--tailwind-colors-cyan-400:#22d3ee;--tailwind-colors-cyan-300:#67e8f9;--tailwind-colors-cyan-200:#a5f3fc;--tailwind-colors-cyan-100:#cffafe;--tailwind-colors-cyan-50:#ecfeff;--tailwind-colors-teal-900:#134e4a;--tailwind-colors-teal-800:#115e59;--tailwind-colors-teal-700:#0f766e;--tailwind-colors-teal-600:#0d9488;--tailwind-colors-teal-500:#14b8a6;--tailwind-colors-teal-400:#2dd4bf;--tailwind-colors-teal-300:#5eead4;--tailwind-colors-teal-200:#99f6e4;--tailwind-colors-teal-100:#ccfbf1;--tailwind-colors-teal-50:#f0fdfa;--tailwind-colors-emerald-900:#064e3b;--tailwind-colors-emerald-800:#065f46;--tailwind-colors-emerald-700:#047857;--tailwind-colors-emerald-600:#059669;--tailwind-colors-emerald-500:#10b981;--tailwind-colors-emerald-400:#34d399;--tailwind-colors-emerald-300:#6ee7b7;--tailwind-colors-emerald-200:#a7f3d0;--tailwind-colors-emerald-100:#d1fae5;--tailwind-colors-emerald-50:#ecfdf5;--tailwind-colors-green-900:#14532d;--tailwind-colors-green-800:#166534;--tailwind-colors-green-700:#15803d;--tailwind-colors-green-600:#16a34a;--tailwind-colors-green-500:#22c55e;--tailwind-colors-green-400:#4ade80;--tailwind-colors-green-300:#86efac;--tailwind-colors-green-200:#bbf7d0;--tailwind-colors-green-100:#dcfce7;--tailwind-colors-green-50:#f0fdf4;--tailwind-colors-lime-900:#365314;--tailwind-colors-lime-800:#3f6212;--tailwind-colors-lime-700:#4d7c0f;--tailwind-colors-lime-600:#65a30d;--tailwind-colors-lime-500:#84cc16;--tailwind-colors-lime-400:#a3e635;--tailwind-colors-lime-300:#bef264;--tailwind-colors-lime-200:#d9f99d;--tailwind-colors-lime-100:#ecfccb;--tailwind-colors-lime-50:#f7fee7;--tailwind-colors-yellow-900:#713f12;--tailwind-colors-yellow-800:#854d0e;--tailwind-colors-yellow-700:#a16207;--tailwind-colors-yellow-600:#ca8a04;--tailwind-colors-yellow-500:#eab308;--tailwind-colors-yellow-400:#facc15;--tailwind-colors-yellow-300:#fde047;--tailwind-colors-yellow-200:#fef08a;--tailwind-colors-yellow-100:#fef9c3;--tailwind-colors-yellow-50:#fefce8;--tailwind-colors-amber-900:#78350f;--tailwind-colors-amber-800:#92400e;--tailwind-colors-amber-700:#b45309;--tailwind-colors-amber-600:#d97706;--tailwind-colors-amber-500:#f59e0b;--tailwind-colors-amber-400:#fbbf24;--tailwind-colors-amber-300:#fcd34d;--tailwind-colors-amber-200:#fde68a;--tailwind-colors-amber-100:#fef3c7;--tailwind-colors-amber-50:#fffbeb;--tailwind-colors-orange-900:#7c2d12;--tailwind-colors-orange-800:#9a3412;--tailwind-colors-orange-700:#c2410c;--tailwind-colors-orange-600:#ea580c;--tailwind-colors-orange-500:#f97316;--tailwind-colors-orange-400:#fb923c;--tailwind-colors-orange-300:#fdba74;--tailwind-colors-orange-200:#fed7aa;--tailwind-colors-orange-100:#ffedd5;--tailwind-colors-orange-50:#fff7ed;--tailwind-colors-red-900:#7f1d1d;--tailwind-colors-red-800:#991b1b;--tailwind-colors-red-700:#b91c1c;--tailwind-colors-red-600:#dc2626;--tailwind-colors-red-500:#ef4444;--tailwind-colors-red-400:#f87171;--tailwind-colors-red-300:#fca5a5;--tailwind-colors-red-200:#fecaca;--tailwind-colors-red-100:#fee2e2;--tailwind-colors-red-50:#fef2f2;--tailwind-colors-stone-900:#1c1917;--tailwind-colors-stone-800:#292524;--tailwind-colors-stone-700:#44403c;--tailwind-colors-stone-600:#57534e;--tailwind-colors-stone-500:#78716c;--tailwind-colors-stone-400:#a8a29e;--tailwind-colors-stone-300:#d6d3d1;--tailwind-colors-stone-200:#e7e5e4;--tailwind-colors-stone-100:#f5f5f4;--tailwind-colors-stone-50:#fafaf9;--tailwind-colors-neutral-900:#171717;--tailwind-colors-neutral-800:#262626;--tailwind-colors-neutral-700:#404040;--tailwind-colors-neutral-600:#525252;--tailwind-colors-neutral-500:#737373;--tailwind-colors-neutral-400:#a3a3a3;--tailwind-colors-neutral-300:#d4d4d4;--tailwind-colors-neutral-200:#e5e5e5;--tailwind-colors-neutral-100:#f5f5f5;--tailwind-colors-neutral-50:#fafafa;--tailwind-colors-zinc-900:#18181b;--tailwind-colors-zinc-800:#27272a;--tailwind-colors-zinc-700:#3f3f46;--tailwind-colors-zinc-600:#52525b;--tailwind-colors-zinc-500:#71717a;--tailwind-colors-zinc-400:#a1a1aa;--tailwind-colors-zinc-300:#d4d4d8;--tailwind-colors-zinc-200:#e4e4e7;--tailwind-colors-zinc-100:#f4f4f5;--tailwind-colors-zinc-50:#fafafa;--tailwind-colors-gray-900:#111827;--tailwind-colors-gray-800:#1f2937;--tailwind-colors-gray-700:#374151;--tailwind-colors-gray-600:#4b5563;--tailwind-colors-gray-500:#6b7280;--tailwind-colors-gray-400:#9ca3af;--tailwind-colors-gray-300:#d1d5db;--tailwind-colors-gray-200:#e5e7eb;--tailwind-colors-gray-100:#f3f4f6;--tailwind-colors-gray-50:#f9fafb;--tailwind-colors-slate-900:#0f172a;--tailwind-colors-slate-800:#1e293b;--tailwind-colors-slate-700:#334155;--tailwind-colors-slate-600:#475569;--tailwind-colors-slate-500:#64748b;--tailwind-colors-slate-400:#94a3b8;--tailwind-colors-slate-300:#cbd5e1;--tailwind-colors-slate-200:#e2e8f0;--tailwind-colors-slate-100:#f1f5f9;--tailwind-colors-slate-50:#f8fafc;--tailwind-colors-black:#000000;--tailwind-colors-white:#ffffff;--spacing-xxxx-large:64px;--spacing-xxx-large:48px;--spacing-xx-large:40px;--spacing-x-large:32px;--spacing-large:24px;--spacing-medium:16px;--spacing-small:12px;--spacing-x-small:8px;--spacing-xx-small:4px;--spacing-xxx-small:2px;--rounding-circle:50%;--rounding-pill:9999px;--rounding-x-large:16px;--rounding-large:8px;--rounding-medium:4px;--rounding-small:2px;--rounding-x-small:1px;--rounding-xx-small:0px;--opacity-xxx-large:1;--opacity-xx-large:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.08;--opacity-xx-small:0;--icon-size-xx-large:64px;--icon-size-x-large:48px;--icon-size-large:32px;--icon-size-medium:24px;--icon-size-small:16px;--font-measure-large:34rem;--font-measure-medium:30rem;--font-measure-small:20rem;--font-tracking-x-large:.25rem;--font-tracking-large:.1rem;--font-tracking-medium:normal;--font-tracking-small:-.05rem;--font-weight-xx-large:700;--font-weight-x-large:600;--font-weight-large:500;--font-weight-medium:400;--font-weight-small:300;--font-size-xxxx-large:4.5rem;--font-size-xxx-large:3rem;--font-size-xx-large:2.25rem;--font-size-x-large:1.5rem;--font-size-large:1.25rem;--font-size-medium:1rem;--font-size-small:0.875rem;--font-size-x-small:0.75rem;--font-family-serif:Georgia, Times, Times New Roman, serif;--font-family-monospace:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large:0px 20px 20px rgba(0, 0, 0, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);--color-transparent-base:rgba(0, 0, 0, 0);--color-white-base:#fcfcfc;--breakpoints-xx-large:only screen and (min-width: 1220px);--breakpoints-x-large:only screen and (min-width: 1025px);--breakpoints-large:only screen and (min-width: 992px);--breakpoints-medium:only screen and (min-width: 768px);--breakpoints-small:only screen and (min-width: 576px);--breakpoints-x-small:only screen and (max-width: 575px);--breakpoints-xx-small:only screen and (max-width: 360px);--brand-colors-black-100:#000000;--brand-colors-black-80:#323232;--brand-colors-black-60:#666666;--brand-colors-black-40:#999999;--brand-colors-black-20:#cccccc;--brand-colors-white-100:#ffffff;--brand-colors-dark-pine-100:#005655;--brand-colors-dark-pine-80:#327676;--brand-colors-dark-pine-60:#669999;--brand-colors-dark-pine-40:#99bbbb;--brand-colors-dark-pine-20:#ccdddd;--brand-colors-sky-blue-100:#abddff;--brand-colors-sky-blue-80:#c3e5ff;--brand-colors-sky-blue-60:#d2ebff;--brand-colors-sky-blue-40:#e1f2ff;--brand-colors-sky-blue-20:#f0f8ff;--brand-colors-sand-100:#ffefd7;--brand-colors-sand-80:#fff2df;--brand-colors-sand-60:#fff5e7;--brand-colors-brand-lime-100:#cdff00;--brand-colors-brand-lime-80:#d7ff32;--brand-colors-brand-lime-60:#e1ff66;--brand-colors-brand-lime-40:#ebff99;--brand-colors-brand-lime-20:#f5ffcc;--brand-colors-electric-purple-100:#7d49f3;--brand-colors-electric-purple-80:#976df5;--brand-colors-electric-purple-60:#b191f7;--brand-colors-electric-purple-40:#cbb6fa;--brand-colors-electric-purple-20:#e5dafc;--font-family-sans-serif:Figtree, var(--font-family-system);--color-dusk-base:var(--tailwind-colors-violet-500);--color-dusk-100:var(--tailwind-colors-violet-900);--color-dusk-90:var(--tailwind-colors-violet-800);--color-dusk-80:var(--tailwind-colors-violet-700);--color-dusk-70:var(--tailwind-colors-violet-600);--color-dusk-60:var(--tailwind-colors-violet-500);--color-dusk-50:var(--tailwind-colors-violet-400);--color-dusk-40:var(--tailwind-colors-violet-300);--color-dusk-30:var(--tailwind-colors-violet-200);--color-dusk-20:var(--tailwind-colors-violet-100);--color-dusk-10:var(--tailwind-colors-violet-50);--color-slate-base:var(--tailwind-colors-slate-500);--color-slate-100:var(--tailwind-colors-slate-900);--color-slate-90:var(--tailwind-colors-slate-800);--color-slate-80:var(--tailwind-colors-slate-700);--color-slate-70:var(--tailwind-colors-slate-600);--color-slate-60:var(--tailwind-colors-slate-500);--color-slate-50:var(--tailwind-colors-slate-400);--color-slate-40:var(--tailwind-colors-slate-300);--color-slate-30:var(--tailwind-colors-slate-200);--color-slate-20:var(--tailwind-colors-slate-100);--color-slate-10:var(--tailwind-colors-slate-50);--color-teal-base:var(--tailwind-colors-teal-500);--color-teal-100:var(--tailwind-colors-teal-900);--color-teal-90:var(--tailwind-colors-teal-800);--color-teal-80:var(--tailwind-colors-teal-700);--color-teal-70:var(--tailwind-colors-teal-600);--color-teal-60:var(--tailwind-colors-teal-500);--color-teal-50:var(--tailwind-colors-teal-400);--color-teal-40:var(--tailwind-colors-teal-300);--color-teal-30:var(--tailwind-colors-teal-200);--color-teal-20:var(--tailwind-colors-teal-100);--color-teal-10:var(--tailwind-colors-teal-50);--color-sky-base:var(--tailwind-colors-sky-500);--color-sky-100:var(--tailwind-colors-sky-900);--color-sky-90:var(--tailwind-colors-sky-800);--color-sky-80:var(--tailwind-colors-sky-700);--color-sky-70:var(--tailwind-colors-sky-600);--color-sky-60:var(--tailwind-colors-sky-500);--color-sky-50:var(--tailwind-colors-sky-400);--color-sky-40:var(--tailwind-colors-sky-300);--color-sky-30:var(--tailwind-colors-sky-200);--color-sky-20:var(--tailwind-colors-sky-100);--color-sky-10:var(--tailwind-colors-sky-50);--color-indigo-base:var(--tailwind-colors-indigo-500);--color-indigo-100:var(--tailwind-colors-indigo-900);--color-indigo-90:var(--tailwind-colors-indigo-800);--color-indigo-80:var(--tailwind-colors-indigo-700);--color-indigo-70:var(--tailwind-colors-indigo-600);--color-indigo-60:var(--tailwind-colors-indigo-500);--color-indigo-50:var(--tailwind-colors-indigo-400);--color-indigo-40:var(--tailwind-colors-indigo-300);--color-indigo-30:var(--tailwind-colors-indigo-200);--color-indigo-20:var(--tailwind-colors-indigo-100);--color-indigo-10:var(--tailwind-colors-indigo-50);--color-magenta-base:var(--tailwind-colors-pink-500);--color-magenta-100:var(--tailwind-colors-pink-900);--color-magenta-90:var(--tailwind-colors-pink-800);--color-magenta-80:var(--tailwind-colors-pink-700);--color-magenta-70:var(--tailwind-colors-pink-600);--color-magenta-60:var(--tailwind-colors-pink-500);--color-magenta-50:var(--tailwind-colors-pink-400);--color-magenta-40:var(--tailwind-colors-pink-300);--color-magenta-30:var(--tailwind-colors-pink-200);--color-magenta-20:var(--tailwind-colors-pink-100);--color-magenta-10:var(--tailwind-colors-pink-50);--color-purple-base:var(--tailwind-colors-purple-500);--color-purple-100:var(--tailwind-colors-purple-900);--color-purple-90:var(--tailwind-colors-purple-800);--color-purple-80:var(--tailwind-colors-purple-700);--color-purple-70:var(--tailwind-colors-purple-600);--color-purple-60:var(--tailwind-colors-purple-500);--color-purple-50:var(--tailwind-colors-purple-400);--color-purple-40:var(--tailwind-colors-purple-300);--color-purple-30:var(--tailwind-colors-purple-200);--color-purple-20:var(--tailwind-colors-purple-100);--color-purple-10:var(--tailwind-colors-purple-50);--color-bronze-base:var(--tailwind-colors-amber-500);--color-bronze-100:var(--tailwind-colors-amber-900);--color-bronze-90:var(--tailwind-colors-amber-800);--color-bronze-80:var(--tailwind-colors-amber-700);--color-bronze-70:var(--tailwind-colors-amber-600);--color-bronze-60:var(--tailwind-colors-amber-500);--color-bronze-50:var(--tailwind-colors-amber-400);--color-bronze-40:var(--tailwind-colors-amber-300);--color-bronze-30:var(--tailwind-colors-amber-200);--color-bronze-20:var(--tailwind-colors-amber-100);--color-bronze-10:var(--tailwind-colors-amber-50);--color-blue-base:var(--tailwind-colors-blue-500);--color-blue-100:var(--tailwind-colors-blue-900);--color-blue-90:var(--tailwind-colors-blue-800);--color-blue-80:var(--tailwind-colors-blue-700);--color-blue-70:var(--tailwind-colors-blue-600);--color-blue-60:var(--tailwind-colors-blue-500);--color-blue-50:var(--tailwind-colors-blue-400);--color-blue-40:var(--tailwind-colors-blue-300);--color-blue-30:var(--tailwind-colors-blue-200);--color-blue-20:var(--tailwind-colors-blue-100);--color-blue-10:var(--tailwind-colors-blue-50);--color-green-base:var(--tailwind-colors-green-500);--color-green-100:var(--tailwind-colors-green-900);--color-green-90:var(--tailwind-colors-green-800);--color-green-80:var(--tailwind-colors-green-700);--color-green-70:var(--tailwind-colors-green-600);--color-green-60:var(--tailwind-colors-green-500);--color-green-50:var(--tailwind-colors-green-400);--color-green-40:var(--tailwind-colors-green-300);--color-green-30:var(--tailwind-colors-green-200);--color-green-20:var(--tailwind-colors-green-100);--color-green-10:var(--tailwind-colors-green-50);--color-red-base:var(--tailwind-colors-red-500);--color-red-100:var(--tailwind-colors-red-900);--color-red-90:var(--tailwind-colors-red-800);--color-red-80:var(--tailwind-colors-red-700);--color-red-70:var(--tailwind-colors-red-600);--color-red-60:var(--tailwind-colors-red-500);--color-red-50:var(--tailwind-colors-red-400);--color-red-40:var(--tailwind-colors-red-300);--color-red-30:var(--tailwind-colors-red-200);--color-red-20:var(--tailwind-colors-red-100);--color-red-10:var(--tailwind-colors-red-50);--color-gray-base:var(--tailwind-colors-gray-500);--color-gray-100:var(--tailwind-colors-gray-900);--color-gray-90:var(--tailwind-colors-gray-800);--color-gray-80:var(--tailwind-colors-gray-700);--color-gray-70:var(--tailwind-colors-gray-600);--color-gray-60:var(--tailwind-colors-gray-500);--color-gray-50:var(--tailwind-colors-gray-400);--color-gray-40:var(--tailwind-colors-gray-300);--color-gray-30:var(--tailwind-colors-gray-200);--color-gray-20:var(--tailwind-colors-gray-100);--color-gray-10:var(--tailwind-colors-gray-50);--color-hotorchid-base:var(--tailwind-colors-pink-500);--color-white-white:var(--tailwind-colors-white);--color-black-black:var(--tailwind-colors-black);--color-black-base:var(--tailwind-colors-stone-900)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',Q7=class{constructor(e){Ri(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return ke("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&ke("img",{class:"chip__icon",src:this.icon}),ke("div",{class:"chip__content"},this.content))}};Q7.style=Vce;const $ce=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:Q7},Symbol.toStringTag,{value:"Module"})),Qce=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Ri(this,e),this.clicked=pr(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var IT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c0(e,t,r){return r={path:t,exports:{},require:function(s,u){return Hce()}},e(r,r.exports),r.exports}function Hce(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Y7=c0(function(e){((t,r)=>{e.exports?e.exports=r():t.fuzzysort=r()})(IT,t=>{var r=(Ze,ze)=>{if(Ze=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Ze||!ze)return Ge;var Le=D(Ze);oe(ze)||(ze=S(ze));var Ye=Le.bitflags;return(Ye&ze._bitflags)!==Ye?Ge:C(Le,ze)},s=(Ze,ze,Le)=>{if(Ze=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:ze?ze[0]:Ge}];if(!Ze)return Le&&Le.all?N(Ze,ze,Le):Ae;var Ye=D(Ze),qe=Ye.bitflags,Ie=Le&&Le.threshold||De,Te=Le&&Le.limit||Ve,le=0,X=0,ie=ze.length;if(Le&&Le.key)for(var Me=Le.key,xe=0;xe<ie;++xe){var $e=ze[xe],He=he($e,Me);if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(Ue={target:Ue.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:Ue.score,_indexes:Ue._indexes,obj:$e},le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}else if(Le&&Le.keys)for(var Xe=Le.scoreFn||pe,ut=Le.keys,_t=ut.length,xe=0;xe<ie;++xe){for(var $e=ze[xe],et=new Array(_t),bt=0;bt<_t;++bt){var Me=ut[bt],He=he($e,Me);if(!He){et[bt]=Ge;continue}oe(He)||(He=S(He)),(qe&He._bitflags)!==qe?et[bt]=Ge:et[bt]=C(Ye,He)}et.obj=$e;var Ot=Xe(et);Ot!==Ge&&(Ot<Ie||(et.score=Ot,le<Te?(Ee.add(et),++le):(++X,Ot>Ee.peek().score&&Ee.replaceTop(et))))}else for(var xe=0;xe<ie;++xe){var He=ze[xe];if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}if(le===0)return Ae;for(var Rt=new Array(le),xe=le-1;xe>=0;--xe)Rt[xe]=Ee.poll();return Rt.total=le+X,Rt},u=(Ze,ze,Le)=>{if(typeof ze=="function")return f(Ze,ze);if(Ze===Ge)return Ge;ze===void 0&&(ze="<b>"),Le===void 0&&(Le="</b>");var Ye="",qe=0,Ie=!1,Te=Ze.target,le=Te.length,X=Ze._indexes;X=X.slice(0,X.len).sort((xe,$e)=>xe-$e);for(var ie=0;ie<le;++ie){var Me=Te[ie];if(X[qe]===ie){if(++qe,Ie||(Ie=!0,Ye+=ze),qe===X.length){Ye+=Me+Le+Te.substr(ie+1);break}}else Ie&&(Ie=!1,Ye+=Le);Ye+=Me}return Ye},f=(ie,ze)=>{if(ie===Ge)return Ge;var Le=ie.target,Ye=Le.length,qe=ie._indexes;qe=qe.slice(0,qe.len).sort(($e,He)=>$e-He);for(var Ie="",Te=0,le=0,X=!1,ie=[],Me=0;Me<Ye;++Me){var xe=Le[Me];if(qe[le]===Me){if(++le,X||(X=!0,ie.push(Ie),Ie=""),le===qe.length){Ie+=xe,ie.push(ze(Ie,Te++)),Ie="",ie.push(Le.substr(Me+1));break}}else X&&(X=!1,ie.push(ze(Ie,Te++)),Ie="");Ie+=xe}return ie},m=Ze=>Ze._indexes.slice(0,Ze._indexes.len).sort((ze,Le)=>ze-Le),a=Ze=>{typeof Ze!="string"&&(Ze="");var ze=R(Ze);return{target:Ze,_targetLower:ze._lower,_targetLowerCodes:ze.lowerCodes,_nextBeginningIndexes:Ge,_bitflags:ze.bitflags,score:Ge,_indexes:[0],obj:Ge}},v=Ze=>{typeof Ze!="string"&&(Ze=""),Ze=Ze.trim();var ze=R(Ze),Le=[];if(ze.containsSpace){var Ye=Ze.split(/\s+/);Ye=[...new Set(Ye)];for(var qe=0;qe<Ye.length;qe++)if(Ye[qe]!==""){var Ie=R(Ye[qe]);Le.push({lowerCodes:Ie.lowerCodes,_lower:Ye[qe].toLowerCase(),containsSpace:!1})}}return{lowerCodes:ze.lowerCodes,bitflags:ze.bitflags,containsSpace:ze.containsSpace,_lower:ze._lower,spaceSearches:Le}},S=Ze=>{if(Ze.length>999)return a(Ze);var ze=Y.get(Ze);return ze!==void 0||(ze=a(Ze),Y.set(Ze,ze)),ze},D=Ze=>{if(Ze.length>999)return v(Ze);var ze=W.get(Ze);return ze!==void 0||(ze=v(Ze),W.set(Ze,ze)),ze},N=(Ze,ze,Le)=>{var Ye=[];Ye.total=ze.length;var qe=Le&&Le.limit||Ve;if(Le&&Le.key)for(var Ie=0;Ie<ze.length;Ie++){var Te=ze[Ie],le=he(Te,Le.key);if(le){oe(le)||(le=S(le)),le.score=De,le._indexes.len=0;var X=le;if(X={target:X.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:le.score,_indexes:Ge,obj:Te},Ye.push(X),Ye.length>=qe)return Ye}}else if(Le&&Le.keys)for(var Ie=0;Ie<ze.length;Ie++){for(var Te=ze[Ie],ie=new Array(Le.keys.length),Me=Le.keys.length-1;Me>=0;--Me){var le=he(Te,Le.keys[Me]);if(!le){ie[Me]=Ge;continue}oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,ie[Me]=le}if(ie.obj=Te,ie.score=De,Ye.push(ie),Ye.length>=qe)return Ye}else for(var Ie=0;Ie<ze.length;Ie++){var le=ze[Ie];if(le&&(oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,Ye.push(le),Ye.length>=qe))return Ye}return Ye},C=(Ze,ze,Le=!1)=>{if(Le===!1&&Ze.containsSpace)return O(Ze,ze);for(var Ye=Ze._lower,qe=Ze.lowerCodes,Ie=qe[0],Te=ze._targetLowerCodes,le=qe.length,X=Te.length,$e=0,ie=0,Me=0;;){var xe=Ie===Te[ie];if(xe){if(ee[Me++]=ie,++$e,$e===le)break;Ie=qe[$e]}if(++ie,ie>=X)return Ge}var $e=0,He=!1,Ue=0,Xe=ze._nextBeginningIndexes;Xe===Ge&&(Xe=ze._nextBeginningIndexes=q(ze.target)),ie=ee[0]===0?0:Xe[ee[0]-1];var ut=0;if(ie!==X)for(;;)if(ie>=X){if($e<=0||(++ut,ut>200))break;--$e;var _t=fe[--Ue];ie=Xe[_t]}else{var xe=qe[$e]===Te[ie];if(xe){if(fe[Ue++]=ie,++$e,$e===le){He=!0;break}++ie}else ie=Xe[ie]}var et=ze._targetLower.indexOf(Ye,ee[0]),bt=~et;if(bt&&!He)for(var Ot=0;Ot<Me;++Ot)ee[Ot]=et+Ot;var Rt=!1;bt&&(Rt=ze._nextBeginningIndexes[et-1]===et);{if(He)var dn=fe,Bn=Ue;else var dn=ee,Bn=Me;for(var Tt=0,kn=0,Ot=1;Ot<le;++Ot)dn[Ot]-dn[Ot-1]!==1&&(Tt-=dn[Ot],++kn);var An=dn[le-1]-dn[0]-(le-1);if(Tt-=(12+An)*kn,dn[0]!==0&&(Tt-=dn[0]*dn[0]*.2),!He)Tt*=1e3;else{for(var Cn=1,Ot=Xe[0];Ot<X;Ot=Xe[Ot])++Cn;Cn>24&&(Tt*=(Cn-24)*10)}bt&&(Tt/=1+le*le*1),Rt&&(Tt/=1+le*le*1),Tt-=X-le,ze.score=Tt;for(var Ot=0;Ot<Bn;++Ot)ze._indexes[Ot]=dn[Ot];return ze._indexes.len=Bn,ze}},O=(Ze,ze)=>{for(var Le=new Set,Ye=0,qe=Ge,Ie=0,Te=Ze.spaceSearches,Me=0;Me<Te.length;++Me){var le=Te[Me];if(qe=C(le,ze),qe===Ge)return Ge;Ye+=qe.score,qe._indexes[0]<Ie&&(Ye-=Ie-qe._indexes[0]),Ie=qe._indexes[0];for(var X=0;X<qe._indexes.len;++X)Le.add(qe._indexes[X])}var ie=C(Ze,ze,!0);if(ie!==Ge&&ie.score>Ye)return ie;qe.score=Ye;var Me=0;for(let xe of Le)qe._indexes[Me++]=xe;return qe._indexes.len=Me,qe},R=Ze=>{for(var ze=Ze.length,Le=Ze.toLowerCase(),Ye=[],qe=0,Ie=!1,Te=0;Te<ze;++Te){var le=Ye[Te]=Le.charCodeAt(Te);if(le===32){Ie=!0;continue}var X=le>=97&&le<=122?le-97:le>=48&&le<=57?26:le<=127?30:31;qe|=1<<X}return{lowerCodes:Ye,bitflags:qe,containsSpace:Ie,_lower:Le}},V=Ze=>{for(var ze=Ze.length,Le=[],Ye=0,qe=!1,Ie=!1,Te=0;Te<ze;++Te){var le=Ze.charCodeAt(Te),X=le>=65&&le<=90,ie=X||le>=97&&le<=122||le>=48&&le<=57,Me=X&&!qe||!Ie||!ie;qe=X,Ie=ie,Me&&(Le[Ye++]=Te)}return Le},q=Ze=>{for(var ze=Ze.length,Le=V(Ze),Ye=[],qe=Le[0],Ie=0,Te=0;Te<ze;++Te)qe>Te?Ye[Te]=qe:(qe=Le[++Ie],Ye[Te]=qe===void 0?ze:qe);return Ye},H=()=>{Y.clear(),W.clear(),ee=[],fe=[]},Y=new Map,W=new Map,ee=[],fe=[],pe=Ze=>{for(var ze=De,Le=Ze.length,Ye=0;Ye<Le;++Ye){var qe=Ze[Ye];if(qe!==Ge){var Ie=qe.score;Ie>ze&&(ze=Ie)}}return ze===De?Ge:ze},he=(Ze,ze)=>{var Le=Ze[ze];if(Le!==void 0)return Le;var Ye=ze;Array.isArray(ze)||(Ye=ze.split("."));for(var qe=Ye.length,Ie=-1;Ze&&++Ie<qe;)Ze=Ze[Ye[Ie]];return Ze},oe=Ze=>typeof Ze=="object",Ve=1/0,De=-Ve,Ae=[];Ae.total=0;var Ge=null,it=Ze=>{var ze=[],Le=0,Ye={},qe=Ie=>{for(var Te=0,le=ze[Te],X=1;X<Le;){var ie=X+1;Te=X,ie<Le&&ze[ie].score<ze[X].score&&(Te=ie),ze[Te-1>>1]=ze[Te],X=1+(Te<<1)}for(var Me=Te-1>>1;Te>0&&le.score<ze[Me].score;Me=(Te=Me)-1>>1)ze[Te]=ze[Me];ze[Te]=le};return Ye.add=Ie=>{var Te=Le;ze[Le++]=Ie;for(var le=Te-1>>1;Te>0&&Ie.score<ze[le].score;le=(Te=le)-1>>1)ze[Te]=ze[le];ze[Te]=Ie},Ye.poll=Ie=>{if(Le!==0){var Te=ze[0];return ze[0]=ze[--Le],qe(),Te}},Ye.peek=Ie=>{if(Le!==0)return ze[0]},Ye.replaceTop=Ie=>{ze[0]=Ie,qe()},Ye},Ee=it();return{single:r,go:s,highlight:u,prepare:a,indexes:m,cleanup:H}})}),ap;(function(e){e.Asc="asc",e.Desc="desc"})(ap||(ap={}));const Yce=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var dl;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(dl||(dl={}));const G7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var t;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(t=this.selected[0])===null||t===void 0?void 0:t.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===dl.ArrowDown||t.key===dl.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===dl.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(dl.ArrowDown||dl.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===dl.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const t=ke("ul",{class:"list"},this.currentItems.map((r,s)=>this.renderListItem(r,s,this.filterable)));return ke(co,{class:{open:this.open}},ke("input",{type:"text",class:"input",onFocus:r=>this.onClickExists(r),ref:r=>this.filterElement=r,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),ke("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),ke("section",{ref:r=>this.listElement=r,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():t))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};G7.style=Yce;const Gce=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:G7},Symbol.toStringTag,{value:"Module"}));function Z7(e){return e!==null&&e>""&&!isNaN(Number(e))}function Zce(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function Gx(e){return e==null}function Zx(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function Wce(e){try{return new URL(e),!0}catch{return!1}}function TT(e,t){if(Wce(e)===!1)return;const r=new URL(e),s=r.hostname;if(s==="image.mapsindoors.com"){const u=Math.max(2,window.devicePixelRatio||1),f=t*u,m=t*u;r.searchParams.set("width",f.toString()),r.searchParams.set("height",m.toString()),r.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(s)&&r.searchParams.set("scale","2"),r.toString()}const qce=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,W7=class{constructor(e){Ri(this,e),this.selectionChanged=pr(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(t=>{const r={alignContent:t.alignContent,monospace:t.monospace,label:Gx(t.label)?t.binding:t.label,binding:t.binding||null,sortable:t.sortable,fitContent:!!t.fitContent,template:t.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:t,width:t.width};return t.sort&&!this.sortByColumn&&(this.sortByColumn={column:r,sortOrder:t.sort==="asc"?"asc":"desc"}),r})}columnHeaderClickHandler(e,t){var r,s;if(!Gx(t.sortable)){let u="asc";t===((r=this.sortByColumn)===null||r===void 0?void 0:r.column)&&(u=((s=this.sortByColumn)===null||s===void 0?void 0:s.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:t,sortOrder:u}}}sortTableRows(){var e,t,r;if(this.tableRows.length>0&&this.sortByColumn){let s;const u=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,f=(t=this.sortByColumn)===null||t===void 0?void 0:t.sortOrder;if(u&&f)return((r=u.sortable)===null||r===void 0?void 0:r.toLowerCase())==="date"?s=f==="desc"?eue(u.binding):Jce(u.binding):s=f==="desc"?Xce(u.binding):Kce(u.binding),[...this.tableRows.sort(s)]}return this.tableRows}replaceVars(e,t){return e.replace(/\{(.*?)\}/g,(r,s)=>s.split(".").reduce((f,m)=>f?f[m]:null,t))}removeFalseBooleanAttributes(e,t){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(r,s,u)=>t[u]===!1?"":s)}tableRowClicked(e,t){var r;const s=e.target,u=s.closest("td").cellIndex,f=this.selectable?u-1:u;if(s.tagName.toLowerCase()!=="td"&&this.columns[f]){const m={detail:t};(r=this.columns[f])===null||r===void 0||r.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",m))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return ke(co,null,ke("table",{class:"table"},ke("thead",null,ke("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var t;const r=e.fitContent?"":e.width||"auto",s=((t=this.sortByColumn)===null||t===void 0?void 0:t.column)===e?this.sortByColumn.sortOrder:null;return ke("th",{"data-binding":e.binding,style:{width:r,"max-width":r,"min-width":r},onClick:u=>this.columnHeaderClickHandler(u,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${Gx(e.sortable)?"table__header-cell--no-sort":""} ${Gx(s)?"":s} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),ke("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return ke("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},ke("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return ke("td",{class:"table__data table__data--align-center"},ke("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:t=>this.selectOnChangeHandler(t,e)}))}renderTableContent(){let e=this.sortTableRows();return e=Z7(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(t=>this.renderTableRow(t))}renderTableRow(e){const t=[];for(const r of this.columns){let s=r.template;s>""?(s=this.removeFalseBooleanAttributes(s,e),s=this.replaceVars(s,e),t.push(s)):t.push(e[r.binding])}return ke("tr",{class:"table__row",onClick:r=>this.tableRowClicked(r,e)},this.renderSelectRow(e),t.map((r,s)=>ke("td",{class:`table__data ${this.columns[s].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[s].alignContent||"left"} ${this.columns[s].monospace?"table__data--monospace-font":""}`,innerHTML:r})))}renderEmptyPage(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.emptyPageHeader),ke("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,t){e.target.checked?this.selected.add(t):this.selected.delete(t),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return rc(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},Kce=e=>(t,r)=>`${t[e]||""}`.localeCompare(`${r[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Xce=e=>(t,r)=>`${r[e]||""}`.localeCompare(`${t[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Jce=e=>(t,r)=>{const s=Date.parse(t[e]),u=Date.parse(r[e]);return s>u?1:s<u?-1:0},eue=e=>(t,r)=>{const s=Date.parse(r[e]),u=Date.parse(t[e]);return s>u?1:s<u?-1:0};W7.style=qce;const tue=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:W7},Symbol.toStringTag,{value:"Module"}));var ha;(function(e){e.Imperial="imperial",e.Metric="metric"})(ha||(ha={}));const nue=class{constructor(e){Ri(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?ha.Imperial:ha.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const s=e*3.28084;return Math.round(s)>0?`${Math.round(s)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return ke("span",null,this.unit===ha.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},iue=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */
2202
+ `;return typeof s=="function"&&s(null,C),C};const Lce=Hle,bT=b7,U7=j7,zce=R7;function MT(e,t,r,s,u){const f=[].slice.call(arguments,1),m=f.length,a=typeof f[m-1]=="function";if(!a&&!Lce())throw new Error("Callback required as last argument");if(a){if(m<2)throw new Error("Too few arguments provided");m===2?(u=r,r=t,t=s=void 0):m===3&&(t.getContext&&typeof u>"u"?(u=s,s=void 0):(u=s,s=r,r=t,t=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(r=t,t=s=void 0):m===2&&!t.getContext&&(s=r,r=t,t=void 0),new Promise(function(v,S){try{const D=bT.create(r,s);v(e(D,t,s))}catch(D){S(D)}})}try{const v=bT.create(r,s);u(null,e(v,t,s))}catch(v){u(v)}}o0.create=bT.create,o0.toCanvas=MT.bind(null,U7.render),o0.toDataURL=MT.bind(null,U7.renderToDataURL),o0.toString=MT.bind(null,function(e,t,r){return zce.render(e,r)});function kce(){const{t:e}=ua(),[,t]=zn(Rx),r=Oe.useRef(),s=on(Aa),u=on(jI),f=on(YI),m=on(Tx),a=on(Kg),v=on(ac),S=on(gu);return Oe.useEffect(()=>{if(v&&S){let D=window.location.origin+window.location.pathname.replace(/\/$/,"");const N=new URLSearchParams(window.location.search),C=new URLSearchParams;[["gmApiKey",m],["mapboxAccessToken",a],["apiKey",u],["primaryColor",s],["logo",f]].forEach(([q,H])=>{if(N.has(q)){const Y=N.get(q);C.append(q,Y)}else H&&(H===s?C.append(q,s.replace("#","")):C.append(q,H))});const O=C.toString();let R=`${D}?${O}&directionsFrom=${v.id}&directionsTo=${S.id}`;const V={errorCorrectionLevel:"L",margin:0,width:"225"};o0.toDataURL(R,V).then(q=>{r.current.src=q})}},[v,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"background"}),Je.jsxs("div",{className:"qr-code",children:[Je.jsx("img",{alt:"",className:"qr-code__image",ref:r}),Je.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Je.jsx("button",{className:"qr-code__button",style:{background:s},onClick:()=>t(!1),children:e("Done")})]})]})}const Oce=ui({key:"supportsUrlParameters",default:!1}),xve="";function jce(){const{t:e}=ua(),t=on(Aa),r=on(y7),s=i0(),u=Oe.useRef(),f=Oe.useRef(),m=Oe.useRef(),[a,v]=zn(Px),[S,D]=Oe.useState(!1),N=Oe.useRef();let C=700;return Oe.useEffect(()=>{a&&s&&D(N.current.clientHeight>C)},[a,s]),Oe.useEffect(()=>{if(a&&s&&S){const O=document.querySelector(".legend__sections");m.current.scrollContainerElementRef=O}},[a,r,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"legend__background"}),Je.jsxs("div",{className:"legend",ref:u,children:[r.length>0&&Je.jsx("div",{className:`legend__sections ${S?"legend__sections--scrollable":""}`,ref:N,style:{maxHeight:S?`${C}px`:"auto",overflowY:S?"scroll":"auto"},children:r.map((O,R)=>Je.jsxs("div",{className:"legend__section",ref:f,children:[Je.jsx("div",{className:"legend__heading",children:O.heading}),Je.jsx("div",{className:"legend__content",children:O.content})]},R))}),Je.jsx("button",{className:"legend__button",style:{background:t},onClick:()=>v(!1),children:e("Close")}),s&&a&&S&&Je.jsx("div",{className:"scroll-buttons",children:Je.jsx("mi-scroll-buttons",{ref:m})})]})]})}Rse();function Rce({apiKey:e,gmApiKey:t,mapboxAccessToken:r,venue:s,locationId:u,primaryColor:f,logo:m,appUserRoles:a,directionsFrom:v,directionsTo:S,externalIDs:D,tileStyle:N,startZoomLevel:C,bearing:O,pitch:R,gmMapId:V,useMapProviderModule:q,kioskOriginLocationId:H,language:Y,supportsUrlParameters:W,useKeyboard:ee,timeout:fe,miTransitionLevel:pe,category:he,searchAllVenues:oe}){const[,Ve]=zn(jI),[,De]=zn(Tx),[,Ae]=zn(Kg),[Ge,it]=zn($I),[Ee,Ze]=zn(FI),[,ze]=zn(BO),[Le,Ye]=zn(gu),[qe,Ie]=zn(Xg),[,Te]=zn(Nx),[,le]=zn(Aa),[,X]=zn(YI),[,ie]=zn(TO),Me=on(bs),[xe,$e]=zn(t0),[,He]=zn(ac),[,Ue]=zn(PO),[,Xe]=zn(VO),ut=$O(),[,_t]=zn(Oce),[,et]=zn(m7),[,bt]=zn(CO),[,Ot]=zn(lT),[,Rt]=zn(nT),[,dn]=zn(g7),[Bn,Tt]=Oe.useState(!0),[kn,An]=Oe.useState(!0),Cn=x7(v),$n=x7(S),[ni,st]=Oe.useState(!1),[,se]=zn(Ax),[ce,Ne]=zn(Dx),[ht,vt]=Oe.useState(),[pt,Ct]=Oe.useState(),[,mt]=zn(RI),[,an]=zn(NO),[,Fe]=zn(UO),[,Pe]=zn(Wg),[,St]=zn(qg),Xt=oc(),Dt=SO("(max-width: 991px)"),kt=Vle(),Ft=QI(),Vt=on(Oh),[tn,Sn,Xn,ai,Ei,Wi]=Fle(),qi=Oe.useRef(),[Zn,Ki]=Oe.useState(!1),Mt=on(Rx),It=on(Px),[Bt,qt]=Oe.useState(0);function Ht(){return new Promise(Gt=>{if(window.mapsindoors!==void 0)return Gt();const wn=document.createElement("script");wn.setAttribute("type","text/javascript"),wn.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.32.0/mapsindoors-4.32.0.js.gz"),wn.setAttribute("integrity","sha384-pobsiCLAduarZklerr0Y1Yj0gkSVov1spL2XwAMLQ1lm3t6USIXIBAAMeJqiWXSc"),wn.setAttribute("crossorigin","anonymous"),document.body.appendChild(wn),wn.onload=()=>{Gt()}})}Oe.useEffect(()=>{ut&&ln()},[ut]),Oe.useEffect(()=>{Ht().then(()=>{Ki(!0)})},[]),Oe.useEffect(()=>{if(Zn){const Gt=Y||navigator.language;window.mapsindoors.MapsIndoors.setLanguage(Gt),window.mapsindoors.services.LocationsService.once("update_completed",()=>{qe.length>0&&Yt(s),Ee.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(wn=>{wn=wn.map(cn=>(cn.image=pt.venueImages[cn.name.toLowerCase()],cn)),Ze(wn)}),Le&&window.mapsindoors.services.LocationsService.getLocation(Le.id).then(wn=>Ye(wn))}),xe?Oo.changeLanguage(Gt):Mae(Gt),$e(Gt)}},[Y,Zn]),Oe.useEffect(()=>{Zn&&(Ve(e),it(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(Gt=>(Ct(Gt),Gt)),window.mapsindoors.services.SolutionsService.getSolution().then(Gt=>(mt(Gt),Gt)),new Promise(Gt=>setTimeout(Gt,3e3))]).then(([Gt,wn])=>{Gt=Gt.map(cn=>(cn.image=wn.venueImages[cn.name.toLowerCase()],cn)),Ze(Gt)}),it(!1))},[e,Zn]),Oe.useEffect(()=>{var Gt,wn;Zn&&pt&&(Ae(r||((Gt=pt.appSettings)==null?void 0:Gt.mapboxAccessToken)),De(t||((wn=pt.appSettings)==null?void 0:wn.gmKey)))},[t,r,Zn,pt]),Oe.useEffect(()=>{Zn&&window.mapsindoors.services.SolutionsService.getUserRoles().then(Gt=>{const wn=Gt.filter(cn=>a==null?void 0:a.includes(cn.name));window.mapsindoors.MapsIndoors.setUserRoles(wn)})},[a,Zn]),Oe.useEffect(()=>{Zn&&(D?window.mapsindoors.services.LocationsService.getLocationsByExternalId(D).then(Gt=>{se(Gt)}):se([]))},[D,Zn]),Oe.useEffect(()=>{Zn&&(Te(u),u&&window.mapsindoors.services.LocationsService.getLocation(u).then(Gt=>{Gt&&(Ft(Gt.properties.venueId),Ye(Gt))}))},[u,Zn,Bt]),Oe.useEffect(()=>{Zn&&ie(V)},[V,Zn]),Oe.useEffect(()=>{Xn===Ei.LOCATION_DETAILS&&ai&&!Le&&Ye(ai),qi.current=Xn===Ei.DIRECTIONS,qi.current?(vt(ce),Ne([])):Ne(ht)},[Xn]),Oe.useEffect(()=>{ze(s),Ft(s)},[s]),Oe.useEffect(()=>{an(N)},[N]),Oe.useEffect(()=>{le(f)},[f]),Oe.useEffect(()=>{Fe(C)},[C]),Oe.useEffect(()=>{St(R)},[R]),Oe.useEffect(()=>{Pe(O)},[O]),Oe.useEffect(()=>{X(m)},[m]),Oe.useEffect(()=>{bt(pe)},[pe]),Oe.useEffect(()=>{Le&&Le.id!==H?Me!=null&&Me.selectLocation&&Me.selectLocation(Le):Me!=null&&Me.deselectLocation&&Me.deselectLocation()},[Le]),Oe.useEffect(()=>{Zn&&(Ue(H),H?window.mapsindoors.services.LocationsService.getLocation(H).then(Gt=>{Ft(Gt.properties.venueId),He(Gt)}):He(),H&&Xt?(Tt(!1),An(!1)):(Tt(!0),An(!0)))},[H,Zn]),Oe.useEffect(()=>{Xe(fe)},[fe]),Oe.useEffect(()=>{_t(W)},[W]),Oe.useEffect(()=>{Zn&&ee&&H&&et(ee)},[ee,H,Zn]),Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&Ot(he)},[he,qe,Zn]),Oe.useEffect(()=>{Zn&&oe&&Rt(oe)},[oe,Zn]),Oe.useEffect(()=>{Zn&&Vt&&Yt(Vt)},[Vt,Zn]);function en(Gt){Ge===!1&&it(!0),Yt(Gt.name)}function nn(Gt){qi.current!==!0&&Gt.id!==H&&Ye(Gt)}function Yt(Gt){window.mapsindoors.services.LocationsService.getLocations({}).then(wn=>{const cn=wn.filter(Di=>Di.properties.venueId===Gt);Jt(cn)})}function ln(){kt(),Wi(),qt(Gt=>Gt+1)}function Jt(Gt){let wn=new Map;for(const cn of Gt){const Di=Object.keys(cn.properties.categories);for(const ji of Di){const Ci=pt==null?void 0:pt.menuInfo.mainmenu.find(mr=>mr.categoryKey===ji);if(wn.has(ji)){let mr=wn.get(ji).count;wn.set(ji,{count:++mr,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}else wn.set(ji,{count:1,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}}wn=Array.from(wn).sort((cn,Di)=>Di[1].count-cn[1].count),Ie(wn)}return Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&(Ot(he),dn(he))},[he,qe,Zn]),Je.jsxs("div",{className:`mapsindoors-map ${qi.current?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"} ${kn?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,"data-sentry-component":"MapTemplate","data-sentry-source-file":"MapTemplate.jsx",children:[Je.jsx(Qle,{"data-sentry-element":"Notification","data-sentry-source-file":"MapTemplate.jsx"}),!Ge&&Je.jsx(Gae,{}),Ee.length>1&&Bn&&Je.jsx(nle,{onOpen:()=>tn(Ei.VENUE_SELECTOR),onClose:()=>Sn(),active:Xn===Ei.VENUE_SELECTOR}),Mt&&Je.jsx(kce,{}),It&&Je.jsx(jce,{}),ni&&Je.jsxs(Oe.Fragment,{children:[Xt&&Je.jsx($le,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()}),Dt&&Je.jsx(Ule,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()})]},Bt),Je.jsx(Hae,{useMapProviderModule:q,onVenueChangedOnMap:Gt=>en(Gt),onMapPositionKnown:()=>st(!0),onLocationClick:Gt=>nn(Gt),"data-sentry-element":"MIMap","data-sentry-source-file":"MapTemplate.jsx"})]})}function B7(e){const[t,r]=Oe.useState();return Oe.useEffect(()=>{var Ee,Ze;const s=window.location.search,u=new URLSearchParams(s),f={apiKey:"mapspeople3d",venue:"AUSTINOFFICE",logo:"https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg",primaryColor:"#005655",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1},m=u.get("apiKey"),a=u.get("venue"),v=u.get("locationId"),S=u.get("logo"),D=u.get("directionsFrom"),N=u.get("directionsTo"),C=u.get("tileStyle"),O=u.get("startZoomLevel"),R=u.get("pitch"),V=u.get("bearing"),q=u.get("gmApiKey"),H=u.get("mapboxAccessToken"),Y=u.get("primaryColor"),W=(Ee=u.get("appUserRoles"))==null?void 0:Ee.split(","),ee=(Ze=u.get("externalIDs"))==null?void 0:Ze.split(","),fe=u.get("gmMapId"),pe=wT(u.get("useMapProviderModule")),he=u.get("kioskOriginLocationId"),oe=u.get("timeout"),Ve=u.get("language"),De=wT(u.get("useKeyboard")),Ae=u.get("miTransitionLevel"),Ge=u.get("category"),it=wT(u.get("searchAllVenues"));r({apiKey:e.supportsUrlParameters&&m?m:e.apiKey||f.apiKey,venue:e.supportsUrlParameters&&a?a:e.venue||f.venue,locationId:e.supportsUrlParameters&&v?v:e.locationId,logo:e.supportsUrlParameters&&S?S:e.logo||f.logo,directionsFrom:e.supportsUrlParameters&&D?D:e.directionsFrom,directionsTo:e.supportsUrlParameters&&N?N:e.directionsTo,tileStyle:e.supportsUrlParameters&&C?C:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&O?O:e.startZoomLevel,pitch:e.supportsUrlParameters&&R?R:e.pitch,bearing:e.supportsUrlParameters&&V?V:e.bearing,gmApiKey:e.supportsUrlParameters&&q?q:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&H?H:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&Y?"#"+Y:e.primaryColor||f.primaryColor,appUserRoles:e.supportsUrlParameters&&W?W:e.appUserRoles,externalIDs:e.supportsUrlParameters&&ee?ee:e.externalIDs,gmMapId:e.supportsUrlParameters&&fe?fe:e.gmMapId,useMapProviderModule:e.supportsUrlParameters&&pe?pe:e.useMapProviderModule||f.useMapProviderModule,kioskOriginLocationId:e.supportsUrlParameters&&he?he:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&oe?oe:e.timeout,language:e.supportsUrlParameters&&Ve?Ve:e.language,supportsUrlParameters:e.supportsUrlParameters,useKeyboard:e.supportsUrlParameters&&De?De:e.useKeyboard||f.useKeyboard,miTransitionLevel:e.supportsUrlParameters&&Ae?Ae:e.miTransitionLevel,category:e.supportsUrlParameters&&Ge?Ge:e.category,searchAllVenues:e.supportsUrlParameters&&it?it:e.searchAllVenues||f.searchAllVenues})},[e]),Je.jsx(nse,{"data-sentry-element":"RecoilRoot","data-sentry-component":"MapsIndoorsMap","data-sentry-source-file":"MapsIndoorsMap.jsx",children:t&&Je.jsx(Rce,{...t})})}WX({dsn:"https://0ee7fa162023d958c96db25e99c8ff6c@o351128.ingest.sentry.io/4506851619831808",environment:window.location.hostname==="localhost"?"localhost":"production",integrations:[gJ({useEffect:Vi.useEffect,useLocation:rh.useLocation,useNavigationType:rh.useNavigationType,createRoutesFromChildren:rh.createRoutesFromChildren,matchRoutes:rh.matchRoutes}),GX()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/api\.mapsindoors\.com/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1});function wT(e){return e==="true"}B7.propTypes={apiKey:Tr.string.isRequired,gmApiKey:Tr.string,mapboxAccessToken:Tr.string,venue:Tr.string,locationId:Tr.string,primaryColor:Tr.string,logo:Tr.string,appUserRoles:Tr.string,directionsFrom:Tr.string,directionsTo:Tr.string,externalIDs:Tr.array,tileStyle:Tr.string,startZoomLevel:Tr.number,gmMapId:Tr.string,supportsUrlParameters:Tr.bool,bearing:Tr.number,pitch:Tr.number,kioskOriginLocationId:Tr.string,useMapProviderModule:Tr.bool,timeout:Tr.number,miTransitionLevel:Tr.number,category:Tr.string,language:Tr.string,searchAllVenues:Tr.bool,useKeyboard:Tr.bool};const F7=AQ(B7,Vi,rh);window.customElements.define("mapsindoors-map",F7);const Pce=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Ri(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),Uce=':host{box-sizing:border-box;display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',V7=class{constructor(e){Ri(this,e)}render(){return ke("slot",null)}};V7.style=Uce;const Bce=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",$7=class{constructor(e){Ri(this,e),this.inverse=!1}render(){return ke(co,null,ke("div",{class:`spinner ${this.inverse?"inverse":""}`},ke("div",{class:"bounce1"}),ke("div",{class:"bounce2"}),ke("div",{class:"bounce3"})))}};$7.style=Bce;const Fce=Object.freeze(Object.defineProperty({__proto__:null,mi_card:V7,mi_spinner:$7},Symbol.toStringTag,{value:"Module"})),Vce=':root{--z-index-top:999999;--z-index-popup:950;--z-index-modal:900;--z-index-spinner:800;--z-index-overlay:700;--z-index-dropdown:600;--z-index-toast:500;--z-index-header:400;--z-index-sticky:300;--z-index-mask:200;--z-index-masked:100;--z-index-default:1;--z-index-deep:-999999;--transition-slowly:600ms ease;--transition-quickly:300ms ease;--tailwind-colors-rose-900:#881337;--tailwind-colors-rose-800:#9f1239;--tailwind-colors-rose-700:#be123c;--tailwind-colors-rose-600:#e11d48;--tailwind-colors-rose-500:#f43f5e;--tailwind-colors-rose-400:#fb7185;--tailwind-colors-rose-300:#fda4af;--tailwind-colors-rose-200:#fecdd3;--tailwind-colors-rose-100:#ffe4e6;--tailwind-colors-rose-50:#fff1f2;--tailwind-colors-pink-900:#831843;--tailwind-colors-pink-800:#9d174d;--tailwind-colors-pink-700:#be185d;--tailwind-colors-pink-600:#db2777;--tailwind-colors-pink-500:#ec4899;--tailwind-colors-pink-400:#f472b6;--tailwind-colors-pink-300:#f9a8d4;--tailwind-colors-pink-200:#fbcfe8;--tailwind-colors-pink-100:#fce7f3;--tailwind-colors-pink-50:#fdf2f8;--tailwind-colors-fuchsia-900:#701a75;--tailwind-colors-fuchsia-800:#86198f;--tailwind-colors-fuchsia-700:#a21caf;--tailwind-colors-fuchsia-600:#c026d3;--tailwind-colors-fuchsia-500:#d946ef;--tailwind-colors-fuchsia-400:#e879f9;--tailwind-colors-fuchsia-300:#f0abfc;--tailwind-colors-fuchsia-200:#f5d0fe;--tailwind-colors-fuchsia-100:#fae8ff;--tailwind-colors-fuchsia-50:#fdf4ff;--tailwind-colors-purple-900:#581c87;--tailwind-colors-purple-800:#6b21a8;--tailwind-colors-purple-700:#7e22ce;--tailwind-colors-purple-600:#9333ea;--tailwind-colors-purple-500:#a855f7;--tailwind-colors-purple-400:#c084fc;--tailwind-colors-purple-300:#d8b4fe;--tailwind-colors-purple-200:#e9d5ff;--tailwind-colors-purple-100:#f3e8ff;--tailwind-colors-purple-50:#faf5ff;--tailwind-colors-violet-900:#4c1d95;--tailwind-colors-violet-800:#5b21b6;--tailwind-colors-violet-700:#6d28d9;--tailwind-colors-violet-600:#7c3aed;--tailwind-colors-violet-500:#8b5cf6;--tailwind-colors-violet-400:#a78bfa;--tailwind-colors-violet-300:#c4b5fd;--tailwind-colors-violet-200:#ddd6fe;--tailwind-colors-violet-100:#ede9fe;--tailwind-colors-violet-50:#f5f3ff;--tailwind-colors-indigo-900:#312e81;--tailwind-colors-indigo-800:#3730a3;--tailwind-colors-indigo-700:#4338ca;--tailwind-colors-indigo-600:#4f46e5;--tailwind-colors-indigo-500:#6366f1;--tailwind-colors-indigo-400:#818cf8;--tailwind-colors-indigo-300:#a5b4fc;--tailwind-colors-indigo-200:#c7d2fe;--tailwind-colors-indigo-100:#e0e7ff;--tailwind-colors-indigo-50:#eef2ff;--tailwind-colors-blue-900:#1e3a8a;--tailwind-colors-blue-800:#1e40af;--tailwind-colors-blue-700:#1d4ed8;--tailwind-colors-blue-600:#2563eb;--tailwind-colors-blue-500:#3b82f6;--tailwind-colors-blue-400:#60a5fa;--tailwind-colors-blue-300:#93c5fd;--tailwind-colors-blue-200:#bfdbfe;--tailwind-colors-blue-100:#dbeafe;--tailwind-colors-blue-50:#eff6ff;--tailwind-colors-sky-900:#0c4a6e;--tailwind-colors-sky-800:#075985;--tailwind-colors-sky-700:#0369a1;--tailwind-colors-sky-600:#0284c7;--tailwind-colors-sky-500:#0ea5e9;--tailwind-colors-sky-400:#38bdf8;--tailwind-colors-sky-300:#7dd3fc;--tailwind-colors-sky-200:#bae6fd;--tailwind-colors-sky-100:#e0f2fe;--tailwind-colors-sky-50:#f0f9ff;--tailwind-colors-cyan-900:#164e63;--tailwind-colors-cyan-800:#155e75;--tailwind-colors-cyan-700:#0e7490;--tailwind-colors-cyan-600:#0891b2;--tailwind-colors-cyan-500:#06b6d4;--tailwind-colors-cyan-400:#22d3ee;--tailwind-colors-cyan-300:#67e8f9;--tailwind-colors-cyan-200:#a5f3fc;--tailwind-colors-cyan-100:#cffafe;--tailwind-colors-cyan-50:#ecfeff;--tailwind-colors-teal-900:#134e4a;--tailwind-colors-teal-800:#115e59;--tailwind-colors-teal-700:#0f766e;--tailwind-colors-teal-600:#0d9488;--tailwind-colors-teal-500:#14b8a6;--tailwind-colors-teal-400:#2dd4bf;--tailwind-colors-teal-300:#5eead4;--tailwind-colors-teal-200:#99f6e4;--tailwind-colors-teal-100:#ccfbf1;--tailwind-colors-teal-50:#f0fdfa;--tailwind-colors-emerald-900:#064e3b;--tailwind-colors-emerald-800:#065f46;--tailwind-colors-emerald-700:#047857;--tailwind-colors-emerald-600:#059669;--tailwind-colors-emerald-500:#10b981;--tailwind-colors-emerald-400:#34d399;--tailwind-colors-emerald-300:#6ee7b7;--tailwind-colors-emerald-200:#a7f3d0;--tailwind-colors-emerald-100:#d1fae5;--tailwind-colors-emerald-50:#ecfdf5;--tailwind-colors-green-900:#14532d;--tailwind-colors-green-800:#166534;--tailwind-colors-green-700:#15803d;--tailwind-colors-green-600:#16a34a;--tailwind-colors-green-500:#22c55e;--tailwind-colors-green-400:#4ade80;--tailwind-colors-green-300:#86efac;--tailwind-colors-green-200:#bbf7d0;--tailwind-colors-green-100:#dcfce7;--tailwind-colors-green-50:#f0fdf4;--tailwind-colors-lime-900:#365314;--tailwind-colors-lime-800:#3f6212;--tailwind-colors-lime-700:#4d7c0f;--tailwind-colors-lime-600:#65a30d;--tailwind-colors-lime-500:#84cc16;--tailwind-colors-lime-400:#a3e635;--tailwind-colors-lime-300:#bef264;--tailwind-colors-lime-200:#d9f99d;--tailwind-colors-lime-100:#ecfccb;--tailwind-colors-lime-50:#f7fee7;--tailwind-colors-yellow-900:#713f12;--tailwind-colors-yellow-800:#854d0e;--tailwind-colors-yellow-700:#a16207;--tailwind-colors-yellow-600:#ca8a04;--tailwind-colors-yellow-500:#eab308;--tailwind-colors-yellow-400:#facc15;--tailwind-colors-yellow-300:#fde047;--tailwind-colors-yellow-200:#fef08a;--tailwind-colors-yellow-100:#fef9c3;--tailwind-colors-yellow-50:#fefce8;--tailwind-colors-amber-900:#78350f;--tailwind-colors-amber-800:#92400e;--tailwind-colors-amber-700:#b45309;--tailwind-colors-amber-600:#d97706;--tailwind-colors-amber-500:#f59e0b;--tailwind-colors-amber-400:#fbbf24;--tailwind-colors-amber-300:#fcd34d;--tailwind-colors-amber-200:#fde68a;--tailwind-colors-amber-100:#fef3c7;--tailwind-colors-amber-50:#fffbeb;--tailwind-colors-orange-900:#7c2d12;--tailwind-colors-orange-800:#9a3412;--tailwind-colors-orange-700:#c2410c;--tailwind-colors-orange-600:#ea580c;--tailwind-colors-orange-500:#f97316;--tailwind-colors-orange-400:#fb923c;--tailwind-colors-orange-300:#fdba74;--tailwind-colors-orange-200:#fed7aa;--tailwind-colors-orange-100:#ffedd5;--tailwind-colors-orange-50:#fff7ed;--tailwind-colors-red-900:#7f1d1d;--tailwind-colors-red-800:#991b1b;--tailwind-colors-red-700:#b91c1c;--tailwind-colors-red-600:#dc2626;--tailwind-colors-red-500:#ef4444;--tailwind-colors-red-400:#f87171;--tailwind-colors-red-300:#fca5a5;--tailwind-colors-red-200:#fecaca;--tailwind-colors-red-100:#fee2e2;--tailwind-colors-red-50:#fef2f2;--tailwind-colors-stone-900:#1c1917;--tailwind-colors-stone-800:#292524;--tailwind-colors-stone-700:#44403c;--tailwind-colors-stone-600:#57534e;--tailwind-colors-stone-500:#78716c;--tailwind-colors-stone-400:#a8a29e;--tailwind-colors-stone-300:#d6d3d1;--tailwind-colors-stone-200:#e7e5e4;--tailwind-colors-stone-100:#f5f5f4;--tailwind-colors-stone-50:#fafaf9;--tailwind-colors-neutral-900:#171717;--tailwind-colors-neutral-800:#262626;--tailwind-colors-neutral-700:#404040;--tailwind-colors-neutral-600:#525252;--tailwind-colors-neutral-500:#737373;--tailwind-colors-neutral-400:#a3a3a3;--tailwind-colors-neutral-300:#d4d4d4;--tailwind-colors-neutral-200:#e5e5e5;--tailwind-colors-neutral-100:#f5f5f5;--tailwind-colors-neutral-50:#fafafa;--tailwind-colors-zinc-900:#18181b;--tailwind-colors-zinc-800:#27272a;--tailwind-colors-zinc-700:#3f3f46;--tailwind-colors-zinc-600:#52525b;--tailwind-colors-zinc-500:#71717a;--tailwind-colors-zinc-400:#a1a1aa;--tailwind-colors-zinc-300:#d4d4d8;--tailwind-colors-zinc-200:#e4e4e7;--tailwind-colors-zinc-100:#f4f4f5;--tailwind-colors-zinc-50:#fafafa;--tailwind-colors-gray-900:#111827;--tailwind-colors-gray-800:#1f2937;--tailwind-colors-gray-700:#374151;--tailwind-colors-gray-600:#4b5563;--tailwind-colors-gray-500:#6b7280;--tailwind-colors-gray-400:#9ca3af;--tailwind-colors-gray-300:#d1d5db;--tailwind-colors-gray-200:#e5e7eb;--tailwind-colors-gray-100:#f3f4f6;--tailwind-colors-gray-50:#f9fafb;--tailwind-colors-slate-900:#0f172a;--tailwind-colors-slate-800:#1e293b;--tailwind-colors-slate-700:#334155;--tailwind-colors-slate-600:#475569;--tailwind-colors-slate-500:#64748b;--tailwind-colors-slate-400:#94a3b8;--tailwind-colors-slate-300:#cbd5e1;--tailwind-colors-slate-200:#e2e8f0;--tailwind-colors-slate-100:#f1f5f9;--tailwind-colors-slate-50:#f8fafc;--tailwind-colors-black:#000000;--tailwind-colors-white:#ffffff;--spacing-xxxx-large:64px;--spacing-xxx-large:48px;--spacing-xx-large:40px;--spacing-x-large:32px;--spacing-large:24px;--spacing-medium:16px;--spacing-small:12px;--spacing-x-small:8px;--spacing-xx-small:4px;--spacing-xxx-small:2px;--rounding-circle:50%;--rounding-pill:9999px;--rounding-x-large:16px;--rounding-large:8px;--rounding-medium:4px;--rounding-small:2px;--rounding-x-small:1px;--rounding-xx-small:0px;--opacity-xxx-large:1;--opacity-xx-large:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.08;--opacity-xx-small:0;--icon-size-xx-large:64px;--icon-size-x-large:48px;--icon-size-large:32px;--icon-size-medium:24px;--icon-size-small:16px;--font-measure-large:34rem;--font-measure-medium:30rem;--font-measure-small:20rem;--font-tracking-x-large:.25rem;--font-tracking-large:.1rem;--font-tracking-medium:normal;--font-tracking-small:-.05rem;--font-weight-xx-large:700;--font-weight-x-large:600;--font-weight-large:500;--font-weight-medium:400;--font-weight-small:300;--font-size-xxxx-large:4.5rem;--font-size-xxx-large:3rem;--font-size-xx-large:2.25rem;--font-size-x-large:1.5rem;--font-size-large:1.25rem;--font-size-medium:1rem;--font-size-small:0.875rem;--font-size-x-small:0.75rem;--font-family-serif:Georgia, Times, Times New Roman, serif;--font-family-monospace:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large:0px 20px 20px rgba(0, 0, 0, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);--color-transparent-base:rgba(0, 0, 0, 0);--color-white-base:#fcfcfc;--breakpoints-xx-large:only screen and (min-width: 1220px);--breakpoints-x-large:only screen and (min-width: 1025px);--breakpoints-large:only screen and (min-width: 992px);--breakpoints-medium:only screen and (min-width: 768px);--breakpoints-small:only screen and (min-width: 576px);--breakpoints-x-small:only screen and (max-width: 575px);--breakpoints-xx-small:only screen and (max-width: 360px);--brand-colors-black-100:#000000;--brand-colors-black-80:#323232;--brand-colors-black-60:#666666;--brand-colors-black-40:#999999;--brand-colors-black-20:#cccccc;--brand-colors-white-100:#ffffff;--brand-colors-dark-pine-100:#005655;--brand-colors-dark-pine-80:#327676;--brand-colors-dark-pine-60:#669999;--brand-colors-dark-pine-40:#99bbbb;--brand-colors-dark-pine-20:#ccdddd;--brand-colors-sky-blue-100:#abddff;--brand-colors-sky-blue-80:#c3e5ff;--brand-colors-sky-blue-60:#d2ebff;--brand-colors-sky-blue-40:#e1f2ff;--brand-colors-sky-blue-20:#f0f8ff;--brand-colors-sand-100:#ffefd7;--brand-colors-sand-80:#fff2df;--brand-colors-sand-60:#fff5e7;--brand-colors-brand-lime-100:#cdff00;--brand-colors-brand-lime-80:#d7ff32;--brand-colors-brand-lime-60:#e1ff66;--brand-colors-brand-lime-40:#ebff99;--brand-colors-brand-lime-20:#f5ffcc;--brand-colors-electric-purple-100:#7d49f3;--brand-colors-electric-purple-80:#976df5;--brand-colors-electric-purple-60:#b191f7;--brand-colors-electric-purple-40:#cbb6fa;--brand-colors-electric-purple-20:#e5dafc;--font-family-sans-serif:Figtree, var(--font-family-system);--color-dusk-base:var(--tailwind-colors-violet-500);--color-dusk-100:var(--tailwind-colors-violet-900);--color-dusk-90:var(--tailwind-colors-violet-800);--color-dusk-80:var(--tailwind-colors-violet-700);--color-dusk-70:var(--tailwind-colors-violet-600);--color-dusk-60:var(--tailwind-colors-violet-500);--color-dusk-50:var(--tailwind-colors-violet-400);--color-dusk-40:var(--tailwind-colors-violet-300);--color-dusk-30:var(--tailwind-colors-violet-200);--color-dusk-20:var(--tailwind-colors-violet-100);--color-dusk-10:var(--tailwind-colors-violet-50);--color-slate-base:var(--tailwind-colors-slate-500);--color-slate-100:var(--tailwind-colors-slate-900);--color-slate-90:var(--tailwind-colors-slate-800);--color-slate-80:var(--tailwind-colors-slate-700);--color-slate-70:var(--tailwind-colors-slate-600);--color-slate-60:var(--tailwind-colors-slate-500);--color-slate-50:var(--tailwind-colors-slate-400);--color-slate-40:var(--tailwind-colors-slate-300);--color-slate-30:var(--tailwind-colors-slate-200);--color-slate-20:var(--tailwind-colors-slate-100);--color-slate-10:var(--tailwind-colors-slate-50);--color-teal-base:var(--tailwind-colors-teal-500);--color-teal-100:var(--tailwind-colors-teal-900);--color-teal-90:var(--tailwind-colors-teal-800);--color-teal-80:var(--tailwind-colors-teal-700);--color-teal-70:var(--tailwind-colors-teal-600);--color-teal-60:var(--tailwind-colors-teal-500);--color-teal-50:var(--tailwind-colors-teal-400);--color-teal-40:var(--tailwind-colors-teal-300);--color-teal-30:var(--tailwind-colors-teal-200);--color-teal-20:var(--tailwind-colors-teal-100);--color-teal-10:var(--tailwind-colors-teal-50);--color-sky-base:var(--tailwind-colors-sky-500);--color-sky-100:var(--tailwind-colors-sky-900);--color-sky-90:var(--tailwind-colors-sky-800);--color-sky-80:var(--tailwind-colors-sky-700);--color-sky-70:var(--tailwind-colors-sky-600);--color-sky-60:var(--tailwind-colors-sky-500);--color-sky-50:var(--tailwind-colors-sky-400);--color-sky-40:var(--tailwind-colors-sky-300);--color-sky-30:var(--tailwind-colors-sky-200);--color-sky-20:var(--tailwind-colors-sky-100);--color-sky-10:var(--tailwind-colors-sky-50);--color-indigo-base:var(--tailwind-colors-indigo-500);--color-indigo-100:var(--tailwind-colors-indigo-900);--color-indigo-90:var(--tailwind-colors-indigo-800);--color-indigo-80:var(--tailwind-colors-indigo-700);--color-indigo-70:var(--tailwind-colors-indigo-600);--color-indigo-60:var(--tailwind-colors-indigo-500);--color-indigo-50:var(--tailwind-colors-indigo-400);--color-indigo-40:var(--tailwind-colors-indigo-300);--color-indigo-30:var(--tailwind-colors-indigo-200);--color-indigo-20:var(--tailwind-colors-indigo-100);--color-indigo-10:var(--tailwind-colors-indigo-50);--color-magenta-base:var(--tailwind-colors-pink-500);--color-magenta-100:var(--tailwind-colors-pink-900);--color-magenta-90:var(--tailwind-colors-pink-800);--color-magenta-80:var(--tailwind-colors-pink-700);--color-magenta-70:var(--tailwind-colors-pink-600);--color-magenta-60:var(--tailwind-colors-pink-500);--color-magenta-50:var(--tailwind-colors-pink-400);--color-magenta-40:var(--tailwind-colors-pink-300);--color-magenta-30:var(--tailwind-colors-pink-200);--color-magenta-20:var(--tailwind-colors-pink-100);--color-magenta-10:var(--tailwind-colors-pink-50);--color-purple-base:var(--tailwind-colors-purple-500);--color-purple-100:var(--tailwind-colors-purple-900);--color-purple-90:var(--tailwind-colors-purple-800);--color-purple-80:var(--tailwind-colors-purple-700);--color-purple-70:var(--tailwind-colors-purple-600);--color-purple-60:var(--tailwind-colors-purple-500);--color-purple-50:var(--tailwind-colors-purple-400);--color-purple-40:var(--tailwind-colors-purple-300);--color-purple-30:var(--tailwind-colors-purple-200);--color-purple-20:var(--tailwind-colors-purple-100);--color-purple-10:var(--tailwind-colors-purple-50);--color-bronze-base:var(--tailwind-colors-amber-500);--color-bronze-100:var(--tailwind-colors-amber-900);--color-bronze-90:var(--tailwind-colors-amber-800);--color-bronze-80:var(--tailwind-colors-amber-700);--color-bronze-70:var(--tailwind-colors-amber-600);--color-bronze-60:var(--tailwind-colors-amber-500);--color-bronze-50:var(--tailwind-colors-amber-400);--color-bronze-40:var(--tailwind-colors-amber-300);--color-bronze-30:var(--tailwind-colors-amber-200);--color-bronze-20:var(--tailwind-colors-amber-100);--color-bronze-10:var(--tailwind-colors-amber-50);--color-blue-base:var(--tailwind-colors-blue-500);--color-blue-100:var(--tailwind-colors-blue-900);--color-blue-90:var(--tailwind-colors-blue-800);--color-blue-80:var(--tailwind-colors-blue-700);--color-blue-70:var(--tailwind-colors-blue-600);--color-blue-60:var(--tailwind-colors-blue-500);--color-blue-50:var(--tailwind-colors-blue-400);--color-blue-40:var(--tailwind-colors-blue-300);--color-blue-30:var(--tailwind-colors-blue-200);--color-blue-20:var(--tailwind-colors-blue-100);--color-blue-10:var(--tailwind-colors-blue-50);--color-green-base:var(--tailwind-colors-green-500);--color-green-100:var(--tailwind-colors-green-900);--color-green-90:var(--tailwind-colors-green-800);--color-green-80:var(--tailwind-colors-green-700);--color-green-70:var(--tailwind-colors-green-600);--color-green-60:var(--tailwind-colors-green-500);--color-green-50:var(--tailwind-colors-green-400);--color-green-40:var(--tailwind-colors-green-300);--color-green-30:var(--tailwind-colors-green-200);--color-green-20:var(--tailwind-colors-green-100);--color-green-10:var(--tailwind-colors-green-50);--color-red-base:var(--tailwind-colors-red-500);--color-red-100:var(--tailwind-colors-red-900);--color-red-90:var(--tailwind-colors-red-800);--color-red-80:var(--tailwind-colors-red-700);--color-red-70:var(--tailwind-colors-red-600);--color-red-60:var(--tailwind-colors-red-500);--color-red-50:var(--tailwind-colors-red-400);--color-red-40:var(--tailwind-colors-red-300);--color-red-30:var(--tailwind-colors-red-200);--color-red-20:var(--tailwind-colors-red-100);--color-red-10:var(--tailwind-colors-red-50);--color-gray-base:var(--tailwind-colors-gray-500);--color-gray-100:var(--tailwind-colors-gray-900);--color-gray-90:var(--tailwind-colors-gray-800);--color-gray-80:var(--tailwind-colors-gray-700);--color-gray-70:var(--tailwind-colors-gray-600);--color-gray-60:var(--tailwind-colors-gray-500);--color-gray-50:var(--tailwind-colors-gray-400);--color-gray-40:var(--tailwind-colors-gray-300);--color-gray-30:var(--tailwind-colors-gray-200);--color-gray-20:var(--tailwind-colors-gray-100);--color-gray-10:var(--tailwind-colors-gray-50);--color-hotorchid-base:var(--tailwind-colors-pink-500);--color-white-white:var(--tailwind-colors-white);--color-black-black:var(--tailwind-colors-black);--color-black-base:var(--tailwind-colors-stone-900)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',Q7=class{constructor(e){Ri(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return ke("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&ke("img",{class:"chip__icon",src:this.icon}),ke("div",{class:"chip__content"},this.content))}};Q7.style=Vce;const $ce=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:Q7},Symbol.toStringTag,{value:"Module"})),Qce=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Ri(this,e),this.clicked=pr(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var IT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c0(e,t,r){return r={path:t,exports:{},require:function(s,u){return Hce()}},e(r,r.exports),r.exports}function Hce(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Y7=c0(function(e){((t,r)=>{e.exports?e.exports=r():t.fuzzysort=r()})(IT,t=>{var r=(Ze,ze)=>{if(Ze=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Ze||!ze)return Ge;var Le=D(Ze);oe(ze)||(ze=S(ze));var Ye=Le.bitflags;return(Ye&ze._bitflags)!==Ye?Ge:C(Le,ze)},s=(Ze,ze,Le)=>{if(Ze=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:ze?ze[0]:Ge}];if(!Ze)return Le&&Le.all?N(Ze,ze,Le):Ae;var Ye=D(Ze),qe=Ye.bitflags,Ie=Le&&Le.threshold||De,Te=Le&&Le.limit||Ve,le=0,X=0,ie=ze.length;if(Le&&Le.key)for(var Me=Le.key,xe=0;xe<ie;++xe){var $e=ze[xe],He=he($e,Me);if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(Ue={target:Ue.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:Ue.score,_indexes:Ue._indexes,obj:$e},le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}else if(Le&&Le.keys)for(var Xe=Le.scoreFn||pe,ut=Le.keys,_t=ut.length,xe=0;xe<ie;++xe){for(var $e=ze[xe],et=new Array(_t),bt=0;bt<_t;++bt){var Me=ut[bt],He=he($e,Me);if(!He){et[bt]=Ge;continue}oe(He)||(He=S(He)),(qe&He._bitflags)!==qe?et[bt]=Ge:et[bt]=C(Ye,He)}et.obj=$e;var Ot=Xe(et);Ot!==Ge&&(Ot<Ie||(et.score=Ot,le<Te?(Ee.add(et),++le):(++X,Ot>Ee.peek().score&&Ee.replaceTop(et))))}else for(var xe=0;xe<ie;++xe){var He=ze[xe];if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}if(le===0)return Ae;for(var Rt=new Array(le),xe=le-1;xe>=0;--xe)Rt[xe]=Ee.poll();return Rt.total=le+X,Rt},u=(Ze,ze,Le)=>{if(typeof ze=="function")return f(Ze,ze);if(Ze===Ge)return Ge;ze===void 0&&(ze="<b>"),Le===void 0&&(Le="</b>");var Ye="",qe=0,Ie=!1,Te=Ze.target,le=Te.length,X=Ze._indexes;X=X.slice(0,X.len).sort((xe,$e)=>xe-$e);for(var ie=0;ie<le;++ie){var Me=Te[ie];if(X[qe]===ie){if(++qe,Ie||(Ie=!0,Ye+=ze),qe===X.length){Ye+=Me+Le+Te.substr(ie+1);break}}else Ie&&(Ie=!1,Ye+=Le);Ye+=Me}return Ye},f=(ie,ze)=>{if(ie===Ge)return Ge;var Le=ie.target,Ye=Le.length,qe=ie._indexes;qe=qe.slice(0,qe.len).sort(($e,He)=>$e-He);for(var Ie="",Te=0,le=0,X=!1,ie=[],Me=0;Me<Ye;++Me){var xe=Le[Me];if(qe[le]===Me){if(++le,X||(X=!0,ie.push(Ie),Ie=""),le===qe.length){Ie+=xe,ie.push(ze(Ie,Te++)),Ie="",ie.push(Le.substr(Me+1));break}}else X&&(X=!1,ie.push(ze(Ie,Te++)),Ie="");Ie+=xe}return ie},m=Ze=>Ze._indexes.slice(0,Ze._indexes.len).sort((ze,Le)=>ze-Le),a=Ze=>{typeof Ze!="string"&&(Ze="");var ze=R(Ze);return{target:Ze,_targetLower:ze._lower,_targetLowerCodes:ze.lowerCodes,_nextBeginningIndexes:Ge,_bitflags:ze.bitflags,score:Ge,_indexes:[0],obj:Ge}},v=Ze=>{typeof Ze!="string"&&(Ze=""),Ze=Ze.trim();var ze=R(Ze),Le=[];if(ze.containsSpace){var Ye=Ze.split(/\s+/);Ye=[...new Set(Ye)];for(var qe=0;qe<Ye.length;qe++)if(Ye[qe]!==""){var Ie=R(Ye[qe]);Le.push({lowerCodes:Ie.lowerCodes,_lower:Ye[qe].toLowerCase(),containsSpace:!1})}}return{lowerCodes:ze.lowerCodes,bitflags:ze.bitflags,containsSpace:ze.containsSpace,_lower:ze._lower,spaceSearches:Le}},S=Ze=>{if(Ze.length>999)return a(Ze);var ze=Y.get(Ze);return ze!==void 0||(ze=a(Ze),Y.set(Ze,ze)),ze},D=Ze=>{if(Ze.length>999)return v(Ze);var ze=W.get(Ze);return ze!==void 0||(ze=v(Ze),W.set(Ze,ze)),ze},N=(Ze,ze,Le)=>{var Ye=[];Ye.total=ze.length;var qe=Le&&Le.limit||Ve;if(Le&&Le.key)for(var Ie=0;Ie<ze.length;Ie++){var Te=ze[Ie],le=he(Te,Le.key);if(le){oe(le)||(le=S(le)),le.score=De,le._indexes.len=0;var X=le;if(X={target:X.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:le.score,_indexes:Ge,obj:Te},Ye.push(X),Ye.length>=qe)return Ye}}else if(Le&&Le.keys)for(var Ie=0;Ie<ze.length;Ie++){for(var Te=ze[Ie],ie=new Array(Le.keys.length),Me=Le.keys.length-1;Me>=0;--Me){var le=he(Te,Le.keys[Me]);if(!le){ie[Me]=Ge;continue}oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,ie[Me]=le}if(ie.obj=Te,ie.score=De,Ye.push(ie),Ye.length>=qe)return Ye}else for(var Ie=0;Ie<ze.length;Ie++){var le=ze[Ie];if(le&&(oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,Ye.push(le),Ye.length>=qe))return Ye}return Ye},C=(Ze,ze,Le=!1)=>{if(Le===!1&&Ze.containsSpace)return O(Ze,ze);for(var Ye=Ze._lower,qe=Ze.lowerCodes,Ie=qe[0],Te=ze._targetLowerCodes,le=qe.length,X=Te.length,$e=0,ie=0,Me=0;;){var xe=Ie===Te[ie];if(xe){if(ee[Me++]=ie,++$e,$e===le)break;Ie=qe[$e]}if(++ie,ie>=X)return Ge}var $e=0,He=!1,Ue=0,Xe=ze._nextBeginningIndexes;Xe===Ge&&(Xe=ze._nextBeginningIndexes=q(ze.target)),ie=ee[0]===0?0:Xe[ee[0]-1];var ut=0;if(ie!==X)for(;;)if(ie>=X){if($e<=0||(++ut,ut>200))break;--$e;var _t=fe[--Ue];ie=Xe[_t]}else{var xe=qe[$e]===Te[ie];if(xe){if(fe[Ue++]=ie,++$e,$e===le){He=!0;break}++ie}else ie=Xe[ie]}var et=ze._targetLower.indexOf(Ye,ee[0]),bt=~et;if(bt&&!He)for(var Ot=0;Ot<Me;++Ot)ee[Ot]=et+Ot;var Rt=!1;bt&&(Rt=ze._nextBeginningIndexes[et-1]===et);{if(He)var dn=fe,Bn=Ue;else var dn=ee,Bn=Me;for(var Tt=0,kn=0,Ot=1;Ot<le;++Ot)dn[Ot]-dn[Ot-1]!==1&&(Tt-=dn[Ot],++kn);var An=dn[le-1]-dn[0]-(le-1);if(Tt-=(12+An)*kn,dn[0]!==0&&(Tt-=dn[0]*dn[0]*.2),!He)Tt*=1e3;else{for(var Cn=1,Ot=Xe[0];Ot<X;Ot=Xe[Ot])++Cn;Cn>24&&(Tt*=(Cn-24)*10)}bt&&(Tt/=1+le*le*1),Rt&&(Tt/=1+le*le*1),Tt-=X-le,ze.score=Tt;for(var Ot=0;Ot<Bn;++Ot)ze._indexes[Ot]=dn[Ot];return ze._indexes.len=Bn,ze}},O=(Ze,ze)=>{for(var Le=new Set,Ye=0,qe=Ge,Ie=0,Te=Ze.spaceSearches,Me=0;Me<Te.length;++Me){var le=Te[Me];if(qe=C(le,ze),qe===Ge)return Ge;Ye+=qe.score,qe._indexes[0]<Ie&&(Ye-=Ie-qe._indexes[0]),Ie=qe._indexes[0];for(var X=0;X<qe._indexes.len;++X)Le.add(qe._indexes[X])}var ie=C(Ze,ze,!0);if(ie!==Ge&&ie.score>Ye)return ie;qe.score=Ye;var Me=0;for(let xe of Le)qe._indexes[Me++]=xe;return qe._indexes.len=Me,qe},R=Ze=>{for(var ze=Ze.length,Le=Ze.toLowerCase(),Ye=[],qe=0,Ie=!1,Te=0;Te<ze;++Te){var le=Ye[Te]=Le.charCodeAt(Te);if(le===32){Ie=!0;continue}var X=le>=97&&le<=122?le-97:le>=48&&le<=57?26:le<=127?30:31;qe|=1<<X}return{lowerCodes:Ye,bitflags:qe,containsSpace:Ie,_lower:Le}},V=Ze=>{for(var ze=Ze.length,Le=[],Ye=0,qe=!1,Ie=!1,Te=0;Te<ze;++Te){var le=Ze.charCodeAt(Te),X=le>=65&&le<=90,ie=X||le>=97&&le<=122||le>=48&&le<=57,Me=X&&!qe||!Ie||!ie;qe=X,Ie=ie,Me&&(Le[Ye++]=Te)}return Le},q=Ze=>{for(var ze=Ze.length,Le=V(Ze),Ye=[],qe=Le[0],Ie=0,Te=0;Te<ze;++Te)qe>Te?Ye[Te]=qe:(qe=Le[++Ie],Ye[Te]=qe===void 0?ze:qe);return Ye},H=()=>{Y.clear(),W.clear(),ee=[],fe=[]},Y=new Map,W=new Map,ee=[],fe=[],pe=Ze=>{for(var ze=De,Le=Ze.length,Ye=0;Ye<Le;++Ye){var qe=Ze[Ye];if(qe!==Ge){var Ie=qe.score;Ie>ze&&(ze=Ie)}}return ze===De?Ge:ze},he=(Ze,ze)=>{var Le=Ze[ze];if(Le!==void 0)return Le;var Ye=ze;Array.isArray(ze)||(Ye=ze.split("."));for(var qe=Ye.length,Ie=-1;Ze&&++Ie<qe;)Ze=Ze[Ye[Ie]];return Ze},oe=Ze=>typeof Ze=="object",Ve=1/0,De=-Ve,Ae=[];Ae.total=0;var Ge=null,it=Ze=>{var ze=[],Le=0,Ye={},qe=Ie=>{for(var Te=0,le=ze[Te],X=1;X<Le;){var ie=X+1;Te=X,ie<Le&&ze[ie].score<ze[X].score&&(Te=ie),ze[Te-1>>1]=ze[Te],X=1+(Te<<1)}for(var Me=Te-1>>1;Te>0&&le.score<ze[Me].score;Me=(Te=Me)-1>>1)ze[Te]=ze[Me];ze[Te]=le};return Ye.add=Ie=>{var Te=Le;ze[Le++]=Ie;for(var le=Te-1>>1;Te>0&&Ie.score<ze[le].score;le=(Te=le)-1>>1)ze[Te]=ze[le];ze[Te]=Ie},Ye.poll=Ie=>{if(Le!==0){var Te=ze[0];return ze[0]=ze[--Le],qe(),Te}},Ye.peek=Ie=>{if(Le!==0)return ze[0]},Ye.replaceTop=Ie=>{ze[0]=Ie,qe()},Ye},Ee=it();return{single:r,go:s,highlight:u,prepare:a,indexes:m,cleanup:H}})}),ap;(function(e){e.Asc="asc",e.Desc="desc"})(ap||(ap={}));const Yce=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var dl;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(dl||(dl={}));const G7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var t;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(t=this.selected[0])===null||t===void 0?void 0:t.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===dl.ArrowDown||t.key===dl.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===dl.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(dl.ArrowDown||dl.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===dl.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const t=ke("ul",{class:"list"},this.currentItems.map((r,s)=>this.renderListItem(r,s,this.filterable)));return ke(co,{class:{open:this.open}},ke("input",{type:"text",class:"input",onFocus:r=>this.onClickExists(r),ref:r=>this.filterElement=r,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),ke("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),ke("section",{ref:r=>this.listElement=r,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():t))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};G7.style=Yce;const Gce=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:G7},Symbol.toStringTag,{value:"Module"}));function Z7(e){return e!==null&&e>""&&!isNaN(Number(e))}function Zce(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function Gx(e){return e==null}function Zx(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function Wce(e){try{return new URL(e),!0}catch{return!1}}function TT(e,t){if(Wce(e)===!1)return;const r=new URL(e),s=r.hostname;if(s==="image.mapsindoors.com"){const u=Math.max(2,window.devicePixelRatio||1),f=t*u,m=t*u;r.searchParams.set("width",f.toString()),r.searchParams.set("height",m.toString()),r.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(s)&&r.searchParams.set("scale","2"),r.toString()}const qce=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,W7=class{constructor(e){Ri(this,e),this.selectionChanged=pr(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(t=>{const r={alignContent:t.alignContent,monospace:t.monospace,label:Gx(t.label)?t.binding:t.label,binding:t.binding||null,sortable:t.sortable,fitContent:!!t.fitContent,template:t.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:t,width:t.width};return t.sort&&!this.sortByColumn&&(this.sortByColumn={column:r,sortOrder:t.sort==="asc"?"asc":"desc"}),r})}columnHeaderClickHandler(e,t){var r,s;if(!Gx(t.sortable)){let u="asc";t===((r=this.sortByColumn)===null||r===void 0?void 0:r.column)&&(u=((s=this.sortByColumn)===null||s===void 0?void 0:s.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:t,sortOrder:u}}}sortTableRows(){var e,t,r;if(this.tableRows.length>0&&this.sortByColumn){let s;const u=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,f=(t=this.sortByColumn)===null||t===void 0?void 0:t.sortOrder;if(u&&f)return((r=u.sortable)===null||r===void 0?void 0:r.toLowerCase())==="date"?s=f==="desc"?eue(u.binding):Jce(u.binding):s=f==="desc"?Xce(u.binding):Kce(u.binding),[...this.tableRows.sort(s)]}return this.tableRows}replaceVars(e,t){return e.replace(/\{(.*?)\}/g,(r,s)=>s.split(".").reduce((f,m)=>f?f[m]:null,t))}removeFalseBooleanAttributes(e,t){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(r,s,u)=>t[u]===!1?"":s)}tableRowClicked(e,t){var r;const s=e.target,u=s.closest("td").cellIndex,f=this.selectable?u-1:u;if(s.tagName.toLowerCase()!=="td"&&this.columns[f]){const m={detail:t};(r=this.columns[f])===null||r===void 0||r.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",m))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return ke(co,null,ke("table",{class:"table"},ke("thead",null,ke("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var t;const r=e.fitContent?"":e.width||"auto",s=((t=this.sortByColumn)===null||t===void 0?void 0:t.column)===e?this.sortByColumn.sortOrder:null;return ke("th",{"data-binding":e.binding,style:{width:r,"max-width":r,"min-width":r},onClick:u=>this.columnHeaderClickHandler(u,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${Gx(e.sortable)?"table__header-cell--no-sort":""} ${Gx(s)?"":s} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),ke("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return ke("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},ke("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return ke("td",{class:"table__data table__data--align-center"},ke("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:t=>this.selectOnChangeHandler(t,e)}))}renderTableContent(){let e=this.sortTableRows();return e=Z7(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(t=>this.renderTableRow(t))}renderTableRow(e){const t=[];for(const r of this.columns){let s=r.template;s>""?(s=this.removeFalseBooleanAttributes(s,e),s=this.replaceVars(s,e),t.push(s)):t.push(e[r.binding])}return ke("tr",{class:"table__row",onClick:r=>this.tableRowClicked(r,e)},this.renderSelectRow(e),t.map((r,s)=>ke("td",{class:`table__data ${this.columns[s].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[s].alignContent||"left"} ${this.columns[s].monospace?"table__data--monospace-font":""}`,innerHTML:r})))}renderEmptyPage(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.emptyPageHeader),ke("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,t){e.target.checked?this.selected.add(t):this.selected.delete(t),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return rc(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},Kce=e=>(t,r)=>`${t[e]||""}`.localeCompare(`${r[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Xce=e=>(t,r)=>`${r[e]||""}`.localeCompare(`${t[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Jce=e=>(t,r)=>{const s=Date.parse(t[e]),u=Date.parse(r[e]);return s>u?1:s<u?-1:0},eue=e=>(t,r)=>{const s=Date.parse(r[e]),u=Date.parse(t[e]);return s>u?1:s<u?-1:0};W7.style=qce;const tue=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:W7},Symbol.toStringTag,{value:"Module"}));var ha;(function(e){e.Imperial="imperial",e.Metric="metric"})(ha||(ha={}));const nue=class{constructor(e){Ri(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?ha.Imperial:ha.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const s=e*3.28084;return Math.round(s)>0?`${Math.round(s)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return ke("span",null,this.unit===ha.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},iue=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */
2203
2203
  :host {
2204
2204
  display: block;
2205
2205
  }
@@ -2481,7 +2481,7 @@ Minimum version required to store current data is: `+f+`.
2481
2481
  -webkit-mask-position: center center;
2482
2482
  mask-position: center center;
2483
2483
  background-color: black;
2484
- }`,q7=class{constructor(e){Ri(this,e),this.iconName=void 0}render(){return ke(co,{class:`icon-${this.iconName.toLowerCase()}`})}};q7.style=iue;const rue=Object.freeze(Object.defineProperty({__proto__:null,mi_distance:nue,mi_icon:q7},Symbol.toStringTag,{value:"Module"})),oue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown_item:class{constructor(e){Ri(this,e),this.selected=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),sue=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}mi-dropdown-item{display:none}:host{display:inline-block;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg.arrow{transform:rotate(180deg)}.button{display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);padding:0;padding-left:16px;padding-right:16px;border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem}.button__left-icon{height:20px;width:20px;margin-right:8px}.button svg{margin-left:auto}.button__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.button__label--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.button:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .filter{margin-bottom:16px;padding-left:8px;padding-right:8px;display:flex;position:relative}.content .filter__input{width:100%}.content .filter__clear{width:20px;height:20px;padding:0;border-width:0;display:flex;align-items:center;justify-content:center;position:absolute;right:14px;top:50%;transform:translateY(-50%);background-color:#1f2937;border-radius:50%}.content .filter__clear:focus{outline:0}.content .filter__clear--hidden{opacity:0;pointer-events:none}.content .filter__clear svg{fill:#fcfcfc;width:10px;height:10px}.content .options{margin-bottom:16px;padding-left:16px;padding-right:16px}.content .options__item{padding:0;color:#3b82f6;font-size:0.75rem;font-weight:500;font-family:inherit;background-color:transparent;border:transparent}.content .options__item:hover{text-decoration:underline}.content .options__item:first-child{margin-right:16px}.content .options__item:disabled{color:rgba(48, 113, 217, 0.72);cursor:not-allowed;text-decoration:none}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var lc;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(lc||(lc={}));const K7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isClearButtonVisible=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.label=void 0,this.filterable=!1,this.multiple=!1,this.selected=[],this.noResultsMessage="No results found",this.iconSrc=void 0,this.iconAlt=void 0,this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="mi-dropdown-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.multiple){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}focusOutEventHandler(e){const t=e.relatedTarget;(!t||!this.hostElement.contains(t))&&(this.open=!1)}checkForClickOutside(e){this.hostElement.contains(e.target)||(this.open=!1)}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver((t,r)=>{t.forEach(s=>{s.isIntersecting===!0&&this.filterElement.focus()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===lc.ArrowDown||t.key===lc.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.multiple||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("mi-dropdown-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.multiple){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===lc.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.multiple)switch(e.key){case lc.ArrowDown:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===lc.Esc&&(this.multiple||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}selectAll(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!0;this.onChangedHandler()}selectNone(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!1;this.onChangedHandler()}onSelect(e){this.multiple||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.multiple&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.isClearButtonVisible=!1,this.currentItems=[...this.items];this.isClearButtonVisible=!0;const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){this.filterElement&&(this.filterElement.value="",this.filterElement.focus(),this.currentItems=this.items),this.isClearButtonVisible=!1}render(){const e=this.filterable?this.renderFiltering():null,t=this.multiple?this.renderMultipleOptions():null,r=this.iconSrc?this.renderLeftSideIcon():null,s=ke("ul",{class:"list"},this.currentItems.map((u,f)=>this.renderListItem(u,f,!!t)));return ke(co,{class:{open:this.open}},ke("button",{part:"button",class:"button",disabled:this.disabled||this.items.length===0,onClick:()=>this.toggleContentWindow()},r,this.renderButtonLabel(),ke("svg",{class:"arrow",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"}))),ke("section",{ref:u=>this.listElement=u,part:"dropdown-container",class:"content"},e,t,this.currentItems.length===0?this.renderNoResultsTemplate():s))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderButtonLabel(){var e,t,r,s;return this.multiple?ke("div",{part:"button-label",class:"button__label"},this.label):!((t=(e=this.selected)===null||e===void 0?void 0:e[0])===null||t===void 0)&&t.text?ke("div",{part:"button-label",class:"button__label"},this.selected[0].text):!((s=(r=this.selected)===null||r===void 0?void 0:r[0])===null||s===void 0)&&s.innerHTML?ke("div",{part:"button-label",class:"button__label button__label--from-inner-html",innerHTML:this.selected[0].innerHTML}):ke("div",{part:"button-label",class:"button__label"})}renderLeftSideIcon(){return ke("img",{part:"button-icon",class:"button__left-icon",src:this.iconSrc,alt:this.iconAlt?this.iconAlt:""})}renderFiltering(){return ke("div",{class:"filter"},ke("input",{type:"text",class:"mi-input filter__input",placeholder:"Type to filter",ref:e=>this.filterElement=e,onInput:()=>{this.filter()},tabIndex:this.open?0:-1}),ke("button",{ref:e=>this.clearButtonElement=e,tabindex:this.isClearButtonVisible?0:-1,type:"button",onClick:()=>this.clearFilter(),class:`filter__clear ${this.isClearButtonVisible===!1?"filter__clear--hidden":""}`,"aria-label":"Clear"},ke("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"}))))}renderMultipleOptions(){return ke("div",{class:"options"},ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectAll()},"Select all"),ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectNone()},"Select none"))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};K7.style=sue;const aue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown:K7},Symbol.toStringTag,{value:"Module"})),lue='.mi-floor-selector{width:-moz-min-content;width:min-content;display:flex;align-items:flex-start;position:relative;margin:10px;overflow:hidden;animation-duration:0.15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:auto;border-radius:56px;border-width:1px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;border-color:#e5e7eb;border-style:solid;background-color:#fcfcfc}.mi-floor-selector--hidden{display:none}.mi-floor-selector__button{position:absolute;z-index:4;top:4px;right:4px;left:4px;background-position:center;background-repeat:no-repeat;border-width:1px;background-color:#f9fafb;border-color:#e5e7eb;border-style:solid;border-radius:50%;width:40px;height:40px}.mi-floor-selector__button:hover{background-color:#f3f4f6}.mi-floor-selector__button--open{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMTUwNDUgNi4wODk5OEM3LjEzODUgNi4wNzg3NiA3LjEyODk3IDYuMDY1MjEgNy4xMjI0NSA2LjA1MDE2QzcuMTE1OTQgNi4wMzUxMSA3LjExMjU3IDYuMDE4ODggNy4xMTI1NyA2LjAwMjQ4QzcuMTEyNTcgNS45ODYwOCA3LjExNTk0IDUuOTY5ODYgNy4xMjI0NSA1Ljk1NDgxQzcuMTI4OTcgNS45Mzk3NiA3LjEzODUgNS45MjYyIDcuMTUwNDUgNS45MTQ5OEwxMS43ODA1IDEuMjc5OThDMTEuODUwNiAxLjIxMDY5IDExLjkwNjMgMS4xMjgxNiAxMS45NDQzIDEuMDM3MThDMTEuOTgyMyAwLjk0NjIwMSAxMi4wMDE5IDAuODQ4NTgyIDEyLjAwMTkgMC43NDk5ODJDMTIuMDAxOSAwLjY1MTM4MiAxMS45ODIzIDAuNTUzNzYzIDExLjk0NDMgMC40NjI3ODRDMTEuOTA2MyAwLjM3MTgwNSAxMS44NTA2IDAuMjg5Mjc2IDExLjc4MDUgMC4yMTk5ODJDMTEuNjM5MiAwLjA4MDc0MTkgMTEuNDQ4OCAwLjAwMjY4NTU1IDExLjI1MDUgMC4wMDI2ODU1NUMxMS4wNTIxIDAuMDAyNjg1NTUgMTAuODYxNyAwLjA4MDc0MTkgMTAuNzIwNSAwLjIxOTk4Mkw2LjA5MDQ1IDQuODQ5OThDNi4wNzg3OSA0Ljg2MjA4IDYuMDY0ODEgNC44NzE3IDYuMDQ5MzUgNC44NzgyN0M2LjAzMzg5IDQuODg0ODUgNi4wMTcyNiA0Ljg4ODI0IDYuMDAwNDUgNC44ODgyNEM1Ljk4MzY1IDQuODg4MjQgNS45NjcwMiA0Ljg4NDg1IDUuOTUxNTYgNC44NzgyN0M1LjkzNjA5IDQuODcxNyA1LjkyMjExIDQuODYyMDggNS45MTA0NSA0Ljg0OTk4TDEuMjgwNDUgMC4yMTk5ODJDMS4xMzkxOSAwLjA4MDc0MTkgMC45NDg4MDUgMC4wMDI2ODU1NSAwLjc1MDQ1NCAwLjAwMjY4NTU1QzAuNTUyMTAyIDAuMDAyNjg1NTUgMC4zNjE3MTggMC4wODA3NDE5IDAuMjIwNDU0IDAuMjE5OTgyQzAuMTUwMzA5IDAuMjg5Mjc2IDAuMDk0NjE2OSAwLjM3MTgwNSAwLjA1NjYwNjQgMC40NjI3ODRDMC4wMTg1OTYgMC41NTM3NjMgLTAuMDAwOTc2NTYyIDAuNjUxMzgyIC0wLjAwMDk3NjU2MiAwLjc0OTk4MkMtMC4wMDA5NzY1NjIgMC44NDg1ODIgMC4wMTg1OTYgMC45NDYyMDEgMC4wNTY2MDY0IDEuMDM3MThDMC4wOTQ2MTY5IDEuMTI4MTYgMC4xNTAzMDkgMS4yMTA2OSAwLjIyMDQ1NCAxLjI3OTk4TDQuODUwNDUgNS45MTQ5OEM0Ljg2MjQxIDUuOTI2MiA0Ljg3MTk0IDUuOTM5NzYgNC44Nzg0NiA1Ljk1NDgxQzQuODg0OTcgNS45Njk4NiA0Ljg4ODMzIDUuOTg2MDggNC44ODgzMyA2LjAwMjQ4QzQuODg4MzMgNi4wMTg4OCA0Ljg4NDk3IDYuMDM1MTEgNC44Nzg0NiA2LjA1MDE2QzQuODcxOTQgNi4wNjUyMSA0Ljg2MjQxIDYuMDc4NzYgNC44NTA0NSA2LjA4OTk4TDAuMjIwNDU0IDEwLjcyQzAuMTUwMzA5IDEwLjc4OTMgMC4wOTQ2MTY5IDEwLjg3MTggMC4wNTY2MDY0IDEwLjk2MjhDMC4wMTg1OTYgMTEuMDUzOCAtMC4wMDA5NzY1NjIgMTEuMTUxNCAtMC4wMDA5NzY1NjIgMTEuMjVDLTAuMDAwOTc2NTYyIDExLjM0ODYgMC4wMTg1OTYgMTEuNDQ2MiAwLjA1NjYwNjQgMTEuNTM3MkMwLjA5NDYxNjkgMTEuNjI4MiAwLjE1MDMwOSAxMS43MTA3IDAuMjIwNDU0IDExLjc4QzAuMzYxNzE4IDExLjkxOTIgMC41NTIxMDIgMTEuOTk3MyAwLjc1MDQ1NCAxMS45OTczQzAuOTQ4ODA1IDExLjk5NzMgMS4xMzkxOSAxMS45MTkyIDEuMjgwNDUgMTEuNzhMNS45MTA0NSA3LjE0OTk4QzUuOTIyMTEgNy4xMzc4OCA1LjkzNjA5IDcuMTI4MjYgNS45NTE1NiA3LjEyMTY5QzUuOTY3MDIgNy4xMTUxMiA1Ljk4MzY1IDcuMTExNzMgNi4wMDA0NSA3LjExMTczQzYuMDE3MjYgNy4xMTE3MyA2LjAzMzg5IDcuMTE1MTIgNi4wNDkzNSA3LjEyMTY5QzYuMDY0ODEgNy4xMjgyNiA2LjA3ODc5IDcuMTM3ODggNi4wOTA0NSA3LjE0OTk4TDEwLjcyMDUgMTEuNzhDMTAuODYxNyAxMS45MTkyIDExLjA1MjEgMTEuOTk3MyAxMS4yNTA1IDExLjk5NzNDMTEuNDQ4OCAxMS45OTczIDExLjYzOTIgMTEuOTE5MiAxMS43ODA1IDExLjc4QzExLjg1MDYgMTEuNzEwNyAxMS45MDYzIDExLjYyODIgMTEuOTQ0MyAxMS41MzcyQzExLjk4MjMgMTEuNDQ2MiAxMi4wMDE5IDExLjM0ODYgMTIuMDAxOSAxMS4yNUMxMi4wMDE5IDExLjE1MTQgMTEuOTgyMyAxMS4wNTM4IDExLjk0NDMgMTAuOTYyOEMxMS45MDYzIDEwLjg3MTggMTEuODUwNiAxMC43ODkzIDExLjc4MDUgMTAuNzJMNy4xNTA0NSA2LjA4OTk4WiIgZmlsbD0iIzcwNzA3MCIvPgo8L3N2Zz4K)}.mi-floor-selector__button--open+.mi-floor-selector__list{max-height:300px;overflow:auto;flex-wrap:unset}.mi-floor-selector__button--closed{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTY3Mzc0IDYuMTY2NjRMOS4wMDA3MSA5LjY1ODMxQzkuMzE2MTIgOS43OTU5NiA5LjY1NjU2IDkuODY3MDIgMTAuMDAwNyA5Ljg2NzAyQzEwLjM0NDkgOS44NjcwMiAxMC42ODUzIDkuNzk1OTYgMTEuMDAwNyA5LjY1ODMxTDE5LjA0MjQgNi4xNjY2NEMxOS4yNjczIDYuMDY2MTcgMTkuNDU4IDUuOTAyMjkgMTkuNTkxMiA1LjY5NTA4QzE5LjcyNDUgNS40ODc4NiAxOS43OTQzIDUuMjQ2MyAxOS43OTI0IDQuOTk5OTdDMTkuNzkzMSA0Ljc1NjAxIDE5LjcyMTQgNC41MTczMiAxOS41ODY0IDQuMzE0MUMxOS40NTE0IDQuMTEwODggMTkuMjU5MiAzLjk1MjI2IDE5LjAzNCAzLjg1ODMxTDExLjAwMDcgMC4zNzQ5NzJDMTAuNjg1MyAwLjIzNzMxNCAxMC4zNDQ5IDAuMTY2MjYgMTAuMDAwNyAwLjE2NjI2QzkuNjU2NTYgMC4xNjYyNiA5LjMxNjEyIDAuMjM3MzE0IDkuMDAwNzEgMC4zNzQ5NzJMMC45NjczNzQgMy44NzQ5N0MwLjc0NDgzNiAzLjk2NzgzIDAuNTU0Mzk4IDQuMTIzODggMC40MTk2MTggNC4zMjM4M0MwLjI4NDgzNyA0LjUyMzc4IDAuMjExNjI2IDQuNzU4ODUgMC4yMDkwNDEgNC45OTk5N0MwLjIwNjY5OCA1LjI0NzQ2IDAuMjc3MzkxIDUuNDkwMTUgMC40MTIyNzYgNS42OTc2NkMwLjU0NzE2MSA1LjkwNTE4IDAuNzQwMjQ3IDYuMDY4MzEgMC45NjczNzQgNi4xNjY2NFoiIGZpbGw9IiM3MDcwNzAiLz4KPHBhdGggZD0iTTE5LjAzMzYgOC44NzQ5MUwxOC4wMDAzIDguNDI0OTFDMTcuODk5MiA4LjM3NDE5IDE3Ljc4ODggOC4zNDQ2IDE3LjY3NTkgOC4zMzc5NEMxNy41NjI5IDguMzMxMjcgMTcuNDQ5OCA4LjM0NzY3IDE3LjM0MzQgOC4zODYxNEMxNy4yMzcgOC40MjQ2IDE3LjEzOTYgOC40ODQzMyAxNy4wNTcgOC41NjE2N0MxNi45NzQ1IDguNjM5MDIgMTYuOTA4NSA4LjczMjM3IDE2Ljg2MzIgOC44MzYwM0MxNi44MTc5IDguOTM5NjkgMTYuNzk0MSA5LjA1MTQ5IDE2Ljc5MzQgOS4xNjQ2MkMxNi43OTI3IDkuMjc3NzUgMTYuODE1MSA5LjM4OTgzIDE2Ljg1OTEgOS40OTQwNUMxNi45MDMxIDkuNTk4MjcgMTYuOTY3OSA5LjY5MjQzIDE3LjA0OTUgOS43NzA4MUMxNy4xMzExIDkuODQ5MTggMTcuMjI3NyA5LjkxMDEyIDE3LjMzMzYgOS45NDk5MUwxNy41MDAzIDkuOTk5OTFMMTAuMzMzNiAxMy4xMzMyQzEwLjIyODUgMTMuMTc5MSAxMC4xMTUgMTMuMjAyOCAxMC4wMDAzIDEzLjIwMjhDOS44ODU2IDEzLjIwMjggOS43NzIxMiAxMy4xNzkxIDkuNjY2OTggMTMuMTMzMkwyLjUwMDMxIDkuOTk5OTFMMi42NTg2NSA5LjkzMzI0QzIuNzY0NTUgOS44OTM0NSAyLjg2MTI0IDkuODMyNTEgMi45NDI4MyA5Ljc1NDE0QzMuMDI0NDIgOS42NzU3NyAzLjA4OTE5IDkuNTgxNiAzLjEzMzIxIDkuNDc3MzlDMy4xNzcyMiA5LjM3MzE3IDMuMTk5NTYgOS4yNjEwOCAzLjE5ODg1IDkuMTQ3OTVDMy4xOTgxNSA5LjAzNDgyIDMuMTc0NDEgOC45MjMwMiAzLjEyOTEgOC44MTkzNkMzLjA4Mzc4IDguNzE1NyAzLjAxNzgzIDguNjIyMzUgMi45MzUyNyA4LjU0NTAxQzIuODUyNzEgOC40Njc2NiAyLjc1NTI3IDguNDA3OTQgMi42NDg4NyA4LjM2OTQ3QzIuNTQyNDggOC4zMzEwMSAyLjQyOTM3IDguMzE0NjEgMi4zMTY0NCA4LjMyMTI3QzIuMjAzNSA4LjMyNzk0IDIuMDkzMTEgOC4zNTc1MyAxLjk5MTk4IDguNDA4MjRMMC45NTg2NDcgOC44NTgyNEMwLjczMjU2MSA4Ljk1MjYyIDAuNTM5NDQ5IDkuMTExNzggMC40MDM2MTkgOS4zMTU2N0MwLjI2Nzc4OSA5LjUxOTU2IDAuMTk1MzEzIDkuNzU5MDggMC4xOTUzMTIgMTAuMDA0MUMwLjE5NTMxMyAxMC4yNDkxIDAuMjY3Nzg5IDEwLjQ4ODYgMC40MDM2MTkgMTAuNjkyNUMwLjUzOTQ0OSAxMC44OTY0IDAuNzMyNTYxIDExLjA1NTUgMC45NTg2NDcgMTEuMTQ5OUw4Ljk5MTk4IDE0LjY0MTZDOS4zMDczOSAxNC43NzkyIDkuNjQ3ODMgMTQuODUwMyA5Ljk5MTk4IDE0Ljg1MDNDMTAuMzM2MSAxNC44NTAzIDEwLjY3NjYgMTQuNzc5MiAxMC45OTIgMTQuNjQxNkwxOS4wMjUzIDExLjE0OTlDMTkuMjUxNCAxMS4wNTQgMTkuNDQ0NCAxMC44OTM5IDE5LjU4MDcgMTAuNjg5NkMxOS43MTY5IDEwLjQ4NTIgMTkuNzkwNCAxMC4yNDU1IDE5Ljc5MiA5Ljk5OTkxQzE5Ljc4OTQgOS43NTg3OSAxOS43MTYyIDkuNTIzNzEgMTkuNTgxNCA5LjMyMzc3QzE5LjQ0NjYgOS4xMjM4MiAxOS4yNTYyIDguOTY3NzYgMTkuMDMzNiA4Ljg3NDkxWiIgZmlsbD0iIzcwNzA3MCIvPgo8cGF0aCBkPSJNMTkuMDM0IDEzLjgzMzRMMTguMDAwNyAxMy4zODM0QzE3LjkgMTMuMzM5MyAxNy43OTE3IDEzLjMxNTUgMTcuNjgxOCAxMy4zMTM0QzE3LjU3MTkgMTMuMzExMyAxNy40NjI3IDEzLjMzMSAxNy4zNjA1IDEzLjM3MTJDMTcuMjU4MyAxMy40MTE1IDE3LjE2NSAxMy40NzE2IDE3LjA4NjEgMTMuNTQ4MUMxNy4wMDcyIDEzLjYyNDUgMTYuOTQ0MSAxMy43MTU4IDE2LjkwMDcgMTMuODE2N0MxNi44MTQxIDE0LjAxOTEgMTYuODExMSAxNC4yNDc0IDE2Ljg5MjMgMTQuNDUxOUMxNi45NzM1IDE0LjY1NjQgMTcuMTMyMyAxNC44MjA1IDE3LjMzNCAxNC45MDg0TDE3LjUwMDcgMTUuMDAwMUwxMC4zMzQgMTguMDkxN0MxMC4yMjg5IDE4LjEzNzYgMTAuMTE1NCAxOC4xNjEzIDEwLjAwMDcgMTguMTYxM0M5Ljg4NTk0IDE4LjE2MTMgOS43NzI0NiAxOC4xMzc2IDkuNjY3MzIgMTguMDkxN0wyLjUwMDY2IDE1LjAwMDFMMi42NTg5OSAxNC45MjUxQzIuODYwNzEgMTQuODM3MiAzLjAxOTQ5IDE0LjY3MzEgMy4xMDA2NyAxNC40Njg2QzMuMTgxODUgMTQuMjY0IDMuMTc4ODUgMTQuMDM1NyAzLjA5MjMyIDEzLjgzMzRDMy4wNDg4MyAxMy43MzI1IDIuOTg1ODEgMTMuNjQxMiAyLjkwNjg5IDEzLjU2NDdDMi44Mjc5NyAxMy40ODgzIDIuNzM0NzEgMTMuNDI4MiAyLjYzMjQ4IDEzLjM4NzlDMi41MzAyNCAxMy4zNDc2IDIuNDIxMDUgMTMuMzI4IDIuMzExMTggMTMuMzMwMUMyLjIwMTMyIDEzLjMzMjEgMi4wOTI5NSAxMy4zNTU5IDEuOTkyMzIgMTMuNDAwMUwwLjk1ODk4OSAxMy44NTAxQzAuNzM2MDMzIDEzLjk0ODUgMC41NDY0NyAxNC4xMDk2IDAuNDEzMzI5IDE0LjMxMzhDMC4yODAxODggMTQuNTE3OSAwLjIwOTIgMTQuNzU2MyAwLjIwODk4OSAxNS4wMDAxQzAuMjA4MzAzIDE1LjI0NCAwLjI3OTk4NSAxNS40ODI3IDAuNDE0OTcgMTUuNjg1OUMwLjU0OTk1NSAxNS44ODkyIDAuNzQyMTc3IDE2LjA0NzggMC45NjczMjMgMTYuMTQxN0w5LjAwMDY2IDE5LjY0MTdDOS4zMTYwNyAxOS43Nzk0IDkuNjU2NTEgMTkuODUwNSAxMC4wMDA3IDE5Ljg1MDVDMTAuMzQ0OCAxOS44NTA1IDEwLjY4NTIgMTkuNzc5NCAxMS4wMDA3IDE5LjY0MTdMMTkuMDM0IDE2LjE0MTdDMTkuMjU5MSAxNi4wNDc4IDE5LjQ1MTQgMTUuODg5MiAxOS41ODYzIDE1LjY4NTlDMTkuNzIxMyAxNS40ODI3IDE5Ljc5MyAxNS4yNDQgMTkuNzkyMyAxNS4wMDAxQzE5Ljc5NDcgMTQuNzUyNiAxOS43MjQgMTQuNTA5OSAxOS41ODkxIDE0LjMwMjRDMTkuNDU0MiAxNC4wOTQ5IDE5LjI2MTEgMTMuOTMxNyAxOS4wMzQgMTMuODMzNFoiIGZpbGw9IiM3MDcwNzAiLz4KPC9zdmc+Cg==)}.mi-floor-selector__button span{position:none}.mi-floor-selector__list{box-sizing:unset;display:flex;flex-direction:column;gap:4px;overflow-y:hidden;transition:max-height 0.25s;scroll-behavior:smooth;z-index:0;border-radius:9999px;padding:4px;padding-top:48px;max-height:40px}.mi-floor-selector__list::before,.mi-floor-selector__list::after{content:"";height:100%;position:absolute;pointer-events:none;z-index:3;left:-1px;right:-1px;transition:opacity 0.1s;opacity:0}.mi-floor-selector__list--fade-top::before{opacity:1;top:-1px;background:linear-gradient(180deg, white 39px, rgba(255, 255, 255, 0) 86px)}.mi-floor-selector__list--fade-bottom::after{opacity:1;bottom:-1px;background:linear-gradient(0deg, white 4px, rgba(255, 255, 255, 0) 40px)}.mi-floor-selector__list::-webkit-scrollbar{width:4px}.mi-floor-selector__list::-webkit-scrollbar-track{background:none}.mi-floor-selector__list::-webkit-scrollbar-thumb{background:#8D98AA;border-radius:5px}.mi-floor-selector__floor{position:relative;order:1;flex-shrink:0;margin-top:-1px;z-index:0;float:none;text-align:center;background:none;transition:translateY 0.25s;transform:translateY(0px);color:#666666;border-radius:50%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-style:none;width:40px;height:40px}.mi-floor-selector__floor:hover{z-index:2;background-color:#d1d5db}.mi-floor-selector__floor--active{z-index:2;transform:translateY(0px);color:#fcfcfc}.mi-floor-selector__floor-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:4px;padding-right:4px}',X7=class{constructor(e){Ri(this,e),this.maxListHeight=300,this.mapsindoors=void 0,this.primaryColor="#005655",this.floors=new Array,this.currentFloor=void 0,this.floorSelectorClosed=!0,this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1}scrollToSelectedFloor(){const e=this.floorSelectorElement.clientHeight,t=this.floorListElement.scrollHeight,r=this.currentFloorElement.offsetTop,s=this.currentFloorElement.offsetHeight;let u;t>e?(u=r-e/2+s/2,u=Math.max(0,u),u=Math.min(u,t-e)):u=0,this.floorListElement.scrollTop=u}animateTranslateY(e,t,r){const s=[{transform:`translateY(${t}px)`}];e.animate(s,{duration:r,fill:"forwards"})}animateFloorSelector(){const e=this.el.querySelectorAll(".mi-floor-selector__floor"),t=[];for(let r=0;r<e.length&&e[r].getAttribute("data-floor")!==this.currentFloor;r++)t.push(e[r]);if(this.floorSelectorClosed){const r=this.floorListElement.scrollTop,s=parseInt(window.getComputedStyle(this.floorListElement).getPropertyValue("padding-top")),f=-(this.currentFloorElement.offsetTop-this.floorListElement.offsetTop-r-s);this.animateTranslateY(this.currentFloorElement,f,250),this.floorListElement.scrollTop>0?e.forEach(m=>{m.getAttribute("data-floor")!==this.currentFloor&&(t.indexOf(m)>-1?this.animateTranslateY(m,m.offsetTop+this.floorListElement.scrollTop,250):this.animateTranslateY(m,this.floorListElement.scrollTop,250))}):t.forEach(m=>{this.animateTranslateY(m,m.offsetTop,250)})}else this.animateTranslateY(this.currentFloorElement,0,250),e.forEach(r=>{r.getAttribute("data-floor")!==this.currentFloor&&this.animateTranslateY(r,0,250)})}onToggleFloorSelector(){this.floorSelectorClosed=!this.floorSelectorClosed,this.animateFloorSelector(),this.floorListElement.addEventListener("transitionend",()=>{this.floorSelectorClosed||this.scrollToSelectedFloor(),this.onScrollStyle()},{once:!0})}onScrollStyle(){const e=this.floorListElement.scrollHeight-this.floorListElement.clientHeight;if(this.floorSelectorClosed){this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1;return}this.maxListHeight>this.floorListElement.clientHeight-48||(this.fadeFloorSelectorOnTop=this.floorListElement.scrollTop>0,this.fadeFloorSelectorOnBottom=this.floorListElement.scrollTop!==e)}onSelectFloor(e,t){this.mapsindoors.setFloor(t),this.currentFloor=this.mapsindoors.getFloor().toString(),this.currentFloorElement=e.currentTarget}connectedCallback(){this.mapsindoors.addListener("building_changed",()=>{this.floors=[];const e=this.mapsindoors.getBuilding();if(e){const t=()=>{this.currentFloor=this.mapsindoors.getFloor().toString(),this.mapsindoors.removeListener("floor_changed",t)};this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.mapsindoors.addListener("floor_changed",t):this.currentFloor=this.mapsindoors.getFloor().toString(),Object.keys(e.floors).sort((r,s)=>s-r).forEach(r=>{e.floors[r].index=r,this.floors.push(e.floors[r])})}}),this.mapsindoors.addListener("floor_changed",()=>{this.currentFloor=this.mapsindoors.getFloor().toString()})}componentDidRender(){!this.mapsindoors.getBuilding()||this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.floorSelectorElement.classList.add("mi-floor-selector--hidden"):this.floorSelectorElement.classList.remove("mi-floor-selector--hidden"),this.currentFloorElement=this.el.querySelector(".mi-floor-selector__floor--active"),this.currentFloorElement&&this.currentFloor&&this.animateFloorSelector()}render(){return ke(co,null,ke("div",{class:"mi-floor-selector",ref:e=>this.floorSelectorElement=e},ke("button",{class:`mi-floor-selector__button mi-floor-selector__button--${this.floorSelectorClosed?"closed":"open"}`,onClick:()=>this.onToggleFloorSelector()}),ke("div",{class:`mi-floor-selector__list ${this.fadeFloorSelectorOnTop?"mi-floor-selector__list--fade-top":""} ${this.fadeFloorSelectorOnBottom?"mi-floor-selector__list--fade-bottom":""}`,ref:e=>this.floorListElement=e,onScroll:()=>this.onScrollStyle()},this.floors.map(e=>ke("button",{"data-floor":e.index,style:this.currentFloor===e.index?{backgroundColor:this.primaryColor}:{},class:`mi-floor-selector__floor ${this.currentFloor===e.index?"mi-floor-selector__floor--active":""}`,onClick:t=>this.onSelectFloor(t,e.index)},ke("span",null,e.name))))))}get el(){return rc(this)}};X7.style=lue;const cue=Object.freeze(Object.defineProperty({__proto__:null,mi_floor_selector:X7},Symbol.toStringTag,{value:"Module"}));var uue=c0(function(e,t){/*!
2484
+ }`,q7=class{constructor(e){Ri(this,e),this.iconName=void 0}render(){return ke(co,{class:`icon-${this.iconName.toLowerCase()}`})}};q7.style=iue;const rue=Object.freeze(Object.defineProperty({__proto__:null,mi_distance:nue,mi_icon:q7},Symbol.toStringTag,{value:"Module"})),oue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown_item:class{constructor(e){Ri(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),sue=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}mi-dropdown-item{display:none}:host{display:inline-block;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg.arrow{transform:rotate(180deg)}.button{display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);padding:0;padding-left:16px;padding-right:16px;border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem}.button__left-icon{height:20px;width:20px;margin-right:8px}.button svg{margin-left:auto}.button__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.button__label--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.button:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .filter{margin-bottom:16px;padding-left:8px;padding-right:8px;display:flex;position:relative}.content .filter__input{width:100%}.content .filter__clear{width:20px;height:20px;padding:0;border-width:0;display:flex;align-items:center;justify-content:center;position:absolute;right:14px;top:50%;transform:translateY(-50%);background-color:#1f2937;border-radius:50%}.content .filter__clear:focus{outline:0}.content .filter__clear--hidden{opacity:0;pointer-events:none}.content .filter__clear svg{fill:#fcfcfc;width:10px;height:10px}.content .options{margin-bottom:16px;padding-left:16px;padding-right:16px}.content .options__item{padding:0;color:#3b82f6;font-size:0.75rem;font-weight:500;font-family:inherit;background-color:transparent;border:transparent}.content .options__item:hover{text-decoration:underline}.content .options__item:first-child{margin-right:16px}.content .options__item:disabled{color:rgba(48, 113, 217, 0.72);cursor:not-allowed;text-decoration:none}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var lc;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(lc||(lc={}));const K7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isClearButtonVisible=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.label=void 0,this.filterable=!1,this.multiple=!1,this.selected=[],this.noResultsMessage="No results found",this.iconSrc=void 0,this.iconAlt=void 0,this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="mi-dropdown-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.multiple){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString(),t.dataset.excludefromall=`${t.excludefromall}`}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}focusOutEventHandler(e){const t=e.relatedTarget;(!t||!this.hostElement.contains(t))&&(this.open=!1)}checkForClickOutside(e){this.hostElement.contains(e.target)||(this.open=!1)}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver((t,r)=>{t.forEach(s=>{s.isIntersecting===!0&&this.filterElement.focus()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===lc.ArrowDown||t.key===lc.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.multiple||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("mi-dropdown-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.multiple){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===lc.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.multiple)switch(e.key){case lc.ArrowDown:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===lc.Esc&&(this.multiple||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}selectAll(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!(`${t.dataset.excludefromall}`=="true"||t.disabled);this.onChangedHandler()}selectNone(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!1;this.onChangedHandler()}onSelect(e){this.multiple||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.multiple&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.isClearButtonVisible=!1,this.currentItems=[...this.items];this.isClearButtonVisible=!0;const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){this.filterElement&&(this.filterElement.value="",this.filterElement.focus(),this.currentItems=this.items),this.isClearButtonVisible=!1}render(){const e=this.filterable?this.renderFiltering():null,t=this.multiple?this.renderMultipleOptions():null,r=this.iconSrc?this.renderLeftSideIcon():null,s=ke("ul",{class:"list"},this.currentItems.map((u,f)=>this.renderListItem(u,f,!!t)));return ke(co,{class:{open:this.open}},ke("button",{part:"button",class:"button",disabled:this.disabled||this.items.length===0,onClick:()=>this.toggleContentWindow()},r,this.renderButtonLabel(),ke("svg",{class:"arrow",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"}))),ke("section",{ref:u=>this.listElement=u,part:"dropdown-container",class:"content"},e,t,this.currentItems.length===0?this.renderNoResultsTemplate():s))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderButtonLabel(){var e,t,r,s;return this.multiple?ke("div",{part:"button-label",class:"button__label"},this.label):!((t=(e=this.selected)===null||e===void 0?void 0:e[0])===null||t===void 0)&&t.text?ke("div",{part:"button-label",class:"button__label"},this.selected[0].text):!((s=(r=this.selected)===null||r===void 0?void 0:r[0])===null||s===void 0)&&s.innerHTML?ke("div",{part:"button-label",class:"button__label button__label--from-inner-html",innerHTML:this.selected[0].innerHTML}):ke("div",{part:"button-label",class:"button__label"})}renderLeftSideIcon(){return ke("img",{part:"button-icon",class:"button__left-icon",src:this.iconSrc,alt:this.iconAlt?this.iconAlt:""})}renderFiltering(){return ke("div",{class:"filter"},ke("input",{type:"text",class:"mi-input filter__input",placeholder:"Type to filter",ref:e=>this.filterElement=e,onInput:()=>{this.filter()},tabIndex:this.open?0:-1}),ke("button",{ref:e=>this.clearButtonElement=e,tabindex:this.isClearButtonVisible?0:-1,type:"button",onClick:()=>this.clearFilter(),class:`filter__clear ${this.isClearButtonVisible===!1?"filter__clear--hidden":""}`,"aria-label":"Clear"},ke("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"}))))}renderMultipleOptions(){return ke("div",{class:"options"},ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectAll()},"Select all"),ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectNone()},"Select none"))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,disabled:e.disabled,"data-excludefromall":e.excludefromall,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};K7.style=sue;const aue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown:K7},Symbol.toStringTag,{value:"Module"})),lue='.mi-floor-selector{width:-moz-min-content;width:min-content;display:flex;align-items:flex-start;position:relative;margin:10px;overflow:hidden;animation-duration:0.15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:auto;border-radius:56px;border-width:1px;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;border-color:#e5e7eb;border-style:solid;background-color:#fcfcfc}.mi-floor-selector--hidden{display:none}.mi-floor-selector__button{position:absolute;z-index:4;top:4px;right:4px;left:4px;background-position:center;background-repeat:no-repeat;border-width:1px;background-color:#f9fafb;border-color:#e5e7eb;border-style:solid;border-radius:50%;width:40px;height:40px}.mi-floor-selector__button:hover{background-color:#f3f4f6}.mi-floor-selector__button--open{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMTUwNDUgNi4wODk5OEM3LjEzODUgNi4wNzg3NiA3LjEyODk3IDYuMDY1MjEgNy4xMjI0NSA2LjA1MDE2QzcuMTE1OTQgNi4wMzUxMSA3LjExMjU3IDYuMDE4ODggNy4xMTI1NyA2LjAwMjQ4QzcuMTEyNTcgNS45ODYwOCA3LjExNTk0IDUuOTY5ODYgNy4xMjI0NSA1Ljk1NDgxQzcuMTI4OTcgNS45Mzk3NiA3LjEzODUgNS45MjYyIDcuMTUwNDUgNS45MTQ5OEwxMS43ODA1IDEuMjc5OThDMTEuODUwNiAxLjIxMDY5IDExLjkwNjMgMS4xMjgxNiAxMS45NDQzIDEuMDM3MThDMTEuOTgyMyAwLjk0NjIwMSAxMi4wMDE5IDAuODQ4NTgyIDEyLjAwMTkgMC43NDk5ODJDMTIuMDAxOSAwLjY1MTM4MiAxMS45ODIzIDAuNTUzNzYzIDExLjk0NDMgMC40NjI3ODRDMTEuOTA2MyAwLjM3MTgwNSAxMS44NTA2IDAuMjg5Mjc2IDExLjc4MDUgMC4yMTk5ODJDMTEuNjM5MiAwLjA4MDc0MTkgMTEuNDQ4OCAwLjAwMjY4NTU1IDExLjI1MDUgMC4wMDI2ODU1NUMxMS4wNTIxIDAuMDAyNjg1NTUgMTAuODYxNyAwLjA4MDc0MTkgMTAuNzIwNSAwLjIxOTk4Mkw2LjA5MDQ1IDQuODQ5OThDNi4wNzg3OSA0Ljg2MjA4IDYuMDY0ODEgNC44NzE3IDYuMDQ5MzUgNC44NzgyN0M2LjAzMzg5IDQuODg0ODUgNi4wMTcyNiA0Ljg4ODI0IDYuMDAwNDUgNC44ODgyNEM1Ljk4MzY1IDQuODg4MjQgNS45NjcwMiA0Ljg4NDg1IDUuOTUxNTYgNC44NzgyN0M1LjkzNjA5IDQuODcxNyA1LjkyMjExIDQuODYyMDggNS45MTA0NSA0Ljg0OTk4TDEuMjgwNDUgMC4yMTk5ODJDMS4xMzkxOSAwLjA4MDc0MTkgMC45NDg4MDUgMC4wMDI2ODU1NSAwLjc1MDQ1NCAwLjAwMjY4NTU1QzAuNTUyMTAyIDAuMDAyNjg1NTUgMC4zNjE3MTggMC4wODA3NDE5IDAuMjIwNDU0IDAuMjE5OTgyQzAuMTUwMzA5IDAuMjg5Mjc2IDAuMDk0NjE2OSAwLjM3MTgwNSAwLjA1NjYwNjQgMC40NjI3ODRDMC4wMTg1OTYgMC41NTM3NjMgLTAuMDAwOTc2NTYyIDAuNjUxMzgyIC0wLjAwMDk3NjU2MiAwLjc0OTk4MkMtMC4wMDA5NzY1NjIgMC44NDg1ODIgMC4wMTg1OTYgMC45NDYyMDEgMC4wNTY2MDY0IDEuMDM3MThDMC4wOTQ2MTY5IDEuMTI4MTYgMC4xNTAzMDkgMS4yMTA2OSAwLjIyMDQ1NCAxLjI3OTk4TDQuODUwNDUgNS45MTQ5OEM0Ljg2MjQxIDUuOTI2MiA0Ljg3MTk0IDUuOTM5NzYgNC44Nzg0NiA1Ljk1NDgxQzQuODg0OTcgNS45Njk4NiA0Ljg4ODMzIDUuOTg2MDggNC44ODgzMyA2LjAwMjQ4QzQuODg4MzMgNi4wMTg4OCA0Ljg4NDk3IDYuMDM1MTEgNC44Nzg0NiA2LjA1MDE2QzQuODcxOTQgNi4wNjUyMSA0Ljg2MjQxIDYuMDc4NzYgNC44NTA0NSA2LjA4OTk4TDAuMjIwNDU0IDEwLjcyQzAuMTUwMzA5IDEwLjc4OTMgMC4wOTQ2MTY5IDEwLjg3MTggMC4wNTY2MDY0IDEwLjk2MjhDMC4wMTg1OTYgMTEuMDUzOCAtMC4wMDA5NzY1NjIgMTEuMTUxNCAtMC4wMDA5NzY1NjIgMTEuMjVDLTAuMDAwOTc2NTYyIDExLjM0ODYgMC4wMTg1OTYgMTEuNDQ2MiAwLjA1NjYwNjQgMTEuNTM3MkMwLjA5NDYxNjkgMTEuNjI4MiAwLjE1MDMwOSAxMS43MTA3IDAuMjIwNDU0IDExLjc4QzAuMzYxNzE4IDExLjkxOTIgMC41NTIxMDIgMTEuOTk3MyAwLjc1MDQ1NCAxMS45OTczQzAuOTQ4ODA1IDExLjk5NzMgMS4xMzkxOSAxMS45MTkyIDEuMjgwNDUgMTEuNzhMNS45MTA0NSA3LjE0OTk4QzUuOTIyMTEgNy4xMzc4OCA1LjkzNjA5IDcuMTI4MjYgNS45NTE1NiA3LjEyMTY5QzUuOTY3MDIgNy4xMTUxMiA1Ljk4MzY1IDcuMTExNzMgNi4wMDA0NSA3LjExMTczQzYuMDE3MjYgNy4xMTE3MyA2LjAzMzg5IDcuMTE1MTIgNi4wNDkzNSA3LjEyMTY5QzYuMDY0ODEgNy4xMjgyNiA2LjA3ODc5IDcuMTM3ODggNi4wOTA0NSA3LjE0OTk4TDEwLjcyMDUgMTEuNzhDMTAuODYxNyAxMS45MTkyIDExLjA1MjEgMTEuOTk3MyAxMS4yNTA1IDExLjk5NzNDMTEuNDQ4OCAxMS45OTczIDExLjYzOTIgMTEuOTE5MiAxMS43ODA1IDExLjc4QzExLjg1MDYgMTEuNzEwNyAxMS45MDYzIDExLjYyODIgMTEuOTQ0MyAxMS41MzcyQzExLjk4MjMgMTEuNDQ2MiAxMi4wMDE5IDExLjM0ODYgMTIuMDAxOSAxMS4yNUMxMi4wMDE5IDExLjE1MTQgMTEuOTgyMyAxMS4wNTM4IDExLjk0NDMgMTAuOTYyOEMxMS45MDYzIDEwLjg3MTggMTEuODUwNiAxMC43ODkzIDExLjc4MDUgMTAuNzJMNy4xNTA0NSA2LjA4OTk4WiIgZmlsbD0iIzcwNzA3MCIvPgo8L3N2Zz4K)}.mi-floor-selector__button--open+.mi-floor-selector__list{max-height:300px;overflow:auto;flex-wrap:unset}.mi-floor-selector__button--closed{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTY3Mzc0IDYuMTY2NjRMOS4wMDA3MSA5LjY1ODMxQzkuMzE2MTIgOS43OTU5NiA5LjY1NjU2IDkuODY3MDIgMTAuMDAwNyA5Ljg2NzAyQzEwLjM0NDkgOS44NjcwMiAxMC42ODUzIDkuNzk1OTYgMTEuMDAwNyA5LjY1ODMxTDE5LjA0MjQgNi4xNjY2NEMxOS4yNjczIDYuMDY2MTcgMTkuNDU4IDUuOTAyMjkgMTkuNTkxMiA1LjY5NTA4QzE5LjcyNDUgNS40ODc4NiAxOS43OTQzIDUuMjQ2MyAxOS43OTI0IDQuOTk5OTdDMTkuNzkzMSA0Ljc1NjAxIDE5LjcyMTQgNC41MTczMiAxOS41ODY0IDQuMzE0MUMxOS40NTE0IDQuMTEwODggMTkuMjU5MiAzLjk1MjI2IDE5LjAzNCAzLjg1ODMxTDExLjAwMDcgMC4zNzQ5NzJDMTAuNjg1MyAwLjIzNzMxNCAxMC4zNDQ5IDAuMTY2MjYgMTAuMDAwNyAwLjE2NjI2QzkuNjU2NTYgMC4xNjYyNiA5LjMxNjEyIDAuMjM3MzE0IDkuMDAwNzEgMC4zNzQ5NzJMMC45NjczNzQgMy44NzQ5N0MwLjc0NDgzNiAzLjk2NzgzIDAuNTU0Mzk4IDQuMTIzODggMC40MTk2MTggNC4zMjM4M0MwLjI4NDgzNyA0LjUyMzc4IDAuMjExNjI2IDQuNzU4ODUgMC4yMDkwNDEgNC45OTk5N0MwLjIwNjY5OCA1LjI0NzQ2IDAuMjc3MzkxIDUuNDkwMTUgMC40MTIyNzYgNS42OTc2NkMwLjU0NzE2MSA1LjkwNTE4IDAuNzQwMjQ3IDYuMDY4MzEgMC45NjczNzQgNi4xNjY2NFoiIGZpbGw9IiM3MDcwNzAiLz4KPHBhdGggZD0iTTE5LjAzMzYgOC44NzQ5MUwxOC4wMDAzIDguNDI0OTFDMTcuODk5MiA4LjM3NDE5IDE3Ljc4ODggOC4zNDQ2IDE3LjY3NTkgOC4zMzc5NEMxNy41NjI5IDguMzMxMjcgMTcuNDQ5OCA4LjM0NzY3IDE3LjM0MzQgOC4zODYxNEMxNy4yMzcgOC40MjQ2IDE3LjEzOTYgOC40ODQzMyAxNy4wNTcgOC41NjE2N0MxNi45NzQ1IDguNjM5MDIgMTYuOTA4NSA4LjczMjM3IDE2Ljg2MzIgOC44MzYwM0MxNi44MTc5IDguOTM5NjkgMTYuNzk0MSA5LjA1MTQ5IDE2Ljc5MzQgOS4xNjQ2MkMxNi43OTI3IDkuMjc3NzUgMTYuODE1MSA5LjM4OTgzIDE2Ljg1OTEgOS40OTQwNUMxNi45MDMxIDkuNTk4MjcgMTYuOTY3OSA5LjY5MjQzIDE3LjA0OTUgOS43NzA4MUMxNy4xMzExIDkuODQ5MTggMTcuMjI3NyA5LjkxMDEyIDE3LjMzMzYgOS45NDk5MUwxNy41MDAzIDkuOTk5OTFMMTAuMzMzNiAxMy4xMzMyQzEwLjIyODUgMTMuMTc5MSAxMC4xMTUgMTMuMjAyOCAxMC4wMDAzIDEzLjIwMjhDOS44ODU2IDEzLjIwMjggOS43NzIxMiAxMy4xNzkxIDkuNjY2OTggMTMuMTMzMkwyLjUwMDMxIDkuOTk5OTFMMi42NTg2NSA5LjkzMzI0QzIuNzY0NTUgOS44OTM0NSAyLjg2MTI0IDkuODMyNTEgMi45NDI4MyA5Ljc1NDE0QzMuMDI0NDIgOS42NzU3NyAzLjA4OTE5IDkuNTgxNiAzLjEzMzIxIDkuNDc3MzlDMy4xNzcyMiA5LjM3MzE3IDMuMTk5NTYgOS4yNjEwOCAzLjE5ODg1IDkuMTQ3OTVDMy4xOTgxNSA5LjAzNDgyIDMuMTc0NDEgOC45MjMwMiAzLjEyOTEgOC44MTkzNkMzLjA4Mzc4IDguNzE1NyAzLjAxNzgzIDguNjIyMzUgMi45MzUyNyA4LjU0NTAxQzIuODUyNzEgOC40Njc2NiAyLjc1NTI3IDguNDA3OTQgMi42NDg4NyA4LjM2OTQ3QzIuNTQyNDggOC4zMzEwMSAyLjQyOTM3IDguMzE0NjEgMi4zMTY0NCA4LjMyMTI3QzIuMjAzNSA4LjMyNzk0IDIuMDkzMTEgOC4zNTc1MyAxLjk5MTk4IDguNDA4MjRMMC45NTg2NDcgOC44NTgyNEMwLjczMjU2MSA4Ljk1MjYyIDAuNTM5NDQ5IDkuMTExNzggMC40MDM2MTkgOS4zMTU2N0MwLjI2Nzc4OSA5LjUxOTU2IDAuMTk1MzEzIDkuNzU5MDggMC4xOTUzMTIgMTAuMDA0MUMwLjE5NTMxMyAxMC4yNDkxIDAuMjY3Nzg5IDEwLjQ4ODYgMC40MDM2MTkgMTAuNjkyNUMwLjUzOTQ0OSAxMC44OTY0IDAuNzMyNTYxIDExLjA1NTUgMC45NTg2NDcgMTEuMTQ5OUw4Ljk5MTk4IDE0LjY0MTZDOS4zMDczOSAxNC43NzkyIDkuNjQ3ODMgMTQuODUwMyA5Ljk5MTk4IDE0Ljg1MDNDMTAuMzM2MSAxNC44NTAzIDEwLjY3NjYgMTQuNzc5MiAxMC45OTIgMTQuNjQxNkwxOS4wMjUzIDExLjE0OTlDMTkuMjUxNCAxMS4wNTQgMTkuNDQ0NCAxMC44OTM5IDE5LjU4MDcgMTAuNjg5NkMxOS43MTY5IDEwLjQ4NTIgMTkuNzkwNCAxMC4yNDU1IDE5Ljc5MiA5Ljk5OTkxQzE5Ljc4OTQgOS43NTg3OSAxOS43MTYyIDkuNTIzNzEgMTkuNTgxNCA5LjMyMzc3QzE5LjQ0NjYgOS4xMjM4MiAxOS4yNTYyIDguOTY3NzYgMTkuMDMzNiA4Ljg3NDkxWiIgZmlsbD0iIzcwNzA3MCIvPgo8cGF0aCBkPSJNMTkuMDM0IDEzLjgzMzRMMTguMDAwNyAxMy4zODM0QzE3LjkgMTMuMzM5MyAxNy43OTE3IDEzLjMxNTUgMTcuNjgxOCAxMy4zMTM0QzE3LjU3MTkgMTMuMzExMyAxNy40NjI3IDEzLjMzMSAxNy4zNjA1IDEzLjM3MTJDMTcuMjU4MyAxMy40MTE1IDE3LjE2NSAxMy40NzE2IDE3LjA4NjEgMTMuNTQ4MUMxNy4wMDcyIDEzLjYyNDUgMTYuOTQ0MSAxMy43MTU4IDE2LjkwMDcgMTMuODE2N0MxNi44MTQxIDE0LjAxOTEgMTYuODExMSAxNC4yNDc0IDE2Ljg5MjMgMTQuNDUxOUMxNi45NzM1IDE0LjY1NjQgMTcuMTMyMyAxNC44MjA1IDE3LjMzNCAxNC45MDg0TDE3LjUwMDcgMTUuMDAwMUwxMC4zMzQgMTguMDkxN0MxMC4yMjg5IDE4LjEzNzYgMTAuMTE1NCAxOC4xNjEzIDEwLjAwMDcgMTguMTYxM0M5Ljg4NTk0IDE4LjE2MTMgOS43NzI0NiAxOC4xMzc2IDkuNjY3MzIgMTguMDkxN0wyLjUwMDY2IDE1LjAwMDFMMi42NTg5OSAxNC45MjUxQzIuODYwNzEgMTQuODM3MiAzLjAxOTQ5IDE0LjY3MzEgMy4xMDA2NyAxNC40Njg2QzMuMTgxODUgMTQuMjY0IDMuMTc4ODUgMTQuMDM1NyAzLjA5MjMyIDEzLjgzMzRDMy4wNDg4MyAxMy43MzI1IDIuOTg1ODEgMTMuNjQxMiAyLjkwNjg5IDEzLjU2NDdDMi44Mjc5NyAxMy40ODgzIDIuNzM0NzEgMTMuNDI4MiAyLjYzMjQ4IDEzLjM4NzlDMi41MzAyNCAxMy4zNDc2IDIuNDIxMDUgMTMuMzI4IDIuMzExMTggMTMuMzMwMUMyLjIwMTMyIDEzLjMzMjEgMi4wOTI5NSAxMy4zNTU5IDEuOTkyMzIgMTMuNDAwMUwwLjk1ODk4OSAxMy44NTAxQzAuNzM2MDMzIDEzLjk0ODUgMC41NDY0NyAxNC4xMDk2IDAuNDEzMzI5IDE0LjMxMzhDMC4yODAxODggMTQuNTE3OSAwLjIwOTIgMTQuNzU2MyAwLjIwODk4OSAxNS4wMDAxQzAuMjA4MzAzIDE1LjI0NCAwLjI3OTk4NSAxNS40ODI3IDAuNDE0OTcgMTUuNjg1OUMwLjU0OTk1NSAxNS44ODkyIDAuNzQyMTc3IDE2LjA0NzggMC45NjczMjMgMTYuMTQxN0w5LjAwMDY2IDE5LjY0MTdDOS4zMTYwNyAxOS43Nzk0IDkuNjU2NTEgMTkuODUwNSAxMC4wMDA3IDE5Ljg1MDVDMTAuMzQ0OCAxOS44NTA1IDEwLjY4NTIgMTkuNzc5NCAxMS4wMDA3IDE5LjY0MTdMMTkuMDM0IDE2LjE0MTdDMTkuMjU5MSAxNi4wNDc4IDE5LjQ1MTQgMTUuODg5MiAxOS41ODYzIDE1LjY4NTlDMTkuNzIxMyAxNS40ODI3IDE5Ljc5MyAxNS4yNDQgMTkuNzkyMyAxNS4wMDAxQzE5Ljc5NDcgMTQuNzUyNiAxOS43MjQgMTQuNTA5OSAxOS41ODkxIDE0LjMwMjRDMTkuNDU0MiAxNC4wOTQ5IDE5LjI2MTEgMTMuOTMxNyAxOS4wMzQgMTMuODMzNFoiIGZpbGw9IiM3MDcwNzAiLz4KPC9zdmc+Cg==)}.mi-floor-selector__button span{position:none}.mi-floor-selector__list{box-sizing:unset;display:flex;flex-direction:column;gap:4px;overflow-y:hidden;transition:max-height 0.25s;scroll-behavior:smooth;z-index:0;border-radius:9999px;padding:4px;padding-top:48px;max-height:40px}.mi-floor-selector__list::before,.mi-floor-selector__list::after{content:"";height:100%;position:absolute;pointer-events:none;z-index:3;left:-1px;right:-1px;transition:opacity 0.1s;opacity:0}.mi-floor-selector__list--fade-top::before{opacity:1;top:-1px;background:linear-gradient(180deg, white 39px, rgba(255, 255, 255, 0) 86px)}.mi-floor-selector__list--fade-bottom::after{opacity:1;bottom:-1px;background:linear-gradient(0deg, white 4px, rgba(255, 255, 255, 0) 40px)}.mi-floor-selector__list::-webkit-scrollbar{width:4px}.mi-floor-selector__list::-webkit-scrollbar-track{background:none}.mi-floor-selector__list::-webkit-scrollbar-thumb{background:#8D98AA;border-radius:5px}.mi-floor-selector__floor{position:relative;order:1;flex-shrink:0;margin-top:-1px;z-index:0;float:none;text-align:center;background:none;transition:translateY 0.25s;transform:translateY(0px);color:#666666;border-radius:50%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-style:none;width:40px;height:40px}.mi-floor-selector__floor:hover{z-index:2;background-color:#d1d5db}.mi-floor-selector__floor--active{z-index:2;transform:translateY(0px);color:#fcfcfc}.mi-floor-selector__floor-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:4px;padding-right:4px}',X7=class{constructor(e){Ri(this,e),this.maxListHeight=300,this.mapsindoors=void 0,this.primaryColor="#005655",this.floors=new Array,this.currentFloor=void 0,this.floorSelectorClosed=!0,this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1}scrollToSelectedFloor(){const e=this.floorSelectorElement.clientHeight,t=this.floorListElement.scrollHeight,r=this.currentFloorElement.offsetTop,s=this.currentFloorElement.offsetHeight;let u;t>e?(u=r-e/2+s/2,u=Math.max(0,u),u=Math.min(u,t-e)):u=0,this.floorListElement.scrollTop=u}animateTranslateY(e,t,r){const s=[{transform:`translateY(${t}px)`}];e.animate(s,{duration:r,fill:"forwards"})}animateFloorSelector(){const e=this.el.querySelectorAll(".mi-floor-selector__floor"),t=[];for(let r=0;r<e.length&&e[r].getAttribute("data-floor")!==this.currentFloor;r++)t.push(e[r]);if(this.floorSelectorClosed){const r=this.floorListElement.scrollTop,s=parseInt(window.getComputedStyle(this.floorListElement).getPropertyValue("padding-top")),f=-(this.currentFloorElement.offsetTop-this.floorListElement.offsetTop-r-s);this.animateTranslateY(this.currentFloorElement,f,250),this.floorListElement.scrollTop>0?e.forEach(m=>{m.getAttribute("data-floor")!==this.currentFloor&&(t.indexOf(m)>-1?this.animateTranslateY(m,m.offsetTop+this.floorListElement.scrollTop,250):this.animateTranslateY(m,this.floorListElement.scrollTop,250))}):t.forEach(m=>{this.animateTranslateY(m,m.offsetTop,250)})}else this.animateTranslateY(this.currentFloorElement,0,250),e.forEach(r=>{r.getAttribute("data-floor")!==this.currentFloor&&this.animateTranslateY(r,0,250)})}onToggleFloorSelector(){this.floorSelectorClosed=!this.floorSelectorClosed,this.animateFloorSelector(),this.floorListElement.addEventListener("transitionend",()=>{this.floorSelectorClosed||this.scrollToSelectedFloor(),this.onScrollStyle()},{once:!0})}onScrollStyle(){const e=this.floorListElement.scrollHeight-this.floorListElement.clientHeight;if(this.floorSelectorClosed){this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1;return}this.maxListHeight>this.floorListElement.clientHeight-48||(this.fadeFloorSelectorOnTop=this.floorListElement.scrollTop>0,this.fadeFloorSelectorOnBottom=this.floorListElement.scrollTop!==e)}onSelectFloor(e,t){this.mapsindoors.setFloor(t),this.currentFloor=this.mapsindoors.getFloor().toString(),this.currentFloorElement=e.currentTarget}connectedCallback(){this.mapsindoors.addListener("building_changed",()=>{this.floors=[];const e=this.mapsindoors.getBuilding();if(e){const t=()=>{this.currentFloor=this.mapsindoors.getFloor().toString(),this.mapsindoors.removeListener("floor_changed",t)};this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.mapsindoors.addListener("floor_changed",t):this.currentFloor=this.mapsindoors.getFloor().toString(),Object.keys(e.floors).sort((r,s)=>s-r).forEach(r=>{e.floors[r].index=r,this.floors.push(e.floors[r])})}}),this.mapsindoors.addListener("floor_changed",()=>{this.currentFloor=this.mapsindoors.getFloor().toString()})}componentDidRender(){!this.mapsindoors.getBuilding()||this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.floorSelectorElement.classList.add("mi-floor-selector--hidden"):this.floorSelectorElement.classList.remove("mi-floor-selector--hidden"),this.currentFloorElement=this.el.querySelector(".mi-floor-selector__floor--active"),this.currentFloorElement&&this.currentFloor&&this.animateFloorSelector()}render(){return ke(co,null,ke("div",{class:"mi-floor-selector",ref:e=>this.floorSelectorElement=e},ke("button",{class:`mi-floor-selector__button mi-floor-selector__button--${this.floorSelectorClosed?"closed":"open"}`,onClick:()=>this.onToggleFloorSelector()}),ke("div",{class:`mi-floor-selector__list ${this.fadeFloorSelectorOnTop?"mi-floor-selector__list--fade-top":""} ${this.fadeFloorSelectorOnBottom?"mi-floor-selector__list--fade-bottom":""}`,ref:e=>this.floorListElement=e,onScroll:()=>this.onScrollStyle()},this.floors.map(e=>ke("button",{"data-floor":e.index,style:this.currentFloor===e.index?{backgroundColor:this.primaryColor}:{},class:`mi-floor-selector__floor ${this.currentFloor===e.index?"mi-floor-selector__floor--active":""}`,onClick:t=>this.onSelectFloor(t,e.index)},ke("span",null,e.name))))))}get el(){return rc(this)}};X7.style=lue;const cue=Object.freeze(Object.defineProperty({__proto__:null,mi_floor_selector:X7},Symbol.toStringTag,{value:"Module"}));var uue=c0(function(e,t){/*!
2485
2485
  *
2486
2486
  * simple-keyboard v3.7.27
2487
2487
  * https://github.com/hodgef/simple-keyboard