@mapsindoors/map-template 1.85.1 → 1.85.2

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 (43) hide show
  1. package/dist/{GoogleMapsMap-31df97e6.mjs → GoogleMapsMap-6c712470.mjs} +2 -2
  2. package/dist/{MapboxMap-46d52fdd.mjs → MapboxMap-00927e9d.mjs} +2 -2
  3. package/dist/{combo-box-item.entry-0bdf33a9.mjs → combo-box-item.entry-edf9a9be.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +1 -1
  6. package/dist/mapsindoors-webcomponent.es.js +1 -1
  7. package/dist/mapsindoors-webcomponent.umd.js +1 -1
  8. package/dist/{mi-card_2.entry-9692a517.mjs → mi-card_2.entry-7b1ae573.mjs} +2 -2
  9. package/dist/{mi-chip.entry-fbd16d66.mjs → mi-chip.entry-499f70d0.mjs} +2 -2
  10. package/dist/{mi-column.entry-cb1f5db6.mjs → mi-column.entry-c14b39e2.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-2c6dd706.mjs → mi-combo-box.entry-57d3b890.mjs} +2 -2
  12. package/dist/{mi-data-table.entry-1f1571d9.mjs → mi-data-table.entry-99ee0539.mjs} +2 -2
  13. package/dist/{mi-distance_2.entry-d117e48d.mjs → mi-distance_2.entry-065b5a36.mjs} +2 -2
  14. package/dist/{mi-dropdown-item.entry-2f6b0cc2.mjs → mi-dropdown-item.entry-34da5dd7.mjs} +2 -2
  15. package/dist/{mi-dropdown.entry-aa012bee.mjs → mi-dropdown.entry-974b24df.mjs} +2 -2
  16. package/dist/{mi-floor-selector.entry-9d64a202.mjs → mi-floor-selector.entry-5ea90d3d.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-a8f231b6.mjs → mi-keyboard.entry-72198db8.mjs} +2 -2
  18. package/dist/{mi-list-item-category.entry-088d9bcd.mjs → mi-list-item-category.entry-d817c3c9.mjs} +2 -2
  19. package/dist/{mi-list-item-location.entry-4816fe7b.mjs → mi-list-item-location.entry-f65b607e.mjs} +2 -2
  20. package/dist/{mi-list.entry-738de7e8.mjs → mi-list.entry-4b027086.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-dc77ccaa.mjs → mi-location-booking.entry-30786e06.mjs} +2 -2
  22. package/dist/{mi-location-info.entry-77a153ae.mjs → mi-location-info.entry-563a062a.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-e1f61a20.mjs → mi-map-googlemaps.entry-a73d5ef0.mjs} +2 -2
  24. package/dist/{mi-map-mapbox.entry-db0c670d.mjs → mi-map-mapbox.entry-095ab018.mjs} +2 -2
  25. package/dist/{mi-metric-card.entry-98806515.mjs → mi-metric-card.entry-b2e3f040.mjs} +2 -2
  26. package/dist/{mi-my-position.entry-8caf76fb.mjs → mi-my-position.entry-386a6066.mjs} +2 -2
  27. package/dist/{mi-notification.entry-ba58d08a.mjs → mi-notification.entry-c54b78af.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-e01c981a.mjs → mi-route-instructions-heading.entry-a01f37a4.mjs} +2 -2
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-ec9dd12f.mjs → mi-route-instructions-maneuver-legacy.entry-e2773a60.mjs} +2 -2
  30. package/dist/{mi-route-instructions-maneuver.entry-b85534db.mjs → mi-route-instructions-maneuver.entry-aaf6cebd.mjs} +2 -2
  31. package/dist/{mi-route-instructions-step-legacy.entry-cf5e1c0d.mjs → mi-route-instructions-step-legacy.entry-680d80cd.mjs} +2 -2
  32. package/dist/{mi-route-instructions-step.entry-1eed5728.mjs → mi-route-instructions-step.entry-aad0874c.mjs} +2 -2
  33. package/dist/{mi-route-instructions.entry-5b6dac2e.mjs → mi-route-instructions.entry-034c322d.mjs} +2 -2
  34. package/dist/{mi-scroll-buttons.entry-02488127.mjs → mi-scroll-buttons.entry-85060ee5.mjs} +2 -2
  35. package/dist/{mi-search.entry-bc80f37e.mjs → mi-search.entry-db632244.mjs} +2 -2
  36. package/dist/{mi-share-sms.entry-76bd1248.mjs → mi-share-sms.entry-9564c870.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-92908056.mjs → mi-step-switcher.entry-c459fbe6.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-76d61e93.mjs → mi-tab-panel.entry-985c9994.mjs} +2 -2
  39. package/dist/{mi-tab.entry-5df02893.mjs → mi-tab.entry-57b83241.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-d8f346c8.mjs → mi-tabs.entry-d83a1466.mjs} +2 -2
  41. package/dist/{mi-time.entry-c95ba3e3.mjs → mi-time.entry-bc3a1e41.mjs} +2 -2
  42. package/dist/{reactcomponent-0aac5fba.mjs → reactcomponent-761abf9b.mjs} +4 -4
  43. package/package.json +1 -1
@@ -40,7 +40,7 @@
40
40
  Error generating stack: `+_.message+`
41
41
  `+_.stack}return{value:e,source:i,stack:d,digest:null}}function IM(e,i,o){return{value:e,source:null,stack:o??null,digest:i??null}}function TM(e,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var mR=typeof WeakMap=="function"?WeakMap:Map;function HA(e,i,o){o=hc(-1,o),o.tag=3,o.payload={element:null};var u=i.value;return o.callback=function(){Zy||(Zy=!0,FM=u),TM(e,i)},o}function $A(e,i,o){o=hc(-1,o),o.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;o.payload=function(){return u(d)},o.callback=function(){TM(e,i)}}var _=e.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(o.callback=function(){TM(e,i),typeof u!="function"&&(du===null?du=new Set([this]):du.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),o}function YA(e,i,o){var u=e.pingCache;if(u===null){u=e.pingCache=new mR;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(o)||(d.add(o),e=ER.bind(null,e,i,o),i.then(e,e))}function GA(e){do{var i;if((i=e.tag===13)&&(i=e.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return e;e=e.return}while(e!==null);return null}function ZA(e,i,o,u,d){return e.mode&1?(e.flags|=65536,e.lanes=d,e):(e===i?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=hc(-1,1),i.tag=2,uu(o,i,1))),o.lanes|=1),e)}var yR=oc.ReactCurrentOwner,Ys=!1;function Es(e,i,o,u){i.child=e===null?wA(i,null,o,u):of(i,e.child,o,u)}function WA(e,i,o,u,d){o=o.render;var _=i.ref;return rf(i,d),u=_M(e,i,o,u,_,d),o=vM(),e!==null&&!Ys?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,dc(e,i,d)):(co&&o&&Jb(i),i.flags|=1,Es(e,i,u,d),i.child)}function qA(e,i,o,u,d){if(e===null){var _=o.type;return typeof _=="function"&&!GM(_)&&_.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=_,KA(e,i,_,u,d)):(e=e_(o.type,null,u,i,i.mode,d),e.ref=i.ref,e.return=i,i.child=e)}if(_=e.child,!(e.lanes&d)){var b=_.memoizedProps;if(o=o.compare,o=o!==null?o:$g,o(b,u)&&e.ref===i.ref)return dc(e,i,d)}return i.flags|=1,e=mu(_,u),e.ref=i.ref,e.return=i,i.child=e}function KA(e,i,o,u,d){if(e!==null){var _=e.memoizedProps;if($g(_,u)&&e.ref===i.ref)if(Ys=!1,i.pendingProps=u=_,(e.lanes&d)!==0)e.flags&131072&&(Ys=!0);else return i.lanes=e.lanes,dc(e,i,d)}return DM(e,i,o,u,d)}function XA(e,i,o){var u=i.pendingProps,d=u.children,_=e!==null?e.memoizedState:null;if(u.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xr(cf,aa),aa|=o;else{if(!(o&1073741824))return e=_!==null?_.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:e,cachePool:null,transitions:null},i.updateQueue=null,Xr(cf,aa),aa|=e,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=_!==null?_.baseLanes:o,Xr(cf,aa),aa|=u}else _!==null?(u=_.baseLanes|o,i.memoizedState=null):u=o,Xr(cf,aa),aa|=u;return Es(e,i,d,o),i.child}function JA(e,i){var o=i.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function DM(e,i,o,u,d){var _=$s(o)?yh:ms.current;return _=Xd(i,_),rf(i,d),o=_M(e,i,o,u,_,d),u=vM(),e!==null&&!Ys?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,dc(e,i,d)):(co&&u&&Jb(i),i.flags|=1,Es(e,i,o,d),i.child)}function eC(e,i,o,u,d){if($s(o)){var _=!0;Ty(i)}else _=!1;if(rf(i,d),i.stateNode===null)Qy(e,i),yA(i,o,u),hM(i,o,u,d),u=!0;else if(e===null){var b=i.stateNode,a=i.memoizedProps;b.props=a;var E=b.context,j=o.contextType;typeof j=="object"&&j!==null?j=Sa(j):(j=$s(o)?yh:ms.current,j=Xd(i,j));var Q=o.getDerivedStateFromProps,ie=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function";ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(a!==u||E!==j)&&_A(i,b,u,j),cu=!1;var G=i.memoizedState;b.state=G,zy(i,u,b,d),E=i.memoizedState,a!==u||G!==E||Hs.current||cu?(typeof Q=="function"&&(uM(i,o,Q,u),E=i.memoizedState),(a=cu||mA(i,o,a,u,G,E,j))?(ie||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=E),b.props=u,b.state=E,b.context=j,u=a):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{b=i.stateNode,dA(e,i),a=i.memoizedProps,j=i.type===i.elementType?a:Za(i.type,a),b.props=j,ie=i.pendingProps,G=b.context,E=o.contextType,typeof E=="object"&&E!==null?E=Sa(E):(E=$s(o)?yh:ms.current,E=Xd(i,E));var ue=o.getDerivedStateFromProps;(Q=typeof ue=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(a!==ie||G!==E)&&_A(i,b,u,E),cu=!1,G=i.memoizedState,b.state=G,zy(i,u,b,d);var pe=i.memoizedState;a!==ie||G!==pe||Hs.current||cu?(typeof ue=="function"&&(uM(i,o,ue,u),pe=i.memoizedState),(j=cu||mA(i,o,j,u,G,pe,E)||!1)?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(u,pe,E),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(u,pe,E)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=pe),b.props=u,b.state=pe,b.context=E,u=j):(typeof b.componentDidUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=1024),u=!1)}return SM(e,i,o,u,_,d)}function SM(e,i,o,u,d,_){JA(e,i);var b=(i.flags&128)!==0;if(!u&&!b)return d&&rA(i,o,!1),dc(e,i,_);u=i.stateNode,yR.current=i;var a=b&&typeof o.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,e!==null&&b?(i.child=of(i,e.child,null,_),i.child=of(i,null,a,_)):Es(e,i,a,_),i.memoizedState=u.state,d&&rA(i,o,!0),i.child}function tC(e){var i=e.stateNode;i.pendingContext?iA(e,i.pendingContext,i.pendingContext!==i.context):i.context&&iA(e,i.context,!1),dM(e,i.containerInfo)}function iC(e,i,o,u,d){return tf(),nM(d),i.flags|=256,Es(e,i,o,u),i.child}var AM={dehydrated:null,treeContext:null,retryLane:0};function CM(e){return{baseLanes:e,cachePool:null,transitions:null}}function nC(e,i,o){var u=i.pendingProps,d=yo.current,_=!1,b=(i.flags&128)!==0,a;if((a=b)||(a=e!==null&&e.memoizedState===null?!1:(d&2)!==0),a?(_=!0,i.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Xr(yo,d&1),e===null)return iM(i),e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(i.mode&1?e.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(b=u.children,e=u.fallback,_?(u=i.mode,_=i.child,b={mode:"hidden",children:b},!(u&1)&&_!==null?(_.childLanes=0,_.pendingProps=b):_=t_(b,u,0,null),e=Sh(e,u,o,null),_.return=i,e.return=i,_.sibling=e,i.child=_,i.child.memoizedState=CM(o),i.memoizedState=AM,e):EM(i,b));if(d=e.memoizedState,d!==null&&(a=d.dehydrated,a!==null))return _R(e,i,b,u,a,d,o);if(_){_=u.fallback,b=i.mode,d=e.child,a=d.sibling;var E={mode:"hidden",children:u.children};return!(b&1)&&i.child!==d?(u=i.child,u.childLanes=0,u.pendingProps=E,i.deletions=null):(u=mu(d,E),u.subtreeFlags=d.subtreeFlags&14680064),a!==null?_=mu(a,_):(_=Sh(_,b,o,null),_.flags|=2),_.return=i,u.return=i,u.sibling=_,i.child=u,u=_,_=i.child,b=e.child.memoizedState,b=b===null?CM(o):{baseLanes:b.baseLanes|o,cachePool:null,transitions:b.transitions},_.memoizedState=b,_.childLanes=e.childLanes&~o,i.memoizedState=AM,u}return _=e.child,e=_.sibling,u=mu(_,{mode:"visible",children:u.children}),!(i.mode&1)&&(u.lanes=o),u.return=i,u.sibling=null,e!==null&&(o=i.deletions,o===null?(i.deletions=[e],i.flags|=16):o.push(e)),i.child=u,i.memoizedState=null,u}function EM(e,i){return i=t_({mode:"visible",children:i},e.mode,0,null),i.return=e,e.child=i}function Vy(e,i,o,u){return u!==null&&nM(u),of(i,e.child,null,o),e=EM(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function _R(e,i,o,u,d,_,b){if(o)return i.flags&256?(i.flags&=-257,u=IM(Error(Wi(422))),Vy(e,i,b,u)):i.memoizedState!==null?(i.child=e.child,i.flags|=128,null):(_=u.fallback,d=i.mode,u=t_({mode:"visible",children:u.children},d,0,null),_=Sh(_,d,b,null),_.flags|=2,u.return=i,_.return=i,u.sibling=_,i.child=u,i.mode&1&&of(i,e.child,null,b),i.child.memoizedState=CM(b),i.memoizedState=AM,_);if(!(i.mode&1))return Vy(e,i,b,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var a=u.dgst;return u=a,_=Error(Wi(419)),u=IM(_,u,void 0),Vy(e,i,b,u)}if(a=(b&e.childLanes)!==0,Ys||a){if(u=qo,u!==null){switch(b&-b){case 4:d=2;break;case 16:d=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:d=32;break;case 536870912:d=268435456;break;default:d=0}d=d&(u.suspendedLanes|b)?0:d,d!==0&&d!==_.retryLane&&(_.retryLane=d,uc(e,d),Ka(u,e,d,-1))}return YM(),u=IM(Error(Wi(421))),Vy(e,i,b,u)}return d.data==="$?"?(i.flags|=128,i.child=e.child,i=NR.bind(null,e),d._reactRetry=i,null):(e=_.treeContext,sa=ou(d.nextSibling),oa=i,co=!0,Ga=null,e!==null&&(Ta[Da++]=lc,Ta[Da++]=cc,Ta[Da++]=_h,lc=e.id,cc=e.overflow,_h=i),i=EM(i,u.children),i.flags|=4096,i)}function rC(e,i,o){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i),aM(e.return,i,o)}function NM(e,i,o,u,d){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(_.isBackwards=i,_.rendering=null,_.renderingStartTime=0,_.last=u,_.tail=o,_.tailMode=d)}function oC(e,i,o){var u=i.pendingProps,d=u.revealOrder,_=u.tail;if(Es(e,i,u.children,o),u=yo.current,u&2)u=u&1|2,i.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rC(e,o,i);else if(e.tag===19)rC(e,o,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(Xr(yo,u),!(i.mode&1))i.memoizedState=null;else switch(d){case"forwards":for(o=i.child,d=null;o!==null;)e=o.alternate,e!==null&&jy(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=i.child,i.child=null):(d=o.sibling,o.sibling=null),NM(i,!1,d,o,_);break;case"backwards":for(o=null,d=i.child,i.child=null;d!==null;){if(e=d.alternate,e!==null&&jy(e)===null){i.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}NM(i,!0,o,null,_);break;case"together":NM(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Qy(e,i){!(i.mode&1)&&e!==null&&(e.alternate=null,i.alternate=null,i.flags|=2)}function dc(e,i,o){if(e!==null&&(i.dependencies=e.dependencies),Mh|=i.lanes,!(o&i.childLanes))return null;if(e!==null&&i.child!==e.child)throw Error(Wi(153));if(i.child!==null){for(e=i.child,o=mu(e,e.pendingProps),i.child=o,o.return=i;e.sibling!==null;)e=e.sibling,o=o.sibling=mu(e,e.pendingProps),o.return=i;o.sibling=null}return i.child}function vR(e,i,o){switch(i.tag){case 3:tC(i),tf();break;case 5:bA(i);break;case 1:$s(i.type)&&Ty(i);break;case 4:dM(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,d=i.memoizedProps.value;Xr(Ey,u._currentValue),u._currentValue=d;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(Xr(yo,yo.current&1),i.flags|=128,null):o&i.child.childLanes?nC(e,i,o):(Xr(yo,yo.current&1),e=dc(e,i,o),e!==null?e.sibling:null);Xr(yo,yo.current&1);break;case 19:if(u=(o&i.childLanes)!==0,e.flags&128){if(u)return oC(e,i,o);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Xr(yo,yo.current),u)break;return null;case 22:case 23:return i.lanes=0,XA(e,i,o)}return dc(e,i,o)}var sC,LM,aC,lC;sC=function(e,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},LM=function(){},aC=function(e,i,o,u){var d=e.memoizedProps;if(d!==u){e=i.stateNode,wh(_l.current);var _=null;switch(o){case"input":d=ab(e,d),u=ab(e,u),_=[];break;case"select":d=mo({},d,{value:void 0}),u=mo({},u,{value:void 0}),_=[];break;case"textarea":d=ub(e,d),u=ub(e,u),_=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=by)}db(o,u);var b;o=null;for(j in d)if(!u.hasOwnProperty(j)&&d.hasOwnProperty(j)&&d[j]!=null)if(j==="style"){var a=d[j];for(b in a)a.hasOwnProperty(b)&&(o||(o={}),o[b]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(Ig.hasOwnProperty(j)?_||(_=[]):(_=_||[]).push(j,null));for(j in u){var E=u[j];if(a=d!=null?d[j]:void 0,u.hasOwnProperty(j)&&E!==a&&(E!=null||a!=null))if(j==="style")if(a){for(b in a)!a.hasOwnProperty(b)||E&&E.hasOwnProperty(b)||(o||(o={}),o[b]="");for(b in E)E.hasOwnProperty(b)&&a[b]!==E[b]&&(o||(o={}),o[b]=E[b])}else o||(_||(_=[]),_.push(j,o)),o=E;else j==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,a=a?a.__html:void 0,E!=null&&a!==E&&(_=_||[]).push(j,E)):j==="children"?typeof E!="string"&&typeof E!="number"||(_=_||[]).push(j,""+E):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(Ig.hasOwnProperty(j)?(E!=null&&j==="onScroll"&&ro("scroll",e),_||a===E||(_=[])):(_=_||[]).push(j,E))}o&&(_=_||[]).push("style",o);var j=_;(i.updateQueue=j)&&(i.flags|=4)}},lC=function(e,i,o,u){o!==u&&(i.flags|=4)};function sm(e,i){if(!co)switch(e.tailMode){case"hidden":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function _s(e){var i=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(i)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,i}function xR(e,i,o){var u=i.pendingProps;switch(eM(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _s(i),null;case 1:return $s(i.type)&&Iy(),_s(i),null;case 3:return u=i.stateNode,sf(),oo(Hs),oo(ms),gM(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Cy(i)?i.flags|=4:e===null||e.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,Ga!==null&&(QM(Ga),Ga=null))),LM(e,i),_s(i),null;case 5:fM(i);var d=wh(tm.current);if(o=i.type,e!==null&&i.stateNode!=null)aC(e,i,o,u,d),e.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(Wi(166));return _s(i),null}if(e=wh(_l.current),Cy(i)){u=i.stateNode,o=i.type;var _=i.memoizedProps;switch(u[yl]=i,u[qg]=_,e=(i.mode&1)!==0,o){case"dialog":ro("cancel",u),ro("close",u);break;case"iframe":case"object":case"embed":ro("load",u);break;case"video":case"audio":for(d=0;d<Gg.length;d++)ro(Gg[d],u);break;case"source":ro("error",u);break;case"img":case"image":case"link":ro("error",u),ro("load",u);break;case"details":ro("toggle",u);break;case"input":UD(u,_),ro("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!_.multiple},ro("invalid",u);break;case"textarea":HD(u,_),ro("invalid",u)}db(o,_),d=null;for(var b in _)if(_.hasOwnProperty(b)){var a=_[b];b==="children"?typeof a=="string"?u.textContent!==a&&(_.suppressHydrationWarning!==!0&&wy(u.textContent,a,e),d=["children",a]):typeof a=="number"&&u.textContent!==""+a&&(_.suppressHydrationWarning!==!0&&wy(u.textContent,a,e),d=["children",""+a]):Ig.hasOwnProperty(b)&&a!=null&&b==="onScroll"&&ro("scroll",u)}switch(o){case"input":X1(u),QD(u,_,!0);break;case"textarea":X1(u),YD(u);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(u.onclick=by)}u=d,i.updateQueue=u,u!==null&&(i.flags|=4)}else{b=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=GD(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=b.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=b.createElement(o,{is:u.is}):(e=b.createElement(o),o==="select"&&(b=e,u.multiple?b.multiple=!0:u.size&&(b.size=u.size))):e=b.createElementNS(e,o),e[yl]=i,e[qg]=u,sC(e,i,!1,!1),i.stateNode=e;e:{switch(b=fb(o,u),o){case"dialog":ro("cancel",e),ro("close",e),d=u;break;case"iframe":case"object":case"embed":ro("load",e),d=u;break;case"video":case"audio":for(d=0;d<Gg.length;d++)ro(Gg[d],e);d=u;break;case"source":ro("error",e),d=u;break;case"img":case"image":case"link":ro("error",e),ro("load",e),d=u;break;case"details":ro("toggle",e),d=u;break;case"input":UD(e,u),d=ab(e,u),ro("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=mo({},u,{value:void 0}),ro("invalid",e);break;case"textarea":HD(e,u),d=ub(e,u),ro("invalid",e);break;default:d=u}db(o,d),a=d;for(_ in a)if(a.hasOwnProperty(_)){var E=a[_];_==="style"?qD(e,E):_==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&ZD(e,E)):_==="children"?typeof E=="string"?(o!=="textarea"||E!=="")&&Ag(e,E):typeof E=="number"&&Ag(e,""+E):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(Ig.hasOwnProperty(_)?E!=null&&_==="onScroll"&&ro("scroll",e):E!=null&&qw(e,_,E,b))}switch(o){case"input":X1(e),QD(e,u,!1);break;case"textarea":X1(e),YD(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Xc(u.value));break;case"select":e.multiple=!!u.multiple,_=u.value,_!=null?Fd(e,!!u.multiple,_,!1):u.defaultValue!=null&&Fd(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=by)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return _s(i),null;case 6:if(e&&i.stateNode!=null)lC(e,i,e.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(Wi(166));if(o=wh(tm.current),wh(_l.current),Cy(i)){if(u=i.stateNode,o=i.memoizedProps,u[yl]=i,(_=u.nodeValue!==o)&&(e=oa,e!==null))switch(e.tag){case 3:wy(u.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wy(u.nodeValue,o,(e.mode&1)!==0)}_&&(i.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[yl]=i,i.stateNode=u}return _s(i),null;case 13:if(oo(yo),u=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(co&&sa!==null&&i.mode&1&&!(i.flags&128))uA(),tf(),i.flags|=98560,_=!1;else if(_=Cy(i),u!==null&&u.dehydrated!==null){if(e===null){if(!_)throw Error(Wi(318));if(_=i.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(Wi(317));_[yl]=i}else tf(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;_s(i),_=!1}else Ga!==null&&(QM(Ga),Ga=null),_=!0;if(!_)return i.flags&65536?i:null}return i.flags&128?(i.lanes=o,i):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(i.child.flags|=8192,i.mode&1&&(e===null||yo.current&1?Ho===0&&(Ho=3):YM())),i.updateQueue!==null&&(i.flags|=4),_s(i),null);case 4:return sf(),LM(e,i),e===null&&Zg(i.stateNode.containerInfo),_s(i),null;case 10:return sM(i.type._context),_s(i),null;case 17:return $s(i.type)&&Iy(),_s(i),null;case 19:if(oo(yo),_=i.memoizedState,_===null)return _s(i),null;if(u=(i.flags&128)!==0,b=_.rendering,b===null)if(u)sm(_,!1);else{if(Ho!==0||e!==null&&e.flags&128)for(e=i.child;e!==null;){if(b=jy(e),b!==null){for(i.flags|=128,sm(_,!1),u=b.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=o,o=i.child;o!==null;)_=o,e=u,_.flags&=14680066,b=_.alternate,b===null?(_.childLanes=0,_.lanes=e,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=b.childLanes,_.lanes=b.lanes,_.child=b.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=b.memoizedProps,_.memoizedState=b.memoizedState,_.updateQueue=b.updateQueue,_.type=b.type,e=b.dependencies,_.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Xr(yo,yo.current&1|2),i.child}e=e.sibling}_.tail!==null&&Ao()>uf&&(i.flags|=128,u=!0,sm(_,!1),i.lanes=4194304)}else{if(!u)if(e=jy(b),e!==null){if(i.flags|=128,u=!0,o=e.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),sm(_,!0),_.tail===null&&_.tailMode==="hidden"&&!b.alternate&&!co)return _s(i),null}else 2*Ao()-_.renderingStartTime>uf&&o!==1073741824&&(i.flags|=128,u=!0,sm(_,!1),i.lanes=4194304);_.isBackwards?(b.sibling=i.child,i.child=b):(o=_.last,o!==null?o.sibling=b:i.child=b,_.last=b)}return _.tail!==null?(i=_.tail,_.rendering=i,_.tail=i.sibling,_.renderingStartTime=Ao(),i.sibling=null,o=yo.current,Xr(yo,u?o&1|2:o&1),i):(_s(i),null);case 22:case 23:return $M(),u=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(i.flags|=8192),u&&i.mode&1?aa&1073741824&&(_s(i),i.subtreeFlags&6&&(i.flags|=8192)):_s(i),null;case 24:return null;case 25:return null}throw Error(Wi(156,i.tag))}function wR(e,i){switch(eM(i),i.tag){case 1:return $s(i.type)&&Iy(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return sf(),oo(Hs),oo(ms),gM(),e=i.flags,e&65536&&!(e&128)?(i.flags=e&-65537|128,i):null;case 5:return fM(i),null;case 13:if(oo(yo),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(Wi(340));tf()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return oo(yo),null;case 4:return sf(),null;case 10:return sM(i.type._context),null;case 22:case 23:return $M(),null;case 24:return null;default:return null}}var Hy=!1,vs=!1,bR=typeof WeakSet=="function"?WeakSet:Set,Cn=null;function lf(e,i){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){bo(e,i,u)}else o.current=null}function zM(e,i,o){try{o()}catch(u){bo(e,i,u)}}var cC=!1;function MR(e,i){if($b=uy,e=FS(),Pb(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,_=u.focusNode;u=u.focusOffset;try{o.nodeType,_.nodeType}catch{o=null;break e}var b=0,a=-1,E=-1,j=0,Q=0,ie=e,G=null;t:for(;;){for(var ue;ie!==o||d!==0&&ie.nodeType!==3||(a=b+d),ie!==_||u!==0&&ie.nodeType!==3||(E=b+u),ie.nodeType===3&&(b+=ie.nodeValue.length),(ue=ie.firstChild)!==null;)G=ie,ie=ue;for(;;){if(ie===e)break t;if(G===o&&++j===d&&(a=b),G===_&&++Q===u&&(E=b),(ue=ie.nextSibling)!==null)break;ie=G,G=ie.parentNode}ie=ue}o=a===-1||E===-1?null:{start:a,end:E}}else o=null}o=o||{start:0,end:0}}else o=null;for(Yb={focusedElem:e,selectionRange:o},uy=!1,Cn=i;Cn!==null;)if(i=Cn,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,Cn=e;else for(;Cn!==null;){i=Cn;try{var pe=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(pe!==null){var we=pe.memoizedProps,qe=pe.memoizedState,me=i.stateNode,te=me.getSnapshotBeforeUpdate(i.elementType===i.type?we:Za(i.type,we),qe);me.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var J=i.stateNode.containerInfo;J.nodeType===1?J.textContent="":J.nodeType===9&&J.documentElement&&J.removeChild(J.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Wi(163))}}catch(re){bo(i,i.return,re)}if(e=i.sibling,e!==null){e.return=i.return,Cn=e;break}Cn=i.return}return pe=cC,cC=!1,pe}function am(e,i,o){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var _=d.destroy;d.destroy=void 0,_!==void 0&&zM(i,o,_)}d=d.next}while(d!==u)}}function $y(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var u=o.create;o.destroy=u()}o=o.next}while(o!==i)}}function OM(e){var i=e.ref;if(i!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof i=="function"?i(e):i.current=e}}function uC(e){var i=e.alternate;i!==null&&(e.alternate=null,uC(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[yl],delete i[qg],delete i[qb],delete i[oR],delete i[sR])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function hC(e){return e.tag===5||e.tag===3||e.tag===4}function dC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kM(e,i,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(e,i):o.insertBefore(e,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(e,o)):(i=o,i.appendChild(e)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=by));else if(u!==4&&(e=e.child,e!==null))for(kM(e,i,o),e=e.sibling;e!==null;)kM(e,i,o),e=e.sibling}function jM(e,i,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?o.insertBefore(e,i):o.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(jM(e,i,o),e=e.sibling;e!==null;)jM(e,i,o),e=e.sibling}var as=null,Wa=!1;function hu(e,i,o){for(o=o.child;o!==null;)fC(e,i,o),o=o.sibling}function fC(e,i,o){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(ry,o)}catch{}switch(o.tag){case 5:vs||lf(o,i);case 6:var u=as,d=Wa;as=null,hu(e,i,o),as=u,Wa=d,as!==null&&(Wa?(e=as,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):as.removeChild(o.stateNode));break;case 18:as!==null&&(Wa?(e=as,o=o.stateNode,e.nodeType===8?Wb(e.parentNode,o):e.nodeType===1&&Wb(e,o),Bg(e)):Wb(as,o.stateNode));break;case 4:u=as,d=Wa,as=o.stateNode.containerInfo,Wa=!0,hu(e,i,o),as=u,Wa=d;break;case 0:case 11:case 14:case 15:if(!vs&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var _=d,b=_.destroy;_=_.tag,b!==void 0&&(_&2||_&4)&&zM(o,i,b),d=d.next}while(d!==u)}hu(e,i,o);break;case 1:if(!vs&&(lf(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(a){bo(o,i,a)}hu(e,i,o);break;case 21:hu(e,i,o);break;case 22:o.mode&1?(vs=(u=vs)||o.memoizedState!==null,hu(e,i,o),vs=u):hu(e,i,o);break;default:hu(e,i,o)}}function pC(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new bR),i.forEach(function(u){var d=LR.bind(null,e,u);o.has(u)||(o.add(u),u.then(d,d))})}}function qa(e,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];try{var _=e,b=i,a=b;e:for(;a!==null;){switch(a.tag){case 5:as=a.stateNode,Wa=!1;break e;case 3:as=a.stateNode.containerInfo,Wa=!0;break e;case 4:as=a.stateNode.containerInfo,Wa=!0;break e}a=a.return}if(as===null)throw Error(Wi(160));fC(_,b,d),as=null,Wa=!1;var E=d.alternate;E!==null&&(E.return=null),d.return=null}catch(j){bo(d,i,j)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)gC(i,e),i=i.sibling}function gC(e,i){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qa(i,e),xl(e),u&4){try{am(3,e,e.return),$y(3,e)}catch(we){bo(e,e.return,we)}try{am(5,e,e.return)}catch(we){bo(e,e.return,we)}}break;case 1:qa(i,e),xl(e),u&512&&o!==null&&lf(o,o.return);break;case 5:if(qa(i,e),xl(e),u&512&&o!==null&&lf(o,o.return),e.flags&32){var d=e.stateNode;try{Ag(d,"")}catch(we){bo(e,e.return,we)}}if(u&4&&(d=e.stateNode,d!=null)){var _=e.memoizedProps,b=o!==null?o.memoizedProps:_,a=e.type,E=e.updateQueue;if(e.updateQueue=null,E!==null)try{a==="input"&&_.type==="radio"&&_.name!=null&&VD(d,_),fb(a,b);var j=fb(a,_);for(b=0;b<E.length;b+=2){var Q=E[b],ie=E[b+1];Q==="style"?qD(d,ie):Q==="dangerouslySetInnerHTML"?ZD(d,ie):Q==="children"?Ag(d,ie):qw(d,Q,ie,j)}switch(a){case"input":lb(d,_);break;case"textarea":$D(d,_);break;case"select":var G=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!_.multiple;var ue=_.value;ue!=null?Fd(d,!!_.multiple,ue,!1):G!==!!_.multiple&&(_.defaultValue!=null?Fd(d,!!_.multiple,_.defaultValue,!0):Fd(d,!!_.multiple,_.multiple?[]:"",!1))}d[qg]=_}catch(we){bo(e,e.return,we)}}break;case 6:if(qa(i,e),xl(e),u&4){if(e.stateNode===null)throw Error(Wi(162));d=e.stateNode,_=e.memoizedProps;try{d.nodeValue=_}catch(we){bo(e,e.return,we)}}break;case 3:if(qa(i,e),xl(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Bg(i.containerInfo)}catch(we){bo(e,e.return,we)}break;case 4:qa(i,e),xl(e);break;case 13:qa(i,e),xl(e),d=e.child,d.flags&8192&&(_=d.memoizedState!==null,d.stateNode.isHidden=_,!_||d.alternate!==null&&d.alternate.memoizedState!==null||(BM=Ao())),u&4&&pC(e);break;case 22:if(Q=o!==null&&o.memoizedState!==null,e.mode&1?(vs=(j=vs)||Q,qa(i,e),vs=j):qa(i,e),xl(e),u&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!Q&&e.mode&1)for(Cn=e,Q=e.child;Q!==null;){for(ie=Cn=Q;Cn!==null;){switch(G=Cn,ue=G.child,G.tag){case 0:case 11:case 14:case 15:am(4,G,G.return);break;case 1:lf(G,G.return);var pe=G.stateNode;if(typeof pe.componentWillUnmount=="function"){u=G,o=G.return;try{i=u,pe.props=i.memoizedProps,pe.state=i.memoizedState,pe.componentWillUnmount()}catch(we){bo(u,o,we)}}break;case 5:lf(G,G.return);break;case 22:if(G.memoizedState!==null){_C(ie);continue}}ue!==null?(ue.return=G,Cn=ue):_C(ie)}Q=Q.sibling}e:for(Q=null,ie=e;;){if(ie.tag===5){if(Q===null){Q=ie;try{d=ie.stateNode,j?(_=d.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(a=ie.stateNode,E=ie.memoizedProps.style,b=E!=null&&E.hasOwnProperty("display")?E.display:null,a.style.display=WD("display",b))}catch(we){bo(e,e.return,we)}}}else if(ie.tag===6){if(Q===null)try{ie.stateNode.nodeValue=j?"":ie.memoizedProps}catch(we){bo(e,e.return,we)}}else if((ie.tag!==22&&ie.tag!==23||ie.memoizedState===null||ie===e)&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===e)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===e)break e;Q===ie&&(Q=null),ie=ie.return}Q===ie&&(Q=null),ie.sibling.return=ie.return,ie=ie.sibling}}break;case 19:qa(i,e),xl(e),u&4&&pC(e);break;case 21:break;default:qa(i,e),xl(e)}}function xl(e){var i=e.flags;if(i&2){try{e:{for(var o=e.return;o!==null;){if(hC(o)){var u=o;break e}o=o.return}throw Error(Wi(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(Ag(d,""),u.flags&=-33);var _=dC(e);jM(e,_,d);break;case 3:case 4:var b=u.stateNode.containerInfo,a=dC(e);kM(e,a,b);break;default:throw Error(Wi(161))}}catch(E){bo(e,e.return,E)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function IR(e,i,o){Cn=e,mC(e)}function mC(e,i,o){for(var u=(e.mode&1)!==0;Cn!==null;){var d=Cn,_=d.child;if(d.tag===22&&u){var b=d.memoizedState!==null||Hy;if(!b){var a=d.alternate,E=a!==null&&a.memoizedState!==null||vs;a=Hy;var j=vs;if(Hy=b,(vs=E)&&!j)for(Cn=d;Cn!==null;)b=Cn,E=b.child,b.tag===22&&b.memoizedState!==null?vC(d):E!==null?(E.return=b,Cn=E):vC(d);for(;_!==null;)Cn=_,mC(_),_=_.sibling;Cn=d,Hy=a,vs=j}yC(e)}else d.subtreeFlags&8772&&_!==null?(_.return=d,Cn=_):yC(e)}}function yC(e){for(;Cn!==null;){var i=Cn;if(i.flags&8772){var o=i.alternate;try{if(i.flags&8772)switch(i.tag){case 0:case 11:case 15:vs||$y(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!vs)if(o===null)u.componentDidMount();else{var d=i.elementType===i.type?o.memoizedProps:Za(i.type,o.memoizedProps);u.componentDidUpdate(d,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var _=i.updateQueue;_!==null&&pA(i,_,u);break;case 3:var b=i.updateQueue;if(b!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}pA(i,b,o)}break;case 5:var a=i.stateNode;if(o===null&&i.flags&4){o=a;var E=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&o.focus();break;case"img":E.src&&(o.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var j=i.alternate;if(j!==null){var Q=j.memoizedState;if(Q!==null){var ie=Q.dehydrated;ie!==null&&Bg(ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Wi(163))}vs||i.flags&512&&OM(i)}catch(G){bo(i,i.return,G)}}if(i===e){Cn=null;break}if(o=i.sibling,o!==null){o.return=i.return,Cn=o;break}Cn=i.return}}function _C(e){for(;Cn!==null;){var i=Cn;if(i===e){Cn=null;break}var o=i.sibling;if(o!==null){o.return=i.return,Cn=o;break}Cn=i.return}}function vC(e){for(;Cn!==null;){var i=Cn;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{$y(4,i)}catch(E){bo(i,o,E)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var d=i.return;try{u.componentDidMount()}catch(E){bo(i,d,E)}}var _=i.return;try{OM(i)}catch(E){bo(i,_,E)}break;case 5:var b=i.return;try{OM(i)}catch(E){bo(i,b,E)}}}catch(E){bo(i,i.return,E)}if(i===e){Cn=null;break}var a=i.sibling;if(a!==null){a.return=i.return,Cn=a;break}Cn=i.return}}var TR=Math.ceil,Yy=oc.ReactCurrentDispatcher,PM=oc.ReactCurrentOwner,Ca=oc.ReactCurrentBatchConfig,jr=0,qo=null,Oo=null,ls=0,aa=0,cf=su(0),Ho=0,lm=null,Mh=0,Gy=0,RM=0,cm=null,Gs=null,BM=0,uf=1/0,fc=null,Zy=!1,FM=null,du=null,Wy=!1,fu=null,qy=0,um=0,UM=null,Ky=-1,Xy=0;function Ns(){return jr&6?Ao():Ky!==-1?Ky:Ky=Ao()}function pu(e){return e.mode&1?jr&2&&ls!==0?ls&-ls:lR.transition!==null?(Xy===0&&(Xy=hS()),Xy):(e=Hr,e!==0||(e=window.event,e=e===void 0?16:xS(e.type)),e):1}function Ka(e,i,o,u){if(50<um)throw um=0,UM=null,Error(Wi(185));Og(e,o,u),(!(jr&2)||e!==qo)&&(e===qo&&(!(jr&2)&&(Gy|=o),Ho===4&&gu(e,ls)),Zs(e,u),o===1&&jr===0&&!(i.mode&1)&&(uf=Ao()+500,Dy&&lu()))}function Zs(e,i){var o=e.callbackNode;lP(e,i);var u=ay(e,e===qo?ls:0);if(u===0)o!==null&&lS(o),e.callbackNode=null,e.callbackPriority=0;else if(i=u&-u,e.callbackPriority!==i){if(o!=null&&lS(o),i===1)e.tag===0?aR(wC.bind(null,e)):oA(wC.bind(null,e)),nR(function(){!(jr&6)&&lu()}),o=null;else{switch(dS(u)){case 1:o=xb;break;case 4:o=cS;break;case 16:o=ny;break;case 536870912:o=uS;break;default:o=ny}o=CC(o,xC.bind(null,e))}e.callbackPriority=i,e.callbackNode=o}}function xC(e,i){if(Ky=-1,Xy=0,jr&6)throw Error(Wi(327));var o=e.callbackNode;if(hf()&&e.callbackNode!==o)return null;var u=ay(e,e===qo?ls:0);if(u===0)return null;if(u&30||u&e.expiredLanes||i)i=Jy(e,u);else{i=u;var d=jr;jr|=2;var _=MC();(qo!==e||ls!==i)&&(fc=null,uf=Ao()+500,Th(e,i));do try{AR();break}catch(a){bC(e,a)}while(1);oM(),Yy.current=_,jr=d,Oo!==null?i=0:(qo=null,ls=0,i=Ho)}if(i!==0){if(i===2&&(d=wb(e),d!==0&&(u=d,i=VM(e,d))),i===1)throw o=lm,Th(e,0),gu(e,u),Zs(e,Ao()),o;if(i===6)gu(e,u);else{if(d=e.current.alternate,!(u&30)&&!DR(d)&&(i=Jy(e,u),i===2&&(_=wb(e),_!==0&&(u=_,i=VM(e,_))),i===1))throw o=lm,Th(e,0),gu(e,u),Zs(e,Ao()),o;switch(e.finishedWork=d,e.finishedLanes=u,i){case 0:case 1:throw Error(Wi(345));case 2:Dh(e,Gs,fc);break;case 3:if(gu(e,u),(u&130023424)===u&&(i=BM+500-Ao(),10<i)){if(ay(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){Ns(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=Zb(Dh.bind(null,e,Gs,fc),i);break}Dh(e,Gs,fc);break;case 4:if(gu(e,u),(u&4194240)===u)break;for(i=e.eventTimes,d=-1;0<u;){var b=31-$a(u);_=1<<b,b=i[b],b>d&&(d=b),u&=~_}if(u=d,u=Ao()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*TR(u/1960))-u,10<u){e.timeoutHandle=Zb(Dh.bind(null,e,Gs,fc),u);break}Dh(e,Gs,fc);break;case 5:Dh(e,Gs,fc);break;default:throw Error(Wi(329))}}}return Zs(e,Ao()),e.callbackNode===o?xC.bind(null,e):null}function VM(e,i){var o=cm;return e.current.memoizedState.isDehydrated&&(Th(e,i).flags|=256),e=Jy(e,i),e!==2&&(i=Gs,Gs=o,i!==null&&QM(i)),e}function QM(e){Gs===null?Gs=e:Gs.push.apply(Gs,e)}function DR(e){for(var i=e;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var d=o[u],_=d.getSnapshot;d=d.value;try{if(!Ya(_(),d))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function gu(e,i){for(i&=~RM,i&=~Gy,e.suspendedLanes|=i,e.pingedLanes&=~i,e=e.expirationTimes;0<i;){var o=31-$a(i),u=1<<o;e[o]=-1,i&=~u}}function wC(e){if(jr&6)throw Error(Wi(327));hf();var i=ay(e,0);if(!(i&1))return Zs(e,Ao()),null;var o=Jy(e,i);if(e.tag!==0&&o===2){var u=wb(e);u!==0&&(i=u,o=VM(e,u))}if(o===1)throw o=lm,Th(e,0),gu(e,i),Zs(e,Ao()),o;if(o===6)throw Error(Wi(345));return e.finishedWork=e.current.alternate,e.finishedLanes=i,Dh(e,Gs,fc),Zs(e,Ao()),null}function HM(e,i){var o=jr;jr|=1;try{return e(i)}finally{jr=o,jr===0&&(uf=Ao()+500,Dy&&lu())}}function Ih(e){fu!==null&&fu.tag===0&&!(jr&6)&&hf();var i=jr;jr|=1;var o=Ca.transition,u=Hr;try{if(Ca.transition=null,Hr=1,e)return e()}finally{Hr=u,Ca.transition=o,jr=i,!(jr&6)&&lu()}}function $M(){aa=cf.current,oo(cf)}function Th(e,i){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,iR(o)),Oo!==null)for(o=Oo.return;o!==null;){var u=o;switch(eM(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Iy();break;case 3:sf(),oo(Hs),oo(ms),gM();break;case 5:fM(u);break;case 4:sf();break;case 13:oo(yo);break;case 19:oo(yo);break;case 10:sM(u.type._context);break;case 22:case 23:$M()}o=o.return}if(qo=e,Oo=e=mu(e.current,null),ls=aa=i,Ho=0,lm=null,RM=Gy=Mh=0,Gs=cm=null,xh!==null){for(i=0;i<xh.length;i++)if(o=xh[i],u=o.interleaved,u!==null){o.interleaved=null;var d=u.next,_=o.pending;if(_!==null){var b=_.next;_.next=d,u.next=b}o.pending=u}xh=null}return e}function bC(e,i){do{var o=Oo;try{if(oM(),Py.current=Uy,Ry){for(var u=_o.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}Ry=!1}if(bh=0,Wo=Qo=_o=null,im=!1,nm=0,PM.current=null,o===null||o.return===null){Ho=1,lm=i,Oo=null;break}e:{var _=e,b=o.return,a=o,E=i;if(i=ls,a.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var j=E,Q=a,ie=Q.tag;if(!(Q.mode&1)&&(ie===0||ie===11||ie===15)){var G=Q.alternate;G?(Q.updateQueue=G.updateQueue,Q.memoizedState=G.memoizedState,Q.lanes=G.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var ue=GA(b);if(ue!==null){ue.flags&=-257,ZA(ue,b,a,_,i),ue.mode&1&&YA(_,j,i),i=ue,E=j;var pe=i.updateQueue;if(pe===null){var we=new Set;we.add(E),i.updateQueue=we}else pe.add(E);break e}else{if(!(i&1)){YA(_,j,i),YM();break e}E=Error(Wi(426))}}else if(co&&a.mode&1){var qe=GA(b);if(qe!==null){!(qe.flags&65536)&&(qe.flags|=256),ZA(qe,b,a,_,i),nM(af(E,a));break e}}_=E=af(E,a),Ho!==4&&(Ho=2),cm===null?cm=[_]:cm.push(_),_=b;do{switch(_.tag){case 3:_.flags|=65536,i&=-i,_.lanes|=i;var me=HA(_,E,i);fA(_,me);break e;case 1:a=E;var te=_.type,J=_.stateNode;if(!(_.flags&128)&&(typeof te.getDerivedStateFromError=="function"||J!==null&&typeof J.componentDidCatch=="function"&&(du===null||!du.has(J)))){_.flags|=65536,i&=-i,_.lanes|=i;var re=$A(_,a,i);fA(_,re);break e}}_=_.return}while(_!==null)}TC(o)}catch(Me){i=Me,Oo===o&&o!==null&&(Oo=o=o.return);continue}break}while(1)}function MC(){var e=Yy.current;return Yy.current=Uy,e===null?Uy:e}function YM(){(Ho===0||Ho===3||Ho===2)&&(Ho=4),qo===null||!(Mh&268435455)&&!(Gy&268435455)||gu(qo,ls)}function Jy(e,i){var o=jr;jr|=2;var u=MC();(qo!==e||ls!==i)&&(fc=null,Th(e,i));do try{SR();break}catch(d){bC(e,d)}while(1);if(oM(),jr=o,Yy.current=u,Oo!==null)throw Error(Wi(261));return qo=null,ls=0,Ho}function SR(){for(;Oo!==null;)IC(Oo)}function AR(){for(;Oo!==null&&!Jj();)IC(Oo)}function IC(e){var i=AC(e.alternate,e,aa);e.memoizedProps=e.pendingProps,i===null?TC(e):Oo=i,PM.current=null}function TC(e){var i=e;do{var o=i.alternate;if(e=i.return,i.flags&32768){if(o=wR(o,i),o!==null){o.flags&=32767,Oo=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ho=6,Oo=null;return}}else if(o=xR(o,i,aa),o!==null){Oo=o;return}if(i=i.sibling,i!==null){Oo=i;return}Oo=i=e}while(i!==null);Ho===0&&(Ho=5)}function Dh(e,i,o){var u=Hr,d=Ca.transition;try{Ca.transition=null,Hr=1,CR(e,i,o,u)}finally{Ca.transition=d,Hr=u}return null}function CR(e,i,o,u){do hf();while(fu!==null);if(jr&6)throw Error(Wi(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(Wi(177));e.callbackNode=null,e.callbackPriority=0;var _=o.lanes|o.childLanes;if(cP(e,_),e===qo&&(Oo=qo=null,ls=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||Wy||(Wy=!0,CC(ny,function(){return hf(),null})),_=(o.flags&15990)!==0,o.subtreeFlags&15990||_){_=Ca.transition,Ca.transition=null;var b=Hr;Hr=1;var a=jr;jr|=4,PM.current=null,MR(e,o),gC(o,e),WP(Yb),uy=!!$b,Yb=$b=null,e.current=o,IR(o),eP(),jr=a,Hr=b,Ca.transition=_}else e.current=o;if(Wy&&(Wy=!1,fu=e,qy=d),_=e.pendingLanes,_===0&&(du=null),nP(o.stateNode),Zs(e,Ao()),i!==null)for(u=e.onRecoverableError,o=0;o<i.length;o++)d=i[o],u(d.value,{componentStack:d.stack,digest:d.digest});if(Zy)throw Zy=!1,e=FM,FM=null,e;return qy&1&&e.tag!==0&&hf(),_=e.pendingLanes,_&1?e===UM?um++:(um=0,UM=e):um=0,lu(),null}function hf(){if(fu!==null){var e=dS(qy),i=Ca.transition,o=Hr;try{if(Ca.transition=null,Hr=16>e?16:e,fu===null)var u=!1;else{if(e=fu,fu=null,qy=0,jr&6)throw Error(Wi(331));var d=jr;for(jr|=4,Cn=e.current;Cn!==null;){var _=Cn,b=_.child;if(Cn.flags&16){var a=_.deletions;if(a!==null){for(var E=0;E<a.length;E++){var j=a[E];for(Cn=j;Cn!==null;){var Q=Cn;switch(Q.tag){case 0:case 11:case 15:am(8,Q,_)}var ie=Q.child;if(ie!==null)ie.return=Q,Cn=ie;else for(;Cn!==null;){Q=Cn;var G=Q.sibling,ue=Q.return;if(uC(Q),Q===j){Cn=null;break}if(G!==null){G.return=ue,Cn=G;break}Cn=ue}}}var pe=_.alternate;if(pe!==null){var we=pe.child;if(we!==null){pe.child=null;do{var qe=we.sibling;we.sibling=null,we=qe}while(we!==null)}}Cn=_}}if(_.subtreeFlags&2064&&b!==null)b.return=_,Cn=b;else e:for(;Cn!==null;){if(_=Cn,_.flags&2048)switch(_.tag){case 0:case 11:case 15:am(9,_,_.return)}var me=_.sibling;if(me!==null){me.return=_.return,Cn=me;break e}Cn=_.return}}var te=e.current;for(Cn=te;Cn!==null;){b=Cn;var J=b.child;if(b.subtreeFlags&2064&&J!==null)J.return=b,Cn=J;else e:for(b=te;Cn!==null;){if(a=Cn,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$y(9,a)}}catch(Me){bo(a,a.return,Me)}if(a===b){Cn=null;break e}var re=a.sibling;if(re!==null){re.return=a.return,Cn=re;break e}Cn=a.return}}if(jr=d,lu(),ml&&typeof ml.onPostCommitFiberRoot=="function")try{ml.onPostCommitFiberRoot(ry,e)}catch{}u=!0}return u}finally{Hr=o,Ca.transition=i}}return!1}function DC(e,i,o){i=af(o,i),i=HA(e,i,1),e=uu(e,i,1),i=Ns(),e!==null&&(Og(e,1,i),Zs(e,i))}function bo(e,i,o){if(e.tag===3)DC(e,e,o);else for(;i!==null;){if(i.tag===3){DC(i,e,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(du===null||!du.has(u))){e=af(o,e),e=$A(i,e,1),i=uu(i,e,1),e=Ns(),i!==null&&(Og(i,1,e),Zs(i,e));break}}i=i.return}}function ER(e,i,o){var u=e.pingCache;u!==null&&u.delete(i),i=Ns(),e.pingedLanes|=e.suspendedLanes&o,qo===e&&(ls&o)===o&&(Ho===4||Ho===3&&(ls&130023424)===ls&&500>Ao()-BM?Th(e,0):RM|=o),Zs(e,i)}function SC(e,i){i===0&&(e.mode&1?(i=sy,sy<<=1,!(sy&130023424)&&(sy=4194304)):i=1);var o=Ns();e=uc(e,i),e!==null&&(Og(e,i,o),Zs(e,o))}function NR(e){var i=e.memoizedState,o=0;i!==null&&(o=i.retryLane),SC(e,o)}function LR(e,i){var o=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(Wi(314))}u!==null&&u.delete(i),SC(e,o)}var AC;AC=function(e,i,o){if(e!==null)if(e.memoizedProps!==i.pendingProps||Hs.current)Ys=!0;else{if(!(e.lanes&o)&&!(i.flags&128))return Ys=!1,vR(e,i,o);Ys=!!(e.flags&131072)}else Ys=!1,co&&i.flags&1048576&&sA(i,Ay,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;Qy(e,i),e=i.pendingProps;var d=Xd(i,ms.current);rf(i,o),d=_M(null,i,u,e,d,o);var _=vM();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,$s(u)?(_=!0,Ty(i)):_=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,cM(i),d.updater=Oy,i.stateNode=d,d._reactInternals=i,hM(i,u,e,o),i=SM(null,i,u,!0,_,o)):(i.tag=0,co&&_&&Jb(i),Es(null,i,d,o),i=i.child),i;case 16:u=i.elementType;e:{switch(Qy(e,i),e=i.pendingProps,d=u._init,u=d(u._payload),i.type=u,d=i.tag=OR(u),e=Za(u,e),d){case 0:i=DM(null,i,u,e,o);break e;case 1:i=eC(null,i,u,e,o);break e;case 11:i=WA(null,i,u,e,o);break e;case 14:i=qA(null,i,u,Za(u.type,e),o);break e}throw Error(Wi(306,u,""))}return i;case 0:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),DM(e,i,u,d,o);case 1:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),eC(e,i,u,d,o);case 3:e:{if(tC(i),e===null)throw Error(Wi(387));u=i.pendingProps,_=i.memoizedState,d=_.element,dA(e,i),zy(i,u,null,o);var b=i.memoizedState;if(u=b.element,_.isDehydrated)if(_={element:u,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=_,i.memoizedState=_,i.flags&256){d=af(Error(Wi(423)),i),i=iC(e,i,u,o,d);break e}else if(u!==d){d=af(Error(Wi(424)),i),i=iC(e,i,u,o,d);break e}else for(sa=ou(i.stateNode.containerInfo.firstChild),oa=i,co=!0,Ga=null,o=wA(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(tf(),u===d){i=dc(e,i,o);break e}Es(e,i,u,o)}i=i.child}return i;case 5:return bA(i),e===null&&iM(i),u=i.type,d=i.pendingProps,_=e!==null?e.memoizedProps:null,b=d.children,Gb(u,d)?b=null:_!==null&&Gb(u,_)&&(i.flags|=32),JA(e,i),Es(e,i,b,o),i.child;case 6:return e===null&&iM(i),null;case 13:return nC(e,i,o);case 4:return dM(i,i.stateNode.containerInfo),u=i.pendingProps,e===null?i.child=of(i,null,u,o):Es(e,i,u,o),i.child;case 11:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),WA(e,i,u,d,o);case 7:return Es(e,i,i.pendingProps,o),i.child;case 8:return Es(e,i,i.pendingProps.children,o),i.child;case 12:return Es(e,i,i.pendingProps.children,o),i.child;case 10:e:{if(u=i.type._context,d=i.pendingProps,_=i.memoizedProps,b=d.value,Xr(Ey,u._currentValue),u._currentValue=b,_!==null)if(Ya(_.value,b)){if(_.children===d.children&&!Hs.current){i=dc(e,i,o);break e}}else for(_=i.child,_!==null&&(_.return=i);_!==null;){var a=_.dependencies;if(a!==null){b=_.child;for(var E=a.firstContext;E!==null;){if(E.context===u){if(_.tag===1){E=hc(-1,o&-o),E.tag=2;var j=_.updateQueue;if(j!==null){j=j.shared;var Q=j.pending;Q===null?E.next=E:(E.next=Q.next,Q.next=E),j.pending=E}}_.lanes|=o,E=_.alternate,E!==null&&(E.lanes|=o),aM(_.return,o,i),a.lanes|=o;break}E=E.next}}else if(_.tag===10)b=_.type===i.type?null:_.child;else if(_.tag===18){if(b=_.return,b===null)throw Error(Wi(341));b.lanes|=o,a=b.alternate,a!==null&&(a.lanes|=o),aM(b,o,i),b=_.sibling}else b=_.child;if(b!==null)b.return=_;else for(b=_;b!==null;){if(b===i){b=null;break}if(_=b.sibling,_!==null){_.return=b.return,b=_;break}b=b.return}_=b}Es(e,i,d.children,o),i=i.child}return i;case 9:return d=i.type,u=i.pendingProps.children,rf(i,o),d=Sa(d),u=u(d),i.flags|=1,Es(e,i,u,o),i.child;case 14:return u=i.type,d=Za(u,i.pendingProps),d=Za(u.type,d),qA(e,i,u,d,o);case 15:return KA(e,i,i.type,i.pendingProps,o);case 17:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),Qy(e,i),i.tag=1,$s(u)?(e=!0,Ty(i)):e=!1,rf(i,o),yA(i,u,d),hM(i,u,d,o),SM(null,i,u,!0,e,o);case 19:return oC(e,i,o);case 22:return XA(e,i,o)}throw Error(Wi(156,i.tag))};function CC(e,i){return aS(e,i)}function zR(e,i,o,u){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ea(e,i,o,u){return new zR(e,i,o,u)}function GM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function OR(e){if(typeof e=="function")return GM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jw)return 11;if(e===ib)return 14}return 2}function mu(e,i){var o=e.alternate;return o===null?(o=Ea(e.tag,i,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=i,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,i=e.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function e_(e,i,o,u,d,_){var b=2;if(u=e,typeof e=="function")GM(e)&&(b=1);else if(typeof e=="string")b=5;else e:switch(e){case Bd:return Sh(o.children,d,_,i);case Kw:b=8,d|=8;break;case Xw:return e=Ea(12,o,i,d|2),e.elementType=Xw,e.lanes=_,e;case eb:return e=Ea(13,o,i,d),e.elementType=eb,e.lanes=_,e;case tb:return e=Ea(19,o,i,d),e.elementType=tb,e.lanes=_,e;case PD:return t_(o,d,_,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case kD:b=10;break e;case jD:b=9;break e;case Jw:b=11;break e;case ib:b=14;break e;case Kc:b=16,u=null;break e}throw Error(Wi(130,e==null?e:typeof e,""))}return i=Ea(b,o,i,d),i.elementType=e,i.type=u,i.lanes=_,i}function Sh(e,i,o,u){return e=Ea(7,e,u,i),e.lanes=o,e}function t_(e,i,o,u){return e=Ea(22,e,u,i),e.elementType=PD,e.lanes=o,e.stateNode={isHidden:!1},e}function ZM(e,i,o){return e=Ea(6,e,null,i),e.lanes=o,e}function WM(e,i,o){return i=Ea(4,e.children!==null?e.children:[],e.key,i),i.lanes=o,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function kR(e,i,o,u,d){this.tag=i,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bb(0),this.expirationTimes=bb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bb(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function qM(e,i,o,u,d,_,b,a,E){return e=new kR(e,i,o,a,E),i===1?(i=1,_===!0&&(i|=8)):i=0,_=Ea(3,null,null,i),e.current=_,_.stateNode=e,_.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},cM(_),e}function jR(e,i,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rd,key:u==null?null:""+u,children:e,containerInfo:i,implementation:o}}function EC(e){if(!e)return au;e=e._reactInternals;e:{if(gh(e)!==e||e.tag!==1)throw Error(Wi(170));var i=e;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if($s(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(Wi(171))}if(e.tag===1){var o=e.type;if($s(o))return nA(e,o,i)}return i}function NC(e,i,o,u,d,_,b,a,E){return e=qM(o,u,!0,e,d,_,b,a,E),e.context=EC(null),o=e.current,u=Ns(),d=pu(o),_=hc(u,d),_.callback=i??null,uu(o,_,d),e.current.lanes=d,Og(e,d,u),Zs(e,u),e}function i_(e,i,o,u){var d=i.current,_=Ns(),b=pu(d);return o=EC(o),i.context===null?i.context=o:i.pendingContext=o,i=hc(_,b),i.payload={element:e},u=u===void 0?null:u,u!==null&&(i.callback=u),e=uu(d,i,b),e!==null&&(Ka(e,d,b,_),Ly(e,d,b)),b}function n_(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function LC(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<i?o:i}}function KM(e,i){LC(e,i),(e=e.alternate)&&LC(e,i)}function PR(){return null}var zC=typeof reportError=="function"?reportError:function(e){console.error(e)};function XM(e){this._internalRoot=e}r_.prototype.render=XM.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(Wi(409));i_(e,i,null,null)},r_.prototype.unmount=XM.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;Ih(function(){i_(null,e,null,null)}),i[sc]=null}};function r_(e){this._internalRoot=e}r_.prototype.unstable_scheduleHydration=function(e){if(e){var i=gS();e={blockedOn:null,target:e,priority:i};for(var o=0;o<iu.length&&i!==0&&i<iu[o].priority;o++);iu.splice(o,0,e),o===0&&_S(e)}};function JM(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function OC(){}function RR(e,i,o,u,d){if(d){if(typeof u=="function"){var _=u;u=function(){var j=n_(b);_.call(j)}}var b=NC(i,u,e,0,null,!1,!1,"",OC);return e._reactRootContainer=b,e[sc]=b.current,Zg(e.nodeType===8?e.parentNode:e),Ih(),b}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var a=u;u=function(){var j=n_(E);a.call(j)}}var E=qM(e,0,!1,null,null,!1,!1,"",OC);return e._reactRootContainer=E,e[sc]=E.current,Zg(e.nodeType===8?e.parentNode:e),Ih(function(){i_(i,E,o,u)}),E}function s_(e,i,o,u,d){var _=o._reactRootContainer;if(_){var b=_;if(typeof d=="function"){var a=d;d=function(){var E=n_(b);a.call(E)}}i_(i,b,e,d)}else b=RR(o,i,e,d,u);return n_(b)}fS=function(e){switch(e.tag){case 3:var i=e.stateNode;if(i.current.memoizedState.isDehydrated){var o=zg(i.pendingLanes);o!==0&&(Mb(i,o|1),Zs(i,Ao()),!(jr&6)&&(uf=Ao()+500,lu()))}break;case 13:Ih(function(){var u=uc(e,1);if(u!==null){var d=Ns();Ka(u,e,1,d)}}),KM(e,1)}},Ib=function(e){if(e.tag===13){var i=uc(e,134217728);if(i!==null){var o=Ns();Ka(i,e,134217728,o)}KM(e,134217728)}},pS=function(e){if(e.tag===13){var i=pu(e),o=uc(e,i);if(o!==null){var u=Ns();Ka(o,e,i,u)}KM(e,i)}},gS=function(){return Hr},mS=function(e,i){var o=Hr;try{return Hr=e,i()}finally{Hr=o}},mb=function(e,i,o){switch(i){case"input":if(lb(e,o),i=o.name,o.type==="radio"&&i!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==e&&u.form===e.form){var d=My(u);if(!d)throw Error(Wi(90));FD(u),lb(u,d)}}}break;case"textarea":$D(e,o);break;case"select":i=o.value,i!=null&&Fd(e,!!o.multiple,i,!1)}},eS=HM,tS=Ih;var BR={usingClientEntryPoint:!1,Events:[Kg,qd,My,XD,JD,HM]},hm={findFiberByHostInstance:mh,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},FR={bundleType:hm.bundleType,version:hm.version,rendererPackageName:hm.rendererPackageName,rendererConfig:hm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:oc.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oS(e),e===null?null:e.stateNode},findFiberByHostInstance:hm.findFiberByHostInstance||PR,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var a_=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!a_.isDisabled&&a_.supportsFiber)try{ry=a_.inject(FR),ml=a_}catch{}}ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BR,ia.createPortal=function(e,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!JM(i))throw Error(Wi(200));return jR(e,i,null,o)},ia.createRoot=function(e,i){if(!JM(e))throw Error(Wi(299));var o=!1,u="",d=zC;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(d=i.onRecoverableError)),i=qM(e,1,!1,null,null,o,!1,u,d),e[sc]=i.current,Zg(e.nodeType===8?e.parentNode:e),new XM(i)},ia.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(Wi(188)):(e=Object.keys(e).join(","),Error(Wi(268,e)));return e=oS(i),e=e===null?null:e.stateNode,e},ia.flushSync=function(e){return Ih(e)},ia.hydrate=function(e,i,o){if(!o_(i))throw Error(Wi(200));return s_(null,e,i,!0,o)},ia.hydrateRoot=function(e,i,o){if(!JM(e))throw Error(Wi(405));var u=o!=null&&o.hydratedSources||null,d=!1,_="",b=zC;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(_=o.identifierPrefix),o.onRecoverableError!==void 0&&(b=o.onRecoverableError)),i=NC(i,null,e,1,o??null,d,!1,_,b),e[sc]=i.current,Zg(e),u)for(e=0;e<u.length;e++)o=u[e],d=o._getVersion,d=d(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,d]:i.mutableSourceEagerHydrationData.push(o,d);return new r_(i)},ia.render=function(e,i,o){if(!o_(i))throw Error(Wi(200));return s_(null,e,i,!1,o)},ia.unmountComponentAtNode=function(e){if(!o_(e))throw Error(Wi(40));return e._reactRootContainer?(Ih(function(){s_(null,null,e,!1,function(){e._reactRootContainer=null,e[sc]=null})}),!0):!1},ia.unstable_batchedUpdates=HM,ia.unstable_renderSubtreeIntoContainer=function(e,i,o,u){if(!o_(o))throw Error(Wi(200));if(e==null||e._reactInternals===void 0)throw Error(Wi(38));return s_(e,i,o,!1,u)},ia.version="18.2.0-next-9e3b772b8-20220608";function kC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kC)}catch(e){console.error(e)}}kC(),AD.exports=ia;var yu=AD.exports;const dm=nc(yu);function UR(e){const i=new Error(e);if(i.stack===void 0)try{throw i}catch{}return i}var VR=UR,hr=VR;function QR(e){return!!e&&typeof e.then=="function"}var so=QR;function HR(e,i){if(e!=null)return e;throw hr(i??"Got unexpected null or undefined")}var uo=HR;function ar(e,i,o){return i in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}class l_{getValue(){throw hr("BaseLoadable")}toPromise(){throw hr("BaseLoadable")}valueMaybe(){throw hr("BaseLoadable")}valueOrThrow(){throw hr(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw hr("BaseLoadable")}promiseOrThrow(){throw hr(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw hr("BaseLoadable")}errorOrThrow(){throw hr(`Loadable expected error, but in "${this.state}" state`)}is(i){return i.state===this.state&&i.contents===this.contents}map(i){throw hr("BaseLoadable")}}class $R extends l_{constructor(i){super(),ar(this,"state","hasValue"),ar(this,"contents",void 0),this.contents=i}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(i){try{const o=i(this.contents);return so(o)?Ah(o):df(o)?o:fm(o)}catch(o){return so(o)?Ah(o.next(()=>this.map(i))):c_(o)}}}class YR extends l_{constructor(i){super(),ar(this,"state","hasError"),ar(this,"contents",void 0),this.contents=i}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(i){return this}}class jC extends l_{constructor(i){super(),ar(this,"state","loading"),ar(this,"contents",void 0),this.contents=i}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(i){return Ah(this.contents.then(o=>{const u=i(o);if(df(u)){const d=u;switch(d.state){case"hasValue":return d.contents;case"hasError":throw d.contents;case"loading":return d.contents}}return u}).catch(o=>{if(so(o))return o.then(()=>this.map(i).contents);throw o}))}}function fm(e){return Object.freeze(new $R(e))}function c_(e){return Object.freeze(new YR(e))}function Ah(e){return Object.freeze(new jC(e))}function PC(){return Object.freeze(new jC(new Promise(()=>{})))}function GR(e){return e.every(i=>i.state==="hasValue")?fm(e.map(i=>i.contents)):e.some(i=>i.state==="hasError")?c_(uo(e.find(i=>i.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Ah(Promise.all(e.map(i=>i.contents)))}function RC(e){const o=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(d=>e[d])).map(d=>df(d)?d:so(d)?Ah(d):fm(d)),u=GR(o);return Array.isArray(e)?u:u.map(d=>Object.getOwnPropertyNames(e).reduce((_,b,a)=>({..._,[b]:d[a]}),{}))}function df(e){return e instanceof l_}var Ch={loadableWithValue:fm,loadableWithError:c_,loadableWithPromise:Ah,loadableLoading:PC,loadableAll:RC,isLoadable:df,RecoilLoadable:{of:e=>so(e)?Ah(e):df(e)?e:fm(e),error:e=>c_(e),loading:()=>PC(),all:RC,isLoadable:df}},ZR=Ch.loadableWithValue,WR=Ch.loadableWithError,qR=Ch.loadableWithPromise,KR=Ch.loadableLoading,XR=Ch.loadableAll,JR=Ch.isLoadable,eB=Ch.RecoilLoadable,pm=Object.freeze({__proto__:null,loadableWithValue:ZR,loadableWithError:WR,loadableWithPromise:qR,loadableLoading:KR,loadableAll:XR,isLoadable:JR,RecoilLoadable:eB});const e3={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 tB(e,i){var o,u;const d=(o=process.env[e])===null||o===void 0||(u=o.toLowerCase())===null||u===void 0?void 0:u.trim();if(d==null||d==="")return;if(!["true","false"].includes(d))throw hr(`process.env.${e} value must be 'true', 'false', or empty: ${d}`);i(d==="true")}function iB(e,i){var o;const u=(o=process.env[e])===null||o===void 0?void 0:o.trim();u==null||u===""||i(u.split(/\s*,\s*|\s+/))}function nB(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(tB("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",i=>{e3.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=i}),iB("RECOIL_GKS_ENABLED",i=>{i.forEach(o=>{e3.RECOIL_GKS_ENABLED.add(o)})}))}nB();var ff=e3;function u_(e){return ff.RECOIL_GKS_ENABLED.has(e)}u_.setPass=e=>{ff.RECOIL_GKS_ENABLED.add(e)},u_.setFail=e=>{ff.RECOIL_GKS_ENABLED.delete(e)},u_.clear=()=>{ff.RECOIL_GKS_ENABLED.clear()};var qr=u_;function rB(e,i,{error:o}={}){return null}var oB=rB,t3=oB,i3,n3,r3;const sB=(i3=Cr.createMutableSource)!==null&&i3!==void 0?i3:Cr.unstable_createMutableSource,BC=(n3=Cr.useMutableSource)!==null&&n3!==void 0?n3:Cr.unstable_useMutableSource,FC=(r3=Cr.useSyncExternalStore)!==null&&r3!==void 0?r3:Cr.unstable_useSyncExternalStore;function aB(){var e;const{ReactCurrentDispatcher:i,ReactCurrentOwner:o}=Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=i==null?void 0:i.current)!==null&&e!==void 0?e:o.currentDispatcher).useSyncExternalStore!=null}function lB(){return qr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:qr("recoil_sync_external_store")&&FC!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:qr("recoil_mutable_source")&&BC!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?qr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:qr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function cB(){return!1}var gm={createMutableSource:sB,useMutableSource:BC,useSyncExternalStore:FC,currentRendererSupportsUseSyncExternalStore:aB,reactMode:lB,isFastRefreshEnabled:cB};class o3{constructor(i){ar(this,"key",void 0),this.key=i}toJSON(){return{key:this.key}}}class UC extends o3{}class VC extends o3{}function uB(e){return e instanceof UC||e instanceof VC}var h_={AbstractRecoilValue:o3,RecoilState:UC,RecoilValueReadOnly:VC,isRecoilValue:uB},hB=h_.AbstractRecoilValue,dB=h_.RecoilState,fB=h_.RecoilValueReadOnly,pB=h_.isRecoilValue,pf=Object.freeze({__proto__:null,AbstractRecoilValue:hB,RecoilState:dB,RecoilValueReadOnly:fB,isRecoilValue:pB});function gB(e,i){return function*(){let o=0;for(const u of e)yield i(u,o++)}()}var d_=gB;class QC{}const mB=new QC,Eh=new Map,s3=new Map;function yB(e){return d_(e,i=>uo(s3.get(i)))}function _B(e){if(Eh.has(e)){const i=`Duplicate atom key "${e}". This is a FATAL ERROR in
42
42
  production. But it is safe to ignore this warning if it occurred because of
43
- hot module replacement.`;console.warn(i)}}function vB(e){ff.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&_B(e.key),Eh.set(e.key,e);const i=e.set==null?new pf.RecoilValueReadOnly(e.key):new pf.RecoilState(e.key);return s3.set(e.key,i),i}class HC extends Error{}function xB(e){const i=Eh.get(e);if(i==null)throw new HC(`Missing definition for RecoilValue: "${e}""`);return i}function wB(e){return Eh.get(e)}const f_=new Map;function bB(e){var i;if(!qr("recoil_memory_managament_2020"))return;const o=Eh.get(e);if(o!=null&&(i=o.shouldDeleteConfigOnRelease)!==null&&i!==void 0&&i.call(o)){var u;Eh.delete(e),(u=$C(e))===null||u===void 0||u(),f_.delete(e)}}function MB(e,i){qr("recoil_memory_managament_2020")&&(i===void 0?f_.delete(e):f_.set(e,i))}function $C(e){return f_.get(e)}var Ws={nodes:Eh,recoilValues:s3,registerNode:vB,getNode:xB,getNodeMaybe:wB,deleteNodeConfigIfPossible:bB,setConfigDeletionHandler:MB,getConfigDeletionHandler:$C,recoilValuesForKeys:yB,NodeMissingError:HC,DefaultValue:QC,DEFAULT_VALUE:mB};function IB(e,i){i()}var TB={enqueueExecution:IB};function DB(e,i){return i={exports:{}},e(i,i.exports),i.exports}var SB=DB(function(e){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},o={},u=5,d=Math.pow(2,u),_=d-1,b=d/2,a=d/4,E={},j=function(pt){return function(){return pt}},Q=o.hash=function(vt){var pt=typeof vt>"u"?"undefined":i(vt);if(pt==="number")return vt;pt!=="string"&&(vt+="");for(var ri=0,Gt=0,Jt=vt.length;Gt<Jt;++Gt){var mi=vt.charCodeAt(Gt);ri=(ri<<5)-ri+mi|0}return ri},ie=function(pt){return pt-=pt>>1&1431655765,pt=(pt&858993459)+(pt>>2&858993459),pt=pt+(pt>>4)&252645135,pt+=pt>>8,pt+=pt>>16,pt&127},G=function(pt,ri){return ri>>>pt&_},ue=function(pt){return 1<<pt},pe=function(pt,ri){return ie(pt&ri-1)},we=function(pt,ri,Gt,Jt){var mi=Jt;if(!pt){var Si=Jt.length;mi=new Array(Si);for(var Qi=0;Qi<Si;++Qi)mi[Qi]=Jt[Qi]}return mi[ri]=Gt,mi},qe=function(pt,ri,Gt){var Jt=Gt.length-1,mi=0,Si=0,Qi=Gt;if(pt)mi=Si=ri;else for(Qi=new Array(Jt);mi<ri;)Qi[Si++]=Gt[mi++];for(++mi;mi<=Jt;)Qi[Si++]=Gt[mi++];return pt&&(Qi.length=Jt),Qi},me=function(pt,ri,Gt,Jt){var mi=Jt.length;if(pt){for(var Si=mi;Si>=ri;)Jt[Si--]=Jt[Si];return Jt[ri]=Gt,Jt}for(var Qi=0,cn=0,Ji=new Array(mi+1);Qi<ri;)Ji[cn++]=Jt[Qi++];for(Ji[ri]=Gt;Qi<mi;)Ji[++cn]=Jt[Qi++];return Ji},te=1,J=2,re=3,Me=4,xe={__hamt_isEmpty:!0},Ke=function(pt){return pt===xe||pt&&pt.__hamt_isEmpty},st=function(pt,ri,Gt,Jt){return{type:te,edit:pt,hash:ri,key:Gt,value:Jt,_modify:Ot}},Ge=function(pt,ri,Gt){return{type:J,edit:pt,hash:ri,children:Gt,_modify:Ht}},xt=function(pt,ri,Gt){return{type:re,edit:pt,mask:ri,children:Gt,_modify:W}},dt=function(pt,ri,Gt){return{type:Me,edit:pt,size:ri,children:Gt,_modify:ne}},kt=function(pt){return pt===xe||pt.type===te||pt.type===J},bt=function(pt,ri,Gt,Jt,mi){for(var Si=[],Qi=Jt,cn=0,Ji=0;Qi;++Ji)Qi&1&&(Si[Ji]=mi[cn++]),Qi>>>=1;return Si[ri]=Gt,dt(pt,cn+1,Si)},oi=function(pt,ri,Gt,Jt){for(var mi=new Array(ri-1),Si=0,Qi=0,cn=0,Ji=Jt.length;cn<Ji;++cn)if(cn!==Gt){var wn=Jt[cn];wn&&!Ke(wn)&&(mi[Si++]=wn,Qi|=1<<cn)}return xt(pt,Qi,mi)},At=function vt(pt,ri,Gt,Jt,mi,Si){if(Gt===mi)return Ge(pt,Gt,[Si,Jt]);var Qi=G(ri,Gt),cn=G(ri,mi);return xt(pt,ue(Qi)|ue(cn),Qi===cn?[vt(pt,ri+u,Gt,Jt,mi,Si)]:Qi<cn?[Jt,Si]:[Si,Jt])},Tt=function(pt,ri,Gt,Jt,mi,Si,Qi,cn){for(var Ji=mi.length,wn=0;wn<Ji;++wn){var Dt=mi[wn];if(Gt(Qi,Dt.key)){var Vn=Dt.value,gr=Si(Vn);return gr===Vn?mi:gr===E?(--cn.value,qe(pt,wn,mi)):we(pt,wn,st(ri,Jt,Qi,gr),mi)}}var xr=Si();return xr===E?mi:(++cn.value,we(pt,Ji,st(ri,Jt,Qi,xr),mi))},si=function(pt,ri){return pt===ri.edit},Ot=function(pt,ri,Gt,Jt,mi,Si,Qi){if(ri(Si,this.key)){var cn=Jt(this.value);return cn===this.value?this:cn===E?(--Qi.value,xe):si(pt,this)?(this.value=cn,this):st(pt,mi,Si,cn)}var Ji=Jt();return Ji===E?this:(++Qi.value,At(pt,Gt,this.hash,this,mi,st(pt,mi,Si,Ji)))},Ht=function(pt,ri,Gt,Jt,mi,Si,Qi){if(mi===this.hash){var cn=si(pt,this),Ji=Tt(cn,pt,ri,this.hash,this.children,Jt,Si,Qi);return Ji===this.children?this:Ji.length>1?Ge(pt,this.hash,Ji):Ji[0]}var wn=Jt();return wn===E?this:(++Qi.value,At(pt,Gt,this.hash,this,mi,st(pt,mi,Si,wn)))},W=function(pt,ri,Gt,Jt,mi,Si,Qi){var cn=this.mask,Ji=this.children,wn=G(Gt,mi),Dt=ue(wn),Vn=pe(cn,Dt),gr=cn&Dt,xr=gr?Ji[Vn]:xe,Ye=xr._modify(pt,ri,Gt+u,Jt,mi,Si,Qi);if(xr===Ye)return this;var q=si(pt,this),ae=cn,de=void 0;if(gr&&Ke(Ye)){if(ae&=~Dt,!ae)return xe;if(Ji.length<=2&&kt(Ji[Vn^1]))return Ji[Vn^1];de=qe(q,Vn,Ji)}else if(!gr&&!Ke(Ye)){if(Ji.length>=b)return bt(pt,wn,Ye,cn,Ji);ae|=Dt,de=me(q,Vn,Ye,Ji)}else de=we(q,Vn,Ye,Ji);return q?(this.mask=ae,this.children=de,this):xt(pt,ae,de)},ne=function(pt,ri,Gt,Jt,mi,Si,Qi){var cn=this.size,Ji=this.children,wn=G(Gt,mi),Dt=Ji[wn],Vn=(Dt||xe)._modify(pt,ri,Gt+u,Jt,mi,Si,Qi);if(Dt===Vn)return this;var gr=si(pt,this),xr=void 0;if(Ke(Dt)&&!Ke(Vn))++cn,xr=we(gr,wn,Vn,Ji);else if(!Ke(Dt)&&Ke(Vn)){if(--cn,cn<=a)return oi(pt,cn,wn,Ji);xr=we(gr,wn,xe,Ji)}else xr=we(gr,wn,Vn,Ji);return gr?(this.size=cn,this.children=xr,this):dt(pt,cn,xr)};xe._modify=function(vt,pt,ri,Gt,Jt,mi,Si){var Qi=Gt();return Qi===E?xe:(++Si.value,st(vt,Jt,mi,Qi))};function T(vt,pt,ri,Gt,Jt){this._editable=vt,this._edit=pt,this._config=ri,this._root=Gt,this._size=Jt}T.prototype.setTree=function(vt,pt){return this._editable?(this._root=vt,this._size=pt,this):vt===this._root?this:new T(this._editable,this._edit,this._config,vt,pt)};var k=o.tryGetHash=function(vt,pt,ri,Gt){for(var Jt=Gt._root,mi=0,Si=Gt._config.keyEq;;)switch(Jt.type){case te:return Si(ri,Jt.key)?Jt.value:vt;case J:{if(pt===Jt.hash)for(var Qi=Jt.children,cn=0,Ji=Qi.length;cn<Ji;++cn){var wn=Qi[cn];if(Si(ri,wn.key))return wn.value}return vt}case re:{var Dt=G(mi,pt),Vn=ue(Dt);if(Jt.mask&Vn){Jt=Jt.children[pe(Jt.mask,Vn)],mi+=u;break}return vt}case Me:{if(Jt=Jt.children[G(mi,pt)],Jt){mi+=u;break}return vt}default:return vt}};T.prototype.tryGetHash=function(vt,pt,ri){return k(vt,pt,ri,this)};var F=o.tryGet=function(vt,pt,ri){return k(vt,ri._config.hash(pt),pt,ri)};T.prototype.tryGet=function(vt,pt){return F(vt,pt,this)};var V=o.getHash=function(vt,pt,ri){return k(void 0,vt,pt,ri)};T.prototype.getHash=function(vt,pt){return V(vt,pt,this)},o.get=function(vt,pt){return k(void 0,pt._config.hash(vt),vt,pt)},T.prototype.get=function(vt,pt){return F(pt,vt,this)};var Z=o.has=function(vt,pt,ri){return k(E,vt,pt,ri)!==E};T.prototype.hasHash=function(vt,pt){return Z(vt,pt,this)};var se=o.has=function(vt,pt){return Z(pt._config.hash(vt),vt,pt)};T.prototype.has=function(vt){return se(vt,this)};var he=function(pt,ri){return pt===ri};o.make=function(vt){return new T(0,0,{keyEq:vt&&vt.keyEq||he,hash:vt&&vt.hash||Q},xe,0)},o.empty=o.make();var le=o.isEmpty=function(vt){return vt&&!!Ke(vt._root)};T.prototype.isEmpty=function(){return le(this)};var ve=o.modifyHash=function(vt,pt,ri,Gt){var Jt={value:Gt._size},mi=Gt._root._modify(Gt._editable?Gt._edit:NaN,Gt._config.keyEq,0,vt,pt,ri,Jt);return Gt.setTree(mi,Jt.value)};T.prototype.modifyHash=function(vt,pt,ri){return ve(ri,vt,pt,this)};var He=o.modify=function(vt,pt,ri){return ve(vt,ri._config.hash(pt),pt,ri)};T.prototype.modify=function(vt,pt){return He(pt,vt,this)};var et=o.setHash=function(vt,pt,ri,Gt){return ve(j(ri),vt,pt,Gt)};T.prototype.setHash=function(vt,pt,ri){return et(vt,pt,ri,this)};var Ue=o.set=function(vt,pt,ri){return et(ri._config.hash(vt),vt,pt,ri)};T.prototype.set=function(vt,pt){return Ue(vt,pt,this)};var Xe=j(E),Be=o.removeHash=function(vt,pt,ri){return ve(Xe,vt,pt,ri)};T.prototype.removeHash=T.prototype.deleteHash=function(vt,pt){return Be(vt,pt,this)};var rt=o.remove=function(vt,pt){return Be(pt._config.hash(vt),vt,pt)};T.prototype.remove=T.prototype.delete=function(vt){return rt(vt,this)};var mt=o.beginMutation=function(vt){return new T(vt._editable+1,vt._edit+1,vt._config,vt._root,vt._size)};T.prototype.beginMutation=function(){return mt(this)};var Mt=o.endMutation=function(vt){return vt._editable=vt._editable&&vt._editable-1,vt};T.prototype.endMutation=function(){return Mt(this)};var Nt=o.mutate=function(vt,pt){var ri=mt(pt);return vt(ri),Mt(ri)};T.prototype.mutate=function(vt){return Nt(vt,this)};var di=function(pt){return pt&&Xt(pt[0],pt[1],pt[2],pt[3],pt[4])},Xt=function(pt,ri,Gt,Jt,mi){for(;Gt<pt;){var Si=ri[Gt++];if(Si&&!Ke(Si))return Ii(Si,Jt,[pt,ri,Gt,Jt,mi])}return di(mi)},Ii=function(pt,ri,Gt){switch(pt.type){case te:return{value:ri(pt),rest:Gt};case J:case Me:case re:var Jt=pt.children;return Xt(Jt.length,Jt,0,ri,Gt);default:return di(Gt)}},ai={done:!0};function Bt(vt){this.v=vt}Bt.prototype.next=function(){if(!this.v)return ai;var vt=this.v;return this.v=di(vt.rest),vt},Bt.prototype[Symbol.iterator]=function(){return this};var Ti=function(pt,ri){return new Bt(Ii(pt._root,ri))},xi=function(pt){return[pt.key,pt.value]},Ft=o.entries=function(vt){return Ti(vt,xi)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return Ft(this)};var Yi=function(pt){return pt.key},Ei=o.keys=function(vt){return Ti(vt,Yi)};T.prototype.keys=function(){return Ei(this)};var Ri=function(pt){return pt.value},dn=o.values=T.prototype.values=function(vt){return Ti(vt,Ri)};T.prototype.values=function(){return dn(this)};var pn=o.fold=function(vt,pt,ri){var Gt=ri._root;if(Gt.type===te)return vt(pt,Gt.value,Gt.key);for(var Jt=[Gt.children],mi=void 0;mi=Jt.pop();)for(var Si=0,Qi=mi.length;Si<Qi;){var cn=mi[Si++];cn&&cn.type&&(cn.type===te?pt=vt(pt,cn.value,cn.key):Jt.push(cn.children))}return pt};T.prototype.fold=function(vt,pt){return pn(vt,pt,this)};var sn=o.forEach=function(vt,pt){return pn(function(ri,Gt,Jt){return vt(Gt,Jt,pt)},null,pt)};T.prototype.forEach=function(vt){return sn(vt,this)};var En=o.count=function(vt){return vt._size};T.prototype.count=function(){return En(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=o:(void 0).hamt=o});class AB{constructor(i){ar(this,"_map",void 0),this._map=new Map(i==null?void 0:i.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(i){return this._map.get(i)}has(i){return this._map.has(i)}set(i,o){return this._map.set(i,o),this}delete(i){return this._map.delete(i),this}clone(){return l3(this)}toMap(){return new Map(this._map)}}class a3{constructor(i){if(ar(this,"_hamt",SB.empty.beginMutation()),i instanceof a3){const o=i._hamt.endMutation();i._hamt=o.beginMutation(),this._hamt=o.beginMutation()}else if(i)for(const[o,u]of i.entries())this._hamt.set(o,u)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(i){return this._hamt.get(i)}has(i){return this._hamt.has(i)}set(i,o){return this._hamt.set(i,o),this}delete(i){return this._hamt.delete(i),this}clone(){return l3(this)}toMap(){return new Map(this._hamt)}}function l3(e){return qr("recoil_hamt_2020")?new a3(e):new AB(e)}var CB={persistentMap:l3},EB=CB.persistentMap,NB=Object.freeze({__proto__:null,persistentMap:EB});function LB(e,...i){const o=new Set;e:for(const u of e){for(const d of i)if(d.has(u))continue e;o.add(u)}return o}var mm=LB;function zB(e,i){const o=new Map;return e.forEach((u,d)=>{o.set(d,i(u,d))}),o}var p_=zB;function OB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function kB(e){return{nodeDeps:p_(e.nodeDeps,i=>new Set(i)),nodeToNodeSubscriptions:p_(e.nodeToNodeSubscriptions,i=>new Set(i))}}function c3(e,i,o,u){const{nodeDeps:d,nodeToNodeSubscriptions:_}=o,b=d.get(e);if(b&&u&&b!==u.nodeDeps.get(e))return;d.set(e,i);const a=b==null?i:mm(i,b);for(const E of a)_.has(E)||_.set(E,new Set),uo(_.get(E)).add(e);if(b){const E=mm(b,i);for(const j of E){if(!_.has(j))return;const Q=uo(_.get(j));Q.delete(e),Q.size===0&&_.delete(j)}}}function jB(e,i,o,u){var d,_,b,a;const E=o.getState();u===E.currentTree.version||u===((d=E.nextTree)===null||d===void 0?void 0:d.version)||((_=E.previousTree)===null||_===void 0||_.version);const j=o.getGraph(u);if(c3(e,i,j),u===((b=E.previousTree)===null||b===void 0?void 0:b.version)){const ie=o.getGraph(E.currentTree.version);c3(e,i,ie,j)}if(u===((a=E.previousTree)===null||a===void 0?void 0:a.version)||u===E.currentTree.version){var Q;const ie=(Q=E.nextTree)===null||Q===void 0?void 0:Q.version;if(ie!==void 0){const G=o.getGraph(ie);c3(e,i,G,j)}}}var ym={cloneGraph:kB,graph:OB,saveDepsToStore:jB};let PB=0;const RB=()=>PB++;let BB=0;const FB=()=>BB++;let UB=0;var g_={getNextTreeStateVersion:RB,getNextStoreID:FB,getNextComponentID:()=>UB++};const{persistentMap:YC}=NB,{graph:VB}=ym,{getNextTreeStateVersion:GC}=g_;function ZC(){const e=GC();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:YC(),nonvalidatedAtoms:YC()}}function QB(){const e=ZC();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,VB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var WC={makeEmptyTreeState:ZC,makeEmptyStoreState:QB,getNextTreeStateVersion:GC};class qC{}function HB(){return new qC}var m_={RetentionZone:qC,retentionZone:HB};function $B(e,i){const o=new Set(e);return o.add(i),o}function YB(e,i){const o=new Set(e);return o.delete(i),o}function GB(e,i,o){const u=new Map(e);return u.set(i,o),u}function ZB(e,i,o){const u=new Map(e);return u.set(i,o(u.get(i))),u}function WB(e,i){const o=new Map(e);return o.delete(i),o}function qB(e,i){const o=new Map(e);return i.forEach(u=>o.delete(u)),o}var KC={setByAddingToSet:$B,setByDeletingFromSet:YB,mapBySettingInMap:GB,mapByUpdatingInMap:ZB,mapByDeletingFromMap:WB,mapByDeletingMultipleFromMap:qB};function*KB(e,i){let o=0;for(const u of e)i(u,o++)&&(yield u)}var u3=KB;function XB(e,i){return new Proxy(e,{get:(u,d)=>(!(d in u)&&d in i&&(u[d]=i[d]()),u[d]),ownKeys:u=>Object.keys(u)})}var XC=XB;const{getNode:_m,getNodeMaybe:JB,recoilValuesForKeys:JC}=Ws,{RetentionZone:e6}=m_,{setByAddingToSet:eF}=KC,tF=Object.freeze(new Set);class iF extends Error{}function nF(e,i,o){if(!qr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:u}=e.getState().retention;function d(_){let b=u.get(_);b||u.set(_,b=new Set),b.add(i)}if(o instanceof e6)d(o);else if(Array.isArray(o))for(const _ of o)d(_);return()=>{if(!qr("recoil_memory_managament_2020"))return;const{retention:_}=e.getState();function b(a){const E=_.nodesRetainedByZone.get(a);E==null||E.delete(i),E&&E.size===0&&_.nodesRetainedByZone.delete(a)}if(o instanceof e6)b(o);else if(Array.isArray(o))for(const a of o)b(a)}}function h3(e,i,o,u){const d=e.getState();if(d.nodeCleanupFunctions.has(o))return;const _=_m(o),b=nF(e,o,_.retainedBy),a=_.init(e,i,u);d.nodeCleanupFunctions.set(o,()=>{a(),b()})}function rF(e,i,o){h3(e,e.getState().currentTree,i,o)}function oF(e,i){var o;const u=e.getState();(o=u.nodeCleanupFunctions.get(i))===null||o===void 0||o(),u.nodeCleanupFunctions.delete(i)}function sF(e,i,o){return h3(e,i,o,"get"),_m(o).get(e,i)}function t6(e,i,o){return _m(o).peek(e,i)}function aF(e,i,o){var u;const d=JB(i);return d==null||(u=d.invalidate)===null||u===void 0||u.call(d,e),{...e,atomValues:e.atomValues.clone().delete(i),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(i,o),dirtyAtoms:eF(e.dirtyAtoms,i)}}function lF(e,i,o,u){const d=_m(o);if(d.set==null)throw new iF(`Attempt to set read-only RecoilValue: ${o}`);const _=d.set;return h3(e,i,o,"set"),_(e,i,u)}function cF(e,i,o){const u=e.getState(),d=e.getGraph(i.version),_=_m(o).nodeType;return XC({type:_},{loadable:()=>t6(e,i,o),isActive:()=>u.knownAtoms.has(o)||u.knownSelectors.has(o),isSet:()=>_==="selector"?!1:i.atomValues.has(o),isModified:()=>i.dirtyAtoms.has(o),deps:()=>{var b;return JC((b=d.nodeDeps.get(o))!==null&&b!==void 0?b:[])},subscribers:()=>{var b,a;return{nodes:JC(u3(i6(e,i,new Set([o])),E=>E!==o)),components:d_((b=(a=u.nodeToComponentSubscriptions.get(o))===null||a===void 0?void 0:a.values())!==null&&b!==void 0?b:[],([E])=>({name:E}))}}})}function i6(e,i,o){const u=new Set,d=Array.from(o),_=e.getGraph(i.version);for(let a=d.pop();a;a=d.pop()){var b;u.add(a);const E=(b=_.nodeToNodeSubscriptions.get(a))!==null&&b!==void 0?b:tF;for(const j of E)u.has(j)||d.push(j)}return u}var _u={getNodeLoadable:sF,peekNodeLoadable:t6,setNodeValue:lF,initializeNode:rF,cleanUpNode:oF,setUnvalidatedAtomValue_DEPRECATED:aF,peekNodeInfo:cF,getDownstreamNodes:i6};let n6=null;function uF(e){n6=e}function hF(){var e;(e=n6)===null||e===void 0||e()}var r6={setInvalidateMemoizedSnapshot:uF,invalidateMemoizedSnapshot:hF};const{getDownstreamNodes:dF,getNodeLoadable:o6,setNodeValue:fF}=_u,{getNextComponentID:pF}=g_,{getNode:gF,getNodeMaybe:s6}=Ws,{DefaultValue:d3}=Ws,{reactMode:mF}=gm,{AbstractRecoilValue:yF,RecoilState:_F,RecoilValueReadOnly:vF,isRecoilValue:xF}=pf,{invalidateMemoizedSnapshot:wF}=r6;function bF(e,{key:i},o=e.getState().currentTree){var u,d;const _=e.getState();o.version===_.currentTree.version||o.version===((u=_.nextTree)===null||u===void 0?void 0:u.version)||(o.version,(d=_.previousTree)===null||d===void 0||d.version);const b=o6(e,o,i);return b.state==="loading"&&b.contents.catch(()=>{}),b}function MF(e,i){const o=e.clone();return i.forEach((u,d)=>{u.state==="hasValue"&&u.contents instanceof d3?o.delete(d):o.set(d,u)}),o}function IF(e,i,{key:o},u){if(typeof u=="function"){const d=o6(e,i,o);if(d.state==="loading"){const _=`Tried to set atom or selector "${o}" using an updater function while the current state is pending, this is not currently supported.`;throw hr(_)}else if(d.state==="hasError")throw d.contents;return u(d.contents)}else return u}function TF(e,i,o){if(o.type==="set"){const{recoilValue:d,valueOrUpdater:_}=o,b=IF(e,i,d,_),a=fF(e,i,d.key,b);for(const[E,j]of a.entries())f3(i,E,j)}else if(o.type==="setLoadable"){const{recoilValue:{key:d},loadable:_}=o;f3(i,d,_)}else if(o.type==="markModified"){const{recoilValue:{key:d}}=o;i.dirtyAtoms.add(d)}else if(o.type==="setUnvalidated"){var u;const{recoilValue:{key:d},unvalidatedValue:_}=o,b=s6(d);b==null||(u=b.invalidate)===null||u===void 0||u.call(b,i),i.atomValues.delete(d),i.nonvalidatedAtoms.set(d,_),i.dirtyAtoms.add(d)}else t3(`Unknown action ${o.type}`)}function f3(e,i,o){o.state==="hasValue"&&o.contents instanceof d3?e.atomValues.delete(i):e.atomValues.set(i,o),e.dirtyAtoms.add(i),e.nonvalidatedAtoms.delete(i)}function a6(e,i){e.replaceState(o=>{const u=l6(o);for(const d of i)TF(e,u,d);return c6(e,u),wF(),u})}function y_(e,i){if(vm.length){const o=vm[vm.length-1];let u=o.get(e);u||o.set(e,u=[]),u.push(i)}else a6(e,[i])}const vm=[];function DF(){const e=new Map;return vm.push(e),()=>{for(const[i,o]of e)a6(i,o);vm.pop()}}function l6(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function c6(e,i){const o=dF(e,i,i.dirtyAtoms);for(const _ of o){var u,d;(u=s6(_))===null||u===void 0||(d=u.invalidate)===null||d===void 0||d.call(u,i)}}function u6(e,i,o){y_(e,{type:"set",recoilValue:i,valueOrUpdater:o})}function SF(e,i,o){if(o instanceof d3)return u6(e,i,o);y_(e,{type:"setLoadable",recoilValue:i,loadable:o})}function AF(e,i){y_(e,{type:"markModified",recoilValue:i})}function CF(e,i,o){y_(e,{type:"setUnvalidated",recoilValue:i,unvalidatedValue:o})}function EF(e,{key:i},o,u=null){const d=pF(),_=e.getState();_.nodeToComponentSubscriptions.has(i)||_.nodeToComponentSubscriptions.set(i,new Map),uo(_.nodeToComponentSubscriptions.get(i)).set(d,[u??"<not captured>",o]);const b=mF();if(b.early&&(b.mode==="LEGACY"||b.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(i)&&o(a)}return{release:()=>{const a=e.getState(),E=a.nodeToComponentSubscriptions.get(i);E===void 0||!E.has(d)||(E.delete(d),E.size===0&&a.nodeToComponentSubscriptions.delete(i))}}}function NF(e,i){var o;const{currentTree:u}=e.getState(),d=gF(i.key);(o=d.clearCache)===null||o===void 0||o.call(d,e,u)}var wl={RecoilValueReadOnly:vF,AbstractRecoilValue:yF,RecoilState:_F,getRecoilValueAsLoadable:bF,setRecoilValue:u6,setRecoilValueLoadable:SF,markRecoilValueModified:AF,setUnvalidatedRecoilValue:CF,subscribeToRecoilValue:EF,isRecoilValue:xF,applyAtomValueWrites:MF,batchStart:DF,writeLoadableToTreeState:f3,invalidateDownstreams:c6,copyTreeState:l6,refreshRecoilValue:NF};function LF(e,i,o){const u=e.entries();let d=u.next();for(;!d.done;){const _=d.value;if(i.call(o,_[1],_[0],e))return!0;d=u.next()}return!1}var zF=LF;const{cleanUpNode:OF}=_u,{deleteNodeConfigIfPossible:kF,getNode:h6}=Ws,{RetentionZone:d6}=m_,jF=12e4,f6=new Set;function p6(e,i){const o=e.getState(),u=o.currentTree;if(o.nextTree)return;const d=new Set;for(const b of i)if(b instanceof d6)for(const a of FF(o,b))d.add(a);else d.add(b);const _=PF(e,d);for(const b of _)BF(e,u,b)}function PF(e,i){const o=e.getState(),u=o.currentTree,d=e.getGraph(u.version),_=new Set,b=new Set;return a(i),_;function a(E){const j=new Set,Q=RF(e,u,E,_,b);for(const pe of Q){var ie;if(h6(pe).retainedBy==="recoilRoot"){b.add(pe);continue}if(((ie=o.retention.referenceCounts.get(pe))!==null&&ie!==void 0?ie:0)>0){b.add(pe);continue}if(g6(pe).some(qe=>o.retention.referenceCounts.get(qe))){b.add(pe);continue}const we=d.nodeToNodeSubscriptions.get(pe);if(we&&zF(we,qe=>b.has(qe))){b.add(pe);continue}_.add(pe),j.add(pe)}const G=new Set;for(const pe of j)for(const we of(ue=d.nodeDeps.get(pe))!==null&&ue!==void 0?ue:f6){var ue;_.has(we)||G.add(we)}G.size&&a(G)}}function RF(e,i,o,u,d){const _=e.getGraph(i.version),b=[],a=new Set;for(;o.size>0;)E(uo(o.values().next().value));return b;function E(j){if(u.has(j)||d.has(j)){o.delete(j);return}if(a.has(j))return;const Q=_.nodeToNodeSubscriptions.get(j);if(Q)for(const ie of Q)E(ie);a.add(j),o.delete(j),b.push(j)}}function BF(e,i,o){if(!qr("recoil_memory_managament_2020"))return;OF(e,o);const u=e.getState();u.knownAtoms.delete(o),u.knownSelectors.delete(o),u.nodeTransactionSubscriptions.delete(o),u.retention.referenceCounts.delete(o);const d=g6(o);for(const E of d){var _;(_=u.retention.nodesRetainedByZone.get(E))===null||_===void 0||_.delete(o)}i.atomValues.delete(o),i.dirtyAtoms.delete(o),i.nonvalidatedAtoms.delete(o);const b=u.graphsByVersion.get(i.version);if(b){const E=b.nodeDeps.get(o);if(E!==void 0){b.nodeDeps.delete(o);for(const j of E){var a;(a=b.nodeToNodeSubscriptions.get(j))===null||a===void 0||a.delete(o)}}b.nodeToNodeSubscriptions.delete(o)}kF(o)}function FF(e,i){var o;return(o=e.retention.nodesRetainedByZone.get(i))!==null&&o!==void 0?o:f6}function g6(e){const i=h6(e).retainedBy;return i===void 0||i==="components"||i==="recoilRoot"?[]:i instanceof d6?[i]:i}function UF(e,i){const o=e.getState();o.nextTree?o.retention.retainablesToCheckForRelease.add(i):p6(e,new Set([i]))}function VF(e,i,o){var u;if(!qr("recoil_memory_managament_2020"))return;const d=e.getState().retention.referenceCounts,_=((u=d.get(i))!==null&&u!==void 0?u:0)+o;_===0?m6(e,i):d.set(i,_)}function m6(e,i){if(!qr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(i),UF(e,i)}function QF(e){if(!qr("recoil_memory_managament_2020"))return;const i=e.getState();p6(e,i.retention.retainablesToCheckForRelease),i.retention.retainablesToCheckForRelease.clear()}function HF(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:jF,updateRetainCount:VF,updateRetainCountToZero:m6,releaseScheduledRetainablesNow:QF,retainedByOptionWithDefault:HF};const{unstable_batchedUpdates:$F}=dm;var YF={unstable_batchedUpdates:$F};const{unstable_batchedUpdates:GF}=YF;var ZF={unstable_batchedUpdates:GF};const{batchStart:WF}=wl,{unstable_batchedUpdates:qF}=ZF;let p3=qF||(e=>e());var __={getBatcher:()=>p3,setBatcher:e=>{p3=e},batchUpdates:e=>{p3(()=>{let i=()=>{};try{i=WF(),e()}finally{i()}})}};function*KF(e){for(const i of e)for(const o of i)yield o}var y6=KF;const _6=typeof Window>"u"||typeof window>"u",XF=e=>!_6&&(e===window||e instanceof Window),JF=typeof navigator<"u"&&navigator.product==="ReactNative";var v_={isSSR:_6,isReactNative:JF,isWindow:XF};function eU(e,i){let o;return(...u)=>{o||(o={});const d=i(...u);return Object.hasOwnProperty.call(o,d)||(o[d]=e(...u)),o[d]}}function tU(e,i){let o,u;return(...d)=>{const _=i(...d);return o===_||(o=_,u=e(...d)),u}}function iU(e,i){let o,u;return[(...b)=>{const a=i(...b);return o===a||(o=a,u=e(...b)),u},()=>{o=null}]}var nU={memoizeWithArgsHash:eU,memoizeOneWithArgsHash:tU,memoizeOneWithArgsHashAndInvalidation:iU};const{batchUpdates:g3}=__,{initializeNode:rU,peekNodeInfo:oU}=_u,{graph:sU}=ym,{getNextStoreID:aU}=g_,{DEFAULT_VALUE:lU,recoilValues:v6,recoilValuesForKeys:x6}=Ws,{AbstractRecoilValue:cU,getRecoilValueAsLoadable:uU,setRecoilValue:w6,setUnvalidatedRecoilValue:hU}=wl,{updateRetainCount:x_}=Nh,{setInvalidateMemoizedSnapshot:dU}=r6,{getNextTreeStateVersion:fU,makeEmptyStoreState:pU}=WC,{isSSR:gU}=v_,{memoizeOneWithArgsHashAndInvalidation:mU}=nU;class w_{constructor(i,o){ar(this,"_store",void 0),ar(this,"_refCount",1),ar(this,"getLoadable",u=>(this.checkRefCount_INTERNAL(),uU(this._store,u))),ar(this,"getPromise",u=>(this.checkRefCount_INTERNAL(),this.getLoadable(u).toPromise())),ar(this,"getNodes_UNSTABLE",u=>{if(this.checkRefCount_INTERNAL(),(u==null?void 0:u.isModified)===!0){if((u==null?void 0:u.isInitialized)===!1)return[];const b=this._store.getState().currentTree;return x6(b.dirtyAtoms)}const d=this._store.getState().knownAtoms,_=this._store.getState().knownSelectors;return(u==null?void 0:u.isInitialized)==null?v6.values():u.isInitialized===!0?x6(y6([d,_])):u3(v6.values(),({key:b})=>!d.has(b)&&!_.has(b))}),ar(this,"getInfo_UNSTABLE",({key:u})=>(this.checkRefCount_INTERNAL(),oU(this._store,this._store.getState().currentTree,u))),ar(this,"map",u=>{this.checkRefCount_INTERNAL();const d=new m3(this,g3);return u(d),d}),ar(this,"asyncMap",async u=>{this.checkRefCount_INTERNAL();const d=new m3(this,g3);return d.retain(),await u(d),d.autoRelease_INTERNAL(),d}),this._store={storeID:aU(),parentStoreID:o,getState:()=>i,replaceState:u=>{i.currentTree=u(i.currentTree)},getGraph:u=>{const d=i.graphsByVersion;if(d.has(u))return uo(d.get(u));const _=sU();return d.set(u,_),_},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw hr("Cannot subscribe to Snapshots")}};for(const u of this._store.getState().knownAtoms)rU(this._store,u,"get"),x_(this._store,u,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let i=!1;return()=>{i||(i=!0,this._release())}}autoRelease_INTERNAL(){gU||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(i=>i()),this._store.getState().nodeCleanupFunctions.clear(),!qr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){qr("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 b6(e,i,o=!1){const u=e.getState(),d=o?fU():i.version;return{currentTree:{version:o?d:i.version,stateID:o?d:i.stateID,transactionMetadata:{...i.transactionMetadata},dirtyAtoms:new Set(i.dirtyAtoms),atomValues:i.atomValues.clone(),nonvalidatedAtoms:i.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(u.knownAtoms),knownSelectors:new Set(u.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(d,e.getGraph(i.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(d_(u.nodeCleanupFunctions.entries(),([_])=>[_,()=>{}]))}}function yU(e){const i=new w_(pU());return e!=null?i.map(e):i}const[M6,I6]=mU((e,i)=>{var o;const u=e.getState(),d=i==="latest"?(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree:uo(u.previousTree);return new w_(b6(e,d),e.storeID)},(e,i)=>{var o,u;return String(i)+String(e.storeID)+String((o=e.getState().nextTree)===null||o===void 0?void 0:o.version)+String(e.getState().currentTree.version)+String((u=e.getState().previousTree)===null||u===void 0?void 0:u.version)});dU(I6);function _U(e,i="latest"){const o=M6(e,i);return o.isRetained()?o:(I6(),M6(e,i))}class m3 extends w_{constructor(i,o){super(b6(i.getStore_INTERNAL(),i.getStore_INTERNAL().getState().currentTree,!0),i.getStoreID()),ar(this,"_batch",void 0),ar(this,"set",(u,d)=>{this.checkRefCount_INTERNAL();const _=this.getStore_INTERNAL();this._batch(()=>{x_(_,u.key,1),w6(this.getStore_INTERNAL(),u,d)})}),ar(this,"reset",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{x_(d,u.key,1),w6(this.getStore_INTERNAL(),u,lU)})}),ar(this,"setUnvalidatedAtomValues_DEPRECATED",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();g3(()=>{for(const[_,b]of u.entries())x_(d,_,1),hU(d,new cU(_),b)})}),this._batch=o}}var b_={Snapshot:w_,MutableSnapshot:m3,freshSnapshot:yU,cloneSnapshot:_U},vU=b_.Snapshot,xU=b_.MutableSnapshot,wU=b_.freshSnapshot,bU=b_.cloneSnapshot,M_=Object.freeze({__proto__:null,Snapshot:vU,MutableSnapshot:xU,freshSnapshot:wU,cloneSnapshot:bU});function MU(...e){const i=new Set;for(const o of e)for(const u of o)i.add(u);return i}var IU=MU;const{useRef:TU}=Cr;function DU(e){const i=TU(e);return i.current===e&&typeof e=="function"&&(i.current=e()),i}var T6=DU;const{getNextTreeStateVersion:SU,makeEmptyStoreState:D6}=WC,{cleanUpNode:AU,getDownstreamNodes:CU,initializeNode:EU,setNodeValue:NU,setUnvalidatedAtomValue_DEPRECATED:LU}=_u,{graph:zU}=ym,{cloneGraph:OU}=ym,{getNextStoreID:S6}=g_,{createMutableSource:y3,reactMode:A6}=gm,{applyAtomValueWrites:kU}=wl,{releaseScheduledRetainablesNow:C6}=Nh,{freshSnapshot:jU}=M_,{useCallback:PU,useContext:E6,useEffect:_3,useMemo:RU,useRef:BU,useState:FU}=Cr;function xm(){throw hr("This component must be used inside a <RecoilRoot> component.")}const N6=Object.freeze({storeID:S6(),getState:xm,replaceState:xm,getGraph:xm,subscribeToTransactions:xm,addTransactionMetadata:xm});let v3=!1;function L6(e){if(v3)throw hr("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const i=e.getState();if(i.nextTree===null){qr("recoil_memory_managament_2020")&&qr("recoil_release_on_cascading_update_killswitch_2021")&&i.commitDepth>0&&C6(e);const o=i.currentTree.version,u=SU();i.nextTree={...i.currentTree,version:u,stateID:u,dirtyAtoms:new Set,transactionMetadata:{}},i.graphsByVersion.set(u,OU(uo(i.graphsByVersion.get(o))))}}const z6=Cr.createContext({current:N6}),I_=()=>E6(z6),O6=Cr.createContext(null);function UU(){return E6(O6)}function x3(e,i,o){const u=CU(e,o,o.dirtyAtoms);for(const d of u){const _=i.nodeToComponentSubscriptions.get(d);if(_)for(const[b,[a,E]]of _)E(o)}}function k6(e){const i=e.getState(),o=i.currentTree,u=o.dirtyAtoms;if(u.size){for(const[d,_]of i.nodeTransactionSubscriptions)if(u.has(d))for(const[b,a]of _)a(e);for(const[d,_]of i.transactionSubscriptions)_(e);(!A6().early||i.suspendedComponentResolvers.size>0)&&(x3(e,i,o),i.suspendedComponentResolvers.forEach(d=>d()),i.suspendedComponentResolvers.clear())}i.queuedComponentCallbacks_DEPRECATED.forEach(d=>d(o)),i.queuedComponentCallbacks_DEPRECATED.splice(0,i.queuedComponentCallbacks_DEPRECATED.length)}function VU(e){const i=e.getState();i.commitDepth++;try{const{nextTree:o}=i;if(o==null)return;i.previousTree=i.currentTree,i.currentTree=o,i.nextTree=null,k6(e),i.previousTree!=null?i.graphsByVersion.delete(i.previousTree.version):t3("Ended batch with no previous state, which is unexpected","recoil"),i.previousTree=null,qr("recoil_memory_managament_2020")&&o==null&&C6(e)}finally{i.commitDepth--}}function QU({setNotifyBatcherOfChange:e}){const i=I_(),[,o]=FU([]);return e(()=>o({})),_3(()=>(e(()=>o({})),()=>{e(()=>{})}),[e]),_3(()=>{TB.enqueueExecution("Batcher",()=>{VU(i.current)})}),null}function HU(e,i){const o=D6();return i({set:(u,d)=>{const _=o.currentTree,b=NU(e,_,u.key,d),a=new Set(b.keys()),E=_.nonvalidatedAtoms.clone();for(const j of a)E.delete(j);o.currentTree={..._,dirtyAtoms:IU(_.dirtyAtoms,a),atomValues:kU(_.atomValues,b),nonvalidatedAtoms:E}},setUnvalidatedAtomValues:u=>{u.forEach((d,_)=>{o.currentTree=LU(o.currentTree,_,d)})}}),o}function $U(e){const i=jU(e),o=i.getStore_INTERNAL().getState();return i.retain(),o.nodeCleanupFunctions.forEach(u=>u()),o.nodeCleanupFunctions.clear(),o}let j6=0;function YU({initializeState_DEPRECATED:e,initializeState:i,store_INTERNAL:o,children:u}){let d;const _=ue=>{const pe=d.current.graphsByVersion;if(pe.has(ue))return uo(pe.get(ue));const we=zU();return pe.set(ue,we),we},b=(ue,pe)=>{if(pe==null){const{transactionSubscriptions:we}=ie.current.getState(),qe=j6++;return we.set(qe,ue),{release:()=>{we.delete(qe)}}}else{const{nodeTransactionSubscriptions:we}=ie.current.getState();we.has(pe)||we.set(pe,new Map);const qe=j6++;return uo(we.get(pe)).set(qe,ue),{release:()=>{const me=we.get(pe);me&&(me.delete(qe),me.size===0&&we.delete(pe))}}}},a=ue=>{L6(ie.current);for(const pe of Object.keys(ue))uo(ie.current.getState().nextTree).transactionMetadata[pe]=ue[pe]},E=ue=>{L6(ie.current);const pe=uo(d.current.nextTree);let we;try{v3=!0,we=ue(pe)}finally{v3=!1}we!==pe&&(d.current.nextTree=we,A6().early&&x3(ie.current,d.current,we),uo(j.current)())},j=BU(null),Q=PU(ue=>{j.current=ue},[j]),ie=T6(()=>o??{storeID:S6(),getState:()=>d.current,replaceState:E,getGraph:_,subscribeToTransactions:b,addTransactionMetadata:a});o!=null&&(ie.current=o),d=T6(()=>e!=null?HU(ie.current,e):i!=null?$U(i):D6());const G=RU(()=>y3==null?void 0:y3(d,()=>d.current.currentTree.version),[d]);return _3(()=>{const ue=ie.current;for(const pe of new Set(ue.getState().knownAtoms))EU(ue,pe,"get");return()=>{for(const pe of ue.getState().knownAtoms)AU(ue,pe)}},[ie]),Cr.createElement(z6.Provider,{value:ie},Cr.createElement(O6.Provider,{value:G},Cr.createElement(QU,{setNotifyBatcherOfChange:Q}),u))}function GU(e){const{override:i,...o}=e,u=I_();return i===!1&&u.current!==N6?e.children:Cr.createElement(YU,o)}function ZU(){return I_().current.storeID}var pc={RecoilRoot:GU,useStoreRef:I_,useRecoilMutableSource:UU,useRecoilStoreID:ZU,notifyComponents_FOR_TESTING:x3,sendEndOfBatchNotifications_FOR_TESTING:k6};function WU(e,i){if(e===i)return!0;if(e.length!==i.length)return!1;for(let o=0,u=e.length;o<u;o++)if(e[o]!==i[o])return!1;return!0}var qU=WU;const{useEffect:KU,useRef:XU}=Cr;function JU(e){const i=XU();return KU(()=>{i.current=e}),i.current}var P6=JU;const{useStoreRef:eV}=pc,{SUSPENSE_TIMEOUT_MS:tV}=Nh,{updateRetainCount:wm}=Nh,{RetentionZone:iV}=m_,{useEffect:nV,useRef:rV}=Cr,{isSSR:R6}=v_;function oV(e){if(qr("recoil_memory_managament_2020"))return sV(e)}function sV(e){const o=(Array.isArray(e)?e:[e]).map(b=>b instanceof iV?b:b.key),u=eV();nV(()=>{if(!qr("recoil_memory_managament_2020"))return;const b=u.current;if(d.current&&!R6)window.clearTimeout(d.current),d.current=null;else for(const a of o)wm(b,a,1);return()=>{for(const a of o)wm(b,a,-1)}},[u,...o]);const d=rV(),_=P6(o);if(!R6&&(_===void 0||!qU(_,o))){const b=u.current;for(const a of o)wm(b,a,1);if(_)for(const a of _)wm(b,a,-1);d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=null;for(const a of o)wm(b,a,-1)},tV)}}var w3=oV;function aV(){return"<component name not available>"}var bm=aV;const{batchUpdates:lV}=__,{DEFAULT_VALUE:B6}=Ws,{currentRendererSupportsUseSyncExternalStore:cV,reactMode:gf,useMutableSource:uV,useSyncExternalStore:hV}=gm,{useRecoilMutableSource:dV,useStoreRef:bl}=pc,{AbstractRecoilValue:b3,getRecoilValueAsLoadable:Mm,setRecoilValue:T_,setUnvalidatedRecoilValue:fV,subscribeToRecoilValue:mf}=wl,{useCallback:qs,useEffect:yf,useMemo:F6,useRef:Im,useState:M3}=Cr,{setByAddingToSet:pV}=KC,{isSSR:gV}=v_;function I3(e,i,o){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(d=>{const _=o.current.getState().suspendedComponentResolvers;_.add(d),gV&&so(e.contents)&&e.contents.finally(()=>{_.delete(d)})}):e.state==="hasError"?e.contents:hr(`Invalid value of loadable atom "${i.key}"`)}function mV(){const e=bm(),i=bl(),[,o]=M3([]),u=Im(new Set);u.current=new Set;const d=Im(new Set),_=Im(new Map),b=qs(E=>{const j=_.current.get(E);j&&(j.release(),_.current.delete(E))},[_]),a=qs((E,j)=>{_.current.has(j)&&o([])},[]);return yf(()=>{const E=i.current;mm(u.current,d.current).forEach(j=>{if(_.current.has(j))return;const Q=mf(E,new b3(j),G=>a(G,j),e);_.current.set(j,Q),E.getState().nextTree?E.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(E.getState(),j)}):a(E.getState(),j)}),mm(d.current,u.current).forEach(j=>{b(j)}),d.current=u.current}),yf(()=>{const E=_.current;return mm(u.current,new Set(E.keys())).forEach(j=>{const Q=mf(i.current,new b3(j),ie=>a(ie,j),e);E.set(j,Q)}),()=>E.forEach((j,Q)=>b(Q))},[e,i,b,a]),F6(()=>{function E(pe){return we=>{T_(i.current,pe,we)}}function j(pe){return()=>T_(i.current,pe,B6)}function Q(pe){var we;u.current.has(pe.key)||(u.current=pV(u.current,pe.key));const qe=i.current.getState();return Mm(i.current,pe,gf().early&&(we=qe.nextTree)!==null&&we!==void 0?we:qe.currentTree)}function ie(pe){const we=Q(pe);return I3(we,pe,i)}function G(pe){return[ie(pe),E(pe)]}function ue(pe){return[Q(pe),E(pe)]}return{getRecoilValue:ie,getRecoilValueLoadable:Q,getRecoilState:G,getRecoilStateLoadable:ue,getSetRecoilState:E,getResetRecoilState:j}},[u,i])}const yV={current:0};function _V(e){const i=bl(),o=bm(),u=qs(()=>{var a;const E=i.current,j=E.getState(),Q=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return{loadable:Mm(E,e,Q),key:e.key}},[i,e]),d=qs(a=>{let E;return()=>{var j,Q;const ie=a();return(j=E)!==null&&j!==void 0&&j.loadable.is(ie.loadable)&&((Q=E)===null||Q===void 0?void 0:Q.key)===ie.key?E:(E=ie,ie)}},[]),_=F6(()=>d(u),[u,d]),b=qs(a=>{const E=i.current;return mf(E,e,a,o).release},[i,e,o]);return hV(b,_,_).loadable}function vV(e){const i=bl(),o=qs(()=>{var j;const Q=i.current,ie=Q.getState(),G=gf().early&&(j=ie.nextTree)!==null&&j!==void 0?j:ie.currentTree;return Mm(Q,e,G)},[i,e]),u=qs(()=>o(),[o]),d=bm(),_=qs((j,Q)=>{const ie=i.current;return mf(ie,e,()=>{if(!qr("recoil_suppress_rerender_in_callback"))return Q();const ue=o();E.current.is(ue)||Q(),E.current=ue},d).release},[i,e,d,o]),b=dV();if(b==null)throw hr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=uV(b,u,_),E=Im(a);return yf(()=>{E.current=a}),a}function T3(e){const i=bl(),o=bm(),u=qs(()=>{var E;const j=i.current,Q=j.getState(),ie=gf().early&&(E=Q.nextTree)!==null&&E!==void 0?E:Q.currentTree;return Mm(j,e,ie)},[i,e]),d=qs(()=>({loadable:u(),key:e.key}),[u,e.key]),_=qs(E=>{const j=d();return E.loadable.is(j.loadable)&&E.key===j.key?E:j},[d]);yf(()=>{const E=mf(i.current,e,j=>{a(_)},o);return a(_),E.release},[o,e,i,_]);const[b,a]=M3(d);return b.key!==e.key?d().loadable:b.loadable}function xV(e){const i=bl(),[,o]=M3([]),u=bm(),d=qs(()=>{var a;const E=i.current,j=E.getState(),Q=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return Mm(E,e,Q)},[i,e]),_=d(),b=Im(_);return yf(()=>{b.current=_}),yf(()=>{const a=i.current,E=a.getState(),j=mf(a,e,ie=>{var G;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const ue=d();(G=b.current)!==null&&G!==void 0&&G.is(ue)||o(ue),b.current=ue},u);if(E.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{b.current=null,o([])});else{var Q;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const ie=d();(Q=b.current)!==null&&Q!==void 0&&Q.is(ie)||o(ie),b.current=ie}return j.release},[u,d,e,i]),_}function D3(e){return qr("recoil_memory_managament_2020")&&w3(e),{TRANSITION_SUPPORT:T3,SYNC_EXTERNAL_STORE:cV()?_V:T3,MUTABLE_SOURCE:vV,LEGACY:xV}[gf().mode](e)}function U6(e){const i=bl(),o=D3(e);return I3(o,e,i)}function D_(e){const i=bl();return qs(o=>{T_(i.current,e,o)},[i,e])}function wV(e){const i=bl();return qs(()=>{T_(i.current,e,B6)},[i,e])}function bV(e){return[U6(e),D_(e)]}function MV(e){return[D3(e),D_(e)]}function IV(){const e=bl();return(i,o={})=>{lV(()=>{e.current.addTransactionMetadata(o),i.forEach((u,d)=>fV(e.current,new b3(d),u))})}}function V6(e){return qr("recoil_memory_managament_2020")&&w3(e),T3(e)}function Q6(e){const i=bl(),o=V6(e);return I3(o,e,i)}function TV(e){return[Q6(e),D_(e)]}var DV={recoilComponentGetRecoilValueCount_FOR_TESTING:yV,useRecoilInterface:mV,useRecoilState:bV,useRecoilStateLoadable:MV,useRecoilValue:U6,useRecoilValueLoadable:D3,useResetRecoilState:wV,useSetRecoilState:D_,useSetUnvalidatedAtomValues:IV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:V6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Q6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TV};function SV(e,i){const o=new Map;for(const[u,d]of e)i(d,u)&&o.set(u,d);return o}var AV=SV;function CV(e,i){const o=new Set;for(const u of e)i(u)&&o.add(u);return o}var EV=CV;function NV(...e){const i=new Map;for(let o=0;o<e.length;o++){const u=e[o].keys();let d;for(;!(d=u.next()).done;)i.set(d.value,e[o].get(d.value))}return i}var LV=NV;const{batchUpdates:zV}=__,{DEFAULT_VALUE:OV,getNode:H6,nodes:kV}=Ws,{useStoreRef:S3}=pc,{AbstractRecoilValue:jV,setRecoilValueLoadable:PV}=wl,{SUSPENSE_TIMEOUT_MS:RV}=Nh,{cloneSnapshot:S_}=M_,{useCallback:A_,useEffect:$6,useRef:Y6,useState:BV}=Cr,{isSSR:G6}=v_;function C_(e){const i=S3();$6(()=>i.current.subscribeToTransactions(e).release,[e,i])}function Z6(e){const i=e.atomValues.toMap(),o=p_(AV(i,(u,d)=>{const b=H6(d).persistence_UNSTABLE;return b!=null&&b.type!=="none"&&u.state==="hasValue"}),u=>u.contents);return LV(e.nonvalidatedAtoms.toMap(),o)}function FV(e){C_(A_(i=>{let o=i.getState().previousTree;const u=i.getState().currentTree;o||(o=i.getState().currentTree);const d=Z6(u),_=Z6(o),b=p_(kV,E=>{var j,Q,ie,G;return{persistence_UNSTABLE:{type:(j=(Q=E.persistence_UNSTABLE)===null||Q===void 0?void 0:Q.type)!==null&&j!==void 0?j:"none",backButton:(ie=(G=E.persistence_UNSTABLE)===null||G===void 0?void 0:G.backButton)!==null&&ie!==void 0?ie:!1}}}),a=EV(u.dirtyAtoms,E=>d.has(E)||_.has(E));e({atomValues:d,previousAtomValues:_,atomInfo:b,modifiedAtoms:a,transactionMetadata:{...u.transactionMetadata}})},[e]))}function UV(e){C_(A_(i=>{const o=S_(i,"latest"),u=S_(i,"previous");e({snapshot:o,previousSnapshot:u})},[e]))}function VV(){const e=S3(),[i,o]=BV(()=>S_(e.current)),u=P6(i),d=Y6(),_=Y6();if(C_(A_(a=>o(S_(a)),[])),$6(()=>{const a=i.retain();if(d.current&&!G6){var E;window.clearTimeout(d.current),d.current=null,(E=_.current)===null||E===void 0||E.call(_),_.current=null}return()=>{window.setTimeout(a,10)}},[i]),u!==i&&!G6){if(d.current){var b;window.clearTimeout(d.current),d.current=null,(b=_.current)===null||b===void 0||b.call(_),_.current=null}_.current=i.retain(),d.current=window.setTimeout(()=>{var a;d.current=null,(a=_.current)===null||a===void 0||a.call(_),_.current=null},RV)}return i}function W6(e,i){var o;const u=e.getState(),d=(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree,_=i.getStore_INTERNAL().getState().currentTree;zV(()=>{const b=new Set;for(const j of[d.atomValues.keys(),_.atomValues.keys()])for(const Q of j){var a,E;((a=d.atomValues.get(Q))===null||a===void 0?void 0:a.contents)!==((E=_.atomValues.get(Q))===null||E===void 0?void 0:E.contents)&&H6(Q).shouldRestoreFromSnapshots&&b.add(Q)}b.forEach(j=>{PV(e,new jV(j),_.atomValues.has(j)?uo(_.atomValues.get(j)):OV)}),e.replaceState(j=>({...j,stateID:i.getID()}))})}function QV(){const e=S3();return A_(i=>W6(e.current,i),[e])}var q6={useRecoilSnapshot:VV,gotoSnapshot:W6,useGotoRecoilSnapshot:QV,useRecoilTransactionObserver:UV,useTransactionObservation_DEPRECATED:FV,useTransactionSubscription_DEPRECATED:C_};const{peekNodeInfo:HV}=_u,{useStoreRef:$V}=pc;function YV(){const e=$V();return({key:i})=>HV(e.current,e.current.getState().currentTree,i)}var GV=YV;const{reactMode:ZV}=gm,{RecoilRoot:WV,useStoreRef:qV}=pc,{useMemo:KV}=Cr;function XV(){ZV().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=qV().current;return KV(()=>{function i({children:o}){return Cr.createElement(WV,{store_INTERNAL:e},o)}return i},[e])}var JV=XV;const{loadableWithValue:eQ}=pm,{initializeNode:tQ}=_u,{DEFAULT_VALUE:iQ,getNode:nQ}=Ws,{copyTreeState:rQ,getRecoilValueAsLoadable:oQ,invalidateDownstreams:sQ,writeLoadableToTreeState:aQ}=wl;function K6(e){return nQ(e.key).nodeType==="atom"}class lQ{constructor(i,o){ar(this,"_store",void 0),ar(this,"_treeState",void 0),ar(this,"_changes",void 0),ar(this,"get",u=>{if(this._changes.has(u.key))return this._changes.get(u.key);if(!K6(u))throw hr("Reading selectors within atomicUpdate is not supported");const d=oQ(this._store,u,this._treeState);if(d.state==="hasValue")return d.contents;throw d.state==="hasError"?d.contents:hr(`Expected Recoil atom ${u.key} to have a value, but it is in a loading state.`)}),ar(this,"set",(u,d)=>{if(!K6(u))throw hr("Setting selectors within atomicUpdate is not supported");if(typeof d=="function"){const _=this.get(u);this._changes.set(u.key,d(_))}else tQ(this._store,u.key,"set"),this._changes.set(u.key,d)}),ar(this,"reset",u=>{this.set(u,iQ)}),this._store=i,this._treeState=o,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const i=rQ(this._treeState);for(const[o,u]of this._changes)aQ(i,o,eQ(u));return sQ(this._store,i),i}}function cQ(e){return i=>{e.replaceState(o=>{const u=new lQ(e,o);return i(u),u.newTreeState_INTERNAL()})}}var uQ={atomicUpdater:cQ},hQ=uQ.atomicUpdater,X6=Object.freeze({__proto__:null,atomicUpdater:hQ});function dQ(e,i){if(!e)throw new Error(i)}var fQ=dQ,Tm=fQ;const{atomicUpdater:pQ}=X6,{batchUpdates:gQ}=__,{DEFAULT_VALUE:mQ}=Ws,{useStoreRef:yQ}=pc,{refreshRecoilValue:_Q,setRecoilValue:J6}=wl,{cloneSnapshot:vQ}=M_,{gotoSnapshot:xQ}=q6,{useCallback:wQ}=Cr;class eE{}const bQ=new eE;function tE(e,i,o,u){let d=bQ,_;if(gQ(()=>{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 i!="function")throw hr(a);const E=XC({...u??{},set:(Q,ie)=>J6(e,Q,ie),reset:Q=>J6(e,Q,mQ),refresh:Q=>_Q(e,Q),gotoSnapshot:Q=>xQ(e,Q),transact_UNSTABLE:Q=>pQ(e)(Q)},{snapshot:()=>{const Q=vQ(e);return _=Q.retain(),Q}}),j=i(E);if(typeof j!="function")throw hr(a);d=j(...o)}),d instanceof eE&&Tm(!1),so(d))d=d.finally(()=>{var a;(a=_)===null||a===void 0||a()});else{var b;(b=_)===null||b===void 0||b()}return d}function MQ(e,i){const o=yQ();return wQ((...u)=>tE(o.current,e,u),i!=null?[...i,o]:void 0)}var iE={recoilCallback:tE,useRecoilCallback:MQ};const{useStoreRef:IQ}=pc,{refreshRecoilValue:TQ}=wl,{useCallback:DQ}=Cr;function SQ(e){const i=IQ();return DQ(()=>{const o=i.current;TQ(o,e)},[e,i])}var AQ=SQ;const{atomicUpdater:CQ}=X6,{useStoreRef:EQ}=pc,{useMemo:NQ}=Cr;function LQ(e,i){const o=EQ();return NQ(()=>(...u)=>{CQ(o.current)(_=>{e(_)(...u)})},i!=null?[...i,o]:void 0)}var zQ=LQ;class OQ{constructor(i){ar(this,"value",void 0),this.value=i}}var kQ={WrappedValue:OQ},jQ=kQ.WrappedValue,nE=Object.freeze({__proto__:null,WrappedValue:jQ});const{isFastRefreshEnabled:PQ}=gm;class rE extends Error{}class RQ{constructor(i){var o,u,d;ar(this,"_name",void 0),ar(this,"_numLeafs",void 0),ar(this,"_root",void 0),ar(this,"_onHit",void 0),ar(this,"_onSet",void 0),ar(this,"_mapNodeValue",void 0),this._name=i==null?void 0:i.name,this._numLeafs=0,this._root=null,this._onHit=(o=i==null?void 0:i.onHit)!==null&&o!==void 0?o:()=>{},this._onSet=(u=i==null?void 0:i.onSet)!==null&&u!==void 0?u:()=>{},this._mapNodeValue=(d=i==null?void 0:i.mapNodeValue)!==null&&d!==void 0?d:_=>_}size(){return this._numLeafs}root(){return this._root}get(i,o){var u;return(u=this.getLeafNode(i,o))===null||u===void 0?void 0:u.value}getLeafNode(i,o){if(this._root==null)return;let u=this._root;for(;u;){if(o==null||o.onNodeVisit(u),u.type==="leaf")return this._onHit(u),u;const d=this._mapNodeValue(i(u.nodeKey));u=u.branches.get(d)}}set(i,o,u){const d=()=>{var _,b,a,E;let j,Q;for(const[qe,me]of i){var ie,G,ue;const te=this._root;if((te==null?void 0:te.type)==="leaf")throw this.invalidCacheError();const J=j;if(j=J?J.branches.get(Q):te,j=(ie=j)!==null&&ie!==void 0?ie:{type:"branch",nodeKey:qe,parent:J,branches:new Map,branchKey:Q},j.type!=="branch"||j.nodeKey!==qe)throw this.invalidCacheError();J==null||J.branches.set(Q,j),u==null||(G=u.onNodeVisit)===null||G===void 0||G.call(u,j),Q=this._mapNodeValue(me),this._root=(ue=this._root)!==null&&ue!==void 0?ue:j}const pe=j?(_=j)===null||_===void 0?void 0:_.branches.get(Q):this._root;if(pe!=null&&(pe.type!=="leaf"||pe.branchKey!==Q))throw this.invalidCacheError();const we={type:"leaf",value:o,parent:j,branchKey:Q};(b=j)===null||b===void 0||b.branches.set(Q,we),this._root=(a=this._root)!==null&&a!==void 0?a:we,this._numLeafs++,this._onSet(we),u==null||(E=u.onNodeVisit)===null||E===void 0||E.call(u,we)};try{d()}catch(_){if(_ instanceof rE)this.clear(),d();else throw _}}delete(i){const o=this.root();if(!o)return!1;if(i===o)return this._root=null,this._numLeafs=0,!0;let u=i.parent,d=i.branchKey;for(;u;){var _;if(u.branches.delete(d),u===o)return u.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(u.branches.size>0)break;d=(_=u)===null||_===void 0?void 0:_.branchKey,u=u.parent}for(;u!==o;u=u.parent)if(u==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const i=PQ()?"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 t3(i+(this._name!=null?` - ${this._name}`:"")),new rE}}var BQ={TreeCache:RQ},FQ=BQ.TreeCache,oE=Object.freeze({__proto__:null,TreeCache:FQ});class UQ{constructor(i){var o;ar(this,"_maxSize",void 0),ar(this,"_size",void 0),ar(this,"_head",void 0),ar(this,"_tail",void 0),ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._maxSize=i.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(o=i.mapKey)!==null&&o!==void 0?o:u=>u}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(i){return this._map.has(this._keyMapper(i))}get(i){const o=this._keyMapper(i),u=this._map.get(o);if(u)return this.set(i,u.value),u.value}set(i,o){const u=this._keyMapper(i);this._map.get(u)&&this.delete(i);const _=this.head(),b={key:i,right:_,left:null,value:o};_?_.left=b:this._tail=b,this._map.set(u,b),this._head=b,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const i=this.tail();i&&this.delete(i.key)}delete(i){const o=this._keyMapper(i);if(!this._size||!this._map.has(o))return;const u=uo(this._map.get(o)),d=u.right,_=u.left;d&&(d.left=u.left),_&&(_.right=u.right),u===this.head()&&(this._head=d),u===this.tail()&&(this._tail=_),this._map.delete(o),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var VQ={LRUCache:UQ},QQ=VQ.LRUCache,sE=Object.freeze({__proto__:null,LRUCache:QQ});const{LRUCache:HQ}=sE,{TreeCache:$Q}=oE;function YQ({name:e,maxSize:i,mapNodeValue:o=u=>u}){const u=new HQ({maxSize:i}),d=new $Q({name:e,mapNodeValue:o,onHit:_=>{u.set(_,!0)},onSet:_=>{const b=u.tail();u.set(_,!0),b&&d.size()>i&&d.delete(b.key)}});return d}var aE=YQ;function Xa(e,i,o){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((i==null?void 0:i.allowFunctions)!==!0)throw hr("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var u;return(u=JSON.stringify(e))!==null&&u!==void 0?u:""}if(so(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((d,_)=>Xa(d,i,_.toString()))}]`;if(typeof e.toJSON=="function")return Xa(e.toJSON(o),i,o);if(e instanceof Map){const d={};for(const[_,b]of e)d[typeof _=="string"?_:Xa(_,i)]=b;return Xa(d,i,o)}return e instanceof Set?Xa(Array.from(e).sort((d,_)=>Xa(d,i).localeCompare(Xa(_,i))),i,o):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xa(Array.from(e),i,o):`{${Object.keys(e).filter(d=>e[d]!==void 0).sort().map(d=>`${Xa(d,i)}:${Xa(e[d],i,d)}`).join(",")}}`}function GQ(e,i={allowFunctions:!1}){return Xa(e,i)}var E_=GQ;const{TreeCache:ZQ}=oE,N_={equality:"reference",eviction:"keep-all",maxSize:1/0};function WQ({equality:e=N_.equality,eviction:i=N_.eviction,maxSize:o=N_.maxSize}=N_,u){const d=qQ(e);return KQ(i,o,d,u)}function qQ(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function KQ(e,i,o,u){switch(e){case"keep-all":return new ZQ({name:u,mapNodeValue:o});case"lru":return aE({name:u,maxSize:uo(i),mapNodeValue:o});case"most-recent":return aE({name:u,maxSize:1,mapNodeValue:o})}throw hr(`Unrecognized eviction policy ${e}`)}var XQ=WQ;function JQ(e){return()=>null}var eH={startPerfBlock:JQ};const{isLoadable:tH,loadableWithError:L_,loadableWithPromise:iH,loadableWithValue:A3}=pm,{WrappedValue:lE}=nE,{getNodeLoadable:z_,peekNodeLoadable:nH,setNodeValue:rH}=_u,{saveDepsToStore:oH}=ym,{DEFAULT_VALUE:sH,getConfigDeletionHandler:aH,getNode:lH,registerNode:cE}=Ws,{isRecoilValue:cH}=pf,{markRecoilValueModified:uE}=wl,{retainedByOptionWithDefault:uH}=Nh,{recoilCallback:hH}=iE,{startPerfBlock:dH}=eH;class hE{}const Dm=new hE,Sm=[],O_=new Map,fH=(()=>{let e=0;return()=>e++})();function dE(e){let i=null;const{key:o,get:u,cachePolicy_UNSTABLE:d}=e,_=e.set!=null?e.set:void 0,b=new Set,a=XQ(d??{equality:"reference",eviction:"keep-all"},o),E=uH(e.retainedBy_UNSTABLE),j=new Map;let Q=0;function ie(){return!qr("recoil_memory_managament_2020")||Q>0}function G(T){return T.getState().knownSelectors.add(o),Q++,()=>{Q--}}function ue(){return aH(o)!==void 0&&!ie()}function pe(T,k,F,V,Z){Tt(k,V,Z),we(T,F)}function we(T,k){oi(T,k)&&bt(T),me(k,!0)}function qe(T,k){oi(T,k)&&(uo(xt(T)).stateVersions.clear(),me(k,!1))}function me(T,k){const F=O_.get(T);if(F!=null){for(const V of F)uE(V,uo(i));k&&O_.delete(T)}}function te(T,k){let F=O_.get(k);F==null&&O_.set(k,F=new Set),F.add(T)}function J(T,k,F,V,Z,se){return k.then(he=>{if(!ie())throw bt(T),Dm;const le=A3(he);return pe(T,F,Z,le,V),he}).catch(he=>{if(!ie())throw bt(T),Dm;if(so(he))return re(T,he,F,V,Z,se);const le=L_(he);throw pe(T,F,Z,le,V),he})}function re(T,k,F,V,Z,se){return k.then(he=>{if(!ie())throw bt(T),Dm;se.loadingDepKey!=null&&se.loadingDepPromise===k?F.atomValues.set(se.loadingDepKey,A3(he)):T.getState().knownSelectors.forEach(et=>{F.atomValues.delete(et)});const le=Ke(T,F);if(le&&le.state!=="loading"){if((oi(T,Z)||xt(T)==null)&&we(T,Z),le.state==="hasValue")return le.contents;throw le.contents}if(!oi(T,Z)){const et=Ge(T,F);if(et!=null)return et.loadingLoadable.contents}const[ve,He]=xe(T,F,Z);if(ve.state!=="loading"&&pe(T,F,Z,ve,He),ve.state==="hasError")throw ve.contents;return ve.contents}).catch(he=>{if(he instanceof hE)throw Dm;if(!ie())throw bt(T),Dm;const le=L_(he);throw pe(T,F,Z,le,V),he})}function Me(T,k,F,V){var Z,se,he,le;if(oi(T,V)||k.version===((Z=T.getState())===null||Z===void 0||(se=Z.currentTree)===null||se===void 0?void 0:se.version)||k.version===((he=T.getState())===null||he===void 0||(le=he.nextTree)===null||le===void 0?void 0:le.version)){var ve,He,et;oH(o,F,T,(ve=(He=T.getState())===null||He===void 0||(et=He.nextTree)===null||et===void 0?void 0:et.version)!==null&&ve!==void 0?ve:T.getState().currentTree.version)}for(const Ue of F)b.add(Ue)}function xe(T,k,F){const V=dH(o);let Z=!0,se=!0;const he=()=>{V(),se=!1};let le,ve=!1,He;const et={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Xe({key:rt}){const mt=z_(T,k,rt);switch(Ue.set(rt,mt),Z||(Me(T,k,new Set(Ue.keys()),F),qe(T,F)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw et.loadingDepKey=rt,et.loadingDepPromise=mt.contents,mt.contents}throw hr("Invalid Loadable state")}const Be=rt=>(...mt)=>{if(se)throw hr("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 i==null&&Tm(!1),hH(T,rt,mt,{node:i})};try{le=u({get:Xe,getCallback:Be}),le=cH(le)?Xe(le):le,tH(le)&&(le.state==="hasError"&&(ve=!0),le=le.contents),so(le)?le=J(T,le,k,Ue,F,et).finally(he):he(),le=le instanceof lE?le.value:le}catch(rt){le=rt,so(le)?le=re(T,le,k,Ue,F,et).finally(he):(ve=!0,he())}return ve?He=L_(le):so(le)?He=iH(le):He=A3(le),Z=!1,kt(T,F,Ue),Me(T,k,new Set(Ue.keys()),F),[He,Ue]}function Ke(T,k){let F=k.atomValues.get(o);if(F!=null)return F;const V=new Set;try{F=a.get(se=>(typeof se!="string"&&Tm(!1),z_(T,k,se).contents),{onNodeVisit:se=>{se.type==="branch"&&se.nodeKey!==o&&V.add(se.nodeKey)}})}catch(se){throw hr(`Problem with cache lookup for selector "${o}": ${se.message}`)}if(F){var Z;k.atomValues.set(o,F),Me(T,k,V,(Z=xt(T))===null||Z===void 0?void 0:Z.executionID)}return F}function st(T,k){const F=Ke(T,k);if(F!=null)return bt(T),F;const V=Ge(T,k);if(V!=null){var Z;return((Z=V.loadingLoadable)===null||Z===void 0?void 0:Z.state)==="loading"&&te(T,V.executionID),V.loadingLoadable}const se=fH(),[he,le]=xe(T,k,se);return he.state==="loading"?(dt(T,se,he,le,k),te(T,se)):(bt(T),Tt(k,he,le)),he}function Ge(T,k){const F=y6([j.has(T)?[uo(j.get(T))]:[],d_(u3(j,([Z])=>Z!==T),([,Z])=>Z)]);function V(Z){for(const[se,he]of Z)if(!z_(T,k,se).is(he))return!0;return!1}for(const Z of F){if(Z.stateVersions.get(k.version)||!V(Z.depValuesDiscoveredSoFarDuringAsyncWork))return Z.stateVersions.set(k.version,!0),Z;Z.stateVersions.set(k.version,!1)}}function xt(T){return j.get(T)}function dt(T,k,F,V,Z){j.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:V,executionID:k,loadingLoadable:F,stateVersions:new Map([[Z.version,!0]])})}function kt(T,k,F){if(oi(T,k)){const V=xt(T);V!=null&&(V.depValuesDiscoveredSoFarDuringAsyncWork=F)}}function bt(T){j.delete(T)}function oi(T,k){var F;return k===((F=xt(T))===null||F===void 0?void 0:F.executionID)}function At(T){return Array.from(T.entries()).map(([k,F])=>[k,F.contents])}function Tt(T,k,F){T.atomValues.set(o,k);try{a.set(At(F),k)}catch(V){throw hr(`Problem with setting cache for selector "${o}": ${V.message}`)}}function si(T){if(Sm.includes(o)){const k=`Recoil selector has circular dependencies: ${Sm.slice(Sm.indexOf(o)).join(" → ")}`;return L_(hr(k))}Sm.push(o);try{return T()}finally{Sm.pop()}}function Ot(T,k){const F=k.atomValues.get(o);return F??a.get(V=>{var Z;return typeof V!="string"&&Tm(!1),(Z=nH(T,k,V))===null||Z===void 0?void 0:Z.contents})}function Ht(T,k){return si(()=>st(T,k))}function W(T){T.atomValues.delete(o)}function ne(T,k){i==null&&Tm(!1);for(const V of b){var F;const Z=lH(V);(F=Z.clearCache)===null||F===void 0||F.call(Z,T,k)}b.clear(),W(k),a.clear(),uE(T,i)}return _!=null?i=cE({key:o,nodeType:"selector",peek:Ot,get:Ht,set:(k,F,V)=>{let Z=!1;const se=new Map;function he({key:et}){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Ue=z_(k,F,et);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Xe=`Getting value of asynchronous atom or selector "${et}" in a pending state while setting selector "${o}" is not yet supported.`;throw hr(Xe)}else throw Ue.contents}function le(et,Ue){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Xe=typeof Ue=="function"?Ue(he(et)):Ue;rH(k,F,et.key,Xe).forEach((rt,mt)=>se.set(mt,rt))}function ve(et){le(et,sH)}const He=_({set:le,get:he,reset:ve},V);if(He!==void 0)throw so(He)?hr("Recoil: Async selector sets are not currently supported."):hr("Recoil: selector set should be a void function.");return Z=!0,se},init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:ue,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E}):i=cE({key:o,nodeType:"selector",peek:Ot,get:Ht,init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:ue,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E})}dE.value=e=>new lE(e);var _f=dE;const{isLoadable:pH,loadableWithError:C3,loadableWithPromise:E3,loadableWithValue:vf}=pm,{WrappedValue:fE}=nE,{peekNodeInfo:gH}=_u,{DEFAULT_VALUE:Lh,DefaultValue:vu,getConfigDeletionHandler:pE,registerNode:mH,setConfigDeletionHandler:yH}=Ws,{isRecoilValue:_H}=pf,{getRecoilValueAsLoadable:vH,markRecoilValueModified:xH,setRecoilValue:gE,setRecoilValueLoadable:wH}=wl,{retainedByOptionWithDefault:bH}=Nh,Am=e=>e instanceof fE?e.value:e;function MH(e){const{key:i,persistence_UNSTABLE:o}=e,u=bH(e.retainedBy_UNSTABLE);let d=0;function _(te){return E3(te.then(J=>(b=vf(J),J)).catch(J=>{throw b=C3(J),J}))}let b=so(e.default)?_(e.default):pH(e.default)?e.default.state==="loading"?_(e.default.contents):e.default:vf(Am(e.default));b.contents;let a;const E=new Map;function j(te){return te}function Q(te,J){const re=J.then(Me=>{var xe,Ke;return((Ke=((xe=te.getState().nextTree)!==null&&xe!==void 0?xe:te.getState().currentTree).atomValues.get(i))===null||Ke===void 0?void 0:Ke.contents)===re&&gE(te,me,Me),Me}).catch(Me=>{var xe,Ke;throw((Ke=((xe=te.getState().nextTree)!==null&&xe!==void 0?xe:te.getState().currentTree).atomValues.get(i))===null||Ke===void 0?void 0:Ke.contents)===re&&wH(te,me,C3(Me)),Me});return re}function ie(te,J,re){var Me;d++;const xe=()=>{var xt;d--,(xt=E.get(te))===null||xt===void 0||xt.forEach(dt=>dt()),E.delete(te)};if(te.getState().knownAtoms.add(i),b.state==="loading"){const xt=()=>{var dt;((dt=te.getState().nextTree)!==null&&dt!==void 0?dt:te.getState().currentTree).atomValues.has(i)||xH(te,me)};b.contents.finally(xt)}const Ke=(Me=e.effects)!==null&&Me!==void 0?Me:e.effects_UNSTABLE;if(Ke!=null){let oi=function(W){if(dt&&W.key===i){const ne=xt;return ne instanceof vu?G(te,J):so(ne)?E3(ne.then(T=>T instanceof vu?b.toPromise():T)):vf(ne)}return vH(te,W)},At=function(W){return oi(W).toPromise()},Tt=function(W){var ne;const T=gH(te,(ne=te.getState().nextTree)!==null&&ne!==void 0?ne:te.getState().currentTree,W.key);return dt&&W.key===i&&!(xt instanceof vu)?{...T,isSet:!0,loadable:oi(W)}:T},xt=Lh,dt=!0,kt=!1,bt=null;const si=W=>ne=>{if(dt){const T=oi(me),k=T.state==="hasValue"?T.contents:Lh;xt=typeof ne=="function"?ne(k):ne,so(xt)&&(xt=xt.then(F=>(bt={effect:W,value:F},F)))}else{if(so(ne))throw hr("Setting atoms to async values is not implemented.");typeof ne!="function"&&(bt={effect:W,value:Am(ne)}),gE(te,me,typeof ne=="function"?T=>{const k=Am(ne(T));return bt={effect:W,value:k},k}:Am(ne))}},Ot=W=>()=>si(W)(Lh),Ht=W=>ne=>{var T;const{release:k}=te.subscribeToTransactions(F=>{var V;let{currentTree:Z,previousTree:se}=F.getState();se||(se=Z);const he=(V=Z.atomValues.get(i))!==null&&V!==void 0?V:b;if(he.state==="hasValue"){var le,ve,He,et;const Ue=he.contents,Xe=(le=se.atomValues.get(i))!==null&&le!==void 0?le:b,Be=Xe.state==="hasValue"?Xe.contents:Lh;((ve=bt)===null||ve===void 0?void 0:ve.effect)!==W||((He=bt)===null||He===void 0?void 0:He.value)!==Ue?ne(Ue,Be,!Z.atomValues.has(i)):((et=bt)===null||et===void 0?void 0:et.effect)===W&&(bt=null)}},i);E.set(te,[...(T=E.get(te))!==null&&T!==void 0?T:[],k])};for(const W of Ke)try{const ne=W({node:me,storeID:te.storeID,parentStoreID_UNSTABLE:te.parentStoreID,trigger:re,setSelf:si(W),resetSelf:Ot(W),onSet:Ht(W),getPromise:At,getLoadable:oi,getInfo_UNSTABLE:Tt});if(ne!=null){var st;E.set(te,[...(st=E.get(te))!==null&&st!==void 0?st:[],ne])}}catch(ne){xt=ne,kt=!0}if(dt=!1,!(xt instanceof vu)){var Ge;const W=kt?C3(xt):so(xt)?E3(Q(te,xt)):vf(Am(xt));W.contents,J.atomValues.set(i,W),(Ge=te.getState().nextTree)===null||Ge===void 0||Ge.atomValues.set(i,W)}}return xe}function G(te,J){var re,Me;return(re=(Me=J.atomValues.get(i))!==null&&Me!==void 0?Me:a)!==null&&re!==void 0?re:b}function ue(te,J){if(J.atomValues.has(i))return uo(J.atomValues.get(i));if(J.nonvalidatedAtoms.has(i)){if(a!=null)return a;if(o==null)return b;const re=J.nonvalidatedAtoms.get(i),Me=o.validator(re,Lh);return a=Me instanceof vu?b:vf(Me),a}else return b}function pe(){a=void 0}function we(te,J,re){if(J.atomValues.has(i)){const Me=uo(J.atomValues.get(i));if(Me.state==="hasValue"&&re===Me.contents)return new Map}else if(!J.nonvalidatedAtoms.has(i)&&re instanceof vu)return new Map;return a=void 0,new Map().set(i,vf(re))}function qe(){return pE(i)!==void 0&&d<=0}const me=mH({key:i,nodeType:"atom",peek:G,get:ue,set:we,init:ie,invalidate:pe,shouldDeleteConfigOnRelease:qe,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:u});return me}function N3(e){const{...i}=e,o="default"in e?e.default:new Promise(()=>{});return _H(o)?IH({...i,default:o}):MH({...i,default:o})}function IH(e){const i=N3({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:u=>u instanceof vu?u:uo(e.persistence_UNSTABLE).validator(u,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),o=_f({key:`${e.key}__withFallback`,get:({get:u})=>{const d=u(i);return d instanceof vu?e.default:d},set:({set:u},d)=>u(i,d),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yH(o.key,pE(e.key)),o}N3.value=e=>new fE(e);var mE=N3;class TH{constructor(i){var o;ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(o=i==null?void 0:i.mapKey)!==null&&o!==void 0?o:u=>u}size(){return this._map.size}has(i){return this._map.has(this._keyMapper(i))}get(i){return this._map.get(this._keyMapper(i))}set(i,o){this._map.set(this._keyMapper(i),o)}delete(i){this._map.delete(this._keyMapper(i))}clear(){this._map.clear()}}var DH={MapCache:TH},SH=DH.MapCache,AH=Object.freeze({__proto__:null,MapCache:SH});const{LRUCache:yE}=sE,{MapCache:CH}=AH,k_={equality:"reference",eviction:"none",maxSize:1/0};function EH({equality:e=k_.equality,eviction:i=k_.eviction,maxSize:o=k_.maxSize}=k_){const u=NH(e);return LH(i,o,u)}function NH(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function LH(e,i,o){switch(e){case"keep-all":return new CH({mapKey:o});case"lru":return new yE({mapKey:o,maxSize:uo(i)});case"most-recent":return new yE({mapKey:o,maxSize:1})}throw hr(`Unrecognized eviction policy ${e}`)}var _E=EH;const{setConfigDeletionHandler:zH}=Ws;function OH(e){var i,o;const u=_E({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _,b;const a=u.get(d);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:E,...j}=e,Q="default"in e?e.default:new Promise(()=>{}),ie=mE({...j,key:`${e.key}__${(_=E_(d))!==null&&_!==void 0?_:"void"}`,default:typeof Q=="function"?Q(d):Q,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(d):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(d):(b=e.effects)!==null&&b!==void 0?b:e.effects_UNSTABLE});return u.set(d,ie),zH(ie.key,()=>{u.delete(d)}),ie}}var kH=OH;const{setConfigDeletionHandler:jH}=Ws;let PH=0;function RH(e){var i,o;const u=_E({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _;let b;try{b=u.get(d)}catch(G){throw hr(`Problem with cache lookup for selector ${e.key}: ${G.message}`)}if(b!=null)return b;const a=`${e.key}__selectorFamily/${(_=E_(d,{allowFunctions:!0}))!==null&&_!==void 0?_:"void"}/${PH++}`,E=G=>e.get(d)(G),j=e.cachePolicy_UNSTABLE,Q=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE;let ie;if(e.set!=null){const G=e.set;ie=_f({key:a,get:E,set:(pe,we)=>G(d)(pe,we),cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q})}else ie=_f({key:a,get:E,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q});return u.set(d,ie),jH(ie.key,()=>{u.delete(d)}),ie}}var xu=RH;const BH=xu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function FH(e){return BH(e)}var UH=FH;const VH=xu({key:"__error",get:e=>()=>{throw hr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function QH(e){return VH(e)}var HH=QH;function $H(e){return e}var YH=$H;const{loadableWithError:vE,loadableWithPromise:xE,loadableWithValue:wE}=pm;function j_(e,i){const o=Array(i.length).fill(void 0),u=Array(i.length).fill(void 0);for(const[d,_]of i.entries())try{o[d]=e(_)}catch(b){u[d]=b}return[o,u]}function GH(e){return e!=null&&!so(e)}function P_(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])}function L3(e,i){return Array.isArray(e)?i:Object.getOwnPropertyNames(e).reduce((o,u,d)=>({...o,[u]:i[d]}),{})}function xf(e,i,o){const u=o.map((d,_)=>d==null?wE(i[_]):so(d)?xE(d):vE(d));return L3(e,u)}function ZH(e,i){return i.map((o,u)=>o===void 0?e[u]:o)}const WH=xu({key:"__waitForNone",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return xf(e,u,d)},dangerouslyAllowMutability:!0}),qH=xu({key:"__waitForAny",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.some(_=>!so(_))?xf(e,u,d):new Promise(_=>{for(const[b,a]of d.entries())so(a)&&a.then(E=>{u[b]=E,d[b]=void 0,_(xf(e,u,d))}).catch(E=>{d[b]=E,_(xf(e,u,d))})})},dangerouslyAllowMutability:!0}),KH=xu({key:"__waitForAll",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);if(d.every(b=>b==null))return L3(e,u);const _=d.find(GH);if(_!=null)throw _;return Promise.all(d).then(b=>L3(e,ZH(u,b)))},dangerouslyAllowMutability:!0}),XH=xu({key:"__waitForAllSettled",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.every(_=>!so(_))?xf(e,u,d):Promise.all(d.map((_,b)=>so(_)?_.then(a=>{u[b]=a,d[b]=void 0}).catch(a=>{u[b]=void 0,d[b]=a}):null)).then(()=>xf(e,u,d))},dangerouslyAllowMutability:!0}),JH=xu({key:"__noWait",get:e=>({get:i})=>{try{return _f.value(wE(i(e)))}catch(o){return _f.value(so(o)?xE(o):vE(o))}},dangerouslyAllowMutability:!0});var e$={waitForNone:WH,waitForAny:qH,waitForAll:KH,waitForAllSettled:XH,noWait:JH};const{RecoilLoadable:t$}=pm,{DefaultValue:i$}=Ws,{RecoilRoot:n$,useRecoilStoreID:r$}=pc,{isRecoilValue:o$}=pf,{retentionZone:s$}=m_,{freshSnapshot:a$}=M_,{useRecoilState:l$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:c$,useRecoilStateLoadable:u$,useRecoilValue:h$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilValueLoadable:f$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:p$,useResetRecoilState:g$,useSetRecoilState:m$}=DV,{useGotoRecoilSnapshot:y$,useRecoilSnapshot:_$,useRecoilTransactionObserver:v$}=q6,{useRecoilCallback:x$}=iE,{noWait:w$,waitForAll:b$,waitForAllSettled:M$,waitForAny:I$,waitForNone:T$}=e$;var wf={DefaultValue:i$,isRecoilValue:o$,RecoilLoadable:t$,RecoilEnv:ff,RecoilRoot:n$,useRecoilStoreID:r$,useRecoilBridgeAcrossReactRoots_UNSTABLE:JV,atom:mE,selector:_f,atomFamily:kH,selectorFamily:xu,constSelector:UH,errorSelector:HH,readOnlySelector:YH,noWait:w$,waitForNone:T$,waitForAny:I$,waitForAll:b$,waitForAllSettled:M$,useRecoilValue:h$,useRecoilValueLoadable:f$,useRecoilState:l$,useRecoilStateLoadable:u$,useSetRecoilState:m$,useResetRecoilState:g$,useGetRecoilValueInfo_UNSTABLE:GV,useRecoilRefresher_UNSTABLE:AQ,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:p$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:c$,useRecoilCallback:x$,useRecoilTransaction_UNSTABLE:zQ,useGotoRecoilSnapshot:y$,useRecoilSnapshot:_$,useRecoilTransactionObserver_UNSTABLE:v$,snapshot_UNSTABLE:a$,useRetain:w3,retentionZone:s$},D$=wf.RecoilRoot,On=wf.atom,R_=wf.selector,Oi=wf.useRecoilValue,on=wf.useRecoilState,Mo=wf.useResetRecoilState;const S$=(e,i)=>{const o=e[i];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((u,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+i)))})},A$="mi-components";let B_,bE,la=!1,z3=!1;const gc=(e,i="")=>()=>{},C$=(e,i)=>()=>{},E$="{visibility:hidden}.hydrated{visibility:inherit}",ME="http://www.w3.org/1999/xlink",IE={},N$="http://www.w3.org/2000/svg",L$="http://www.w3.org/1999/xhtml",z$=e=>e!=null,O3=e=>(e=typeof e,e==="object"||e==="function");function TE(e){var i,o,u;return(u=(o=(i=e.head)===null||i===void 0?void 0:i.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&u!==void 0?u:void 0}const Je=(e,i,...o)=>{let u=null,d=null,_=!1,b=!1;const a=[],E=Q=>{for(let ie=0;ie<Q.length;ie++)u=Q[ie],Array.isArray(u)?E(u):u!=null&&typeof u!="boolean"&&((_=typeof e!="function"&&!O3(u))&&(u=String(u)),_&&b?a[a.length-1].$text$+=u:a.push(_?k3(null,u):u),b=_)};if(E(o),i){i.key&&(d=i.key);{const Q=i.className||i.class;Q&&(i.class=typeof Q!="object"?Q:Object.keys(Q).filter(ie=>Q[ie]).join(" "))}}const j=k3(e,null);return j.$attrs$=i,a.length>0&&(j.$children$=a),j.$key$=d,j},k3=(e,i)=>{const o={$flags$:0,$tag$:e,$text$:i,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},ko={},O$=e=>e&&e.$tag$===ko,k$=(e,i)=>e!=null&&!O3(e)?i&4?e==="false"?!1:e===""||!!e:i&2?parseFloat(e):i&1?String(e):e:e,mc=e=>wu(e).$hostElement$,$r=(e,i,o)=>{const u=mc(e);return{emit:d=>DE(u,i,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:d})}},DE=(e,i,o)=>{const u=Ko.ce(i,o);return e.dispatchEvent(u),u},SE=new WeakMap,j$=(e,i,o)=>{let u=Q_.get(e);nY&&o?(u=u||new CSSStyleSheet,typeof u=="string"?u=i:u.replaceSync(i)):u=i,Q_.set(e,u)},P$=(e,i,o,u)=>{var d;let _=AE(i);const b=Q_.get(_);if(e=e.nodeType===11?e:Ml,b)if(typeof b=="string"){e=e.head||e;let a=SE.get(e),E;if(a||SE.set(e,a=new Set),!a.has(_)){{E=Ml.createElement("style"),E.innerHTML=b;const j=(d=Ko.$nonce$)!==null&&d!==void 0?d:TE(Ml);j!=null&&E.setAttribute("nonce",j),e.insertBefore(E,e.querySelector("link"))}a&&a.add(_)}}else e.adoptedStyleSheets.includes(b)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,b]);return _},R$=e=>{const i=e.$cmpMeta$,o=e.$hostElement$,u=i.$flags$,d=gc("attachStyles",i.$tagName$),_=P$(o.shadowRoot?o.shadowRoot:o.getRootNode(),i);u&10&&(o["s-sc"]=_,o.classList.add(_+"-h")),d()},AE=(e,i)=>"sc-"+e.$tagName$,CE=(e,i,o,u,d,_)=>{if(o!==u){let b=VE(e,i),a=i.toLowerCase();if(i==="class"){const E=e.classList,j=EE(o),Q=EE(u);E.remove(...j.filter(ie=>ie&&!Q.includes(ie))),E.add(...Q.filter(ie=>ie&&!j.includes(ie)))}else if(i==="style"){for(const E in o)(!u||u[E]==null)&&(E.includes("-")?e.style.removeProperty(E):e.style[E]="");for(const E in u)(!o||u[E]!==o[E])&&(E.includes("-")?e.style.setProperty(E,u[E]):e.style[E]=u[E])}else if(i!=="key")if(i==="ref")u&&u(e);else if(!b&&i[0]==="o"&&i[1]==="n")i[2]==="-"?i=i.slice(3):VE(Cm,a)?i=a.slice(2):i=a[2]+i.slice(3),o&&Ko.rel(e,i,o,!1),u&&Ko.ael(e,i,u,!1);else{const E=O3(u);if((b||E&&u!==null)&&!d)try{if(e.tagName.includes("-"))e[i]=u;else{const Q=u??"";i==="list"?b=!1:(o==null||e[i]!=Q)&&(e[i]=Q)}}catch{}let j=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(i=a,j=!0),u==null||u===!1?(u!==!1||e.getAttribute(i)==="")&&(j?e.removeAttributeNS(ME,i):e.removeAttribute(i)):(!b||_&4||d)&&!E&&(u=u===!0?"":u,j?e.setAttributeNS(ME,i,u):e.setAttribute(i,u))}}},B$=/\s/,EE=e=>e?e.split(B$):[],NE=(e,i,o,u)=>{const d=i.$elm$.nodeType===11&&i.$elm$.host?i.$elm$.host:i.$elm$,_=e&&e.$attrs$||IE,b=i.$attrs$||IE;for(u in _)u in b||CE(d,u,_[u],void 0,o,i.$flags$);for(u in b)CE(d,u,_[u],b[u],o,i.$flags$)},F_=(e,i,o,u)=>{const d=i.$children$[o];let _=0,b,a;if(d.$text$!==null)b=d.$elm$=Ml.createTextNode(d.$text$);else{if(la||(la=d.$tag$==="svg"),b=d.$elm$=Ml.createElementNS(la?N$:L$,d.$tag$),la&&d.$tag$==="foreignObject"&&(la=!1),NE(null,d,la),z$(B_)&&b["s-si"]!==B_&&b.classList.add(b["s-si"]=B_),d.$children$)for(_=0;_<d.$children$.length;++_)a=F_(e,d,_),a&&b.appendChild(a);d.$tag$==="svg"?la=!1:b.tagName==="foreignObject"&&(la=!0)}return b},LE=(e,i,o,u,d,_)=>{let b=e,a;for(b.shadowRoot&&b.tagName===bE&&(b=b.shadowRoot);d<=_;++d)u[d]&&(a=F_(null,o,d),a&&(u[d].$elm$=a,b.insertBefore(a,i)))},zE=(e,i,o,u,d)=>{for(;i<=o;++i)(u=e[i])&&(d=u.$elm$,OE(u),d.remove())},F$=(e,i,o,u)=>{let d=0,_=0,b=0,a=0,E=i.length-1,j=i[0],Q=i[E],ie=u.length-1,G=u[0],ue=u[ie],pe,we;for(;d<=E&&_<=ie;)if(j==null)j=i[++d];else if(Q==null)Q=i[--E];else if(G==null)G=u[++_];else if(ue==null)ue=u[--ie];else if(U_(j,G))bf(j,G),j=i[++d],G=u[++_];else if(U_(Q,ue))bf(Q,ue),Q=i[--E],ue=u[--ie];else if(U_(j,ue))bf(j,ue),e.insertBefore(j.$elm$,Q.$elm$.nextSibling),j=i[++d],ue=u[--ie];else if(U_(Q,G))bf(Q,G),e.insertBefore(Q.$elm$,j.$elm$),Q=i[--E],G=u[++_];else{for(b=-1,a=d;a<=E;++a)if(i[a]&&i[a].$key$!==null&&i[a].$key$===G.$key$){b=a;break}b>=0?(we=i[b],we.$tag$!==G.$tag$?pe=F_(i&&i[_],o,b):(bf(we,G),i[b]=void 0,pe=we.$elm$),G=u[++_]):(pe=F_(i&&i[_],o,_),G=u[++_]),pe&&j.$elm$.parentNode.insertBefore(pe,j.$elm$)}d>E?LE(e,u[ie+1]==null?null:u[ie+1].$elm$,o,u,_,ie):_>ie&&zE(i,d,E)},U_=(e,i)=>e.$tag$===i.$tag$?e.$key$===i.$key$:!1,bf=(e,i)=>{const o=i.$elm$=e.$elm$,u=e.$children$,d=i.$children$,_=i.$tag$,b=i.$text$;b===null?(la=_==="svg"?!0:_==="foreignObject"?!1:la,_==="slot"||NE(e,i,la),u!==null&&d!==null?F$(o,u,i,d):d!==null?(e.$text$!==null&&(o.textContent=""),LE(o,null,i,d,0,d.length-1)):u!==null&&zE(u,0,u.length-1),la&&_==="svg"&&(la=!1)):e.$text$!==b&&(o.data=b)},OE=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(OE)},U$=(e,i)=>{const o=e.$hostElement$,u=e.$cmpMeta$,d=e.$vnode$||k3(null,null),_=O$(i)?i:Je(null,null,i);bE=o.tagName,u.$attrsToReflect$&&(_.$attrs$=_.$attrs$||{},u.$attrsToReflect$.map(([b,a])=>_.$attrs$[a]=o[b])),_.$tag$=null,_.$flags$|=4,e.$vnode$=_,_.$elm$=d.$elm$=o.shadowRoot||o,B_=o["s-sc"],bf(d,_)},kE=(e,i)=>{i&&!e.$onRenderResolve$&&i["s-p"]&&i["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},V_=(e,i)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return kE(e,e.$ancestorComponent$),oY(()=>V$(e,i))},V$=(e,i)=>{const o=gc("scheduleUpdate",e.$cmpMeta$.$tagName$),u=e.$lazyInstance$;let d;return i&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([_,b])=>zh(u,_,b)),e.$queuedListeners$=null),d=zh(u,"componentWillLoad")),d=PE(d,()=>zh(u,"componentWillRender")),o(),PE(d,()=>Q$(e,u,i))},Q$=async(e,i,o)=>{const u=e.$hostElement$,d=gc("update",e.$cmpMeta$.$tagName$),_=u["s-rc"];o&&R$(e);const b=gc("render",e.$cmpMeta$.$tagName$);H$(e,i),_&&(_.map(a=>a()),u["s-rc"]=void 0),b(),d();{const a=u["s-p"],E=()=>$$(e);a.length===0?E():(Promise.all(a).then(E),e.$flags$|=4,a.length=0)}},H$=(e,i,o)=>{try{i=i.render&&i.render(),e.$flags$&=-17,e.$flags$|=2,U$(e,i)}catch(u){Oh(u,e.$hostElement$)}return null},$$=e=>{const i=e.$cmpMeta$.$tagName$,o=e.$hostElement$,u=gc("postUpdate",i),d=e.$lazyInstance$,_=e.$ancestorComponent$;zh(d,"componentDidRender"),e.$flags$&64?u():(e.$flags$|=64,RE(o),zh(d,"componentDidLoad"),u(),e.$onReadyResolve$(o),_||jE()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&B3(()=>V_(e,!1)),e.$flags$&=-517},j3=e=>{{const i=wu(e),o=i.$hostElement$.isConnected;return o&&(i.$flags$&18)===2&&V_(i,!1),o}},jE=e=>{RE(Ml.documentElement),B3(()=>DE(Cm,"appload",{detail:{namespace:A$}}))},zh=(e,i,o)=>{if(e&&e[i])try{return e[i](o)}catch(u){Oh(u)}},PE=(e,i)=>e&&e.then?e.then(i):i(),RE=e=>e.classList.add("hydrated"),Y$=(e,i)=>wu(e).$instanceValues$.get(i),G$=(e,i,o,u)=>{const d=wu(e),_=d.$hostElement$,b=d.$instanceValues$.get(i),a=d.$flags$,E=d.$lazyInstance$;o=k$(o,u.$members$[i][0]);const j=Number.isNaN(b)&&Number.isNaN(o),Q=o!==b&&!j;if((!(a&8)||b===void 0)&&Q&&(d.$instanceValues$.set(i,o),E)){if(u.$watchers$&&a&128){const ie=u.$watchers$[i];ie&&ie.map(G=>{try{E[G](o,b,i)}catch(ue){Oh(ue,_)}})}(a&18)===2&&V_(d,!1)}},BE=(e,i,o)=>{if(i.$members$){e.watchers&&(i.$watchers$=e.watchers);const u=Object.entries(i.$members$),d=e.prototype;if(u.map(([_,[b]])=>{b&31||o&2&&b&32?Object.defineProperty(d,_,{get(){return Y$(this,_)},set(a){G$(this,_,a,i)},configurable:!0,enumerable:!0}):o&1&&b&64&&Object.defineProperty(d,_,{value(...a){const E=wu(this);return E.$onInstancePromise$.then(()=>E.$lazyInstance$[_](...a))}})}),o&1){const _=new Map;d.attributeChangedCallback=function(b,a,E){Ko.jmp(()=>{const j=_.get(b);if(this.hasOwnProperty(j))E=this[j],delete this[j];else if(d.hasOwnProperty(j)&&typeof this[j]=="number"&&this[j]==E)return;this[j]=E===null&&typeof this[j]=="boolean"?!1:E})},e.observedAttributes=u.filter(([b,a])=>a[0]&15).map(([b,a])=>{const E=a[1]||b;return _.set(E,b),a[0]&512&&i.$attrsToReflect$.push([b,E]),E})}}return e},Z$=async(e,i,o,u,d)=>{if(!(i.$flags$&32)){{if(i.$flags$|=32,d=iY(o),d.then){const E=C$();d=await d,E()}d.isProxied||(o.$watchers$=d.watchers,BE(d,o,2),d.isProxied=!0);const a=gc("createInstance",o.$tagName$);i.$flags$|=8;try{new d(i)}catch(E){Oh(E)}i.$flags$&=-9,i.$flags$|=128,a(),FE(i.$lazyInstance$)}if(d.style){let a=d.style;const E=AE(o);if(!Q_.has(E)){const j=gc("registerStyles",o.$tagName$);j$(E,a,!!(o.$flags$&1)),j()}}}const _=i.$ancestorComponent$,b=()=>V_(i,!0);_&&_["s-rc"]?_["s-rc"].push(b):b()},FE=e=>{zh(e,"connectedCallback")},W$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$cmpMeta$,u=gc("connectedCallback",o.$tagName$);if(i.$flags$&1)UE(e,i,o.$listeners$),FE(i.$lazyInstance$);else{i.$flags$|=1;{let d=e;for(;d=d.parentNode||d.host;)if(d["s-p"]){kE(i,i.$ancestorComponent$=d);break}}o.$members$&&Object.entries(o.$members$).map(([d,[_]])=>{if(_&31&&e.hasOwnProperty(d)){const b=e[d];delete e[d],e[d]=b}}),Z$(e,i,o)}u()}},q$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$lazyInstance$;i.$rmListeners$&&(i.$rmListeners$.map(u=>u()),i.$rmListeners$=void 0),zh(o,"disconnectedCallback")}},K$=(e,i={})=>{var o;const u=gc(),d=[],_=i.exclude||[],b=Cm.customElements,a=Ml.head,E=a.querySelector("meta[charset]"),j=Ml.createElement("style"),Q=[];let ie,G=!0;Object.assign(Ko,i),Ko.$resourcesUrl$=new URL(i.resourcesUrl||"./",Ml.baseURI).href,e.map(ue=>{ue[1].map(pe=>{const we={$flags$:pe[0],$tagName$:pe[1],$members$:pe[2],$listeners$:pe[3]};we.$members$=pe[2],we.$listeners$=pe[3],we.$attrsToReflect$=[],we.$watchers$={};const qe=we.$tagName$,me=class extends HTMLElement{constructor(te){super(te),te=this,tY(te,we),we.$flags$&1&&te.attachShadow({mode:"open"})}connectedCallback(){ie&&(clearTimeout(ie),ie=null),G?Q.push(this):Ko.jmp(()=>W$(this))}disconnectedCallback(){Ko.jmp(()=>q$(this))}componentOnReady(){return wu(this).$onReadyPromise$}};we.$lazyBundleId$=ue[0],!_.includes(qe)&&!b.get(qe)&&(d.push(qe),b.define(qe,BE(me,we,1)))})});{j.innerHTML=d+E$,j.setAttribute("data-styles","");const ue=(o=Ko.$nonce$)!==null&&o!==void 0?o:TE(Ml);ue!=null&&j.setAttribute("nonce",ue),a.insertBefore(j,E?E.nextSibling:a.firstChild)}G=!1,Q.length?Q.map(ue=>ue.connectedCallback()):Ko.jmp(()=>ie=setTimeout(jE,30)),u()},UE=(e,i,o,u)=>{o&&o.map(([d,_,b])=>{const a=J$(e,d),E=X$(i,b),j=eY(d);Ko.ael(a,_,E,j),(i.$rmListeners$=i.$rmListeners$||[]).push(()=>Ko.rel(a,_,E,j))})},X$=(e,i)=>o=>{try{e.$flags$&256?e.$lazyInstance$[i](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([i,o])}catch(u){Oh(u)}},J$=(e,i)=>i&8?Cm:e,eY=e=>(e&2)!==0,P3=new WeakMap,wu=e=>P3.get(e),Ir=(e,i)=>P3.set(i.$lazyInstance$=e,i),tY=(e,i)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:i,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(u=>o.$onInstanceResolve$=u),o.$onReadyPromise$=new Promise(u=>o.$onReadyResolve$=u),e["s-p"]=[],e["s-rc"]=[],UE(e,o,i.$listeners$),P3.set(e,o)},VE=(e,i)=>i in e,Oh=(e,i)=>(0,console.error)(e,i),QE=new Map,iY=(e,i,o)=>{const u=e.$tagName$.replace(/-/g,"_"),d=e.$lazyBundleId$,_=QE.get(d);if(_)return _[u];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return S$(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>uq),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>fq),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>gq),"./mi-column.entry.js":()=>Promise.resolve().then(()=>mq),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>vq),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>Sq),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Eq),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>Nq),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Bq),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>Uq),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>Jq),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>tK),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>nK),"./mi-list.entry.js":()=>Promise.resolve().then(()=>oK),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Eie),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>Lie),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Bie),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>Qie),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>$ie),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>sne),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>lne),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>une),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>dne),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>pne),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>mne),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>_ne),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>xne),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>bne),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Sne),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Cne),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Nne),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>zne),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>One),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>jne),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Pne)}),`./${d}.entry.js`).then(b=>(QE.set(d,b),b[u]),Oh)},Q_=new Map,Cm=typeof window<"u"?window:{},Ml=Cm.document||{head:{}},Ko={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,i,o,u)=>e.addEventListener(i,o,u),rel:(e,i,o,u)=>e.removeEventListener(i,o,u),ce:(e,i)=>new CustomEvent(e,i)},HE=e=>Promise.resolve(e),nY=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),$E=[],YE=[],rY=(e,i)=>o=>{e.push(o),z3||(z3=!0,i&&Ko.$flags$&4?B3(R3):Ko.raf(R3))},GE=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(o){Oh(o)}e.length=0},R3=()=>{GE($E),GE(YE),(z3=$E.length>0)&&Ko.raf(R3)},B3=e=>HE().then(e),oY=rY(YE,!0),sY=()=>HE(),ZE=(e,i)=>typeof window>"u"?Promise.resolve():sY().then(()=>K$([["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"],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],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"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"],customPositionProvider:[16],positionState:[32],setPosition:[64],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"],updateScrollButtons:[64],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]}]]]],i)),aY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,i){console&&console[e]&&console[e].apply(console,i)}};class H_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(i,o)}init(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=i||aY,this.options=o,this.debug=o.debug}log(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"log","",!0)}warn(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","",!0)}error(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"error","")}deprecate(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,u,d){return d&&!this.debug?null:(typeof i[0]=="string"&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new H_(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new H_(this.logger,i)}}var Il=new H_;class $_{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(u=>{this.observers[u]=this.observers[u]||[],this.observers[u].push(o)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(u=>u!==o)}}emit(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];this.observers[i]&&[].concat(this.observers[i]).forEach(b=>{b(...u)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(b=>{b.apply(b,[i,...u])})}}function Em(){let e,i;const o=new Promise((u,d)=>{e=u,i=d});return o.resolve=e,o.reject=i,o}function WE(e){return e==null?"":""+e}function lY(e,i,o){e.forEach(u=>{i[u]&&(o[u]=i[u])})}function F3(e,i,o){function u(b){return b&&b.indexOf("###")>-1?b.replace(/###/g,"."):b}function d(){return!e||typeof e=="string"}const _=typeof i!="string"?[].concat(i):i.split(".");for(;_.length>1;){if(d())return{};const b=u(_.shift());!e[b]&&o&&(e[b]=new o),Object.prototype.hasOwnProperty.call(e,b)?e=e[b]:e={}}return d()?{}:{obj:e,k:u(_.shift())}}function qE(e,i,o){const{obj:u,k:d}=F3(e,i,Object);u[d]=o}function cY(e,i,o,u){const{obj:d,k:_}=F3(e,i,Object);d[_]=d[_]||[],u&&(d[_]=d[_].concat(o)),u||d[_].push(o)}function Y_(e,i){const{obj:o,k:u}=F3(e,i);if(o)return o[u]}function uY(e,i,o){const u=Y_(e,o);return u!==void 0?u:Y_(i,o)}function KE(e,i,o){for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in e?typeof e[u]=="string"||e[u]instanceof String||typeof i[u]=="string"||i[u]instanceof String?o&&(e[u]=i[u]):KE(e[u],i[u],o):e[u]=i[u]);return e}function Mf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var hY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function dY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,i=>hY[i]):e}const fY=[" ",",","?","!",";"];function pY(e,i,o){i=i||"",o=o||"";const u=fY.filter(b=>i.indexOf(b)<0&&o.indexOf(b)<0);if(u.length===0)return!0;const d=new RegExp(`(${u.map(b=>b==="?"?"\\?":b).join("|")})`);let _=!d.test(e);if(!_){const b=e.indexOf(o);b>0&&!d.test(e.substring(0,b))&&(_=!0)}return _}function G_(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[i])return e[i];const u=i.split(o);let d=e;for(let _=0;_<u.length;++_){if(!d||typeof d[u[_]]=="string"&&_+1<u.length)return;if(d[u[_]]===void 0){let b=2,a=u.slice(_,_+b).join(o),E=d[a];for(;E===void 0&&u.length>_+b;)b++,a=u.slice(_,_+b).join(o),E=d[a];if(E===void 0)return;if(E===null)return null;if(i.endsWith(a)){if(typeof E=="string")return E;if(a&&typeof E[a]=="string")return E[a]}const j=u.slice(_+b).join(o);return j?G_(E,j,o):void 0}d=d[u[_]]}return d}function Z_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class XE extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,b=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[i,o];u&&typeof u!="string"&&(a=a.concat(u)),u&&typeof u=="string"&&(a=a.concat(_?u.split(_):u)),i.indexOf(".")>-1&&(a=i.split("."));const E=Y_(this.data,a);return E||!b||typeof u!="string"?E:G_(this.data&&this.data[i]&&this.data[i][o],u,_)}addResource(i,o,u,d){let _=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const b=_.keySeparator!==void 0?_.keySeparator:this.options.keySeparator;let a=[i,o];u&&(a=a.concat(b?u.split(b):u)),i.indexOf(".")>-1&&(a=i.split("."),d=o,o=a[1]),this.addNamespaces(o),qE(this.data,a,d),_.silent||this.emit("added",i,o,u,d)}addResources(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _ in u)(typeof u[_]=="string"||Object.prototype.toString.apply(u[_])==="[object Array]")&&this.addResource(i,o,_,u[_],{silent:!0});d.silent||this.emit("added",i,o,u)}addResourceBundle(i,o,u,d,_){let b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[i,o];i.indexOf(".")>-1&&(a=i.split("."),d=u,u=o,o=a[1]),this.addNamespaces(o);let E=Y_(this.data,a)||{};d?KE(E,u,_):E={...E,...u},qE(this.data,a,E),b.silent||this.emit("added",i,o,u)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(i,o)}:this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(d=>o[d]&&Object.keys(o[d]).length>0)}toJSON(){return this.data}}var JE={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,i,o,u,d){return e.forEach(_=>{this.processors[_]&&(i=this.processors[_].process(i,o,u,d))}),i}};const eN={};class W_ extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),lY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Il.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;const u=this.resolve(i,o);return u&&u.res!==void 0}extractFromKey(i,o){let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let _=o.ns||this.options.defaultNS||[];const b=u&&i.indexOf(u)>-1,a=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!pY(i,u,d);if(b&&!a){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:_};const j=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(j[0])>-1)&&(_=j.shift()),i=j.join(d)}return typeof _=="string"&&(_=[_]),{key:i,namespaces:_}}translate(i,o,u){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,_=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:b,namespaces:a}=this.extractFromKey(i[i.length-1],o),E=a[a.length-1],j=o.lng||this.language,Q=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(j&&j.toLowerCase()==="cimode"){if(Q){const re=o.nsSeparator||this.options.nsSeparator;return d?{res:`${E}${re}${b}`,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:`${E}${re}${b}`}return d?{res:b,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:b}const ie=this.resolve(i,o);let G=ie&&ie.res;const ue=ie&&ie.usedKey||b,pe=ie&&ie.exactUsedKey||b,we=Object.prototype.toString.apply(G),qe=["[object Number]","[object Function]","[object RegExp]"],me=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject;if(te&&G&&(typeof G!="string"&&typeof G!="boolean"&&typeof G!="number")&&qe.indexOf(we)<0&&!(typeof me=="string"&&we==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(ue,G,{...o,ns:a}):`key '${b} (${this.language})' returned an object instead of string.`;return d?(ie.res=re,ie.usedParams=this.getUsedParamsDetails(o),ie):re}if(_){const re=we==="[object Array]",Me=re?[]:{},xe=re?pe:ue;for(const Ke in G)if(Object.prototype.hasOwnProperty.call(G,Ke)){const st=`${xe}${_}${Ke}`;Me[Ke]=this.translate(st,{...o,joinArrays:!1,ns:a}),Me[Ke]===st&&(Me[Ke]=G[Ke])}G=Me}}else if(te&&typeof me=="string"&&we==="[object Array]")G=G.join(me),G&&(G=this.extendTranslation(G,i,o,u));else{let re=!1,Me=!1;const xe=o.count!==void 0&&typeof o.count!="string",Ke=W_.hasDefaultValue(o),st=xe?this.pluralResolver.getSuffix(j,o.count,o):"",Ge=o.ordinal&&xe?this.pluralResolver.getSuffix(j,o.count,{ordinal:!1}):"",xt=o[`defaultValue${st}`]||o[`defaultValue${Ge}`]||o.defaultValue;!this.isValidLookup(G)&&Ke&&(re=!0,G=xt),this.isValidLookup(G)||(Me=!0,G=b);const kt=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Me?void 0:G,bt=Ke&&xt!==G&&this.options.updateMissing;if(Me||re||bt){if(this.logger.log(bt?"updateKey":"missingKey",j,E,b,bt?xt:G),_){const si=this.resolve(b,{...o,keySeparator:!1});si&&si.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 oi=[];const At=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&At&&At[0])for(let si=0;si<At.length;si++)oi.push(At[si]);else this.options.saveMissingTo==="all"?oi=this.languageUtils.toResolveHierarchy(o.lng||this.language):oi.push(o.lng||this.language);const Tt=(si,Ot,Ht)=>{const W=Ke&&Ht!==G?Ht:kt;this.options.missingKeyHandler?this.options.missingKeyHandler(si,E,Ot,W,bt,o):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(si,E,Ot,W,bt,o),this.emit("missingKey",si,E,Ot,G)};this.options.saveMissing&&(this.options.saveMissingPlurals&&xe?oi.forEach(si=>{this.pluralResolver.getSuffixes(si,o).forEach(Ot=>{Tt([si],b+Ot,o[`defaultValue${Ot}`]||xt)})}):Tt(oi,b,xt))}G=this.extendTranslation(G,i,o,ie,u),Me&&G===b&&this.options.appendNamespaceToMissingKey&&(G=`${E}:${b}`),(Me||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?G=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}:${b}`:b,re?G:void 0):G=this.options.parseMissingKeyHandler(G))}return d?(ie.res=G,ie.usedParams=this.getUsedParamsDetails(o),ie):G}extendTranslation(i,o,u,d,_){var b=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const j=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Q;if(j){const G=i.match(this.interpolator.nestingRegexp);Q=G&&G.length}let ie=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(ie={...this.options.interpolation.defaultVariables,...ie}),i=this.interpolator.interpolate(i,ie,u.lng||this.language,u),j){const G=i.match(this.interpolator.nestingRegexp),ue=G&&G.length;Q<ue&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(u.lng=d.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var G=arguments.length,ue=new Array(G),pe=0;pe<G;pe++)ue[pe]=arguments[pe];return _&&_[0]===ue[0]&&!u.context?(b.logger.warn(`It seems you are nesting recursively key: ${ue[0]} in key: ${o[0]}`),null):b.translate(...ue,o)},u)),u.interpolation&&this.interpolator.reset()}const a=u.postProcess||this.options.postProcess,E=typeof a=="string"?[a]:a;return i!=null&&E&&E.length&&u.applyPostProcessor!==!1&&(i=JE.handle(E,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,d,_,b,a;return typeof i=="string"&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const j=this.extractFromKey(E,o),Q=j.key;d=Q;let ie=j.namespaces;this.options.fallbackNS&&(ie=ie.concat(this.options.fallbackNS));const G=o.count!==void 0&&typeof o.count!="string",ue=G&&!o.ordinal&&o.count===0&&this.pluralResolver.shouldUseIntlApi(),pe=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",we=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);ie.forEach(qe=>{this.isValidLookup(u)||(a=qe,!eN[`${we[0]}-${qe}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(eN[`${we[0]}-${qe}`]=!0,this.logger.warn(`key "${d}" for languages "${we.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!!!")),we.forEach(me=>{if(this.isValidLookup(u))return;b=me;const te=[Q];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(te,Q,me,qe,o);else{let re;G&&(re=this.pluralResolver.getSuffix(me,o.count,o));const Me=`${this.options.pluralSeparator}zero`,xe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(G&&(te.push(Q+re),o.ordinal&&re.indexOf(xe)===0&&te.push(Q+re.replace(xe,this.options.pluralSeparator)),ue&&te.push(Q+Me)),pe){const Ke=`${Q}${this.options.contextSeparator}${o.context}`;te.push(Ke),G&&(te.push(Ke+re),o.ordinal&&re.indexOf(xe)===0&&te.push(Ke+re.replace(xe,this.options.pluralSeparator)),ue&&te.push(Ke+Me))}}let J;for(;J=te.pop();)this.isValidLookup(u)||(_=J,u=this.getResource(me,qe,J,o))}))})}),{res:u,usedKey:d,exactUsedKey:_,usedLng:b,usedNS:a}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,d):this.resourceStore.getResource(i,o,u,d)}getUsedParamsDetails(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&typeof i.replace!="string";let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const _ of o)delete d[_]}return d}static hasDefaultValue(i){const o="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}function U3(e){return e.charAt(0).toUpperCase()+e.slice(1)}class tN{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Il.create("languageUtils")}getScriptPartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(typeof i=="string"&&i.indexOf("-")>-1){const o=["hans","hant","latn","cyrl","cans","mong","arab"];let u=i.split("-");return this.options.lowerCaseLng?u=u.map(d=>d.toLowerCase()):u.length===2?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=U3(u[1].toLowerCase()))):u.length===3&&(u[0]=u[0].toLowerCase(),u[1].length===2&&(u[1]=u[1].toUpperCase()),u[0]!=="sgn"&&u[2].length===2&&(u[2]=u[2].toUpperCase()),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=U3(u[1].toLowerCase())),o.indexOf(u[2].toLowerCase())>-1&&(u[2]=U3(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(u=>{if(o)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(o=d)}),!o&&this.options.supportedLngs&&i.forEach(u=>{if(o)return;const d=this.getLanguagePartFromCode(u);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(_=>{if(_===d)return _;if(!(_.indexOf("-")<0&&d.indexOf("-")<0)&&_.indexOf(d)===0)return _})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!o)return i.default||[];let u=i[o];return u||(u=i[this.getScriptPartFromCode(o)]),u||(u=i[this.formatLanguageCode(o)]),u||(u=i[this.getLanguagePartFromCode(o)]),u||(u=i.default),u||[]}toResolveHierarchy(i,o){const u=this.getFallbackCodes(o||this.options.fallbackLng||[],i),d=[],_=b=>{b&&(this.isSupportedCode(b)?d.push(b):this.logger.warn(`rejecting language code not found in supportedLngs: ${b}`))};return typeof i=="string"&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&_(this.getLanguagePartFromCode(i))):typeof i=="string"&&_(this.formatLanguageCode(i)),u.forEach(b=>{d.indexOf(b)<0&&_(this.formatLanguageCode(b))}),d}}let gY=[{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}],mY={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 yY=["v1","v2","v3"],_Y=["v4"],iN={zero:0,one:1,two:2,few:3,many:4,other:5};function vY(){const e={};return gY.forEach(i=>{i.lngs.forEach(o=>{e[o]={numbers:i.nr,plurals:mY[i.fc]}})}),e}class xY{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=i,this.options=o,this.logger=Il.create("pluralResolver"),(!this.options.compatibilityJSON||_Y.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=vY()}addRule(i,o){this.rules[i]=o}getRule(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Z_(i),{type:o.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}needsPlural(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(i,u).map(d=>`${o}${d}`)}getSuffixes(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((d,_)=>iN[d]-iN[_]).map(d=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${d}`):u.numbers.map(d=>this.getSuffix(i,d,o)):[]}getSuffix(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=this.getRule(i,u);return d?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(o)}`:this.getSuffixRetroCompatible(d,o):(this.logger.warn(`no plural rule found for: ${i}`),"")}getSuffixRetroCompatible(i,o){const u=i.noAbs?i.plurals(o):i.plurals(Math.abs(o));let d=i.numbers[u];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(d===2?d="plural":d===1&&(d=""));const _=()=>this.options.prepend&&d.toString()?this.options.prepend+d.toString():d.toString();return this.options.compatibilityJSON==="v1"?d===1?"":typeof d=="number"?`_plural_${d.toString()}`:_():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?_():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!yY.includes(this.options.compatibilityJSON)}}function nN(e,i,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_=uY(e,i,o);return!_&&d&&typeof o=="string"&&(_=G_(e,o,u),_===void 0&&(_=G_(i,o,u))),_}class wY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("interpolator"),this.options=i,this.format=i.interpolation&&i.interpolation.format||(o=>o),this.init(i)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});const o=i.interpolation;this.escape=o.escape!==void 0?o.escape:dY,this.escapeValue=o.escapeValue!==void 0?o.escapeValue:!0,this.useRawValueToEscape=o.useRawValueToEscape!==void 0?o.useRawValueToEscape:!1,this.prefix=o.prefix?Mf(o.prefix):o.prefixEscaped||"{{",this.suffix=o.suffix?Mf(o.suffix):o.suffixEscaped||"}}",this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||",",this.unescapePrefix=o.unescapeSuffix?"":o.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":o.unescapeSuffix||"",this.nestingPrefix=o.nestingPrefix?Mf(o.nestingPrefix):o.nestingPrefixEscaped||Mf("$t("),this.nestingSuffix=o.nestingSuffix?Mf(o.nestingSuffix):o.nestingSuffixEscaped||Mf(")"),this.nestingOptionsSeparator=o.nestingOptionsSeparator?o.nestingOptionsSeparator:o.nestingOptionsSeparator||",",this.maxReplaces=o.maxReplaces?o.maxReplaces:1e3,this.alwaysFormat=o.alwaysFormat!==void 0?o.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(i,"g");const o=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(o,"g");const u=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(u,"g")}interpolate(i,o,u,d){let _,b,a;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(pe){return pe.replace(/\$/g,"$$$$")}const Q=pe=>{if(pe.indexOf(this.formatSeparator)<0){const te=nN(o,E,pe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(te,void 0,u,{...d,...o,interpolationkey:pe}):te}const we=pe.split(this.formatSeparator),qe=we.shift().trim(),me=we.join(this.formatSeparator).trim();return this.format(nN(o,E,qe,this.options.keySeparator,this.options.ignoreJSONStructure),me,u,{...d,...o,interpolationkey:qe})};this.resetRegExp();const ie=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,G=d&&d.interpolation&&d.interpolation.skipOnVariables!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:pe=>j(pe)},{regex:this.regexp,safeValue:pe=>this.escapeValue?j(this.escape(pe)):j(pe)}].forEach(pe=>{for(a=0;_=pe.regex.exec(i);){const we=_[1].trim();if(b=Q(we),b===void 0)if(typeof ie=="function"){const me=ie(i,_,d);b=typeof me=="string"?me:""}else if(d&&Object.prototype.hasOwnProperty.call(d,we))b="";else if(G){b=_[0];continue}else this.logger.warn(`missed to pass in variable ${we} for interpolating ${i}`),b="";else typeof b!="string"&&!this.useRawValueToEscape&&(b=WE(b));const qe=pe.safeValue(b);if(i=i.replace(_[0],qe),G?(pe.regex.lastIndex+=b.length,pe.regex.lastIndex-=_[0].length):pe.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),i}nest(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,_,b;function a(E,j){const Q=this.nestingOptionsSeparator;if(E.indexOf(Q)<0)return E;const ie=E.split(new RegExp(`${Q}[ ]*{`));let G=`{${ie[1]}`;E=ie[0],G=this.interpolate(G,b);const ue=G.match(/'/g),pe=G.match(/"/g);(ue&&ue.length%2===0&&!pe||pe.length%2!==0)&&(G=G.replace(/'/g,'"'));try{b=JSON.parse(G),j&&(b={...j,...b})}catch(we){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,we),`${E}${Q}${G}`}return delete b.defaultValue,E}for(;d=this.nestingRegexp.exec(i);){let E=[];b={...u},b=b.replace&&typeof b.replace!="string"?b.replace:b,b.applyPostProcessor=!1,delete b.defaultValue;let j=!1;if(d[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(d[1])){const Q=d[1].split(this.formatSeparator).map(ie=>ie.trim());d[1]=Q.shift(),E=Q,j=!0}if(_=o(a.call(this,d[1].trim(),b),b),_&&d[0]===i&&typeof _!="string")return _;typeof _!="string"&&(_=WE(_)),_||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),_=""),j&&(_=E.reduce((Q,ie)=>this.format(Q,ie,u.lng,{...u,interpolationkey:d[1].trim()}),_.trim())),i=i.replace(d[0],_),this.regexp.lastIndex=0}return i}}function bY(e){let i=e.toLowerCase().trim();const o={};if(e.indexOf("(")>-1){const u=e.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?o.currency||(o.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?o.range||(o.range=d.trim()):d.split(";").forEach(b=>{if(!b)return;const[a,...E]=b.split(":"),j=E.join(":").trim().replace(/^'+|'+$/g,"");o[a.trim()]||(o[a.trim()]=j),j==="false"&&(o[a.trim()]=!1),j==="true"&&(o[a.trim()]=!0),isNaN(j)||(o[a.trim()]=parseInt(j,10))})}return{formatName:i,formatOptions:o}}function If(e){const i={};return function(u,d,_){const b=d+JSON.stringify(_);let a=i[b];return a||(a=e(Z_(d),_),i[b]=a),a(u)}}class MY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("formatter"),this.options=i,this.formats={number:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u});return _=>d.format(_)}),currency:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u,style:"currency"});return _=>d.format(_)}),datetime:If((o,u)=>{const d=new Intl.DateTimeFormat(o,{...u});return _=>d.format(_)}),relativetime:If((o,u)=>{const d=new Intl.RelativeTimeFormat(o,{...u});return _=>d.format(_,u.range||"day")}),list:If((o,u)=>{const d=new Intl.ListFormat(o,{...u});return _=>d.format(_)})},this.init(i)}init(i){const u=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=u.formatSeparator?u.formatSeparator:u.formatSeparator||","}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=If(o)}format(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return o.split(this.formatSeparator).reduce((a,E)=>{const{formatName:j,formatOptions:Q}=bY(E);if(this.formats[j]){let ie=a;try{const G=d&&d.formatParams&&d.formatParams[d.interpolationkey]||{},ue=G.locale||G.lng||d.locale||d.lng||u;ie=this.formats[j](a,ue,{...Q,...d,...G})}catch(G){this.logger.warn(G)}return ie}else this.logger.warn(`there was no format function for ${j}`);return a},i)}}function IY(e,i){e.pending[i]!==void 0&&(delete e.pending[i],e.pendingCount--)}class TY extends $_{constructor(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=i,this.store=o,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=Il.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,d.backend,d)}queueLoad(i,o,u,d){const _={},b={},a={},E={};return i.forEach(j=>{let Q=!0;o.forEach(ie=>{const G=`${j}|${ie}`;!u.reload&&this.store.hasResourceBundle(j,ie)?this.state[G]=2:this.state[G]<0||(this.state[G]===1?b[G]===void 0&&(b[G]=!0):(this.state[G]=1,Q=!1,b[G]===void 0&&(b[G]=!0),_[G]===void 0&&(_[G]=!0),E[ie]===void 0&&(E[ie]=!0)))}),Q||(a[j]=!0)}),(Object.keys(_).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(_),pending:Object.keys(b),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(E)}}loaded(i,o,u){const d=i.split("|"),_=d[0],b=d[1];o&&this.emit("failedLoading",_,b,o),u&&this.store.addResourceBundle(_,b,u),this.state[i]=o?-1:2;const a={};this.queue.forEach(E=>{cY(E.loaded,[_],b),IY(E,i),o&&E.errors.push(o),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(j=>{a[j]||(a[j]={});const Q=E.loaded[j];Q.length&&Q.forEach(ie=>{a[j][ie]===void 0&&(a[j][ie]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(E=>!E.done)}read(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,b=arguments.length>5?arguments[5]:void 0;if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:d,wait:_,callback:b});return}this.readingCalls++;const a=(j,Q)=>{if(this.readingCalls--,this.waitingReads.length>0){const ie=this.waitingReads.shift();this.read(ie.lng,ie.ns,ie.fcName,ie.tried,ie.wait,ie.callback)}if(j&&Q&&d<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,u,d+1,_*2,b)},_);return}b(j,Q)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const j=E(i,o);j&&typeof j.then=="function"?j.then(Q=>a(null,Q)).catch(a):a(null,j)}catch(j){a(j)}return}return E(i,o,a)}prepareLoading(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=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."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);const _=this.queueLoad(i,o,u,d);if(!_.toLoad.length)return _.pending.length||d(),null;_.toLoad.forEach(b=>{this.loadOne(b)})}load(i,o,u){this.prepareLoading(i,o,{},u)}reload(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}loadOne(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=i.split("|"),d=u[0],_=u[1];this.read(d,_,"read",void 0,void 0,(b,a)=>{b&&this.logger.warn(`${o}loading namespace ${_} for language ${d} failed`,b),!b&&a&&this.logger.log(`${o}loaded namespace ${_} for language ${d}`,a),this.loaded(i,b,a)})}saveMissing(i,o,u,d,_){let b=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(o)){this.logger.warn(`did not save key "${u}" as the namespace "${o}" 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(!(u==null||u==="")){if(this.backend&&this.backend.create){const E={...b,isUpdate:_},j=this.backend.create.bind(this.backend);if(j.length<6)try{let Q;j.length===5?Q=j(i,o,u,d,E):Q=j(i,o,u,d),Q&&typeof Q.then=="function"?Q.then(ie=>a(null,ie)).catch(a):a(null,Q)}catch(Q){a(Q)}else j(i,o,u,d,a,E)}!i||!i[0]||this.store.addResource(i[0],o,u,d)}}}function rN(){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(i){let o={};if(typeof i[1]=="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(d=>{o[d]=u[d]})}return o},interpolation:{escapeValue:!0,format:(e,i,o,u)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oN(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 q_(){}function DY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})}class Nm extends $_{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oN(i),this.services={},this.logger=Il,this.modules={external:[]},DY(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initImmediate)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(){var i=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const d=rN();this.options={...d,...this.options,...oN(o)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...d.interpolation,...this.options.interpolation}),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function _(Q){return Q?typeof Q=="function"?new Q:Q:null}if(!this.options.isClone){this.modules.logger?Il.init(_(this.modules.logger),this.options):Il.init(null,this.options);let Q;this.modules.formatter?Q=this.modules.formatter:typeof Intl<"u"&&(Q=MY);const ie=new tN(this.options);this.store=new XE(this.options.resources,this.options);const G=this.services;G.logger=Il,G.resourceStore=this.store,G.languageUtils=ie,G.pluralResolver=new xY(ie,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Q&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(G.formatter=_(Q),G.formatter.init(G,this.options),this.options.interpolation.format=G.formatter.format.bind(G.formatter)),G.interpolator=new wY(this.options),G.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},G.backendConnector=new TY(_(this.modules.backend),G.resourceStore,G,this.options),G.backendConnector.on("*",function(ue){for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),qe=1;qe<pe;qe++)we[qe-1]=arguments[qe];i.emit(ue,...we)}),this.modules.languageDetector&&(G.languageDetector=_(this.modules.languageDetector),G.languageDetector.init&&G.languageDetector.init(G,this.options.detection,this.options)),this.modules.i18nFormat&&(G.i18nFormat=_(this.modules.i18nFormat),G.i18nFormat.init&&G.i18nFormat.init(this)),this.translator=new W_(this.services,this.options),this.translator.on("*",function(ue){for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),qe=1;qe<pe;qe++)we[qe-1]=arguments[qe];i.emit(ue,...we)}),this.modules.external.forEach(ue=>{ue.init&&ue.init(this)})}if(this.format=this.options.interpolation.format,u||(u=q_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Q=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Q.length>0&&Q[0]!=="dev"&&(this.options.lng=Q[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(Q=>{this[Q]=function(){return i.store[Q](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Q=>{this[Q]=function(){return i.store[Q](...arguments),i}});const E=Em(),j=()=>{const Q=(ie,G)=>{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),E.resolve(G),u(ie,G)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return Q(null,this.t.bind(this));this.changeLanguage(this.options.lng,Q)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),E}loadResources(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const _=[],b=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(j=>{j!=="cimode"&&_.indexOf(j)<0&&_.push(j)})};d?b(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>b(E)),this.options.preload&&this.options.preload.forEach(a=>b(a)),this.services.backendConnector.load(_,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(a)})}else u(null)}reloadResources(i,o,u){const d=Em();return i||(i=this.languages),o||(o=this.options.ns),u||(u=q_),this.services.backendConnector.reload(i,o,_=>{d.resolve(),u(_)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&JE.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(let o=0;o<this.languages.length;o++){const u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(i,o){var u=this;this.isLanguageChangingTo=i;const d=Em();this.emit("languageChanging",i);const _=E=>{this.language=E,this.languages=this.services.languageUtils.toResolveHierarchy(E),this.resolvedLanguage=void 0,this.setResolvedLanguage(E)},b=(E,j)=>{j?(_(j),this.translator.changeLanguage(j),this.isLanguageChangingTo=void 0,this.emit("languageChanged",j),this.logger.log("languageChanged",j)):this.isLanguageChangingTo=void 0,d.resolve(function(){return u.t(...arguments)}),o&&o(E,function(){return u.t(...arguments)})},a=E=>{!i&&!E&&this.services.languageDetector&&(E=[]);const j=typeof E=="string"?E:this.services.languageUtils.getBestMatchFromCodes(E);j&&(this.language||_(j),this.translator.language||this.translator.changeLanguage(j),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(j)),this.loadResources(j,Q=>{b(Q,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!i&&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(i),d}getFixedT(i,o,u){var d=this;const _=function(b,a){let E;if(typeof a!="object"){for(var j=arguments.length,Q=new Array(j>2?j-2:0),ie=2;ie<j;ie++)Q[ie-2]=arguments[ie];E=d.options.overloadTranslationOptionHandler([b,a].concat(Q))}else E={...a};E.lng=E.lng||_.lng,E.lngs=E.lngs||_.lngs,E.ns=E.ns||_.ns,E.keyPrefix=E.keyPrefix||u||_.keyPrefix;const G=d.options.keySeparator||".";let ue;return E.keyPrefix&&Array.isArray(b)?ue=b.map(pe=>`${E.keyPrefix}${G}${pe}`):ue=E.keyPrefix?`${E.keyPrefix}${G}${b}`:b,d.t(ue,E)};return typeof i=="string"?_.lng=i:_.lngs=i,_.ns=o,_.keyPrefix=u,_}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i){let o=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 u=o.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,_=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=this.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};if(o.precheck){const a=o.precheck(this,b);if(a!==void 0)return a}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(u,i)&&(!d||b(_,i)))}loadNamespaces(i,o){const u=Em();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}loadLanguages(i,o){const u=Em();typeof i=="string"&&(i=[i]);const d=this.options.preload||[],_=i.filter(b=>d.indexOf(b)<0);return _.length?(this.options.preload=d.concat(_),this.loadResources(b=>{u.resolve(),o&&o(b)}),u):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";const o=["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"],u=this.services&&this.services.languageUtils||new tN(rN());return o.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new Nm(i,o)}cloneInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},_=new Nm(d);return(i.debug!==void 0||i.prefix!==void 0)&&(_.logger=_.logger.clone(i)),["store","services","language"].forEach(a=>{_[a]=this[a]}),_.services={...this.services},_.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},u&&(_.store=new XE(this.store.data,d),_.services.resourceStore=_.store),_.translator=new W_(_.services,d),_.translator.on("*",function(a){for(var E=arguments.length,j=new Array(E>1?E-1:0),Q=1;Q<E;Q++)j[Q-1]=arguments[Q];_.emit(a,...j)}),_.init(d,o),_.translator.options=d,_.translator.backendConnector.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},_}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jo=Nm.createInstance();jo.createInstance=Nm.createInstance,jo.createInstance,jo.dir,jo.init,jo.loadResources,jo.reloadResources,jo.use,jo.changeLanguage,jo.getFixedT;const sN=jo.t;jo.exists,jo.setDefaultNamespace,jo.hasLoadedNamespace,jo.loadNamespaces,jo.loadLanguages;function V3(){return V3=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)({}).hasOwnProperty.call(o,u)&&(e[u]=o[u])}return e},V3.apply(null,arguments)}function SY(){if(console&&console.warn){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i)}}const aN={};function Q3(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&aN[i[0]]||(typeof i[0]=="string"&&(aN[i[0]]=new Date),SY(...i))}const lN=(e,i)=>()=>{if(e.isInitialized)i();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),i()};e.on("initialized",o)}};function cN(e,i,o){e.loadNamespaces(i,lN(e,o))}function uN(e,i,o,u){typeof o=="string"&&(o=[o]),o.forEach(d=>{e.options.ns.indexOf(d)<0&&e.options.ns.push(d)}),e.loadLanguages(i,lN(e,u))}function AY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=i.languages[0],d=i.options?i.options.fallbackLng:!1,_=i.languages[i.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=i.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!b(i.isLanguageChangingTo,e)?!1:!!(i.hasResourceBundle(u,e)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||b(u,e)&&(!d||b(_,e)))}function CY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!i.languages||!i.languages.length?(Q3("i18n.languages were undefined or empty",i.languages),!0):i.options.ignoreJSONStructure!==void 0?i.hasLoadedNamespace(e,{lng:o.lng,precheck:(d,_)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&d.services.backendConnector.backend&&d.isLanguageChangingTo&&!_(d.isLanguageChangingTo,e))return!1}}):AY(e,i,o)}const EY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},LY=e=>NY[e];let H3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(EY,LY)};function zY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};H3={...H3,...e}}function OY(){return H3}let hN;function kY(e){hN=e}function jY(){return hN}const PY={type:"3rdParty",init(e){zY(e.options.react),kY(e)}},RY=be.createContext();class BY{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const FY=(e,i)=>{const o=be.useRef();return be.useEffect(()=>{o.current=i?o.current:e},[e,i]),o.current};function cs(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=i,{i18n:u,defaultNS:d}=be.useContext(RY)||{},_=o||u||jY();if(_&&!_.reportNamespaces&&(_.reportNamespaces=new BY),!_){Q3("You will need to pass in an i18next instance by using initReactI18next");const J=(Me,xe)=>typeof xe=="string"?xe:xe&&typeof xe=="object"&&typeof xe.defaultValue=="string"?xe.defaultValue:Array.isArray(Me)?Me[Me.length-1]:Me,re=[J,{},!1];return re.t=J,re.i18n={},re.ready=!1,re}_.options.react&&_.options.react.wait!==void 0&&Q3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const b={...OY(),..._.options.react,...i},{useSuspense:a,keyPrefix:E}=b;let j=e||d||_.options&&_.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"],_.reportNamespaces.addUsedNamespaces&&_.reportNamespaces.addUsedNamespaces(j);const Q=(_.isInitialized||_.initializedStoreOnce)&&j.every(J=>CY(J,_,b));function ie(){return _.getFixedT(i.lng||null,b.nsMode==="fallback"?j:j[0],E)}const[G,ue]=be.useState(ie);let pe=j.join();i.lng&&(pe=`${i.lng}${pe}`);const we=FY(pe),qe=be.useRef(!0);be.useEffect(()=>{const{bindI18n:J,bindI18nStore:re}=b;qe.current=!0,!Q&&!a&&(i.lng?uN(_,i.lng,j,()=>{qe.current&&ue(ie)}):cN(_,j,()=>{qe.current&&ue(ie)})),Q&&we&&we!==pe&&qe.current&&ue(ie);function Me(){qe.current&&ue(ie)}return J&&_&&_.on(J,Me),re&&_&&_.store.on(re,Me),()=>{qe.current=!1,J&&_&&J.split(" ").forEach(xe=>_.off(xe,Me)),re&&_&&re.split(" ").forEach(xe=>_.store.off(xe,Me))}},[_,pe]);const me=be.useRef(!0);be.useEffect(()=>{qe.current&&!me.current&&ue(ie),me.current=!1},[_,E]);const te=[G,_,Q];if(te.t=G,te.i18n=_,te.ready=Q,Q||!Q&&!a)return te;throw new Promise(J=>{i.lng?uN(_,i.lng,j,()=>J()):cN(_,j,()=>J())})}const UY={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","Avoid stairs and escalators":"Avoid stairs and escalators","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",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",Share:"Share","Copy link":"Copy link","QR Code":"QR Code",Open:"Open",Closed:"Closed","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language"},VY={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","Avoid stairs and escalators":"Undgå trapper og rulletrapper","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",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",Share:"Del","Copy link":"Kopiér link","QR Code":"QR-kode",Open:"Åben",Closed:"Lukket","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog"},QY={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Nach Name, Kategorie, Gebäude suchen...","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":"Beschreibung öffnen",Locations:"Locations","Directions not available":"Wegbeschreibung nicht verfügbar","Start directions":"Starte Wegbeschreibung",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:"Verlassen Sie das",Enter:"Gehe Sie 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","Avoid stairs and escalators":"Treppen und Rolltreppen vermeiden","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Los!",Directions:"Wegbeschreibung","Choose departure":"Startpunkt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Standort wählen",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",Share:"Teilen","Copy link":"Link kopieren","QR Code":"QR code",Open:"Geöffnet",Closed:"Geschlossen","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen"},HY={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","Avoid stairs and escalators":"Éviter les escaliers et les escalators","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",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",Share:"Partager","Copy link":"Copier le lien","QR Code":"Code QR",Open:"Ouvert",Closed:"Fermé","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue"},$Y={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso",Share:"Condividi","Copy link":"Copia il collegamento","QR Code":"Codice QR",Open:"Aperto",Closed:"Chiuso","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua"},YY={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta",Share:"Compartir","Copy link":"Copiar link","QR Code":"Código QR",Open:"Abierto",Closed:"Cerrado","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma"},GY={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien ",Share:"Deel","Copy link":"Link kopiëren","QR Code":"QR code",Open:"Open",Closed:"Gesloten","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal"},ZY={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","Nothing was found":"未找到任何结果",d:"天",h:"小时",min:"分钟",Walk:"步行",Bike:"骑车",Transit:"公交",Drive:"驾车","Start wayfinding":"开始导航","Read full description":"查看完整描述",Locations:"位置","Directions not available":"导航不可用","Start directions":"开始导航",Previous:"上一步",Next:"下一步",StepYofX:"第 {{activeStep}} 步,共 {{totalSteps}} 步","You have arrived":"您已到达",Leave:"离开",Park:"停车",at:"在",Building:"建筑",Venue:"场所","Take staircase to level":"走楼梯到","Take the ladder to level":"走梯子到","Take elevator to level":"乘电梯到","Take escalator to level":"乘扶梯到","Take wheelchair lift to level":"乘轮椅升降机到","Take wheelchair ramp to level":"走轮椅坡道到",Exit:"离开",Enter:"进入",stops:"站","and continue":"然后继续","Continue straight ahead":"直行","Go left":"向左","Go sharp left":"急转左","Go slight left":"稍向左","Go right":"向右","Go sharp right":"急转右","Go slight right":"稍向右","Turn around":"掉头",Switch:"切换","Avoid stairs and escalators":"避开楼梯和扶梯","No route found":"未找到路线","My position":"我的位置","Go!":"出发!",Directions:"导航","Choose departure":"选择出发地","Choose destination":"选择目的地",Venues:"场所","Select venue":"选择场所",Current:"当前","Scan QR code":"扫描二维码","Scan the QR code to see the route on your phone":"扫描二维码在手机上查看路线",Done:"完成","Cancel route":"取消路线","Finish route":"完成路线",Share:"分享","Copy link":"复制链接","QR Code":"二维码",Open:"营业中",Closed:"已关闭","Go to view":"定位到","Select language":"选择语言"};function WY(e){jo.use(PY).init({resources:{en:{translation:UY},da:{translation:VY},de:{translation:QY},fr:{translation:HY},it:{translation:$Y},es:{translation:YY},nl:{translation:GY},zh:{translation:ZY}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const dN=[{code:"en",label:"English"},{code:"da",label:"Dansk"},{code:"de",label:"Deutsch"},{code:"fr",label:"Français"},{code:"it",label:"Italiano"},{code:"es",label:"Español"},{code:"nl",label:"Nederlands"},{code:"zh",label:"中文"}],zae="",Tf={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var fN={exports:{}},qY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",KY=qY,XY=KY;function pN(){}function gN(){}gN.resetWarningCache=pN;var JY=function(){function e(u,d,_,b,a,E){if(E!==XY){var j=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 j.name="Invariant Violation",j}}e.isRequired=e;function i(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:i,element:e,elementType:e,instanceOf:i,node:e,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:gN,resetWarningCache:pN};return o.PropTypes=o,o};fN.exports=JY();var eG=fN.exports;const ht=nc(eG),Oae="",tG=e=>{const[i,o]=be.useState(!1);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},$3=()=>tG("(min-width: 992px)");class iG{constructor(i={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:o=20}=i;this._maxAccuracy=o}get currentPosition(){return this._currentPosition}hasValidPosition(){const i=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=i}on(i,o){this._listeners.has(i)||this._listeners.set(i,[]),this._listeners.get(i).push(o)}off(i,o){const u=this._listeners.get(i);u&&this._listeners.set(i,u.filter(d=>d!==o))}setPosition(i){let o;if(i.coords&&i.timestamp)o={coords:{latitude:i.coords.latitude,longitude:i.coords.longitude,accuracy:i.coords.accuracy,altitude:i.coords.altitude??null,altitudeAccuracy:i.coords.altitudeAccuracy??null,heading:i.coords.heading??null,speed:i.coords.speed??null},timestamp:i.timestamp,floorIndex:i.floorIndex??null};else{const d={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:i};return this.emitError(d),!1}return o.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${o.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=o,(this._listeners.get("position_received")||[]).forEach(d=>{d.call(null,{position:o})}),!0)}emitError(i){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",i),(this._listeners.get("position_error")||[]).forEach(u=>{u.call(null,i)})}}mN.propTypes={mapType:ht.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:ht.object.isRequired,mapInstance:ht.object.isRequired,onPositionControl:ht.func,brandingColor:ht.string,devicePosition:ht.object};function mN({mapType:e,mapsIndoorsInstance:i,mapInstance:o,onPositionControl:u,brandingColor:d,devicePosition:_}){const b=$3(),a=be.useRef(null),E=be.useRef(null),j=Pe.jsx("div",{className:"venue-selector-portal"},"venue-selector"),Q=Pe.jsx("div",{className:"floor-selector-portal"},"floor-selector"),ie=Pe.jsx("div",{className:"my-position-element-portal"},"my-position"),G=Pe.jsx("div",{className:"viewmode-switch-portal"},"viewmode-switch"),ue=Pe.jsx("div",{className:"view-selector-portal"},"view-selector"),pe=Pe.jsx("div",{className:"language-selector-portal"},"language-selector"),we=Pe.jsx("div",{className:"reset-view-portal"},"reset-view"),qe=me=>{if(E.current.customPositionProvider.setPosition(me)&&(E.current.watchPosition(),me.floorIndex&&i)){const te=i.getFloor(),J=parseInt(me.floorIndex,10);J!==te&&i.setFloor(J)}};return be.useEffect(()=>{if(!(!i||!o)){if(!a.current){const me=document.createElement("mi-floor-selector");a.current=me}if(!E.current){const me=document.createElement("mi-my-position");E.current=me}a.current.mapsindoors=i,E.current.mapsindoors=i,d&&(a.current.primaryColor=d),u&&E.current&&u(E.current)}},[e,i,o,u,d]),be.useEffect(()=>{if(E.current){if(E.current.stopListeningForPosition&&typeof E.current.stopListeningForPosition=="function"&&E.current.stopListeningForPosition(),_&&typeof _=="object"){if(E.current.customPositionProvider||(E.current.customPositionProvider=new iG),Object.keys(_).length===0)return;qe(_)}return()=>{E.current&&E.current.stopListeningForPosition&&typeof E.current.stopListeningForPosition=="function"&&E.current.stopListeningForPosition()}}},[_]),be.useEffect(()=>{if(!a.current||!E.current)return;const me=(te,J)=>{const re=document.querySelector(`.${J}`);re&&!re.contains(te)&&(te.remove(),re.appendChild(te))};me(a.current,"floor-selector-portal"),me(E.current,"my-position-element-portal")},[b]),b?Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-container desktop top-right",children:[j,ue,pe,G,ie,Q]}),Pe.jsx("div",{className:"map-controls-container desktop bottom-right",children:we})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-left-column mobile-column",children:[j,G,ue,pe]}),Pe.jsxs("div",{className:"map-controls-right-column mobile-column",children:[ie,Q]})]})}const kae="",nG=be.lazy(()=>Promise.resolve().then(()=>Qne)),rG=be.lazy(()=>Promise.resolve().then(()=>Zne)),Df={Google:"google",Mapbox:"mapbox"};yN.propTypes={apiKey:ht.string.isRequired,gmApiKey:ht.string,mapboxAccessToken:ht.string,center:ht.object,zoom:ht.number,bounds:ht.object,bearing:ht.number,pitch:ht.number,resetUICounter:ht.number,mapOptions:ht.object,onInitialized:ht.func,gmMapId:ht.string,devicePosition:ht.object};function yN({apiKey:e,gmApiKey:i,mapboxAccessToken:o,center:u,zoom:d,bounds:_,bearing:b,pitch:a,resetUICounter:E,mapOptions:j,onInitialized:Q,gmMapId:ie,devicePosition:G}){const[ue,pe]=be.useState(),[we,qe]=be.useState(),[me,te]=be.useState(),[J,re]=be.useState(),[Me,xe]=be.useState(),[Ke,st]=be.useState(),[Ge,xt]=be.useState();be.useEffect(()=>{window.customElements.get("mi-floor-selector")||ZE()},[]),be.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),ue===Df.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(kt=>{xe(kt)}),window.mapsindoors.services.AppConfigService.getConfig().then(kt=>{st(kt)})))},[e,ue]);const dt=kt=>{xt(kt);const bt=new window.mapsindoors.MapsIndoors({mapView:kt});bt.once("building_changed",oi=>{const At=bt.getVenue();oi&&At&&oi.venueId!==At.id&&bt.setVenue(oi.venueId)}),bt.on("mouseenter",()=>{var At;const oi=bt.getHoveredLocation();((At=oi==null?void 0:oi.properties.locationSettings)==null?void 0:At.selectable)===!1&&bt.unhoverLocation()}),bt.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),qe(bt)};return be.useEffect(()=>{typeof Q=="function"&&we&&me&&typeof J=="boolean"&&Q(we,me,J)},[we,me,J]),be.useEffect(()=>{Me&&ue===Df.Mapbox&&["mapbox","3dwalls","floorplan"].every(kt=>Me.modules.map(bt=>bt.toLowerCase()).includes(kt))?re(!0):re(!1)},[Me,ue]),be.useEffect(()=>{o?pe(Df.Mapbox):i&&pe(Df.Google)},[i,o]),Pe.jsxs(Pe.Fragment,{children:[ue===Df.Google&&Pe.jsx(be.Suspense,{children:Pe.jsx(rG,{mapsIndoorsInstance:we,apiKey:i,onInitialized:dt,center:u,zoom:d,mapOptions:j,heading:b,tilt:a,bounds:_,gmMapId:ie})}),ue===Df.Mapbox&&Pe.jsx(be.Suspense,{children:Pe.jsx(nG,{mapsIndoorsInstance:we,accessToken:o,onInitialized:dt,center:u,zoom:d,mapOptions:j,bearing:b,pitch:a,bounds:_,resetViewMode:E,viewModeSwitchVisible:J,appConfig:Ke})}),we&&Ge&&ue&&Pe.jsx(mN,{mapType:ue,mapsIndoorsInstance:we,mapInstance:Ge,onPositionControl:te,brandingColor:j==null?void 0:j.brandingColor,devicePosition:G})]})}const us={Google:"google",Mapbox:"mapbox"},ca=On({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),oG=e=>{const i=Oi(ca),o=be.useRef(),[u,d]=be.useState([]);be.useEffect(()=>{(async()=>{if(i&&e){for(const a of u)o.current.disableLiveData(a);o.current=new window.mapsindoors.LiveDataManager(i);const b=await o.current.LiveDataInfo.activeDomainTypes();for(const a of b)await o.current.enableLiveData(a);d(b)}})()},[e,i])},K_=On({key:"userPosition",default:null}),Y3=On({key:"directionsService",default:null}),X_=On({key:"mapType",default:void 0}),G3=On({key:"apiKey",default:null}),Z3=On({key:"gmApiKey",default:null}),J_=On({key:"mapboxAccessToken",default:null}),ev=On({key:"filteredLocations",default:void 0}),tv=On({key:"filteredLocationsByExternalID",default:void 0}),_N=On({key:"tileStyle",default:null}),vN=On({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),W3=On({key:"bearing",default:0}),iv=On({key:"pitch",default:null}),xN=On({key:"solution",default:null,dangerouslyAllowMutability:!0}),Lm=On({key:"notificationMessage",default:null});function zm(){return new Promise(e=>{const i=document.querySelector(".modal--open"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-(i==null?void 0:i.offsetTop));else{const u=new MutationObserver(()=>{const d=document.querySelector(".modal--open");d&&(u.disconnect(),e(o.offsetHeight-(d==null?void 0:d.offsetTop)))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Om=On({key:"categories",default:[]}),q3=On({key:"kioskOriginLocationId",default:void 0}),nv=On({key:"locationId",default:void 0}),wN=On({key:"startZoomLevel",default:null}),bu=On({key:"currentVenueName",default:null}),km=On({key:"venues",default:[]}),K3=On({key:"venueWasSelected",default:!1}),rv=On({key:"isMapReady",default:!1});function Sf(){return new Promise(e=>{const i=document.querySelector(".sheet--active"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-i.offsetTop);else{const u=new MutationObserver(()=>{const d=document.querySelector(".sheet--active");d&&(u.disconnect(),e(o.offsetHeight-d.offsetTop))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function kh(){return new Promise(e=>{const i=document.querySelector(".modal--open");if(i)e((i==null?void 0:i.offsetWidth)+(i==null?void 0:i.offsetLeft)*2);else{const o=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(o.disconnect(),e((u==null?void 0:u.offsetWidth)+(u==null?void 0:u.offsetLeft)*2))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const bN=On({key:"timeout",default:void 0});function MN(){const[e,i]=be.useState(!1),o=Oi(rv),u=Oi(bN);return be.useEffect(()=>{if(!o||!u)return;let d;const _=()=>{i(!1),window.clearTimeout(d),d=window.setTimeout(b,u*1e3)},b=()=>{i(!0)};return d=window.setTimeout(b,u*1e3),window.addEventListener("mousemove",_),window.addEventListener("mousedown",_),window.addEventListener("resize",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),window.addEventListener("wheel",_),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mousedown",_),window.removeEventListener("resize",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_),window.removeEventListener("wheel",_),window.clearTimeout(d)}},[u,o]),e}const sG=e=>{const[i,o]=be.useState(window.matchMedia(e).matches);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Ja=()=>sG("(min-width: 992px)"),IN=On({key:"mapboxViewMode",default:null}),X3=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),aG=R_({key:"currentPitch",get:({get:e})=>{const i=e(iv),o=e(IN);let u;switch(o){case X3.initial3D:u=i??45;break;case X3.clicked3D:u=45;break;case X3.clicked2D:u=0;break;default:u=i}return u}}),TN=On({key:"center",default:null});function kr(e){return e==null}var xs=63710088e-1,J3={centimeters:xs*100,centimetres:xs*100,degrees:xs/111325,feet:xs*3.28084,inches:xs*39.37,kilometers:xs/1e3,kilometres:xs/1e3,meters:xs,metres:xs,miles:xs/1609.344,millimeters:xs*1e3,millimetres:xs*1e3,nauticalmiles:xs/1852,radians:1,yards:xs*1.0936},lG={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/xs,yards:1.0936133},e4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Na(e,i,o){o===void 0&&(o={});var u={type:"Feature"};return(o.id===0||o.id)&&(u.id=o.id),o.bbox&&(u.bbox=o.bbox),u.properties=i||{},u.geometry=e,u}function cG(e,i,o){switch(e){case"Point":return el(i).geometry;case"LineString":return tl(i).geometry;case"Polygon":return t4(i).geometry;case"MultiPoint":return DN(i).geometry;case"MultiLineString":return i4(i).geometry;case"MultiPolygon":return SN(i).geometry;default:throw new Error(e+" is invalid")}}function el(e,i,o){if(o===void 0&&(o={}),!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(!ov(e[0])||!ov(e[1]))throw new Error("coordinates must contain numbers");var u={type:"Point",coordinates:e};return Na(u,i,o)}function uG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return el(u,i)}),o)}function t4(e,i,o){o===void 0&&(o={});for(var u=0,d=e;u<d.length;u++){var _=d[u];if(_.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var b=0;b<_[_.length-1].length;b++)if(_[_.length-1][b]!==_[0][b])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return Na(a,i,o)}function hG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return t4(u,i)}),o)}function tl(e,i,o){if(o===void 0&&(o={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var u={type:"LineString",coordinates:e};return Na(u,i,o)}function dG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return tl(u,i)}),o)}function Mu(e,i){i===void 0&&(i={});var o={type:"FeatureCollection"};return i.id&&(o.id=i.id),i.bbox&&(o.bbox=i.bbox),o.features=e,o}function i4(e,i,o){o===void 0&&(o={});var u={type:"MultiLineString",coordinates:e};return Na(u,i,o)}function DN(e,i,o){o===void 0&&(o={});var u={type:"MultiPoint",coordinates:e};return Na(u,i,o)}function SN(e,i,o){o===void 0&&(o={});var u={type:"MultiPolygon",coordinates:e};return Na(u,i,o)}function fG(e,i,o){o===void 0&&(o={});var u={type:"GeometryCollection",geometries:e};return Na(u,i,o)}function pG(e,i){if(i===void 0&&(i=0),i&&!(i>=0))throw new Error("precision must be a positive number");var o=Math.pow(10,i||0);return Math.round(e*o)/o}function AN(e,i){i===void 0&&(i="kilometers");var o=J3[i];if(!o)throw new Error(i+" units is invalid");return e*o}function n4(e,i){i===void 0&&(i="kilometers");var o=J3[i];if(!o)throw new Error(i+" units is invalid");return e/o}function gG(e,i){return CN(n4(e,i))}function mG(e){var i=e%360;return i<0&&(i+=360),i}function CN(e){var i=e%(2*Math.PI);return i*180/Math.PI}function yG(e){var i=e%360;return i*Math.PI/180}function _G(e,i,o){if(i===void 0&&(i="kilometers"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("length must be a positive number");return AN(n4(e,i),o)}function vG(e,i,o){if(i===void 0&&(i="meters"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("area must be a positive number");var u=e4[i];if(!u)throw new Error("invalid original units");var d=e4[o];if(!d)throw new Error("invalid final units");return e/u*d}function ov(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function r4(e){return!!e&&e.constructor===Object}function xG(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(i){if(!ov(i))throw new Error("bbox must only contain numbers")})}function wG(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}const bG=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:e4,bearingToAzimuth:mG,convertArea:vG,convertLength:_G,degreesToRadians:yG,earthRadius:xs,factors:J3,feature:Na,featureCollection:Mu,geometry:cG,geometryCollection:fG,isNumber:ov,isObject:r4,lengthToDegrees:gG,lengthToRadians:n4,lineString:tl,lineStrings:dG,multiLineString:i4,multiPoint:DN,multiPolygon:SN,point:el,points:uG,polygon:t4,polygons:hG,radiansToDegrees:CN,radiansToLength:AN,round:pG,unitsFactors:lG,validateBBox:xG,validateId:wG},Symbol.toStringTag,{value:"Module"}));function Af(e,i,o){if(e!==null)for(var u,d,_,b,a,E,j,Q=0,ie=0,G,ue=e.type,pe=ue==="FeatureCollection",we=ue==="Feature",qe=pe?e.features.length:1,me=0;me<qe;me++){j=pe?e.features[me].geometry:we?e.geometry:e,G=j?j.type==="GeometryCollection":!1,a=G?j.geometries.length:1;for(var te=0;te<a;te++){var J=0,re=0;if(b=G?j.geometries[te]:j,b!==null){E=b.coordinates;var Me=b.type;switch(Q=o&&(Me==="Polygon"||Me==="MultiPolygon")?1:0,Me){case null:break;case"Point":if(i(E,ie,me,J,re)===!1)return!1;ie++,J++;break;case"LineString":case"MultiPoint":for(u=0;u<E.length;u++){if(i(E[u],ie,me,J,re)===!1)return!1;ie++,Me==="MultiPoint"&&J++}Me==="LineString"&&J++;break;case"Polygon":case"MultiLineString":for(u=0;u<E.length;u++){for(d=0;d<E[u].length-Q;d++){if(i(E[u][d],ie,me,J,re)===!1)return!1;ie++}Me==="MultiLineString"&&J++,Me==="Polygon"&&re++}Me==="Polygon"&&J++;break;case"MultiPolygon":for(u=0;u<E.length;u++){for(re=0,d=0;d<E[u].length;d++){for(_=0;_<E[u][d].length-Q;_++){if(i(E[u][d][_],ie,me,J,re)===!1)return!1;ie++}re++}J++}break;case"GeometryCollection":for(u=0;u<b.geometries.length;u++)if(Af(b.geometries[u],i,o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function MG(e,i,o,u){var d=o;return Af(e,function(_,b,a,E,j){b===0&&o===void 0?d=_:d=i(d,_,b,a,E,j)},u),d}function EN(e,i){var o;switch(e.type){case"FeatureCollection":for(o=0;o<e.features.length&&i(e.features[o].properties,o)!==!1;o++);break;case"Feature":i(e.properties,0);break}}function IG(e,i,o){var u=o;return EN(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function sv(e,i){if(e.type==="Feature")i(e,0);else if(e.type==="FeatureCollection")for(var o=0;o<e.features.length&&i(e.features[o],o)!==!1;o++);}function TG(e,i,o){var u=o;return sv(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function DG(e){var i=[];return Af(e,function(o){i.push(o)}),i}function o4(e,i){var o,u,d,_,b,a,E,j,Q,ie,G=0,ue=e.type==="FeatureCollection",pe=e.type==="Feature",we=ue?e.features.length:1;for(o=0;o<we;o++){for(a=ue?e.features[o].geometry:pe?e.geometry:e,j=ue?e.features[o].properties:pe?e.properties:{},Q=ue?e.features[o].bbox:pe?e.bbox:void 0,ie=ue?e.features[o].id:pe?e.id:void 0,E=a?a.type==="GeometryCollection":!1,b=E?a.geometries.length:1,d=0;d<b;d++){if(_=E?a.geometries[d]:a,_===null){if(i(null,G,j,Q,ie)===!1)return!1;continue}switch(_.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(_,G,j,Q,ie)===!1)return!1;break}case"GeometryCollection":{for(u=0;u<_.geometries.length;u++)if(i(_.geometries[u],G,j,Q,ie)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}G++}}function SG(e,i,o){var u=o;return o4(e,function(d,_,b,a,E){_===0&&o===void 0?u=d:u=i(u,d,_,b,a,E)}),u}function yc(e,i){o4(e,function(o,u,d,_,b){var a=o===null?null:o.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return i(Na(o,d,{bbox:_,id:b}),u,0)===!1?!1:void 0}var E;switch(a){case"MultiPoint":E="Point";break;case"MultiLineString":E="LineString";break;case"MultiPolygon":E="Polygon";break}for(var j=0;j<o.coordinates.length;j++){var Q=o.coordinates[j],ie={type:E,coordinates:Q};if(i(Na(ie,d),u,j)===!1)return!1}})}function AG(e,i,o){var u=o;return yc(e,function(d,_,b){_===0&&b===0&&o===void 0?u=d:u=i(u,d,_,b)}),u}function NN(e,i){yc(e,function(o,u,d){var _=0;if(o.geometry){var b=o.geometry.type;if(!(b==="Point"||b==="MultiPoint")){var a,E=0,j=0,Q=0;if(Af(o,function(ie,G,ue,pe,we){if(a===void 0||u>E||pe>j||we>Q){a=ie,E=u,j=pe,Q=we,_=0;return}var qe=tl([a,ie],o.properties);if(i(qe,u,d,we,_)===!1)return!1;_++,a=ie})===!1)return!1}}})}function CG(e,i,o){var u=o,d=!1;return NN(e,function(_,b,a,E,j){d===!1&&o===void 0?u=_:u=i(u,_,b,a,E,j),d=!0}),u}function LN(e,i){if(!e)throw new Error("geojson is required");yc(e,function(o,u,d){if(o.geometry!==null){var _=o.geometry.type,b=o.geometry.coordinates;switch(_){case"LineString":if(i(o,u,d,0,0)===!1)return!1;break;case"Polygon":for(var a=0;a<b.length;a++)if(i(tl(b[a],o.properties),u,d,a)===!1)return!1;break}}})}function EG(e,i,o){var u=o;return LN(e,function(d,_,b,a){_===0&&o===void 0?u=d:u=i(u,d,_,b,a)}),u}function NG(e,i){if(i=i||{},!r4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.segmentIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":case"MultiPoint":return null;case"LineString":return _<0&&(_=E.length+_-1),tl([E[_],E[_+1]],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_-1),tl([E[d][_],E[d][_+1]],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_-1),tl([E[u][_],E[u][_+1]],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_-1),tl([E[u][d][_],E[u][d][_+1]],b,i)}throw new Error("geojson is invalid")}function LG(e,i){if(i=i||{},!r4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.coordIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":return el(E,b,i);case"MultiPoint":return u<0&&(u=E.length+u),el(E[u],b,i);case"LineString":return _<0&&(_=E.length+_),el(E[_],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_),el(E[d][_],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_),el(E[u][_],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_),el(E[u][d][_],b,i)}throw new Error("geojson is invalid")}const zG=Object.freeze(Object.defineProperty({__proto__:null,coordAll:DG,coordEach:Af,coordReduce:MG,featureEach:sv,featureReduce:TG,findPoint:LG,findSegment:NG,flattenEach:yc,flattenReduce:AG,geomEach:o4,geomReduce:SG,lineEach:LN,lineReduce:EG,propEach:EN,propReduce:IG,segmentEach:NN,segmentReduce:CG},Symbol.toStringTag,{value:"Module"}));function av(e){var i=[1/0,1/0,-1/0,-1/0];return Af(e,function(o){i[0]>o[0]&&(i[0]=o[0]),i[1]>o[1]&&(i[1]=o[1]),i[2]<o[0]&&(i[2]=o[0]),i[3]<o[1]&&(i[3]=o[1])}),i}av.default=av;const OG=Object.freeze(Object.defineProperty({__proto__:null,default:av},Symbol.toStringTag,{value:"Module"}));function kG(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 jm(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function lv(e){return e.type==="Feature"?e.geometry:e}function Pm(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("point is required");if(!i)throw new Error("polygon is required");var u=kG(e),d=lv(i),_=d.type,b=i.bbox,a=d.coordinates;if(b&&jG(u,b)===!1)return!1;_==="Polygon"&&(a=[a]);for(var E=!1,j=0;j<a.length&&!E;j++)if(zN(u,a[j][0],o.ignoreBoundary)){for(var Q=!1,ie=1;ie<a[j].length&&!Q;)zN(u,a[j][ie],!o.ignoreBoundary)&&(Q=!0),ie++;Q||(E=!0)}return E}function zN(e,i,o){var u=!1;i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]&&(i=i.slice(0,i.length-1));for(var d=0,_=i.length-1;d<i.length;_=d++){var b=i[d][0],a=i[d][1],E=i[_][0],j=i[_][1],Q=e[1]*(b-E)+a*(E-e[0])+j*(e[0]-b)===0&&(b-e[0])*(E-e[0])<=0&&(a-e[1])*(j-e[1])<=0;if(Q)return!o;var ie=a>e[1]!=j>e[1]&&e[0]<(E-b)*(e[1]-a)/(j-a)+b;ie&&(u=!u)}return u}function jG(e,i){return i[0]<=e[0]&&i[1]<=e[1]&&i[2]>=e[0]&&i[3]>=e[1]}function PG(e,i){i===void 0&&(i={});var o=av(e),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return el([u,d],i.properties,i)}function ON(e){if(!e)throw new Error("geojson is required");var i=[];return yc(e,function(o){RG(o,i)}),Mu(i)}function RG(e,i){var o=[],u=e.geometry;if(u!==null){switch(u.type){case"Polygon":o=jm(u);break;case"LineString":o=[jm(u)]}o.forEach(function(d){var _=BG(d,e.properties);_.forEach(function(b){b.id=i.length,i.push(b)})})}}function BG(e,i){var o=[];return e.reduce(function(u,d){var _=tl([u,d],i);return _.bbox=FG(u,d),o.push(_),d}),o}function FG(e,i){var o=e[0],u=e[1],d=i[0],_=i[1],b=o<d?o:d,a=u<_?u:_,E=o>d?o:d,j=u>_?u:_;return[b,a,E,j]}var s4={exports:{}},kN={exports:{}};(function(e,i){(function(o,u){e.exports=u()})(kd,function(){function o(te,J,re,Me,xe){(function Ke(st,Ge,xt,dt,kt){for(;dt>xt;){if(dt-xt>600){var bt=dt-xt+1,oi=Ge-xt+1,At=Math.log(bt),Tt=.5*Math.exp(2*At/3),si=.5*Math.sqrt(At*Tt*(bt-Tt)/bt)*(oi-bt/2<0?-1:1),Ot=Math.max(xt,Math.floor(Ge-oi*Tt/bt+si)),Ht=Math.min(dt,Math.floor(Ge+(bt-oi)*Tt/bt+si));Ke(st,Ge,Ot,Ht,kt)}var W=st[Ge],ne=xt,T=dt;for(u(st,xt,Ge),kt(st[dt],W)>0&&u(st,xt,dt);ne<T;){for(u(st,ne,T),ne++,T--;kt(st[ne],W)<0;)ne++;for(;kt(st[T],W)>0;)T--}kt(st[xt],W)===0?u(st,xt,T):u(st,++T,dt),T<=Ge&&(xt=T+1),Ge<=T&&(dt=T-1)}})(te,J,re||0,Me||te.length-1,xe||d)}function u(te,J,re){var Me=te[J];te[J]=te[re],te[re]=Me}function d(te,J){return te<J?-1:te>J?1:0}var _=function(te){te===void 0&&(te=9),this._maxEntries=Math.max(4,te),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(te,J,re){if(!re)return J.indexOf(te);for(var Me=0;Me<J.length;Me++)if(re(te,J[Me]))return Me;return-1}function a(te,J){E(te,0,te.children.length,J,te)}function E(te,J,re,Me,xe){xe||(xe=qe(null)),xe.minX=1/0,xe.minY=1/0,xe.maxX=-1/0,xe.maxY=-1/0;for(var Ke=J;Ke<re;Ke++){var st=te.children[Ke];j(xe,te.leaf?Me(st):st)}return xe}function j(te,J){return te.minX=Math.min(te.minX,J.minX),te.minY=Math.min(te.minY,J.minY),te.maxX=Math.max(te.maxX,J.maxX),te.maxY=Math.max(te.maxY,J.maxY),te}function Q(te,J){return te.minX-J.minX}function ie(te,J){return te.minY-J.minY}function G(te){return(te.maxX-te.minX)*(te.maxY-te.minY)}function ue(te){return te.maxX-te.minX+(te.maxY-te.minY)}function pe(te,J){return te.minX<=J.minX&&te.minY<=J.minY&&J.maxX<=te.maxX&&J.maxY<=te.maxY}function we(te,J){return J.minX<=te.maxX&&J.minY<=te.maxY&&J.maxX>=te.minX&&J.maxY>=te.minY}function qe(te){return{children:te,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function me(te,J,re,Me,xe){for(var Ke=[J,re];Ke.length;)if(!((re=Ke.pop())-(J=Ke.pop())<=Me)){var st=J+Math.ceil((re-J)/Me/2)*Me;o(te,st,J,re,xe),Ke.push(J,st,st,re)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(te){var J=this.data,re=[];if(!we(te,J))return re;for(var Me=this.toBBox,xe=[];J;){for(var Ke=0;Ke<J.children.length;Ke++){var st=J.children[Ke],Ge=J.leaf?Me(st):st;we(te,Ge)&&(J.leaf?re.push(st):pe(te,Ge)?this._all(st,re):xe.push(st))}J=xe.pop()}return re},_.prototype.collides=function(te){var J=this.data;if(!we(te,J))return!1;for(var re=[];J;){for(var Me=0;Me<J.children.length;Me++){var xe=J.children[Me],Ke=J.leaf?this.toBBox(xe):xe;if(we(te,Ke)){if(J.leaf||pe(te,Ke))return!0;re.push(xe)}}J=re.pop()}return!1},_.prototype.load=function(te){if(!te||!te.length)return this;if(te.length<this._minEntries){for(var J=0;J<te.length;J++)this.insert(te[J]);return this}var re=this._build(te.slice(),0,te.length-1,0);if(this.data.children.length)if(this.data.height===re.height)this._splitRoot(this.data,re);else{if(this.data.height<re.height){var Me=this.data;this.data=re,re=Me}this._insert(re,this.data.height-re.height-1,!0)}else this.data=re;return this},_.prototype.insert=function(te){return te&&this._insert(te,this.data.height-1),this},_.prototype.clear=function(){return this.data=qe([]),this},_.prototype.remove=function(te,J){if(!te)return this;for(var re,Me,xe,Ke=this.data,st=this.toBBox(te),Ge=[],xt=[];Ke||Ge.length;){if(Ke||(Ke=Ge.pop(),Me=Ge[Ge.length-1],re=xt.pop(),xe=!0),Ke.leaf){var dt=b(te,Ke.children,J);if(dt!==-1)return Ke.children.splice(dt,1),Ge.push(Ke),this._condense(Ge),this}xe||Ke.leaf||!pe(Ke,st)?Me?(re++,Ke=Me.children[re],xe=!1):Ke=null:(Ge.push(Ke),xt.push(re),re=0,Me=Ke,Ke=Ke.children[0])}return this},_.prototype.toBBox=function(te){return te},_.prototype.compareMinX=function(te,J){return te.minX-J.minX},_.prototype.compareMinY=function(te,J){return te.minY-J.minY},_.prototype.toJSON=function(){return this.data},_.prototype.fromJSON=function(te){return this.data=te,this},_.prototype._all=function(te,J){for(var re=[];te;)te.leaf?J.push.apply(J,te.children):re.push.apply(re,te.children),te=re.pop();return J},_.prototype._build=function(te,J,re,Me){var xe,Ke=re-J+1,st=this._maxEntries;if(Ke<=st)return a(xe=qe(te.slice(J,re+1)),this.toBBox),xe;Me||(Me=Math.ceil(Math.log(Ke)/Math.log(st)),st=Math.ceil(Ke/Math.pow(st,Me-1))),(xe=qe([])).leaf=!1,xe.height=Me;var Ge=Math.ceil(Ke/st),xt=Ge*Math.ceil(Math.sqrt(st));me(te,J,re,xt,this.compareMinX);for(var dt=J;dt<=re;dt+=xt){var kt=Math.min(dt+xt-1,re);me(te,dt,kt,Ge,this.compareMinY);for(var bt=dt;bt<=kt;bt+=Ge){var oi=Math.min(bt+Ge-1,kt);xe.children.push(this._build(te,bt,oi,Me-1))}}return a(xe,this.toBBox),xe},_.prototype._chooseSubtree=function(te,J,re,Me){for(;Me.push(J),!J.leaf&&Me.length-1!==re;){for(var xe=1/0,Ke=1/0,st=void 0,Ge=0;Ge<J.children.length;Ge++){var xt=J.children[Ge],dt=G(xt),kt=(bt=te,oi=xt,(Math.max(oi.maxX,bt.maxX)-Math.min(oi.minX,bt.minX))*(Math.max(oi.maxY,bt.maxY)-Math.min(oi.minY,bt.minY))-dt);kt<Ke?(Ke=kt,xe=dt<xe?dt:xe,st=xt):kt===Ke&&dt<xe&&(xe=dt,st=xt)}J=st||J.children[0]}var bt,oi;return J},_.prototype._insert=function(te,J,re){var Me=re?te:this.toBBox(te),xe=[],Ke=this._chooseSubtree(Me,this.data,J,xe);for(Ke.children.push(te),j(Ke,Me);J>=0&&xe[J].children.length>this._maxEntries;)this._split(xe,J),J--;this._adjustParentBBoxes(Me,xe,J)},_.prototype._split=function(te,J){var re=te[J],Me=re.children.length,xe=this._minEntries;this._chooseSplitAxis(re,xe,Me);var Ke=this._chooseSplitIndex(re,xe,Me),st=qe(re.children.splice(Ke,re.children.length-Ke));st.height=re.height,st.leaf=re.leaf,a(re,this.toBBox),a(st,this.toBBox),J?te[J-1].children.push(st):this._splitRoot(re,st)},_.prototype._splitRoot=function(te,J){this.data=qe([te,J]),this.data.height=te.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(te,J,re){for(var Me,xe,Ke,st,Ge,xt,dt,kt=1/0,bt=1/0,oi=J;oi<=re-J;oi++){var At=E(te,0,oi,this.toBBox),Tt=E(te,oi,re,this.toBBox),si=(xe=At,Ke=Tt,st=void 0,Ge=void 0,xt=void 0,dt=void 0,st=Math.max(xe.minX,Ke.minX),Ge=Math.max(xe.minY,Ke.minY),xt=Math.min(xe.maxX,Ke.maxX),dt=Math.min(xe.maxY,Ke.maxY),Math.max(0,xt-st)*Math.max(0,dt-Ge)),Ot=G(At)+G(Tt);si<kt?(kt=si,Me=oi,bt=Ot<bt?Ot:bt):si===kt&&Ot<bt&&(bt=Ot,Me=oi)}return Me||re-J},_.prototype._chooseSplitAxis=function(te,J,re){var Me=te.leaf?this.compareMinX:Q,xe=te.leaf?this.compareMinY:ie;this._allDistMargin(te,J,re,Me)<this._allDistMargin(te,J,re,xe)&&te.children.sort(Me)},_.prototype._allDistMargin=function(te,J,re,Me){te.children.sort(Me);for(var xe=this.toBBox,Ke=E(te,0,J,xe),st=E(te,re-J,re,xe),Ge=ue(Ke)+ue(st),xt=J;xt<re-J;xt++){var dt=te.children[xt];j(Ke,te.leaf?xe(dt):dt),Ge+=ue(Ke)}for(var kt=re-J-1;kt>=J;kt--){var bt=te.children[kt];j(st,te.leaf?xe(bt):bt),Ge+=ue(st)}return Ge},_.prototype._adjustParentBBoxes=function(te,J,re){for(var Me=re;Me>=0;Me--)j(J[Me],te)},_.prototype._condense=function(te){for(var J=te.length-1,re=void 0;J>=0;J--)te[J].children.length===0?J>0?(re=te[J-1].children).splice(re.indexOf(te[J]),1):this.clear():a(te[J],this.toBBox)},_})})(kN);var UG=kN.exports;const VG=Uw(bG),QG=Uw(zG),HG=Uw(OG);var Tl=UG,jN=VG,PN=QG,Cf=HG.default,$G=PN.featureEach;PN.coordEach,jN.polygon;var RN=jN.featureCollection;function BN(e){var i=new Tl(e);return i.insert=function(o){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.insert.call(this,o)},i.load=function(o){var u=[];return Array.isArray(o)?o.forEach(function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}):$G(o,function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}),Tl.prototype.load.call(this,u)},i.remove=function(o,u){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.remove.call(this,o,u)},i.clear=function(){return Tl.prototype.clear.call(this)},i.search=function(o){var u=Tl.prototype.search.call(this,this.toBBox(o));return RN(u)},i.collides=function(o){return Tl.prototype.collides.call(this,this.toBBox(o))},i.all=function(){var o=Tl.prototype.all.call(this);return RN(o)},i.toJSON=function(){return Tl.prototype.toJSON.call(this)},i.fromJSON=function(o){return Tl.prototype.fromJSON.call(this,o)},i.toBBox=function(o){var u;if(o.bbox)u=o.bbox;else if(Array.isArray(o)&&o.length===4)u=o;else if(Array.isArray(o)&&o.length===6)u=[o[0],o[1],o[3],o[4]];else if(o.type==="Feature")u=Cf(o);else if(o.type==="FeatureCollection")u=Cf(o);else throw new Error("invalid geojson");return{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3]}},i}s4.exports=BN,s4.exports.default=BN;var YG=s4.exports;const GG=nc(YG);function a4(e,i){var o={},u=[];if(e.type==="LineString"&&(e=Na(e)),i.type==="LineString"&&(i=Na(i)),e.type==="Feature"&&i.type==="Feature"&&e.geometry!==null&&i.geometry!==null&&e.geometry.type==="LineString"&&i.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&i.geometry.coordinates.length===2){var d=FN(e,i);return d&&u.push(d),Mu(u)}var _=GG();return _.load(ON(i)),sv(ON(e),function(b){sv(_.search(b),function(a){var E=FN(b,a);if(E){var j=jm(E).join(",");o[j]||(o[j]=!0,u.push(E))}})}),Mu(u)}function FN(e,i){var o=jm(e),u=jm(i);if(o.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(u.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var d=o[0][0],_=o[0][1],b=o[1][0],a=o[1][1],E=u[0][0],j=u[0][1],Q=u[1][0],ie=u[1][1],G=(ie-j)*(b-d)-(Q-E)*(a-_),ue=(Q-E)*(_-j)-(ie-j)*(d-E),pe=(b-d)*(_-j)-(a-_)*(d-E);if(G===0)return null;var we=ue/G,qe=pe/G;if(we>=0&&we<=1&&qe>=0&&qe<=1){var me=d+we*(b-d),te=_+we*(a-_);return el([me,te])}return null}function l4(e,i){i===void 0&&(i={});var o=lv(e);switch(!i.properties&&e.type==="Feature"&&(i.properties=e.properties),o.type){case"Polygon":return ZG(o,i);case"MultiPolygon":return WG(o,i);default:throw new Error("invalid poly")}}function ZG(e,i){i===void 0&&(i={});var o=lv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{};return UN(u,d)}function WG(e,i){i===void 0&&(i={});var o=lv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{},_=[];return u.forEach(function(b){_.push(UN(b,d))}),Mu(_)}function UN(e,i){return e.length>1?i4(e,i):tl(e[0],i)}function qG(e,i){var o=!0;return yc(e,function(u){yc(i,function(d){if(o===!1)return!1;o=KG(u.geometry,d.geometry)})}),o}function KG(e,i){switch(e.type){case"Point":switch(i.type){case"Point":return!tZ(e.coordinates,i.coordinates);case"LineString":return!VN(i,e);case"Polygon":return!Pm(e,i)}break;case"LineString":switch(i.type){case"Point":return!VN(e,i);case"LineString":return!XG(e,i);case"Polygon":return!QN(i,e)}break;case"Polygon":switch(i.type){case"Point":return!Pm(i,e);case"LineString":return!QN(e,i);case"Polygon":return!JG(i,e)}}return!1}function VN(e,i){for(var o=0;o<e.coordinates.length-1;o++)if(eZ(e.coordinates[o],e.coordinates[o+1],i.coordinates))return!0;return!1}function XG(e,i){var o=a4(e,i);return o.features.length>0}function QN(e,i){for(var o=0,u=i.coordinates;o<u.length;o++){var d=u[o];if(Pm(d,e))return!0}var _=a4(i,l4(e));return _.features.length>0}function JG(e,i){for(var o=0,u=e.coordinates[0];o<u.length;o++){var d=u[o];if(Pm(d,i))return!0}for(var _=0,b=i.coordinates[0];_<b.length;_++){var a=b[_];if(Pm(a,e))return!0}var E=a4(l4(e),l4(i));return E.features.length>0}function eZ(e,i,o){var u=o[0]-e[0],d=o[1]-e[1],_=i[0]-e[0],b=i[1]-e[1],a=u*b-d*_;return a!==0?!1:Math.abs(_)>=Math.abs(b)?_>0?e[0]<=o[0]&&o[0]<=i[0]:i[0]<=o[0]&&o[0]<=e[0]:b>0?e[1]<=o[1]&&o[1]<=i[1]:i[1]<=o[1]&&o[1]<=e[1]}function tZ(e,i){return e[0]===i[0]&&e[1]===i[1]}function iZ(e,i){var o=!1;return yc(e,function(u){yc(i,function(d){if(o===!0)return!0;o=!qG(u.geometry,d.geometry)})}),o}const nZ=()=>{const[e,i]=be.useState(!1),[o,u]=be.useState(!1),d=Ja(),_=MN(),b=Oi(W3),a=Oi(Om),E=Oi(q3),j=Oi(nv),Q=Oi(ca),ie=Oi(iv),G=Oi(wN),ue=Oi(km),pe=Oi(aG),we=Oi(K3),[qe,me]=be.useState(!1),[te,J]=on(bu),re=on(rv),[Me]=on(TN),[xe,Ke]=be.useState({id:null,originalRule:null});be.useEffect(()=>{_&&st()},[_]),be.useEffect(()=>{st()},[Q,te,j,E,ie,b,G,a,Me]);function st(){const kt=ue.find(bt=>bt.name.toLowerCase()===te.toLowerCase());if(!E&&xe.id&&Q&&qe&&(window.mapsindoors.services.LocationsService.getLocation(xe.id).then(bt=>{bt&&(Q.setDisplayRule(bt.id,xe.originalRule||null),me(!1))}),Ke({id:null,originalRule:null})),Q&&kt){if(i(!0),E&&d)Ke(bt=>({...bt,id:E})),kr(Me)?window.mapsindoors.services.LocationsService.getLocation(E).then(bt=>{if(bt){const oi=bt.properties.floor;Q.setFloor(oi);const At=Q.getDisplayRule(bt);Ke(Tt=>({...Tt,originalRule:{...At}})),Ge(bt),zm().then(Tt=>{u(bt.geometry),ua(bt.geometry,Q,Tt,0,G?dt(G):void 0,pe,b)})}}):zm().then(bt=>{u(xt().geometry),ua(xt().geometry,Q,bt,0,dt(G),pe,b)});else if(j&&!we)kr(Me)?window.mapsindoors.services.LocationsService.getLocation(j).then(bt=>{if(bt){const oi=bt.properties.floor;Q.setFloor(oi),d?kh().then(At=>{u(bt.geometry),ua(bt.geometry,Q,0,At,G?dt(G):void 0,pe,b)}):Sf().then(At=>{u(bt.geometry),ua(bt.geometry,Q,At,0,G?dt(G):void 0,pe,b)})}}):d?kh().then(bt=>{u(xt().geometry),ua(xt().geometry,Q,0,bt,dt(G),pe,b)}):Sf().then(bt=>{u(xt().geometry),ua(xt().geometry,Q,bt,0,dt(G),pe,b)});else if(kt)if(we)d?(u(kt.geometry),ua(kt.geometry,Q,0,0,dt(G),pe,b)):Sf().then(bt=>{u(kt.geometry),ua(kt.geometry,Q,bt,0,dt(G),pe,b)});else{const bt=ue.find(oi=>iZ(oi.geometry,xt().geometry));kr(Me)?(u(kt.geometry),ua(kt.geometry,Q,0,0,dt(G),pe,b)):kr(bt)?d?kh().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,0,oi,dt(G),pe,b)}):Sf().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,oi,0,dt(G),pe,b)}):(d?kh().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,0,oi,dt(G),pe,b)}):Sf().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,oi,0,dt(G),pe,b)}),re&&J(bt.name))}}}function Ge(kt){if(qe)return;const bt=Q.getDisplayRule(kt);bt.visible=!0,bt.iconSize={width:bt.iconSize.width*2,height:bt.iconSize.height*2},bt.iconVisible=!0,bt.zoomFrom=0,bt.zoomTo=999,bt.clickable=!1,Q.setDisplayRule(kt.id,bt),me(!0)}function xt(){const[kt,bt]=Me?Me.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[kt,bt]}}}function dt(kt){return kr(kt)?18:kt}return[e,o]};function ua(e,i,o,u,d,_,b){const a=Number(_),E=Number(b),j=d!==void 0?Number(d):void 0;if(j===void 0)i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:j??22,padding:{top:0,right:0,bottom:o,left:u}});else{const Q=PG(e);i.getMapView().setCenter({lat:Q.geometry.coordinates[1],lng:Q.geometry.coordinates[0]}),i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.setZoom(j)}}const HN=On({key:"hideNonMatches",default:!1}),rZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V5H5V9H3V3ZM15 3H21V9H19V5H15V3ZM5 15V19H9V21H3V15H5ZM21 15V21H15V19H19V15H21Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}}),be.createElement("rect",{x:9,y:9,width:6,height:6,fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Rm=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),jae="";$N.propTypes={isViewSelectorDisabled:ht.bool,isViewSelectorVisible:ht.bool};function $N({isViewSelectorDisabled:e,isViewSelectorVisible:i}){const{t:o}=cs(),[u,d]=be.useState(!1),[_,b]=be.useState([]),[a,E]=be.useState(null),j=Ja(),Q=Oi(ca),ie=Oi(bu),G=".view-selector-portal",[ue,pe]=be.useState(null),we=be.useRef(null),qe=be.useRef(null),me=6,te=60;be.useEffect(()=>{let st=document.querySelector(G);if(st){pe(st);return}const Ge=new MutationObserver(()=>{st=document.querySelector(G),st&&(pe(st),Ge.disconnect())}),xt=document.body,dt={childList:!0,subtree:!0};return Ge.observe(xt,dt),()=>{Ge==null||Ge.disconnect()}},[]),be.useEffect(()=>{const st=()=>{const xt=document.querySelector(G);xt&&pe(xt)},Ge=new ResizeObserver(()=>{st()});return Ge.observe(document.body),()=>{Ge==null||Ge.disconnect()}},[j]),be.useEffect(()=>{var st;if(Q&&ie){const Ge=(st=Q.getVenue())==null?void 0:st.id;Ge&&E(Ge)}},[Q,ie]),be.useEffect(()=>{Q&&ie&&window.mapsindoors.services.VenuesService.getVenues().then(st=>{const Ge=st.find(xt=>xt.name.toLowerCase()===ie.toLowerCase());Ge!=null&&Ge.id&&E(Ge.id)})},[Q,ie]),be.useEffect(()=>{a&&window.mapsindoors.services.VenuesService.getBuildings(a).then(st=>{b(st)})},[a]);const J=be.useMemo(()=>_.map(st=>({id:st.id,name:st.buildingInfo.name})),[_]),re=be.useCallback(st=>{Q.fitBuilding(st),d(!1)},[Q]);if(be.useEffect(()=>{if(!(u&&j))return;function st(Ge){we.current&&!we.current.contains(Ge.target)&&qe.current&&!qe.current.contains(Ge.target)&&d(!1)}return document.addEventListener("mousedown",st),()=>{document.removeEventListener("mousedown",st)}},[u,j]),J.length<=1||i===!1)return null;const Me=()=>Pe.jsx("button",{ref:qe,className:"view-selector__toggle-button",onClick:()=>d(!u),disabled:e,children:Pe.jsx(rZ,{})}),xe=()=>{const st=be.useMemo(()=>j&&J.length>me?{height:`${me*te}px`}:{},[j,J.length]);return Pe.jsx("div",{className:"building-list",style:st,children:J.map(Ge=>Pe.jsx("button",{className:"building-list__item",onClick:()=>re(Ge.id),children:Pe.jsx("span",{children:Ge.name})},Ge.id))})},Ke=Pe.jsxs("div",{className:"view-selector",children:[!j&&u&&Pe.jsxs("div",{className:"mobile-overlay",children:[Pe.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>d(!1)}),Pe.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Pe.jsxs("div",{className:"mobile-overlay__header",children:[Pe.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>d(!1),"aria-label":o("Close view selector"),children:Pe.jsx(Rm,{})}),Pe.jsx("span",{children:o("Go to view")})]}),Pe.jsx(xe,{})]})]}),j?Pe.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[u&&Pe.jsx("div",{ref:we,className:"view-selector__container view-selector__container--desktop",children:Pe.jsx(xe,{})}),Pe.jsx(Me,{})]}):Pe.jsx(Me,{})]});return ue?yu.createPortal(Ke,ue):null}const oZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00177 3V5H13.0018V7H11.3742C11.0618 8.91166 10.4455 10.5244 9.43896 11.8188C10.1899 12.3437 11.1128 12.7471 12.2443 13.0299L13.2145 13.2725L12.7294 15.2128L11.7593 14.9702C10.2984 14.605 9.04252 14.0424 8.00171 13.245C6.96091 14.0424 5.70503 14.6049 4.24428 14.9701L3.27413 15.2127L2.78906 13.2724L3.75921 13.0299C4.89067 12.747 5.81358 12.3436 6.56448 11.8188C5.55798 10.5244 4.94173 8.91163 4.62931 7H3.00177V5H7.00177V3H9.00177ZM6.65973 7C6.92571 8.41424 7.37545 9.52718 8.00174 10.4013C8.62805 9.52718 9.0778 8.41425 9.34379 7H6.65973ZM16.1161 10H17.8874L22.3317 19.481L20.5207 20.3299L19.4286 18H14.5749L13.4828 20.3299L11.6719 19.481L16.1161 10ZM15.5124 16H18.4911L17.0018 12.8227L15.5124 16Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Pae="";function YN({toggleButtonRef:e,isExpanded:i,setIsExpanded:o}){return Pe.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>o(u=>!u),"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Select language",children:Pe.jsx(oZ,{})})}function GN({supportedLanguages:e,currentLanguage:i,setLanguage:o,setIsExpanded:u}){return Pe.jsx("div",{className:"language-selector__list",children:e.map(d=>Pe.jsx("button",{className:`language-selector__item${i===d.code?" language-selector__item--selected":""}`,onClick:()=>{o(d.code),u(!1)},children:d.label},d.code))})}function ZN({currentLanguage:e,setLanguage:i,isVisible:o}){const{t:u}=cs(),[d,_]=be.useState(!1),b=be.useRef(null),a=be.useRef(null),[E,j]=be.useState(null),Q=Ja(),ie=".language-selector-portal";return be.useEffect(()=>{let G=document.querySelector(ie);if(G){j(G);return}const ue=new MutationObserver(()=>{G=document.querySelector(ie),G&&(j(G),ue.disconnect())});return ue.observe(document.body,{childList:!0,subtree:!0}),()=>ue.disconnect()},[]),be.useEffect(()=>{if(!(d&&Q))return;function G(ue){b.current&&!b.current.contains(ue.target)&&a.current&&!a.current.contains(ue.target)&&_(!1)}return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[d,Q]),!o||!E?null:yu.createPortal(Q?Pe.jsxs("div",{className:"language-selector__button-container",children:[d&&Pe.jsx("div",{ref:b,className:"language-selector__container",children:Pe.jsx(GN,{supportedLanguages:dN,currentLanguage:e,setLanguage:i,setIsExpanded:_})}),Pe.jsx(YN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(YN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_}),d&&Pe.jsxs("div",{className:"language-selector-overlay",children:[Pe.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>_(!1)}),Pe.jsxs("div",{className:"language-selector__container",children:[Pe.jsxs("div",{className:"language-selector-overlay__header",children:[Pe.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>_(!1),"aria-label":"Close language selector",children:"×"}),Pe.jsx("span",{children:u("Select language")})]}),Pe.jsx(GN,{supportedLanguages:dN,currentLanguage:e,setLanguage:i,setIsExpanded:_})]})]})]}),E)}ZN.propTypes={currentLanguage:ht.string,setLanguage:ht.func.isRequired,isVisible:ht.bool};const cv=On({key:"appConfig",default:void 0}),sZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M14.4978 10C14.4978 11.3807 13.3785 12.5 11.9978 12.5C10.6171 12.5 9.4978 11.3807 9.4978 10C9.4978 8.61929 10.6171 7.5 11.9978 7.5C13.3785 7.5 14.4978 8.61929 14.4978 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"}),be.createElement("path",{d:"M19 10C19 14.8354 14.2437 19.1734 12.5723 20.5484C12.2352 20.8258 11.7648 20.8258 11.4277 20.5484C9.75634 19.1734 5 14.8354 5 10C5 6.13401 8.13401 3 12 3C15.866 3 19 6.13401 19 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"})),Rae="",Dl=On({key:"kioskLocation",default:null}),jh=()=>{const e=Oi(Dl),i=Ja();return!(!e||e&&!i)};function WN(){const[e,i]=be.useState(null),o=".reset-view-portal",u=jh(),d=Oi(q3),_=Oi(ca),b=Oi(bu),a=Oi(Dl),E=Ja();function j(){window.mapsindoors.services.LocationsService.getLocation(d).then(ue=>{Q([ue])}).catch(ue=>{console.error("Error resetting map position:",ue)})}function Q(ue){if(!_.goTo)return;const pe=_.getFloor(),we={type:"FeatureCollection",features:ue.filter(qe=>parseInt(qe.properties.floor,10)===parseInt(pe,10)).filter(qe=>b&&qe.properties.venueId.toLowerCase()===b.toLowerCase()).map(qe=>({type:"Feature",geometry:qe.geometry,properties:qe.properties}))};we.features.length>0&&Promise.all([ie(),G()]).then(([qe,me])=>{_.goTo(we,{maxZoom:22,padding:{bottom:qe,left:me,top:0,right:0}})})}function ie(){return new Promise(ue=>{E?a?zm().then(pe=>ue(pe)):ue(0):ue(200)})}function G(){return new Promise(ue=>{E?a?ue(0):kh().then(pe=>ue(pe)):ue(0)})}return be.useEffect(()=>{let ue=document.querySelector(o);if(ue){i(ue);return}const pe=new MutationObserver(()=>{ue=document.querySelector(o),ue&&(i(ue),pe.disconnect())});return pe.observe(document.body,{childList:!0,subtree:!0}),()=>pe.disconnect()},[]),!u||!e?null:yu.createPortal(Pe.jsx("button",{className:"reset-kiosk-view-button",onClick:j,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Pe.jsx(sZ,{})}),e)}WN.propTypes={onReset:ht.func,isVisible:ht.bool},qN.propTypes={onLocationClick:ht.func,onMapPositionKnown:ht.func.isRequired,useMapProviderModule:ht.bool.isRequired,onMapPositionInvestigating:ht.func.isRequired,onViewModeSwitchKnown:ht.func.isRequired,resetCount:ht.number.isRequired,mapOptions:ht.object,gmMapId:ht.string,isWayfindingOrDirections:ht.bool,currentLanguage:ht.string,setLanguage:ht.func,devicePosition:ht.object};let c4;function qN({onLocationClick:e,onMapPositionKnown:i,useMapProviderModule:o,onMapPositionInvestigating:u,onViewModeSwitchKnown:d,resetCount:_,mapOptions:b,gmMapId:a,isWayfindingOrDirections:E,currentLanguage:j,setLanguage:Q,devicePosition:ie}){const G=Oi(G3),ue=Oi(Z3),pe=Oi(J_),[we,qe]=on(X_),[me,te]=on(ca),[,J]=on(K_),[,re]=on(Y3),Me=Oi(ev),xe=Oi(tv),Ke=Oi(_N),st=Oi(W3),Ge=Oi(iv),[,xt]=on(vN),dt=Oi(xN),[,kt]=on(Lm),bt=Oi(HN),oi=Oi(cv),[At,Tt]=be.useState(!1),[si,Ot]=be.useState(!1);oG(G);const[Ht,W]=nZ();be.useEffect(()=>{if(!dt||ue===null&&pe===null)return;let F;const V=dt.modules.map(Z=>Z.toLowerCase()).includes("mapbox");o?V?pe&&(F=us.Mapbox):ue&&(F=us.Google):pe?F=us.Mapbox:F=us.Google,F?qe(F):(kt({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),qe(void 0))},[ue,pe,dt]),be.useEffect(()=>{Ht&&u()},[Ht]),be.useEffect(()=>{W&&i()},[W]),be.useEffect(()=>{if(!me)return;const F=Me||xe;if(!F)return;const V=F.map(Z=>Z.id);bt||!me.highlight?me.filter(V):me.highlight(V)},[Me,xe,me,bt]),be.useEffect(()=>{me&&(isNaN(parseInt(Ge))||me.getMapView().tilt(parseInt(Ge)),isNaN(parseInt(st))||me.getMapView().rotate(parseInt(st)))},[st,Ge,me]);const ne=F=>{T(F)},T=F=>{if(F&&c4){let V=F.getTileURL();if(V){V=F.getTileURL().replace("default",c4);const Z=V==null?void 0:V.replace("{floor}",F.getFloor());F.getMapView().setMapsIndoorsTileURL(Z)}}},k=(F,V,Z)=>{F.on("mouseenter",()=>{var He;const ve=F.getHoveredLocation();((He=ve==null?void 0:ve.properties.locationSettings)==null?void 0:He.selectable)===!1&&F.unhoverLocation()}),F.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),F.on("click",ve=>e(ve)),F.once("building_changed",()=>ne(F)),F.on("floor_changed",()=>T(F)),te(F),window.mapsIndoorsInstance=F;const se=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(se);let he;we===us.Google?he=new window.mapsindoors.directions.GoogleMapsProvider:we===us.Mapbox&&(he=new window.mapsindoors.directions.MapboxProvider(pe));const le=new window.mapsindoors.services.DirectionsService(he);re(le),te(F),V.nodeName==="MI-MY-POSITION"?V.addEventListener("position_received",ve=>{ve.detail.accurate===!0&&J(ve.detail.position)}):V.on("position_received",ve=>{ve.accurate===!0&&J(ve.position)}),xt(V),d(Z)};return be.useEffect(()=>{c4=Ke||"default",T(me)},[Ke]),be.useEffect(()=>{var F,V,Z,se;oi&&(kr((F=oi==null?void 0:oi.appSettings)==null?void 0:F.viewSelector)?Tt(!1):Tt(((V=oi==null?void 0:oi.appSettings)==null?void 0:V.viewSelector.trim().toLowerCase())==="true"),kr((Z=oi==null?void 0:oi.appSettings)==null?void 0:Z.languageSelector)?Ot(!1):Ot(((se=oi==null?void 0:oi.appSettings)==null?void 0:se.languageSelector.trim().toLowerCase())==="true"))},[oi]),Pe.jsxs(Pe.Fragment,{children:[G&&Pe.jsx(yN,{apiKey:G,mapboxAccessToken:we===us.Mapbox?pe:void 0,gmApiKey:we===us.Google?ue:void 0,onInitialized:k,resetUICounter:_,mapOptions:b,gmMapId:a,devicePosition:ie}),G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx($N,{isViewSelectorVisible:At,isViewSelectorDisabled:E}),Pe.jsx(ZN,{currentLanguage:j,setLanguage:Q,isVisible:si}),Pe.jsx(WN,{})]})]})}const _c=On({key:"primaryColor",default:"#005655"}),Bae="",u4=On({key:"logo",default:void 0});function aZ(){const e=Oi(_c),i=Oi(u4);return Pe.jsx("div",{className:"splash-screen",children:Pe.jsxs("div",{className:"splash-screen__container",children:[Pe.jsx("img",{className:"splash-screen__logo "+(i?"splash-screen__logo--visible":""),src:i,alt:""}),Pe.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function KN(e,i){if(e==null)return{};var o={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(i.indexOf(u)!==-1)continue;o[u]=e[u]}return o}function h4(e,i){return h4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,u){return o.__proto__=u,o},h4(e,i)}function XN(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,h4(e,i)}function lZ(e,i){return e.classList?!!i&&e.classList.contains(i):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+i+" ")!==-1}function cZ(e,i){e.classList?e.classList.add(i):lZ(e,i)||(typeof e.className=="string"?e.className=e.className+" "+i:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+i))}function JN(e,i){return e.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uZ(e,i){e.classList?e.classList.remove(i):typeof e.className=="string"?e.className=JN(e.className,i):e.setAttribute("class",JN(e.className&&e.className.baseVal||"",i))}const eL={disabled:!1},tL=Cr.createContext(null);var iL=function(i){return i.scrollTop},Bm="unmounted",Ph="exited",Rh="entering",Ef="entered",d4="exiting",vc=function(e){XN(i,e);function i(u,d){var _;_=e.call(this,u,d)||this;var b=d,a=b&&!b.isMounting?u.enter:u.appear,E;return _.appearStatus=null,u.in?a?(E=Ph,_.appearStatus=Rh):E=Ef:u.unmountOnExit||u.mountOnEnter?E=Bm:E=Ph,_.state={status:E},_.nextCallback=null,_}i.getDerivedStateFromProps=function(d,_){var b=d.in;return b&&_.status===Bm?{status:Ph}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(d){var _=null;if(d!==this.props){var b=this.state.status;this.props.in?b!==Rh&&b!==Ef&&(_=Rh):(b===Rh||b===Ef)&&(_=d4)}this.updateStatus(!1,_)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var d=this.props.timeout,_,b,a;return _=b=a=d,d!=null&&typeof d!="number"&&(_=d.exit,b=d.enter,a=d.appear!==void 0?d.appear:b),{exit:_,enter:b,appear:a}},o.updateStatus=function(d,_){if(d===void 0&&(d=!1),_!==null)if(this.cancelNextCallback(),_===Rh){if(this.props.unmountOnExit||this.props.mountOnEnter){var b=this.props.nodeRef?this.props.nodeRef.current:dm.findDOMNode(this);b&&iL(b)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ph&&this.setState({status:Bm})},o.performEnter=function(d){var _=this,b=this.props.enter,a=this.context?this.context.isMounting:d,E=this.props.nodeRef?[a]:[dm.findDOMNode(this),a],j=E[0],Q=E[1],ie=this.getTimeouts(),G=a?ie.appear:ie.enter;if(!d&&!b||eL.disabled){this.safeSetState({status:Ef},function(){_.props.onEntered(j)});return}this.props.onEnter(j,Q),this.safeSetState({status:Rh},function(){_.props.onEntering(j,Q),_.onTransitionEnd(G,function(){_.safeSetState({status:Ef},function(){_.props.onEntered(j,Q)})})})},o.performExit=function(){var d=this,_=this.props.exit,b=this.getTimeouts(),a=this.props.nodeRef?void 0:dm.findDOMNode(this);if(!_||eL.disabled){this.safeSetState({status:Ph},function(){d.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:d4},function(){d.props.onExiting(a),d.onTransitionEnd(b.exit,function(){d.safeSetState({status:Ph},function(){d.props.onExited(a)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(d,_){_=this.setNextCallback(_),this.setState(d,_)},o.setNextCallback=function(d){var _=this,b=!0;return this.nextCallback=function(a){b&&(b=!1,_.nextCallback=null,d(a))},this.nextCallback.cancel=function(){b=!1},this.nextCallback},o.onTransitionEnd=function(d,_){this.setNextCallback(_);var b=this.props.nodeRef?this.props.nodeRef.current:dm.findDOMNode(this),a=d==null&&!this.props.addEndListener;if(!b||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var E=this.props.nodeRef?[this.nextCallback]:[b,this.nextCallback],j=E[0],Q=E[1];this.props.addEndListener(j,Q)}d!=null&&setTimeout(this.nextCallback,d)},o.render=function(){var d=this.state.status;if(d===Bm)return null;var _=this.props,b=_.children;_.in,_.mountOnEnter,_.unmountOnExit,_.appear,_.enter,_.exit,_.timeout,_.addEndListener,_.onEnter,_.onEntering,_.onEntered,_.onExit,_.onExiting,_.onExited,_.nodeRef;var a=KN(_,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(tL.Provider,{value:null},typeof b=="function"?b(d,a):Cr.cloneElement(Cr.Children.only(b),a))},i}(Cr.Component);vc.contextType=tL,vc.propTypes={};function Nf(){}vc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nf,onEntering:Nf,onEntered:Nf,onExit:Nf,onExiting:Nf,onExited:Nf},vc.UNMOUNTED=Bm,vc.EXITED=Ph,vc.ENTERING=Rh,vc.ENTERED=Ef,vc.EXITING=d4;const hZ=vc;var dZ=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return cZ(i,u)})},f4=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return uZ(i,u)})},p4=function(e){XN(i,e);function i(){for(var u,d=arguments.length,_=new Array(d),b=0;b<d;b++)_[b]=arguments[b];return u=e.call.apply(e,[this].concat(_))||this,u.appliedClasses={appear:{},enter:{},exit:{}},u.onEnter=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],ie=j[1];u.removeClasses(Q,"exit"),u.addClass(Q,ie?"appear":"enter","base"),u.props.onEnter&&u.props.onEnter(a,E)},u.onEntering=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],ie=j[1],G=ie?"appear":"enter";u.addClass(Q,G,"active"),u.props.onEntering&&u.props.onEntering(a,E)},u.onEntered=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],ie=j[1],G=ie?"appear":"enter";u.removeClasses(Q,G),u.addClass(Q,G,"done"),u.props.onEntered&&u.props.onEntered(a,E)},u.onExit=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"appear"),u.removeClasses(j,"enter"),u.addClass(j,"exit","base"),u.props.onExit&&u.props.onExit(a)},u.onExiting=function(a){var E=u.resolveArguments(a),j=E[0];u.addClass(j,"exit","active"),u.props.onExiting&&u.props.onExiting(a)},u.onExited=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"exit"),u.addClass(j,"exit","done"),u.props.onExited&&u.props.onExited(a)},u.resolveArguments=function(a,E){return u.props.nodeRef?[u.props.nodeRef.current,a]:[a,E]},u.getClassNames=function(a){var E=u.props.classNames,j=typeof E=="string",Q=j&&E?E+"-":"",ie=j?""+Q+a:E[a],G=j?ie+"-active":E[a+"Active"],ue=j?ie+"-done":E[a+"Done"];return{baseClassName:ie,activeClassName:G,doneClassName:ue}},u}var o=i.prototype;return o.addClass=function(d,_,b){var a=this.getClassNames(_)[b+"ClassName"],E=this.getClassNames("enter"),j=E.doneClassName;_==="appear"&&b==="done"&&j&&(a+=" "+j),b==="active"&&d&&iL(d),a&&(this.appliedClasses[_][b]=a,dZ(d,a))},o.removeClasses=function(d,_){var b=this.appliedClasses[_],a=b.base,E=b.active,j=b.done;this.appliedClasses[_]={},a&&f4(d,a),E&&f4(d,E),j&&f4(d,j)},o.render=function(){var d=this.props;d.classNames;var _=KN(d,["classNames"]);return Cr.createElement(hZ,V3({},_,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(Cr.Component);p4.defaultProps={classNames:""},p4.propTypes={};const fZ=p4,Fae="",pZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),Uae="";nL.propTypes={venue:ht.object.isRequired,isCurrent:ht.bool,onVenueClicked:ht.func.isRequired};function nL({venue:e,isCurrent:i,onVenueClicked:o}){const{t:u}=cs(),[d,_]=be.useState({});return be.useEffect(()=>()=>{_({})},[]),be.useEffect(()=>{const b={};e.image&&(b.backgroundImage=`url('${e.image}')`),_(b)},[e]),Pe.jsxs("button",{className:"venue",onClick:()=>o(),children:[Pe.jsx("div",{className:"venue__image",style:d}),Pe.jsxs("div",{className:"venue__content",children:[Pe.jsx("div",{children:e.venueInfo.name}),i&&Pe.jsx("div",{className:"venue__current",children:u("Current")})]})]})}const uv=On({key:"isLocationClicked",default:!1});rL.propTypes={onOpen:ht.func,onClose:ht.func,active:ht.bool};function rL({onOpen:e,onClose:i,active:o}){const{t:u}=cs(),d=be.useRef(null),_=Oi(km),[,b]=on(K3),[a,E]=on(bu),[,j]=on(uv),Q=document.querySelector(".venue-selector-portal"),ie=pe=>{b(!0),E(pe.name),G()},G=()=>{o?i():e()};function ue(pe){ie(pe),j(!1)}return Pe.jsxs(Pe.Fragment,{children:[!o&&Q&&yu.createPortal(Pe.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":u("Venues"),children:Pe.jsx(pZ,{})}),Q),Pe.jsx(fZ,{in:o,nodeRef:d,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Pe.jsxs("div",{className:"venue-selector__content",ref:d,children:[Pe.jsxs("div",{className:"venue-selector__header",children:[Pe.jsx("h1",{children:u("Select venue")}),Pe.jsx("button",{className:"venue-selector__button",onClick:()=>i(),"aria-label":u("Close"),children:Pe.jsx(Rm,{})})]}),Pe.jsx("div",{className:"venue-selector__list",children:_.map(pe=>Pe.jsx(nL,{isCurrent:(a==null?void 0:a.toLowerCase())===pe.name.toLowerCase(),venue:pe,onVenueClicked:()=>ue(pe)},pe.id))})]})})]})}const oL=be.createContext(),xc=On({key:"currentLocation",default:null}),gZ="Left",mZ="Right",yZ="Up",_Z="Down",Lf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},g4={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},sL="mousemove",aL="mouseup",vZ="touchend",xZ="touchmove",wZ="touchstart";function bZ(e,i,o,u){return e>i?o>0?mZ:gZ:u>0?_Z:yZ}function lL(e,i){if(i===0)return e;const o=Math.PI/180*i,u=e[0]*Math.cos(o)+e[1]*Math.sin(o),d=e[1]*Math.cos(o)-e[0]*Math.sin(o);return[u,d]}function MZ(e,i){const o=Q=>{const ie="touches"in Q;ie&&Q.touches.length>1||e((G,ue)=>{ue.trackMouse&&!ie&&(document.addEventListener(sL,u),document.addEventListener(aL,b));const{clientX:pe,clientY:we}=ie?Q.touches[0]:Q,qe=lL([pe,we],ue.rotationAngle);return ue.onTouchStartOrOnMouseDown&&ue.onTouchStartOrOnMouseDown({event:Q}),Object.assign(Object.assign(Object.assign({},G),g4),{initial:qe.slice(),xy:qe,start:Q.timeStamp||0})})},u=Q=>{e((ie,G)=>{const ue="touches"in Q;if(ue&&Q.touches.length>1)return ie;if(Q.timeStamp-ie.start>G.swipeDuration)return ie.swiping?Object.assign(Object.assign({},ie),{swiping:!1}):ie;const{clientX:pe,clientY:we}=ue?Q.touches[0]:Q,[qe,me]=lL([pe,we],G.rotationAngle),te=qe-ie.xy[0],J=me-ie.xy[1],re=Math.abs(te),Me=Math.abs(J),xe=(Q.timeStamp||0)-ie.start,Ke=Math.sqrt(re*re+Me*Me)/(xe||1),st=[te/(xe||1),J/(xe||1)],Ge=bZ(re,Me,te,J),xt=typeof G.delta=="number"?G.delta:G.delta[Ge.toLowerCase()]||Lf.delta;if(re<xt&&Me<xt&&!ie.swiping)return ie;const dt={absX:re,absY:Me,deltaX:te,deltaY:J,dir:Ge,event:Q,first:ie.first,initial:ie.initial,velocity:Ke,vxvy:st};dt.first&&G.onSwipeStart&&G.onSwipeStart(dt),G.onSwiping&&G.onSwiping(dt);let kt=!1;return(G.onSwiping||G.onSwiped||G[`onSwiped${Ge}`])&&(kt=!0),kt&&G.preventScrollOnSwipe&&G.trackTouch&&Q.cancelable&&Q.preventDefault(),Object.assign(Object.assign({},ie),{first:!1,eventData:dt,swiping:!0})})},d=Q=>{e((ie,G)=>{let ue;if(ie.swiping&&ie.eventData){if(Q.timeStamp-ie.start<G.swipeDuration){ue=Object.assign(Object.assign({},ie.eventData),{event:Q}),G.onSwiped&&G.onSwiped(ue);const pe=G[`onSwiped${ue.dir}`];pe&&pe(ue)}}else G.onTap&&G.onTap({event:Q});return G.onTouchEndOrOnMouseUp&&G.onTouchEndOrOnMouseUp({event:Q}),Object.assign(Object.assign(Object.assign({},ie),g4),{eventData:ue})})},_=()=>{document.removeEventListener(sL,u),document.removeEventListener(aL,b)},b=Q=>{_(),d(Q)},a=(Q,ie)=>{let G=()=>{};if(Q&&Q.addEventListener){const ue=Object.assign(Object.assign({},Lf.touchEventOptions),ie.touchEventOptions),pe=[[wZ,o,ue],[xZ,u,Object.assign(Object.assign({},ue),ie.preventScrollOnSwipe?{passive:!1}:{})],[vZ,d,ue]];pe.forEach(([we,qe,me])=>Q.addEventListener(we,qe,me)),G=()=>pe.forEach(([we,qe])=>Q.removeEventListener(we,qe))}return G},j={ref:Q=>{Q!==null&&e((ie,G)=>{if(ie.el===Q)return ie;const ue={};return ie.el&&ie.el!==Q&&ie.cleanUpTouch&&(ie.cleanUpTouch(),ue.cleanUpTouch=void 0),G.trackTouch&&Q&&(ue.cleanUpTouch=a(Q,G)),Object.assign(Object.assign(Object.assign({},ie),{el:Q}),ue)})}};return i.trackMouse&&(j.onMouseDown=o),[j,a]}function IZ(e,i,o,u){return!i.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?i.preventScrollOnSwipe!==o.preventScrollOnSwipe||i.touchEventOptions.passive!==o.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})}function cL(e){const{trackMouse:i}=e,o=be.useRef(Object.assign({},g4)),u=be.useRef(Object.assign({},Lf)),d=be.useRef(Object.assign({},u.current));d.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},Lf),e);let _;for(_ in Lf)u.current[_]===void 0&&(u.current[_]=Lf[_]);const[b,a]=be.useMemo(()=>MZ(E=>o.current=E(o.current,u.current),{trackMouse:i}),[i]);return o.current=IZ(o.current,u.current,d.current,a),b}const qn={MIN:"MIN",FIT:"FIT",MAX:"MAX"},Vae="",zf=be.forwardRef(function({children:i,isOpen:o,initialSnapPoint:u,minimizedHeight:d},_){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),Q=be.useRef(),[ie,G]=be.useState({}),[ue,pe]=be.useState(!1),[we,qe]=be.useState(null),me=be.useContext(oL),te=be.useRef();be.useImperativeHandle(_,()=>({setSnapPoint(Ge){J(Ge)}}));function J(Ge){requestAnimationFrame(()=>{switch(Ge){case qn.MAX:G({height:`${me.current.clientHeight}px`}),E.current=me.current.clientHeight;break;case qn.FIT:{const xt=a.current.children.item(0).clientHeight;xt<d?(G({height:`${d}px`}),E.current=d,Ge=qn.MIN):(G({height:`${xt}px`}),E.current=xt);break}case qn.MIN:G({height:`${d}px`}),E.current=d;break}}),Q.current=Ge}be.useEffect(()=>(o&&Q.current===qn.FIT?re():Me(),()=>{Me()}),[o,Q.current]);function re(){te.current&&te.current.disconnect(),te.current=new MutationObserver(()=>{J(qn.FIT)}),te.current.observe(a.current,{childList:!0,subtree:!0})}function Me(){te.current&&te.current.disconnect()}const xe=cL({onSwipeStart:()=>{pe(!0),qe(null),j.current=b.current.clientHeight},onSwiping:Ge=>{const xt=Math.max(j.current-Ge.deltaY,d);G({height:`${xt}px`})},onSwiped:Ge=>{pe(!1);const xt=TZ(Ge.dir,Ge.deltaY,Q.current,d,me.current.clientHeight,a.current.children.item(0));xt&&(J(xt),qe(xt))},trackMouse:!0,preventScrollOnSwipe:!0});be.useEffect(()=>{o&&(Q.current=u,J(u))},[d,u,o]);const Ke=Ge=>{xe.ref(Ge),b.current=Ge},st=Cr.Children.map(i,Ge=>be.cloneElement(Ge,{snapPointSwipedByUser:we}));return Pe.jsx("div",{...xe,ref:Ke,className:`sheet ${o?"sheet--active":""} ${ue?"sheet--dragging":""} ${Q.current===qn.MAX?"sheet--max":""}`,style:ie,children:Pe.jsx("div",{ref:a,className:`sheet__content ${Q.current===qn.MIN?"sheet__content--no-scroll":""}`,style:ie,children:st})})});zf.propTypes={children:ht.node.isRequired,isOpen:ht.bool.isRequired,initialSnapPoint:ht.string.isRequired,minimizedHeight:ht.number.isRequired};function TZ(e,i,o,u,d,_){if(Math.abs(i)<60)return o;let a;return e.toUpperCase()==="DOWN"?o===qn.MAX?DZ(_)?a=qn.MIN:_.clientHeight<=d&&_.clientHeight>u?a=qn.FIT:a=qn.MIN:o===qn.FIT&&(a=qn.MIN):e.toUpperCase()==="UP"&&(o===qn.MIN?_.clientHeight<=u||_.clientHeight>d?a=qn.MAX:a=qn.FIT:o===qn.FIT&&(a=qn.MAX)),a}function DZ(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const i of e.children)if(i.scrollHeight>i.clientHeight)return!0;return!1}const Qae="",Hae="",SZ=(e,i)=>{const[o,u]=be.useState(void 0),[d,_]=be.useState(void 0);return be.useEffect(()=>{const b=(a=!1)=>{var j,Q;const E=((j=i.current)==null?void 0:j.scrollHeight)>((Q=i.current)==null?void 0:Q.clientHeight);u(E),a===!0&&_(E)};b(!0),i.current&&new ResizeObserver(b).observe(i.current)},[e,i]),[o,d]},Of=()=>cL({onSwiping:({event:e})=>e.stopPropagation()});function uL(e){const i=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:i[1],lng:i[0],floor:e.properties.floor}}const Fm=On({key:"directionsResponse",default:null}),hv=On({key:"hasFoundRoute",default:!0}),hL=(e,i,o,u,d)=>{const[_,b]=be.useState(),[a,E]=be.useState(),[j,Q]=on(hv),[,ie]=on(Fm),[G,ue]=be.useState();return be.useEffect(()=>{ue(!1);let pe=!0;return e!=null&&e.geometry&&(i!=null&&i.geometry)&&o.getRoute({origin:uL(e),destination:uL(i),travelMode:u,avoidStairs:d}).then(we=>{if(pe)if(we&&we.legs){const qe=we.legs.reduce((te,J)=>te+J.distance.value,0),me=we.legs.reduce((te,J)=>te+J.duration.value,0);b(qe),E(me),ie({originLocation:e,destinationLocation:i,totalDistance:qe,totalTime:me,directionsResult:we}),Q(!0),ue(!0)}else Q(!1)},()=>{pe&&Q(!1)}),()=>{pe=!1}},[e,i,o,d,u]),[_,a,j,G]},Bh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Um=On({key:"travelMode",default:Bh.WALKING}),Vm=On({key:"accessibilityOn",default:!1}),dv=On({key:"showExternalIDs",default:!1});function dL(e,i){const o=Oi(X_),[u,d]=be.useState(!1),_=e.getMap();be.useEffect(()=>{i&&d(!1)},[i]);function b(E,j,Q,ie){const G=ue=>{if(!Q)return;j.getMap().queryRenderedFeatures(ue.point).length?ie(!1):ie(!0)};return E.on("click",G),()=>{E.off("click",G)}}function a(E,j,Q,ie){const G=()=>{Q&&ie(!1)},ue=()=>{Q&&ie(!0)};j.addListener("click",G);const pe=E.addListener("click",ue);return()=>{j.removeListener("click",G),pe.remove()}}return be.useEffect(()=>{let E;return o===us.Mapbox&&(E=b(_,e,i,d)),o===us.Google&&(E=a(_,e,i,d)),()=>E==null?void 0:E()},[e,i]),u}const $ae="",AZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M12 7.75V12L14.75 14.75M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),CZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M8 10L11.6464 13.6464C11.8417 13.8417 12.1583 13.8417 12.3536 13.6464L16 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),EZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M16 14L12.3536 10.3536C12.1583 10.1583 11.8417 10.1583 11.6464 10.3536L8 14",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fh=On({key:"language",default:void 0});fL.propTypes={openingHours:ht.object,isMondayFirstDayOfTheWeek:ht.bool,onExpand:ht.func};function fL({openingHours:e,isMondayFirstDayOfTheWeek:i=!0,onExpand:o}){const{t:u}=cs(),[d,_]=be.useState(!1),a=Oi(Fh)??navigator.language,E=be.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(a).match(/AM|PM/)!==null,[a]),j=new Date().getDay(),Q=be.useMemo(()=>{const re=[];for(let Me=0;Me<7;Me++)re.push(new Date(2024,0,Me+1));if(!i){const Me=re.pop();re.unshift(Me)}return re},[i]),ie=be.useMemo(()=>i?j===0?6:j-1:j,[j,i]),{standardOpeningHours:G}=e||{},ue=re=>{const[Me,xe]=re.split(":");return new Date(0,0,0,Me,xe).toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",hour12:E})},pe=re=>{const Me=re.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),xe=G==null?void 0:G[Me];return!(xe!=null&&xe.startTime)||!(xe!=null&&xe.endTime)||xe.closedAllDay?{text:u("Closed"),isClosed:!0}:{text:`${ue(xe.startTime)} - ${ue(xe.endTime)}`,isClosed:!1}},we=be.useCallback(re=>{if(!re||re.closedAllDay||!re.startHours)return!1;const Me=new Date,xe=Me.getHours()*60+Me.getMinutes(),[Ke,st]=re.startTime.split(":"),[Ge,xt]=re.endTime.split(":"),dt=parseInt(Ke)*60+parseInt(st),kt=parseInt(Ge)*60+parseInt(xt);return xe>=dt&&xe<=kt},[]),me=be.useCallback(()=>{const re=Q[ie].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return we(G==null?void 0:G[re])?"Open":"Closed"},[G,Q,ie,we,u])(),te=re=>re.charAt(0).toUpperCase()+re.slice(1),J=()=>{_(re=>!re)};return be.useEffect(()=>{d&&typeof o=="function"&&o()},[d,o]),Pe.jsxs("div",{className:"opening-hours",children:[Pe.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:J,children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx(AZ,{})}),Pe.jsx("div",{className:"contact-action-button__text",children:pe(Q[ie]).text}),Pe.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${me.toLowerCase()}`,children:u(me)}),d?Pe.jsx(EZ,{}):Pe.jsx(CZ,{})]}),d&&Pe.jsx("ul",{className:"opening-hours__list",children:Q.map(re=>{const Me=pe(re);return Pe.jsxs("li",{className:"opening-hours__list-item",children:[Pe.jsx("span",{className:"opening-hours__day",children:te(re.toLocaleString(a,{weekday:"long"}))}),Pe.jsx("span",{className:`opening-hours__hours ${Me.isClosed?"opening-hours__hours--closed":""}`,children:Me.text})]},re)})})]})}const NZ=be.memo(fL);function m4(e,i,o){return(i=function(u){var d=function(_,b){if(typeof _!="object"||!_)return _;var a=_[Symbol.toPrimitive];if(a!==void 0){var E=a.call(_,b||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(_)}(u,"string");return typeof d=="symbol"?d:d+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var y4={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},pL=function(e){var i=e.children,o=e.onClickAway,u=e.focusEvent,d=u===void 0?"focusin":u,_=e.mouseEvent,b=_===void 0?"click":_,a=e.touchEvent,E=a===void 0?"touchend":a,j=be.useRef(null),Q=be.useRef(null),ie=be.useRef(!1);be.useEffect(function(){return setTimeout(function(){ie.current=!0},0),function(){ie.current=!1}},[]);var G=function(qe){return function(me){Q.current=me.target;var te=i==null?void 0:i.props[qe];te&&te(me)}};be.useEffect(function(){var qe,me,te=(qe=(me=j.current)===null||me===void 0?void 0:me.ownerDocument)!==null&&qe!==void 0?qe:document,J=function(re){ie.current&&(j.current&&j.current.contains(re.target)||Q.current===re.target||!te.contains(re.target)||o(re))};return te.addEventListener(b,J),te.addEventListener(E,J),te.addEventListener(d,J),function(){te.removeEventListener(b,J),te.removeEventListener(E,J),te.removeEventListener(d,J)}},[d,b,o,E]);var ue=y4[b],pe=y4[E],we=y4[d];return Cr.Children.only(be.cloneElement(i,m4(m4(m4({ref:function(qe){j.current=qe;var me=i.ref;typeof me=="function"?me(qe):me&&(me.current=qe)}},we,G(we)),ue,G(ue)),pe,G(pe))))};pL.displayName="ClickAwayListener";const fv=On({key:"searchAllVenues",default:!1}),_4=On({key:"searchExternalLocations",default:!0}),gL=R_({key:"baseLink",get:({get:e})=>{const i=e(Z3),o=e(J_),u=e(G3),d=e(_c),_=e(Fh),b=e(fv),a=e(_4),E=e(u4),j=window.location.origin+window.location.pathname.replace(/\/$/,""),Q=new URLSearchParams(window.location.search),ie=new URLSearchParams;return[["gmApiKey",i],["mapboxAccessToken",o],["apiKey",u],["primaryColor",d],["language",_],["searchAllVenues",b],["searchExternalLocations",a],["logo",E]].forEach(([G,ue])=>{if(Q.has(G)){const pe=Q.get(G);ie.append(G,pe)}else ue&&(ue===d?ie.append(G,d.replace("#","")):ie.append(G,ue))}),`${j}?${ie.toString()}`}}),Yae="",LZ=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8484 4.66738C13.3129 3.20291 15.6872 3.20291 17.1517 4.66737L19.909 7.42474C21.3735 8.8892 21.3735 11.2636 19.909 12.7281L18.2804 14.3568C17.9875 14.6497 17.5126 14.6497 17.2197 14.3568C16.9268 14.0639 16.9268 13.589 17.2197 13.2961L18.8484 11.6674C19.7271 10.7887 19.7271 9.36407 18.8484 8.4854L16.091 5.72803C15.2123 4.84936 13.7877 4.84936 12.909 5.72804L11.2804 7.35672C10.9875 7.64961 10.5126 7.64961 10.2197 7.35672C9.92681 7.06382 9.92681 6.58895 10.2197 6.29606L11.8484 4.66738ZM15.5304 9.04606C15.8233 9.33895 15.8233 9.81382 15.5304 10.1067L9.53036 16.1068C9.23747 16.3997 8.7626 16.3997 8.4697 16.1068C8.17681 15.8139 8.17681 15.339 8.4697 15.0461L14.4697 9.04606C14.7626 8.75316 15.2375 8.75316 15.5304 9.04606ZM6.78036 10.7961C7.07326 11.089 7.07326 11.5639 6.78036 11.8568L5.15169 13.4854C4.27301 14.3641 4.27301 15.7887 5.15169 16.6674L7.90905 19.4248C8.78773 20.3035 10.2123 20.3035 11.091 19.4248L12.7197 17.7961C13.0126 17.5032 13.4875 17.5032 13.7804 17.7961C14.0733 18.089 14.0733 18.5639 13.7804 18.8568L12.1517 20.4854C10.6872 21.9499 8.31285 21.9499 6.84839 20.4854L4.09102 17.7281C2.62656 16.2636 2.62656 13.8893 4.09103 12.4248L5.7197 10.7961C6.0126 10.5032 6.48747 10.5032 6.78036 10.7961Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),mL=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.32635C3 5.25529 4.67893 3.57635 6.75 3.57635H7.25C9.32107 3.57635 11 5.25529 11 7.32635V7.82635C11 9.89742 9.32107 11.5764 7.25 11.5764H6.75C4.67893 11.5764 3 9.89742 3 7.82635V7.32635ZM6.75 5.07635C5.50736 5.07635 4.5 6.08371 4.5 7.32635V7.82635C4.5 9.06899 5.50736 10.0764 6.75 10.0764H7.25C8.49264 10.0764 9.5 9.06899 9.5 7.82635V7.32635C9.5 6.08371 8.49264 5.07635 7.25 5.07635H6.75ZM13 7.32635C13 5.25529 14.6789 3.57635 16.75 3.57635H17.25C19.3211 3.57635 21 5.25529 21 7.32635V7.82635C21 9.89742 19.3211 11.5764 17.25 11.5764H16.75C14.6789 11.5764 13 9.89742 13 7.82635V7.32635ZM16.75 5.07635C15.5074 5.07635 14.5 6.08371 14.5 7.32635V7.82635C14.5 9.06899 15.5074 10.0764 16.75 10.0764H17.25C18.4926 10.0764 19.5 9.06899 19.5 7.82635V7.32635C19.5 6.08371 18.4926 5.07635 17.25 5.07635H16.75ZM3 17.3264C3 15.2553 4.67893 13.5764 6.75 13.5764H7.25C9.32107 13.5764 11 15.2553 11 17.3264V17.8264C11 19.8975 9.32107 21.5764 7.25 21.5764H6.75C4.67893 21.5764 3 19.8975 3 17.8264V17.3264ZM6.75 15.0764C5.50736 15.0764 4.5 16.0838 4.5 17.3264V17.8264C4.5 19.069 5.50736 20.0764 6.75 20.0764H7.25C8.49264 20.0764 9.5 19.069 9.5 17.8264V17.3264C9.5 16.0838 8.49264 15.0764 7.25 15.0764H6.75Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 13.5764C14.1642 13.5764 14.5 13.9122 14.5 14.3264V16.0764H16.25C16.6642 16.0764 17 16.4122 17 16.8264C17 17.2406 16.6642 17.5764 16.25 17.5764H13.75C13.3358 17.5764 13 17.2406 13 16.8264V14.3264C13 13.9122 13.3358 13.5764 13.75 13.5764ZM17 14.3264C17 13.9122 17.3358 13.5764 17.75 13.5764H20.25C20.6642 13.5764 21 13.9122 21 14.3264C21 14.7406 20.6642 15.0764 20.25 15.0764H17.75C17.3358 15.0764 17 14.7406 17 14.3264ZM17 18.3264C17 17.9122 17.3358 17.5764 17.75 17.5764H20.25C20.6642 17.5764 21 17.9122 21 18.3264C21 18.7406 20.6642 19.0764 20.25 19.0764H18.5V20.8264C18.5 21.2406 18.1642 21.5764 17.75 21.5764C17.3358 21.5764 17 21.2406 17 20.8264V18.3264Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M13 20.5764C13 20.0241 13.4477 19.5764 14 19.5764C14.5523 19.5764 15 20.0241 15 20.5764C15 21.1287 14.5523 21.5764 14 21.5764C13.4477 21.5764 13 21.1287 13 20.5764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M5.5 17.0764C5.5 16.5241 5.94772 16.0764 6.5 16.0764H7.5C8.05228 16.0764 8.5 16.5241 8.5 17.0764V18.0764C8.5 18.6287 8.05228 19.0764 7.5 19.0764H6.5C5.94772 19.0764 5.5 18.6287 5.5 18.0764V17.0764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M5.5 7.07635C5.5 6.52407 5.94772 6.07635 6.5 6.07635H7.5C8.05228 6.07635 8.5 6.52407 8.5 7.07635V8.07635C8.5 8.62863 8.05228 9.07635 7.5 9.07635H6.5C5.94772 9.07635 5.5 8.62863 5.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M15.5 7.07635C15.5 6.52407 15.9477 6.07635 16.5 6.07635H17.5C18.0523 6.07635 18.5 6.52407 18.5 7.07635V8.07635C18.5 8.62863 18.0523 9.07635 17.5 9.07635H16.5C15.9477 9.07635 15.5 8.62863 15.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),zZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M8 6L12 2L16 6",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M12 3V13",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M17 10C18.1046 10 19 10.8954 19 12V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V12C5 10.8954 5.89543 10 7 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),pv=On({key:"qrCodeLink",default:null}),yL=On({key:"supportsUrlParameters",default:!1});_L.propTypes={location:ht.object.isRequired,buttonClassName:ht.string};function _L({location:e,buttonClassName:i}){const{t:o}=cs(),[u,d]=be.useState(!1),_=Oi(gL),[b,a]=be.useState(),E=Oi(yL),[j,Q]=be.useState(!1),[ie,G]=be.useState(!1),ue=Oi(Dl),[,pe]=on(pv),we=Ja();be.useEffect(()=>{_&&e&&a(_+"&locationId="+e.id)},[_,e]),be.useEffect(()=>{var J;Q(!ue&&E&&we);const te=typeof((J=navigator.clipboard)==null?void 0:J.writeText)=="function";G(!ue&&E&&te)},[E,ue,we]);const qe=()=>{navigator.clipboard.writeText(b),d(!1)},me=()=>{pe(b),d(!1)};return(j||ie)&&Pe.jsxs("div",{className:"share-location-link",children:[Pe.jsx("button",{className:i,onClick:()=>d(te=>!te),title:o("Share"),"aria-label":o("Share"),children:Pe.jsx(zZ,{})}),u&&Pe.jsx(pL,{onClickAway:()=>d(!1),children:Pe.jsxs("ul",{children:[ie&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>qe(),children:[Pe.jsx(LZ,{}),o("Copy link")]})}),j&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>me(),children:[Pe.jsx(mL,{}),o("QR Code")]})})]})})]})}const Gae="",vL={email:"email",phone:"phone"};xL.propTypes={detailType:ht.string,active:ht.bool,displayText:ht.string,value:ht.string,icon:ht.string};function xL({detailType:e,active:i,displayText:o,value:u,icon:d}){if(!i||e.toLowerCase()==="openinghours")return null;const _=o!=null&&o.trim()?o:u,b=(a,E)=>{switch(a.toLowerCase()){case vL.email:return`mailto:${E}`;case vL.phone:return`tel:${E}`;default:try{return new URL(E),E}catch{return"#"}}};return Pe.jsxs("a",{className:"contact-action-button",href:b(e,u),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx("img",{alt:"",src:d,className:"contact-action-button__icon"})}),Pe.jsx("span",{className:"contact-action-button__text",children:_})]})}v4.propTypes={onBack:ht.func,onStartWayfinding:ht.func,onSetSize:ht.func,snapPointSwiped:ht.number,onStartDirections:ht.func,isOpen:ht.bool,snapPointSwipedByUser:ht.string};function v4({onBack:e,onStartWayfinding:i,onSetSize:o,onStartDirections:u,isOpen:d,snapPointSwipedByUser:_}){var Xe,Be;const{t:b}=cs(),a=be.useRef(null),E=be.useRef(null),j=be.useRef(null),Q=be.useRef(null),ie=be.useRef(null),[G,ue]=be.useState(!1),[pe,we]=be.useState(!1),[qe,me]=be.useState(!1),te=be.useRef(!1),[J,re]=be.useState(null),Me=Oi(ca),xe=Oi(xc),Ke=(Xe=xe==null?void 0:xe.properties)==null?void 0:Xe.additionalDetails,st=(Be=Ke==null?void 0:Ke.find(rt=>rt.key.toLowerCase().includes("openinghours")&&rt.active===!0))==null?void 0:Be.openingHours,[Ge,xt]=SZ(xe,j),dt=Of(),kt=Oi(_c),bt=Oi(Dl),oi=Oi(Y3),[At,Tt]=be.useState(),[si,Ot]=be.useState(),Ht=Ja(),W=Oi(Um),ne=Oi(Vm),[,,T]=hL(si,At,oi,W,ne),k=Oi(dv),F=dL(Me,d);be.useEffect(()=>()=>{re(null),Tt(),Ot()},[]);const V=be.useCallback(()=>{ue(!1),we(!1),me(!1),Z(qn.FIT),e()});function Z(rt){typeof o=="function"&&o(rt)}function se(){G===!1?(he(),Z(qn.MAX)):(le(),Z(qn.FIT))}function he(){requestAnimationFrame(()=>{ue(!0),ve(),te.current=!0})}function le(){ue(!1),He(),te.current=!1}function ve(){const rt=requestAnimationFrame(()=>{E.current&&(we(E.current.scrollTop>0),me(E.current.scrollTop<E.current.scrollHeight-E.current.offsetHeight-1))});return()=>cancelAnimationFrame(rt)}function He(){we(!1),me(!1)}function et(){ue(!1),we(!1),me(!1),Z(qn.FIT),i()}function Ue(){ue(!1),we(!1),me(!1),Z(qn.FIT),u()}return be.useEffect(()=>{F&&e()},[F]),be.useEffect(()=>()=>{re(null),Tt(),Ot()},[]),be.useEffect(()=>{ue(!1),we(!1),me(!1),re(null),xe&&(a.current.location=xe,re(Me.getDisplayRule(xe)),Tt(xe)),bt&&Ot(bt)},[xe,Me,bt]),be.useEffect(()=>{const rt=(Ke==null?void 0:Ke.length)>0;Z(xe&&d&&rt?qn.FIT:qn.MIN)},[xe,d,Ke]),be.useEffect(()=>{if(!_){te.current=!1;return}ue(_===qn.MAX),_===qn.MAX?he():le()},[_]),be.useLayoutEffect(()=>{const rt=document.querySelector(".modal.modal--open");if(!rt||!(Q!=null&&Q.current)||!(E!=null&&E.current))return;const mt=()=>{const Mt=rt.offsetHeight,Nt=E.current.offsetHeight;Mt>0&&Nt>0&&(Nt/Mt>.9?(rt.style.height="100%",ve()):rt.style.height="auto")};return ie.current?ie.current.complete?mt():(ie.current.onload=mt,ie.current.onerror=mt):mt(),()=>{rt.style.height="",ie.current&&(ie.current.onload=null,ie.current.onerror=null)}},[xe,G,d,Ke]),Pe.jsx("div",{className:`location-details ${te.current===!0?"location-details--max-height":""} ${pe?"location-details--content-above":""} ${qe?"location-details--content-below":""}`,children:xe&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"location-details__header",children:[Pe.jsxs("div",{className:"location-info",children:[Pe.jsx("div",{className:"location-info__icon",children:J&&Pe.jsx("img",{alt:"",src:J.icon.src?J.icon.src:J.icon})}),Pe.jsxs("div",{className:"location-info__content",children:[Pe.jsx("div",{className:"location-info__name",children:xe.properties.name}),Pe.jsx("mi-location-info",{level:b("Level"),ref:a,"show-external-id":k})]}),Pe.jsxs("div",{className:"location-info__actions",children:[Pe.jsx(_L,{buttonClassName:"location-info__button",location:xe}),Pe.jsx("button",{className:"location-info__button",onClick:()=>V(),children:Pe.jsx(Rm,{})})]})]}),bt&&Ht?Pe.jsx("button",{disabled:!T,onClick:()=>Ue(),className:`location-details__wayfinding ${T?"":"location-details--no-route"}`,style:{background:kt},children:b(T?"Start directions":"Directions not available")}):Pe.jsx("button",{onClick:()=>et(),style:{background:kt},className:"location-details__wayfinding",children:b("Start wayfinding")})]}),Pe.jsx("div",{className:"location-details__details prevent-scroll",...dt,ref:Q,children:Pe.jsxs("div",{ref:E,onScroll:rt=>ve(),className:"location-details__details-content",children:[xe.properties.imageURL&&Pe.jsx("img",{ref:ie,alt:"",src:xe.properties.imageURL,className:"location-details__image"}),Object.keys(xe.properties.categories).length>0&&Pe.jsx("p",{className:"location-details__categories",children:Object.values(xe.properties.categories).map((rt,mt,Mt)=>Pe.jsxs(Cr.Fragment,{children:[rt,mt<Mt.length-1&&Pe.jsx(Pe.Fragment,{children:"・"})]},rt))}),xe.properties.description&&Pe.jsxs("section",{className:`location-details__description ${G?"location-details__description--full":""}`,children:[Pe.jsx("div",{ref:j,children:xe.properties.description}),(Ge||xt||G)&&Pe.jsx("button",{onClick:()=>se(),children:b(G?"Close":"Read full description")})]}),Ke&&Pe.jsxs("div",{className:"contact-action-buttons-container",children:[Ke.map(rt=>Pe.jsx(xL,{detailType:rt.detailType,active:rt.active,displayText:rt.displayText,value:rt.value,icon:rt.icon},rt.key)),st&&Pe.jsx(NZ,{openingHours:st,onExpand:()=>ve()})]})]})})]})})}const Zae="",OZ=e=>be.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1663_3931)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1663_3931"},be.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),wL=e=>be.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),kZ=e=>be.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),Wae="";gv.propTypes={location:ht.object,locationClicked:ht.func,icon:ht.string,isHovered:ht.bool};function gv({location:e,locationClicked:i,icon:o,isHovered:u}){const{t:d}=cs(),_=be.useRef(),b=Oi(ca),a=Oi(dv);return be.useEffect(()=>{var G;const E=ue=>i(ue.detail),j=()=>{var ue;((ue=e.properties.locationSettings)==null?void 0:ue.selectable)!==!1&&b.hoverLocation(e)},Q=()=>{var ue;(ue=e.properties.locationSettings)!=null&&ue.selectable||b.unhoverLocation(e)};((G=e.properties.locationSettings)==null?void 0:G.selectable)===!1&&_.current.classList.add("non-selectable");const{current:ie}=_;return ie.location=e,ie.icon=o||b.getDisplayRule(e).icon,ie.addEventListener("locationClicked",E),ie.addEventListener("mouseover",j),ie.addEventListener("mouseout",Q),u?_.current.classList.add("hovered"):_.current.classList.remove("hovered"),()=>{ie.removeEventListener("locationClicked",E),ie.removeEventListener("mouseover",j),ie.removeEventListener("mouseout",Q)}},[e,i,u]),Pe.jsx("mi-list-item-location",{level:d("Level"),ref:_,"show-external-id":a})}const jZ=()=>{const[e,i]=be.useState(),o=Oi(ca),u=Oi(rv);return be.useEffect(()=>{function d(){const _=o.getMapView().getCenter();i(_.lat+","+_.lng)}return o&&u?(o.getMapView().addListener("idle",d),d()):o&&o.getMapView().removeListener("idle",d),()=>{o&&o.getMapView().removeListener("idle",d)}},[o,u]),e},x4=On({key:"searchInput",default:void 0}),mv=be.forwardRef(function(i,o){const{placeholder:u,mapsindoors:d,results:_,clicked:b,cleared:a,changed:E,category:j,google:Q,mapbox:ie,disabled:G=!1}=i,ue=be.useRef(),pe=Oi(K_),we=Oi(Fh),[,qe]=on(x4),me=sessionStorage.getItem("mapboxPlacesSessionToken"),te={longitude:pe==null?void 0:pe.coords.longitude,latitude:pe==null?void 0:pe.coords.latitude},J=jZ(),re=Oi(bu),Me=Oi(fv);return be.useImperativeHandle(o,()=>({triggerSearch(){ue.current.triggerSearch()},getValue(){return ue.current.value},setDisplayText(xe){ue.current.setDisplayText(xe)},focusInput(){ue.current.focusInput()},clear(){ue.current.clear()},getInputField(){return ue.current.getInputField().then(xe=>qe(xe))}})),be.useEffect(()=>{const{current:xe}=ue;xe.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{xe.triggerSearch()})},[we]),be.useEffect(()=>{const xe=Ge=>_(Ge.detail),Ke=()=>a(),{current:st}=ue;return d===!0&&(st.mapsindoors="true"),st.addEventListener("results",xe),st.addEventListener("click",b),st.addEventListener("cleared",Ke),st.addEventListener("changed",E),()=>{st.removeEventListener("results",xe),st.removeEventListener("click",b),st.removeEventListener("cleared",Ke),st.removeEventListener("changed",E)}},[u,d,_,b,a,Q,ie,E]),Pe.jsx("mi-search",{ref:ue,"id-attribute":"search",placeholder:u,"session-token":me,"user-position":te.latitude!==void 0&&te.longitude!==void 0?Object.values(te).join(","):null,"mi-near":J,"mi-categories":j,disabled:G,mapbox:ie,google:Q,"mi-venue":Me?void 0:re,language:we})});mv.propTypes={placeholder:ht.string,mapsindoors:ht.bool,results:ht.func,clicked:ht.func,cleared:ht.func,changed:ht.func,category:ht.string,preventFocus:ht.bool,google:ht.bool,mapbox:ht.bool,disabled:ht.bool};function w4(e){const i={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:i,properties:{name:sN("My position"),anchor:i},type:"Feature"}}let b4;function PZ(e){return new Promise((i,o)=>{b4||(b4=new window.google.maps.Geocoder),b4.geocode({placeId:e.properties.placeId},u=>{u.length>0?(e.geometry={type:"Point",coordinates:[u[0].geometry.location.lng(),u[0].geometry.location.lat()]},i(e)):o()})})}const RZ="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=",bL=e=>be.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),ML=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1697_57490)"},be.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"}),be.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"}),be.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"}),be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1697_57490"},be.createElement("rect",{width:20,height:20,fill:"white"})))),BZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_3407_1703)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_3407_1703"},be.createElement("rect",{width:20,height:20,fill:"white"}))));IL.propTypes={selectionChanged:ht.func,children:ht.node};function IL({selectionChanged:e,children:i}){const o=be.useRef();return be.useEffect(()=>{const u=_=>e(_.detail),{current:d}=o;return d.addEventListener("change",u),()=>d.removeEventListener("change",u)},[e]),Pe.jsx("mi-dropdown",{ref:o,children:i})}function FZ(e,i){const o=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((u,d)=>{const _=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${o}&access_token=${i}`;fetch(_).then(b=>b.status!==200?d():b.json()).then(b=>{e.geometry={type:"Point",coordinates:[b.features[0].geometry.coordinates[0],b.features[0].geometry.coordinates[1]]},u(e)}).catch(()=>{d()})})}const UZ=R_({key:"unitSystem",get:({get:e})=>e(Fh)==="en-US"?"imperial":"metric"}),qae="";M4.propTypes={onAccessibilityChanged:ht.func};function M4({onAccessibilityChanged:e}){const i=Oi(_c),[o,u]=on(Vm);function d(_){u(_.target.checked),e&&e()}return Pe.jsxs("div",{className:"accessibility",children:[Pe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:_=>d(_),style:{backgroundColor:o?i:""}}),Pe.jsx("div",{children:sN("Avoid stairs and escalators")})]})}const TL=On({key:"wayfindingLocation",default:null}),Co={TO:"TO",FROM:"FROM"},VZ="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";I4.propTypes={onStartDirections:ht.func.isRequired,onBack:ht.func.isRequired,directionsToLocation:ht.object,directionsFromLocation:ht.object,onSetSize:ht.func,isActive:ht.bool};function I4({onStartDirections:e,onBack:i,directionsToLocation:o,directionsFromLocation:u,onSetSize:d,isActive:_}){const{t:b}=cs(),a=be.useRef(),E=be.useRef(),j=be.useRef(),Q=be.useRef(),ie=Oi(Y3),G=Oi(K_),ue=Oi(xc),pe=Oi(X_),we=Oi(_c),[qe,me]=on(TL),[te,J]=be.useState(),[,re]=on(hv),[Me,xe]=be.useState(!0),[Ke,st]=be.useState(!1),[Ge,xt]=be.useState([]),[dt,kt]=be.useState(),[bt,oi]=be.useState(),At=Oi(Vm),Tt=Of(),[si,Ot]=be.useState(!1),[Ht,W]=on(Um),[ne,T]=be.useState(!1),k=Oi(J_),F=Oi(UZ),[V,Z,se,he]=hL(bt,dt,ie,Ht,At),le=Oi(_4);function ve(Bt){return pe===us.Google&&Bt.properties.type==="google_places"?PZ(Bt):pe===us.Mapbox&&Bt.properties.type==="mapbox_places"?FZ(Bt,k):Promise.resolve(Bt)}function He(Bt){te===Co.TO?ve(Bt).then(Ti=>{kt(Ti),j.current.setDisplayText(Ti.properties.name)},()=>re(!1)):te===Co.FROM&&ve(Bt).then(Ti=>{oi(Ti),Q.current.setDisplayText(Ti.properties.name)},()=>re(!1)),Ot(!1),st(!1),xt([]),T(!1)}function et(Bt,Ti){if(J(Ti),re(!0),Bt.length===0)xe(!1),Ot(!1),xt([]);else{xe(!0),xt(Bt);const xi=Bt.filter(Ft=>Ft.properties.type==="google_places").length>0;Ot(xi),Ue(qn.MAX)}}function Ue(Bt){typeof d=="function"&&d(Bt)}function Xe(){const Bt=w4(G);te===Co.TO?(j.current.setDisplayText(Bt.properties.name),kt(Bt)):te===Co.FROM&&(Q.current.setDisplayText(Bt.properties.name),oi(Bt)),xt([]),re(!0),xe(!0),Ot(!1),st(!1),T(!1)}function Be(Bt){(bt==null?void 0:bt.id)==="USER_POSITION"&&Bt===Co.TO||(dt==null?void 0:dt.id)==="USER_POSITION"&&Bt===Co.FROM?T(!1):T(!0)}function rt(Bt){Be(Bt)}function mt(Bt){J(Bt),di(Bt),re(!0),Ot(!1),Be(Bt)}function Mt(Bt){T(!0),J(Bt),Nt(Bt),xt([]),re(!0),Ot(!1),xe(!0)}function Nt(Bt){Bt===Co.TO?kt():Bt===Co.FROM&&oi()}function di(Bt){Bt===Co.TO?(xt([]),j.current.getValue()&&(st(!0),j.current.triggerSearch())):Bt===Co.FROM&&(xt([]),Q.current.getValue()&&(st(!0),Q.current.triggerSearch()))}function Xt(){(dt||bt)&&(bt?j.current.setDisplayText(bt.properties.name):j.current.clear(),dt?Q.current.setDisplayText(dt.properties.name):Q.current.clear(),kt(bt),oi(dt))}function Ii(){oi(),Q.current.setDisplayText(""),i()}function ai(){xt([]),st(!1),Ot(!1),T(!1)}return be.useEffect(()=>()=>{xt([]),kt(),oi()},[]),be.useEffect(()=>{if(qe){if(te===Co.FROM)Q.current.setDisplayText(qe.properties.name),oi(qe);else if(te===Co.TO)j.current.setDisplayText(qe.properties.name),kt(qe);else return;ai(),me(null)}},[qe]),be.useEffect(()=>{var Ti;Ue(qn.FIT);let Bt=!1;if((u==null?void 0:u.id)==="USER_POSITION"&&(o==null?void 0:o.id)==="USER_POSITION"&&(o=void 0),o!=null&&o.properties&&!ue&&(j.current.setDisplayText(o.properties.name),kt(o)),u!=null&&u.properties?bt||(Q.current.setDisplayText(u.properties.name),oi(u),Bt=!0):J(Co.FROM),_&&!((Ti=Q.current)!=null&&Ti.getValue())&&G&&!bt&&(o==null?void 0:o.id)!=="USER_POSITION"&&!Bt){const xi=w4(G);Q.current.setDisplayText(xi.properties.name),oi(xi),re(!0),xe(!0),xt([])}},[_,o,u]),be.useEffect(()=>{pe===us.Mapbox&&(Ot(!1),xt(Ge.filter(Bt=>Bt.properties.type!=="google_places")))},[pe]),be.useEffect(()=>{ue&&(kt(ue),j.current.setDisplayText(ue.properties.name))},[ue]),Pe.jsxs("div",{className:"wayfinding",ref:a,children:[Pe.jsxs("div",{className:"wayfinding__directions",children:[Pe.jsx("div",{className:"wayfinding__title",children:b("Directions")}),Pe.jsx("button",{className:"wayfinding__close",onClick:()=>Ii(),"aria-label":"Close",children:Pe.jsx(Rm,{})}),Pe.jsxs("div",{className:"wayfinding__locations",children:[Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose departure")}),Pe.jsx(mv,{ref:Q,mapsindoors:!0,google:pe===us.Google&&le,mapbox:pe===us.Mapbox&&le,placeholder:b("Choose departure"),results:Bt=>et(Bt,Co.FROM),clicked:()=>mt(Co.FROM),cleared:()=>Mt(Co.FROM),changed:()=>rt(Co.FROM)})]}),Pe.jsx("button",{onClick:()=>Xt(),"aria-label":b("Switch"),className:"wayfinding__switch",children:Pe.jsx(kZ,{})}),Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose destination")}),Pe.jsx(mv,{ref:j,mapsindoors:!0,google:pe===us.Google&&le,mapbox:pe===us.Mapbox&&le,placeholder:b("Choose destination"),results:Bt=>et(Bt,Co.TO),clicked:()=>mt(Co.TO),cleared:()=>Mt(Co.TO),changed:()=>rt(Co.TO)})]})]})]}),!se&&Pe.jsx("p",{className:"wayfinding__error",children:b("No route found")}),!Me&&!ne&&Pe.jsx("p",{className:"wayfinding__error",children:b("Nothing was found")}),G&&ne&&Pe.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Xe(),children:[Pe.jsx(BZ,{}),b("My position")]}),Ge.length>0&&Pe.jsx("div",{className:"wayfinding__scrollable",...Tt,children:Pe.jsxs("div",{className:"wayfinding__results",children:[Ge.map(Bt=>Pe.jsx(gv,{icon:Bt.properties.type==="google_places"||Bt.properties.type==="mapbox_places"?VZ:void 0,location:Bt,locationClicked:Ti=>He(Ti)},Bt.id)),si&&Pe.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:RZ})]})}),!Ke&&!ne&&se&&!si&&bt&&dt&&Pe.jsxs("div",{className:"wayfinding__details",ref:E,children:[Pe.jsxs("div",{className:"wayfinding__settings",children:[Pe.jsx(M4,{}),Pe.jsx("div",{className:"wayfinding__travel",children:Pe.jsxs(IL,{selectionChanged:Bt=>W(Bt[0].value),children:[Pe.jsxs("mi-dropdown-item",{selected:!0,value:Bh.WALKING,children:[Pe.jsx(wL,{}),b("Walk")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.DRIVING,children:[Pe.jsx(bL,{}),b("Drive")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.BICYCLING,children:[Pe.jsx(ML,{}),b("Bike")]})]})})]}),Pe.jsx("hr",{}),Pe.jsxs("div",{className:"wayfinding__info",children:[Pe.jsxs("div",{className:"wayfinding__distance",children:[Ht===Bh.WALKING&&Pe.jsx(wL,{}),Ht===Bh.DRIVING&&Pe.jsx(bL,{}),Ht===Bh.BICYCLING&&Pe.jsx(ML,{}),Pe.jsxs("div",{children:[b("Distance"),":"]}),Pe.jsx("div",{className:"wayfinding__meters",children:V&&he&&Pe.jsx("mi-distance",{unit:F,meters:V})})]}),Pe.jsxs("div",{className:"wayfinding__time",children:[Pe.jsx(OZ,{}),Pe.jsxs("div",{children:[b("Estimated time"),":"]}),Pe.jsx("div",{className:"wayfinding__minutes",children:Z&&he&&Pe.jsx("mi-time",{translations:JSON.stringify({days:b("d"),hours:b("h"),minutes:b("min")}),seconds:Z})})]})]}),Pe.jsx("button",{className:"wayfinding__button",style:{background:we},onClick:()=>e(),disabled:!he,children:b("Go!")})]})]})}const Kae="",Xae="",QZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),HZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yv=On({key:"activeStep",default:0}),_v=On({key:"substepsToggled",default:!1}),$Z=On({key:"triggerSubsteps",default:!1}),DL=be.forwardRef(function(i,o){var we;const{totalSteps:u,activeStep:d,previous:_,originLocation:b,directions:a}=i,E=be.useRef(),{t:j}=cs(),[Q,ie]=on(_v),[,G]=on($Z),ue=jh();be.useImperativeHandle(o,()=>({openSubsteps(){E.current.openSubsteps()},closeSubsteps(){E.current.closeSubsteps()}}));const pe={walk:j("Walk"),bike:j("Bike"),transit:j("Transit"),drive:j("Drive"),destination:j("You have arrived"),leave:j("Leave"),from:j("From"),park:j("Park"),at:j("at"),building:j("Building"),venue:j("Venue"),takeStaircaseToLevel:j("Take staircase to level"),takeLadderToLevel:j("Take the ladder to level"),takeElevatorToLevel:j("Take elevator to level"),takeEscalatorToLevel:j("Take escalator to level"),takeWheelchairLiftToLevel:j("Take wheelchair lift to level"),takeWheelchairRampToLevel:j("Take wheelchair ramp to level"),exit:j("Exit"),enter:j("Enter"),stops:j("stops"),andContinue:j("and continue"),continueStraightAhead:j("Continue straight ahead"),goLeft:j("Go left"),goSharpLeft:j("Go sharp left"),goSlightLeft:j("Go slight left"),goRight:j("Go right"),goSharpRight:j("Go sharp right"),goSlightRight:j("Go slight right"),turnAround:j("Turn around"),days:j("d"),hours:j("h"),minutes:j("min")};return be.useEffect(()=>{const{current:qe}=E;function me(){G(!0),ie(!Q)}return qe.addEventListener("substepsToggled",me),()=>{qe.removeEventListener("substepsToggled",me)}},[Q]),Pe.jsx("mi-route-instructions-step",{ref:E,"show-toggle-button":!ue,step:JSON.stringify(u[d]),translations:JSON.stringify(pe),"destination-location":a==null?void 0:a.destinationLocation.properties.name,"from-travel-mode":(_==null?void 0:_.travel_mode)??"","from-route-context":(_==null?void 0:_.route_context)??((we=b==null?void 0:b.properties)==null?void 0:we.name)??""})});DL.propTypes={totalSteps:ht.array,activeStep:ht.number,previous:ht.object,originLocation:ht.object,directions:ht.object};const SL=On({key:"isDestinationStep",default:!1});AL.propTypes={steps:ht.array,onNextStep:ht.func,onPreviousStep:ht.func,originLocation:ht.object,isOpen:ht.bool};function AL({steps:e,onNextStep:i,onPreviousStep:o,originLocation:u,isOpen:d}){const{t:_}=cs(),b=Of(),a=be.useRef(),[E,j]=be.useState(),[Q,ie]=on(yv),[G,ue]=be.useState(),pe=Oi(Fm),we=Oi(_v),[,qe]=on(SL),me=jh();be.useEffect(()=>{ue(e)},[e]),be.useEffect(()=>{var re,Me;d&&(Q===(G==null?void 0:G.length)-1&&(pe!=null&&pe.destinationLocation)?qe(!0):qe(!1),we===!1?(re=a.current)==null||re.closeSubsteps():we===!0&&((Me=a.current)==null||Me.openSubsteps()))},[d,Q,G,we]);function te(){j(G[Q]),ie(Q+1),i()}function J(){j(G[Q-2]),ie(Q-1),o()}return Pe.jsx("div",{className:"route-instructions prevent-scroll",...b,children:G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(DL,{totalSteps:G,activeStep:Q,previous:E,directions:pe,originLocation:u,ref:a}),Pe.jsx("div",{className:`route-instructions__footer ${me?"route-instructions__footer--kiosk":""}`,children:Pe.jsxs("div",{className:"route-instructions__actions",children:[Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>J(),"aria-label":_("Previous"),disabled:Q===0,children:Pe.jsx(HZ,{})}),Pe.jsx("div",{className:"route-instructions__overview",children:_("StepYofX",{activeStep:Q+1,totalSteps:G.length})}),Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>te(),"aria-label":_("Next"),disabled:Q===G.length-1,children:Pe.jsx(QZ,{})})]})})]})})}const CL=Object.freeze({minZoom:10});let ws;T4.propTypes={isOpen:ht.bool,onBack:ht.func,onSetSize:ht.func,onRouteFinished:ht.func,snapPointSwipedByUser:ht.string};function T4({isOpen:e,onBack:i,onSetSize:o,onRouteFinished:u,snapPointSwipedByUser:d}){const{t:_}=cs(),b=be.useRef(),[a,E]=be.useState(null),j=be.useRef(null),[Q,ie]=be.useState(),G=Oi(ca),ue=Oi(Um),pe=Oi(Fm),[,we]=on(yv),[qe,me]=on(_v),te=Oi(Dl),J=Ja(),[,re]=on(pv),Me=Oi(SL),xe=Oi(_c),Ke=jh(),st=Oi(dv),Ge=Oi(gL),xt=Oi(xc),dt=Oi(X_);be.useEffect(()=>()=>{E(null)},[]),be.useEffect(()=>{if(E(null),e&&pe){ie(pe.totalTime);const k=Math.min(window.innerHeight,window.innerWidth)*.06;ws==null||ws.setRoute(null),ws=null,Promise.all([kt(k),bt(k)]).then(([F,V])=>{ws=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:G,fitBoundsPadding:{top:k,bottom:F,left:V,right:k}}),ws.setRoute(pe.directionsResult).then(()=>{ws.setStepIndex(0)}),j.current.location=pe.destinationLocation,pe.destinationLocation.id==="USER_POSITION"?E(null):E(G.getDisplayRule(pe.destinationLocation)),Ht(null)})}},[e,pe,G,ue]);function kt(k){return new Promise(F=>{if(J)te?zm().then(V=>F(V)):F(k);else return Sf().then(V=>F(V))})}function bt(k){return new Promise(F=>{J?te?F(k):kh().then(V=>F(V)):F(k)})}be.useEffect(()=>{!e&&ws&&(si(),Ht(CL.minZoom))},[e]);function oi(){return pe?pe.directionsResult.legs.reduce((k,F)=>{for(const V in F.steps){const Z=F.steps[V];k.push(Z)}return k},[]):[]}function At(){ws&&ws.nextStep()}function Tt(){ws&&ws.previousStep()}function si(){ws==null||ws.setRoute(null),ws=null}function Ot(){we(0),me(!1),ne(qn.FIT)}function Ht(k){dt==="mapbox"?G.getMapView().getMap().setMinZoom(k):dt==="google"&&G.getMapView().getMap().setOptions({minZoom:k})}function W(){Ot(),si(),i()}function ne(k){typeof o=="function"&&o(k)}function T(){const k=`${Ge}&directionsFrom=${te.id}&directionsTo=${xt.id}`;re(k)}return be.useEffect(()=>(b.current=requestAnimationFrame(()=>{ne(qe?qn.MAX:qn.FIT)}),()=>{b.current&&cancelAnimationFrame(b.current)}),[qe]),be.useEffect(()=>{e&&d&&me(d===qn.MAX)},[e,d]),Pe.jsxs("div",{className:"directions",style:{display:Ke?"block":"grid"},children:[Pe.jsxs("div",{className:"directions__steps",children:[Pe.jsx("div",{className:"directions__minutes",children:Q&&Pe.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:Q})}),Pe.jsx(AL,{steps:oi(),originLocation:pe==null?void 0:pe.originLocation,onNextStep:()=>At(),isOpen:e,onPreviousStep:()=>Tt()})]}),Ke&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("hr",{}),Pe.jsxs("div",{className:"directions__kiosk",children:[Pe.jsx(M4,{onAccessibilityChanged:()=>Ot()}),Pe.jsxs("button",{className:"directions__qr-code",onClick:()=>T(),children:[Pe.jsx(mL,{}),_("Scan QR code")]})]})]}),Pe.jsxs("div",{className:"directions__actions",children:[Pe.jsx("div",{className:"directions__details",children:(pe==null?void 0:pe.destinationLocation)&&Pe.jsxs("div",{className:"directions__info",children:[a&&pe.destinationLocation.id!=="USER_POSITION"&&Pe.jsx("div",{className:"directions__icon",children:Pe.jsx("img",{alt:"",src:a.icon.src?a.icon.src:a.icon})}),Pe.jsxs("div",{className:"directions__content",children:[Pe.jsx("div",{className:"directions__name",children:pe==null?void 0:pe.destinationLocation.properties.name}),Pe.jsx("mi-location-info",{ref:j,"show-external-id":st})]})]})}),Me?Pe.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:xe},children:_("Finish route")}):Pe.jsx("button",{className:"directions__cancel",onClick:()=>W(),children:_("Cancel route")})]})]})}const Jae="",EL=On({key:"useKeyboard",default:!1}),NL=be.forwardRef(function(i,o){const{searchInputElement:u}=i,d=be.useRef(),_=Oi(Fh);return be.useImperativeHandle(o,()=>({clearInputField(){d.current.clearInputField()}})),be.useEffect(()=>{const{current:b}=d;u&&(b.inputElement=u)},[u]),Pe.jsx("mi-keyboard",{language:_,ref:d})});NL.propTypes={searchInputElement:ht.instanceOf(HTMLInputElement)};const vv=On({key:"searchResults",default:[]}),D4=On({key:"selectedCategory",default:void 0}),ele="";function YZ(){return new Promise(e=>{const i=document.querySelector(".chip--active");if(i)e(i);else{const o=new MutationObserver(()=>{const u=document.querySelector(".chip--active");u&&(o.disconnect(),e(u))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const GZ=On({key:"isBottomSheetLoaded",default:!1}),LL=On({key:"category",default:void 0}),zL=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),ZZ=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));S4.propTypes={onSetSize:ht.func,getFilteredLocations:ht.func,searchFieldRef:ht.object,isOpen:ht.bool,topLevelCategory:ht.bool,handleBack:ht.func,selectedCategoriesArray:ht.object,categoryOrientation:ht.oneOf(["horizontal","vertical"])};function S4({onSetSize:e,getFilteredLocations:i,searchFieldRef:o,isOpen:u,topLevelCategory:d,handleBack:_,selectedCategoriesArray:b,categoryOrientation:a}){const E=Oi(Om),j=Ja(),[Q,ie]=on(D4),[,G]=on(vv),[,ue]=on(ev),pe=Of(),[we,qe]=be.useState(),me=Oi(GZ),te=Oi(LL),J=Oi(ca),re=dL(J,u),[Me,xe]=be.useState([]),[Ke,st]=be.useState([]),{t:Ge}=cs(),xt=jh(),dt=be.useRef(null),[kt,bt]=be.useState(!1),[oi,At]=be.useState(!1),Tt=k=>{Ht&&dt.current&&dt.current.scrollBy({left:k==="left"?-200:200,behavior:"smooth"})},si=()=>{if(dt.current){const{scrollLeft:k,scrollWidth:F,clientWidth:V}=dt.current,Z=k<=0,se=k>=F-V-1;bt(!Z),At(!se)}},Ot=!d&&Me.length===0,Ht=xt&&a==="horizontal"&&!Ot;be.useEffect(()=>{if(!Ht)return;const k=dt.current;if(k)return si(),k.addEventListener("scroll",si),()=>{k.removeEventListener("scroll",si)}},[Ht,Me.length]);const W=`categories prevent-scroll${xt?` categories--kiosk-${a||"vertical"}`:""}`;function ne(k){typeof e=="function"&&e(k)}function T(k){ie(k),Q===k?(G([]),ie(null),ue([]),o.current.getValue()&&o.current.triggerSearch()):o.current.getValue()?o.current.triggerSearch():i(k)}return be.useEffect(()=>{var k;re&&Q&&(ie(null),G([]),ue([]),(k=o.current)!=null&&k.getValue()&&o.current.clear())},[re]),be.useEffect(()=>{Q&&(YZ().then(k=>qe(k)),ne(qn.MAX))},[Q]),be.useEffect(()=>{we&&te!==void 0&&(j||!j&&me)&&we.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[we,te,me]),be.useEffect(()=>{var V,Z,se;let k=[];if(d){const he=E.flatMap(([,le])=>le.childKeys||[]);k=E.filter(([le])=>!he.includes(le))}else if(Q){const he=(V=E.find(([ve])=>ve===Q))==null?void 0:V[1],le=(he==null?void 0:he.childKeys)||[];k=E.filter(([ve])=>le.includes(ve))}xe(k);const F=(se=(Z=E.find(([he])=>he===Q))==null?void 0:Z[1])==null?void 0:se.displayName;st(F)},[E]),Pe.jsx("div",{className:W,...pe,children:E.length>0&&Pe.jsxs(Pe.Fragment,{children:[!d&&Pe.jsxs("div",{className:"categories__nav",children:[Pe.jsx("button",{"aria-label":Ge("Back"),type:"button",className:"categories__nav-button",onClick:_,children:Pe.jsx(zL,{})}),Pe.jsx("div",{children:Ke})]}),Pe.jsxs("div",{className:"categories__row",children:[Ht&&Pe.jsx("div",{className:"categories__chevron categories__chevron--left",children:Pe.jsx("button",{"aria-label":Ge("Previous categories"),type:"button",disabled:!kt,onClick:()=>Tt("left"),children:Pe.jsx(zL,{})})}),Pe.jsx("div",{className:"categories__list",ref:xt?dt:void 0,children:Me.map(([k,F])=>!d&&b.current.length!==1?null:Pe.jsx("div",{className:"categories__category",children:Pe.jsxs("button",{onClick:()=>d?T(k):i(k),children:[Pe.jsx("img",{src:F.iconUrl,alt:""}),F.displayName]})},k))}),Ht&&Pe.jsx("div",{className:"categories__chevron categories__chevron--right",children:Pe.jsx("button",{"aria-label":Ge("Next categories"),type:"button",disabled:!oi,onClick:()=>Tt("right"),children:Pe.jsx(ZZ,{})})})]})]})})}const WZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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"})),xv=On({key:"isLegendDialogVisible",default:!1}),OL=R_({key:"legendFields",get:({get:e})=>{const i=e(Dl);if(!(i!=null&&i.properties.fields))return;const o=[];for(const d of Object.keys(i.properties.fields)){const _=parseInt(d.charAt(0));if(!Number.isInteger(_))continue;const b=o.find(j=>j.index===_),a=d.toLowerCase().includes("legendheading"),E=d.toLowerCase().includes("legendcontent");if(b)a?b.heading=i.properties.fields[d].value:E&&(b.content=i.properties.fields[d].value);else{const j={index:_,heading:a?i.properties.fields[d].value:null,content:E?i.properties.fields[d].value:null};o.push(j)}}return o.sort((d,_)=>d.index-_.index)}}),A4=On({key:"initialVenueName",default:null});C4.propTypes={categories:ht.array,onSetSize:ht.func,isOpen:ht.bool};function C4({onSetSize:e,isOpen:i}){const o=Oi(cv),{t:u}=cs(),d=be.useRef(),_=be.useRef(),b=be.useRef(),a=be.useRef(),E=be.useRef(),j=100,[Q,ie]=be.useState(!0),[G,ue]=on(vv),pe=Oi(Om),we=Oi(EL),[qe,me]=be.useState(!1),[te,J]=on(D4),re=Of(),[Me,xe]=be.useState(),Ke=Oi(ca),[,st]=on(ev),[,Ge]=on(xc),[,xt]=on(uv),[dt,kt]=on(bu),bt=Oi(Fh),oi=Ja(),At=Oi(Dl),[Tt,si]=be.useState(!1),Ot=Oi(x4),Ht=jh(),[,W]=on(xv),[ne,T]=be.useState(!1),k=Oi(OL),F=Oi(fv),V=Oi(km),Z=Oi(A4),[se,he]=be.useState(!1),le=be.useRef([]),[ve,He]=be.useState([]),[et,Ue]=be.useState(!1);function Xe(){var Ft,Yi,Ei;le.current.length===1?(J(null),ue([]),st([]),rt(qn.FIT),he(!0),((Yi=(Ft=a.current)==null?void 0:Ft.getValue())==null?void 0:Yi.trim())?a.current.triggerSearch():(Ei=a.current)==null||Ei.clear(),le.current.pop()):(le.current.pop(),J(le.current[0]))}function Be(Ft){var Yi;le.current.includes(Ft)||le.current.push(Ft),te&&(J([]),ue([]),st([])),J(Ft),window.mapsindoors.services.LocationsService.getLocations({categories:Ft,venue:F||(Yi=V.find(Ei=>Ei.name.toLowerCase()===dt.toLowerCase()))==null?void 0:Yi.name}).then(Ei=>mt(Ei,!0))}function rt(Ft){typeof e=="function"&&e(Ft)}function mt(Ft,Yi=!1){var Ri;const Ei=Ft.slice(0,j);rt(qn.MAX),ue(Ei),st(Ei),me(Ei.length===0),Ft&&Yi&&Mt(Ft),Ht&&((Ri=d.current)==null||Ri.addEventListener("transitionend",()=>{var dn;(dn=_==null?void 0:_.current)==null||dn.updateScrollButtons()},{once:!0}))}function Mt(Ft){if(!Ke.goTo)return;const Yi=Ke.getFloor(),Ei={type:"FeatureCollection",features:Ft.filter(Ri=>parseInt(Ri.properties.floor,10)===parseInt(Yi,10)).filter(Ri=>Ri.properties.venueId.toLowerCase()===dt.toLowerCase()).map(Ri=>({type:"Feature",geometry:Ri.geometry,properties:Ri.properties}))};Ei.features.length>0&&Promise.all([ai(),Bt()]).then(([Ri,dn])=>{Ke.goTo(Ei,{maxZoom:22,padding:{bottom:Ri,left:dn,top:0,right:0}})})}function Nt(){ue([]),me(!1),te&&Be(te),st([]),kr(E.current)||E.current.clearInputField()}function di(){ie(!1),a.current.getInputField();const Ft=d.current.closest(".sheet");Ft?Ft.addEventListener("transitionend",()=>{a.current.focusInput(),he(!0)},{once:!0}):(a.current.focusInput(),he(!0))}function Xt(Ft){xe(Ft)}function Ii(Ft){Ge(Ft),Ft.properties.venueId.toLowerCase()!==dt.toLowerCase()&&(kt(Ft.properties.venueId),xt(!0));const Yi=Ke.getFloor(),Ei=Ft.properties.floor;Ei!==Yi&&Ke.setFloor(Ei),Promise.all([ai(),Bt()]).then(([Ri,dn])=>{Ke.goTo(Ft,{maxZoom:22,padding:{bottom:Ri,left:dn,top:0,right:0}})})}function ai(){return new Promise(Ft=>{oi?At?zm().then(Yi=>Ft(Yi)):Ft(0):Ft(200)})}function Bt(){return new Promise(Ft=>{oi?At?Ft(0):kh().then(Yi=>Ft(Yi)):Ft(0)})}function Ti(){if(G.length>0){let Ft;return oi?Ft=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":Ft="100%",{display:"flex",flexDirection:"column",maxHeight:Ft,overflow:"hidden"}}}function xi(){return Ht&&et}return be.useEffect(()=>{const Ft=[".search__info",".search__back-button",".categories",".sheet__content"],Yi=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],Ei=Ri=>{const dn=Ft.some(En=>Ri.target.closest(En)),pn=Yi.some(En=>Ri.target.closest(En)),sn=Ri.target.closest(".search__results");dn?(rt(qn.MAX),b.current=requestAnimationFrame(()=>{he(!0)})):!sn&&!pn&&(he(!1),rt(qn.MIN),J(null),ue([]),st([]),le.current=[])};return i?b.current=requestAnimationFrame(()=>{document.addEventListener("click",Ei)}):document.removeEventListener("click",Ei),()=>{document.removeEventListener("click",Ei),b.current&&cancelAnimationFrame(b.current)}},[i]),be.useEffect(()=>()=>{xe()},[]),be.useEffect(()=>{te&&dt!==Z&&(ue([]),J(null))},[dt]),be.useEffect(()=>{te&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{a.current.triggerSearch()})},[bt]),be.useEffect(()=>(Ke==null||Ke.on("mouseenter",Xt),()=>{Ke==null||Ke.off("mouseenter",Xt)}),[Ke]),be.useEffect(()=>{if(i&&Ht&&G.length>0){const Ft=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=Ft}},[G,i]),be.useEffect(()=>{if(we){const Ft=Yi=>{Yi.target.closest("mi-keyboard")||Yi.target.tagName.toUpperCase()==="MI-SEARCH"||Yi.target.tagName.toUpperCase()==="INPUT"?si(!0):si(!1)};return window.addEventListener("click",Ft,!1),()=>{window.removeEventListener("click",Ft,!1)}}},[we]),be.useEffect(()=>{te&&Be(te)},[te]),be.useEffect(()=>{At&&T(k.length>0)},[At]),be.useEffect(()=>{var Yi,Ei;const Ft=((Ei=(Yi=pe.find(([Ri])=>Ri===te))==null?void 0:Yi[1])==null?void 0:Ei.childKeys)||[];He(Ft)},[pe,te]),be.useEffect(()=>{var Ft,Yi;Ue(((Ft=o==null?void 0:o.appSettings)==null?void 0:Ft.areHorizontalCategoriesEnabled)===!0||((Yi=o==null?void 0:o.appSettings)==null?void 0:Yi.areHorizontalCategoriesEnabled)==="true")},[o]),Pe.jsxs("div",{className:"search",ref:d,style:Ti(),children:[Pe.jsxs("div",{className:"search__info",style:{gridTemplateColumns:Ht&&ne?"min-content 1fr":"auto"},children:[Ht&&ne&&Pe.jsx("button",{className:"search__legend",onClick:()=>W(!0),children:Pe.jsx(WZ,{})}),Pe.jsxs("label",{className:"search__label",children:[Pe.jsx("span",{children:u("Search by name, category, building...")}),Pe.jsx(mv,{ref:a,mapsindoors:!0,placeholder:u("Search by name, category, building..."),results:Ft=>mt(Ft),clicked:()=>di(),cleared:()=>Nt(),category:te,disabled:Q})]})]}),(xi()||se)&&!qe&&pe.length>0&&G.length===0&&Pe.jsx(S4,{onSetSize:e,searchFieldRef:a,getFilteredLocations:Ft=>Be(Ft),isOpen:!!te,topLevelCategory:!0,categoryOrientation:et?"horizontal":"vertical"}),qe&&Pe.jsxs("p",{className:"search__error",children:[" ",u("Nothing was found")]}),G.length>0&&Pe.jsxs("div",{className:"search__results prevent-scroll",...re,children:[te&&Pe.jsx(S4,{handleBack:Xe,getFilteredLocations:Ft=>Be(Ft),onLocationClicked:Ii,childKeys:ve,topLevelCategory:!1,selectedCategoriesArray:le,categoryOrientation:et?"horizontal":"vertical"}),Pe.jsx("div",{className:"search__results",children:G.map(Ft=>Pe.jsx(gv,{location:Ft,locationClicked:()=>Ii(Ft),isHovered:(Ft==null?void 0:Ft.id)===(Me==null?void 0:Me.id)},Ft.id))})]}),Tt&&oi&&Pe.jsx(NL,{ref:E,searchInputElement:Ot}),i&&Ht&&G.length>0&&yu.createPortal(Pe.jsx("div",{className:"search__scroll-buttons",children:Pe.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const tle="";E4.propTypes={onLocationClick:ht.func.isRequired,onBack:ht.func.isRequired,locations:ht.arrayOf(ht.object),onSetSize:ht.func};function E4({onBack:e,onLocationClick:i,locations:o,onSetSize:u}){const{t:d}=cs(),_=Of();function b(a){typeof u=="function"&&u(a)}return be.useEffect(()=>{b(qn.FIT)},[]),Pe.jsxs("div",{className:"locations-list",children:[Pe.jsxs("div",{className:"locations-list__header",children:[Pe.jsxs("div",{className:"locations-list__title",children:[o==null?void 0:o.length," ",d("Locations")]}),Pe.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":d("Close"),children:Pe.jsx(Rm,{})})]}),Pe.jsx("div",{className:"locations-list__scrollable prevent-scroll",..._,children:Pe.jsx("div",{className:"locations-list__list",children:o==null?void 0:o.map(a=>Pe.jsx(gv,{location:a,locationClicked:E=>i(E)},a.id))})})]})}kL.propTypes={directionsFromLocation:ht.string,directionsToLocation:ht.string,pushAppView:ht.func.isRequired,currentAppView:ht.string,appViews:ht.object,onRouteFinished:ht.func.isRequired};function kL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),Q=be.useRef(),ie=be.useRef(),[G,ue]=on(xc),[pe,we]=be.useState(!1),[qe,me]=on(tv),[,te]=on(nv);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):G?o(d.LOCATION_DETAILS,G):(qe==null?void 0:qe.length)>1?o(d.EXTERNALIDS):(qe==null?void 0:qe.length)===1?(ue(qe[0]),te(qe[0].id)):o(d.SEARCH))},[G,e,i,qe]),be.useEffect(()=>{if(G){const xe=G.properties.imageURL||G.properties.description||G.properties.additionalDetails||Object.keys(G.properties.categories).length>0;we(xe)}},[G]);function J(){(qe==null?void 0:qe.length)>1?(o(d.EXTERNALIDS),ue()):(qe==null?void 0:qe.length)===1?(o(d.SEARCH),ue(),me([]),a.current.setSnapPoint(qn.MIN)):(o(d.SEARCH),ue(),a.current.setSnapPoint(qn.MIN))}function re(){o(d.SEARCH),ue(),me([])}const Me=[Pe.jsx(zf,{minimizedHeight:80,initialSnapPoint:qn.MIN,isOpen:u===d.SEARCH,ref:a,children:Pe.jsx(C4,{isOpen:u===d.SEARCH,onSetSize:xe=>a.current.setSnapPoint(xe)})},"SEARCH"),Pe.jsx(zf,{minimizedHeight:200,isOpen:u===d.EXTERNALIDS,initialSnapPoint:qn.MIN,ref:E,children:Pe.jsx(E4,{onSetSize:xe=>E.current.setSnapPoint(xe),onBack:()=>re(),locations:qe,onLocationClick:xe=>ue(xe)})},"EXTERNALIDS"),Pe.jsx(zf,{minimizedHeight:pe?180:136,initialSnapPoint:qn.MIN,isOpen:u===d.LOCATION_DETAILS,ref:j,children:Pe.jsx(v4,{onSetSize:xe=>j.current.setSnapPoint(xe),onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>J(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(zf,{minimizedHeight:190,initialSnapPoint:qn.FIT,isOpen:u===d.WAYFINDING,ref:Q,children:Pe.jsx(I4,{onSetSize:xe=>Q.current.setSnapPoint(xe),onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(G?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(zf,{minimizedHeight:273,isOpen:u===d.DIRECTIONS,initialSnapPoint:qn.FIT,ref:ie,children:Pe.jsx(T4,{onSetSize:xe=>ie.current.setSnapPoint(xe),isOpen:u===d.DIRECTIONS,onBack:()=>o(d.WAYFINDING),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{ref:b,className:"bottom-sheets",children:Pe.jsx(oL.Provider,{value:b,children:Me})})}const qZ={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},KZ=()=>{const[e,i]=be.useState(void 0),[o,u]=be.useState(),[d,_]=be.useState(null);be.useEffect(()=>{function j(Q){var ie,G;i((ie=Q.state)==null?void 0:ie.value),u((G=Q.state)==null?void 0:G.payload)}return window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}},[]);const b=(j,Q)=>{window.history.pushState({value:j,payload:Q},""),i(j),d===null&&_({value:j,payload:Q})};return[b,()=>{window.history.back()},e,o,qZ,()=>{b(d.value,d.payload)}]},XZ=On({key:"showQRCodeDialog",default:!1});function JZ(){const e=Oi(A4),[,i]=on(bu),o=Mo(yv),u=Mo(xc),d=Mo(Fm),_=Mo(hv),b=Mo(uv),a=Mo(Lm),E=Mo(XZ),j=Mo(_v),Q=Mo(Um),ie=Mo(vv),G=Mo(Vm),ue=Mo(xv),pe=Mo(IN),we=Mo(K3);return()=>{o(),u(),d(),_(),b(),a(),E(),j(),Q(),ie(),G(),ue(),pe(),we(),e&&i(e)}}const ile="";kf.propTypes={children:ht.node,isOpen:ht.bool};function kf({children:e,isOpen:i}){const[o,u]=be.useState(!1),d=Oi(Dl),_=be.useRef(),b=be.useRef();return be.useEffect(()=>{if(!b)return;const a=new MutationObserver(()=>{var Q;const E=b.current.clientHeight,j=(Q=_.current)==null?void 0:Q.clientHeight;u(E>j)});return a.observe(b.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[b]),Pe.jsx("div",{ref:_,className:`modal ${i?"modal--open":""} ${o?"modal--full":""} ${d?"modal--kiosk":""}`,children:Pe.jsx("div",{ref:b,className:"modal__content",children:e})})}jL.propTypes={directionsFromLocation:ht.string,directionsToLocation:ht.string,pushAppView:ht.func,currentAppView:ht.string,appViews:ht.object,filteredLocationsByExternalIDs:ht.array,onRouteFinished:ht.func};function jL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const[b,a]=on(xc),[E,j]=on(tv),[,Q]=on(nv),ie=Oi(Dl);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):b?o(d.LOCATION_DETAILS,b):(E==null?void 0:E.length)>1?o(d.EXTERNALIDS):(E==null?void 0:E.length)===1?(a(E[0]),Q(E[0].id)):o(d.SEARCH))},[b,e,i,E]);function G(){(E==null?void 0:E.length)>1?(o(d.EXTERNALIDS),a()):(E==null?void 0:E.length)===1?(o(d.SEARCH),a(),j([])):(o(d.SEARCH),a())}function ue(){o(d.SEARCH),a(),j([])}function pe(){o(ie?d.LOCATION_DETAILS:d.WAYFINDING)}const we=[Pe.jsx(kf,{isOpen:u===d.SEARCH,children:Pe.jsx(C4,{isOpen:u===d.SEARCH})},"SEARCH"),Pe.jsx(kf,{isOpen:u===d.EXTERNALIDS,children:Pe.jsx(E4,{onBack:()=>ue(),locations:E,onLocationClick:qe=>a(qe)})},"EXTERNALIDS"),Pe.jsx(kf,{isOpen:u===d.LOCATION_DETAILS,children:Pe.jsx(v4,{onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>G(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(kf,{isOpen:u===d.WAYFINDING,children:Pe.jsx(I4,{onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(b?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(kf,{isOpen:u===d.DIRECTIONS,children:Pe.jsx(T4,{isOpen:u===d.DIRECTIONS,onBack:()=>pe(),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{children:we})}const PL=e=>{const[i,o]=be.useState(),u=Oi(K_),d=Oi(vN);return be.useEffect(()=>{d&&e&&(e==="USER_POSITION"&&!u?(o("USER_POSITION_PENDING"),d.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(_=>o(_)),u&&e==="USER_POSITION"&&o(w4(u)))},[e,u,d]),i},eW=On({key:"gmMapId",default:null}),nle="";function tW(){const e=Oi(Lm),i=be.useRef();return be.useEffect(()=>{var o;(o=i.current)==null||o.classList.add("notification"),e?i.current.push(e.text,e.type,!0):i.current.clearAll()},[e]),Pe.jsx("mi-notification",{ref:i,position:"top-center"})}const rle="";var Qm={},iW=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},RL={},ha={};let N4;const nW=[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];ha.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},ha.getSymbolTotalCodewords=function(i){return nW[i]},ha.getBCHDigit=function(e){let i=0;for(;e!==0;)i++,e>>>=1;return i},ha.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');N4=i},ha.isKanjiModeEnabled=function(){return typeof N4<"u"},ha.toSJIS=function(i){return N4(i)};var wv={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},e.from=function(u,d){if(e.isValid(u))return u;try{return i(u)}catch{return d}}})(wv);function BL(){this.buffer=[],this.length=0}BL.prototype={get:function(e){const i=Math.floor(e/8);return(this.buffer[i]>>>7-e%8&1)===1},put:function(e,i){for(let o=0;o<i;o++)this.putBit((e>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),e&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var rW=BL;function Hm(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)}Hm.prototype.set=function(e,i,o,u){const d=e*this.size+i;this.data[d]=o,u&&(this.reservedBit[d]=!0)},Hm.prototype.get=function(e,i){return this.data[e*this.size+i]},Hm.prototype.xor=function(e,i,o){this.data[e*this.size+i]^=o},Hm.prototype.isReserved=function(e,i){return this.reservedBit[e*this.size+i]};var oW=Hm,FL={};(function(e){const i=ha.getSymbolSize;e.getRowColCoords=function(u){if(u===1)return[];const d=Math.floor(u/7)+2,_=i(u),b=_===145?26:Math.ceil((_-13)/(2*d-2))*2,a=[_-7];for(let E=1;E<d-1;E++)a[E]=a[E-1]-b;return a.push(6),a.reverse()},e.getPositions=function(u){const d=[],_=e.getRowColCoords(u),b=_.length;for(let a=0;a<b;a++)for(let E=0;E<b;E++)a===0&&E===0||a===0&&E===b-1||a===b-1&&E===0||d.push([_[a],_[E]]);return d}})(FL);var UL={};const sW=ha.getSymbolSize,VL=7;UL.getPositions=function(i){const o=sW(i);return[[0,0],[o-VL,0],[0,o-VL]]};var QL={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},e.from=function(d){return e.isValid(d)?parseInt(d,10):void 0},e.getPenaltyN1=function(d){const _=d.size;let b=0,a=0,E=0,j=null,Q=null;for(let ie=0;ie<_;ie++){a=E=0,j=Q=null;for(let G=0;G<_;G++){let ue=d.get(ie,G);ue===j?a++:(a>=5&&(b+=i.N1+(a-5)),j=ue,a=1),ue=d.get(G,ie),ue===Q?E++:(E>=5&&(b+=i.N1+(E-5)),Q=ue,E=1)}a>=5&&(b+=i.N1+(a-5)),E>=5&&(b+=i.N1+(E-5))}return b},e.getPenaltyN2=function(d){const _=d.size;let b=0;for(let a=0;a<_-1;a++)for(let E=0;E<_-1;E++){const j=d.get(a,E)+d.get(a,E+1)+d.get(a+1,E)+d.get(a+1,E+1);(j===4||j===0)&&b++}return b*i.N2},e.getPenaltyN3=function(d){const _=d.size;let b=0,a=0,E=0;for(let j=0;j<_;j++){a=E=0;for(let Q=0;Q<_;Q++)a=a<<1&2047|d.get(j,Q),Q>=10&&(a===1488||a===93)&&b++,E=E<<1&2047|d.get(Q,j),Q>=10&&(E===1488||E===93)&&b++}return b*i.N3},e.getPenaltyN4=function(d){let _=0;const b=d.data.length;for(let E=0;E<b;E++)_+=d.data[E];return Math.abs(Math.ceil(_*100/b/5)-10)*i.N4};function o(u,d,_){switch(u){case e.Patterns.PATTERN000:return(d+_)%2===0;case e.Patterns.PATTERN001:return d%2===0;case e.Patterns.PATTERN010:return _%3===0;case e.Patterns.PATTERN011:return(d+_)%3===0;case e.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(_/3))%2===0;case e.Patterns.PATTERN101:return d*_%2+d*_%3===0;case e.Patterns.PATTERN110:return(d*_%2+d*_%3)%2===0;case e.Patterns.PATTERN111:return(d*_%3+(d+_)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}e.applyMask=function(d,_){const b=_.size;for(let a=0;a<b;a++)for(let E=0;E<b;E++)_.isReserved(E,a)||_.xor(E,a,o(d,E,a))},e.getBestMask=function(d,_){const b=Object.keys(e.Patterns).length;let a=0,E=1/0;for(let j=0;j<b;j++){_(j),e.applyMask(j,d);const Q=e.getPenaltyN1(d)+e.getPenaltyN2(d)+e.getPenaltyN3(d)+e.getPenaltyN4(d);e.applyMask(j,d),Q<E&&(E=Q,a=j)}return a}})(QL);var bv={};const Iu=wv,Mv=[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],Iv=[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];bv.getBlocksCount=function(i,o){switch(o){case Iu.L:return Mv[(i-1)*4+0];case Iu.M:return Mv[(i-1)*4+1];case Iu.Q:return Mv[(i-1)*4+2];case Iu.H:return Mv[(i-1)*4+3];default:return}},bv.getTotalCodewordsCount=function(i,o){switch(o){case Iu.L:return Iv[(i-1)*4+0];case Iu.M:return Iv[(i-1)*4+1];case Iu.Q:return Iv[(i-1)*4+2];case Iu.H:return Iv[(i-1)*4+3];default:return}};var HL={},Tv={};const $m=new Uint8Array(512),Dv=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)$m[o]=i,Dv[i]=o,i<<=1,i&256&&(i^=285);for(let o=255;o<512;o++)$m[o]=$m[o-255]})(),Tv.log=function(i){if(i<1)throw new Error("log("+i+")");return Dv[i]},Tv.exp=function(i){return $m[i]},Tv.mul=function(i,o){return i===0||o===0?0:$m[Dv[i]+Dv[o]]},function(e){const i=Tv;e.mul=function(u,d){const _=new Uint8Array(u.length+d.length-1);for(let b=0;b<u.length;b++)for(let a=0;a<d.length;a++)_[b+a]^=i.mul(u[b],d[a]);return _},e.mod=function(u,d){let _=new Uint8Array(u);for(;_.length-d.length>=0;){const b=_[0];for(let E=0;E<d.length;E++)_[E]^=i.mul(d[E],b);let a=0;for(;a<_.length&&_[a]===0;)a++;_=_.slice(a)}return _},e.generateECPolynomial=function(u){let d=new Uint8Array([1]);for(let _=0;_<u;_++)d=e.mul(d,new Uint8Array([1,i.exp(_)]));return d}}(HL);const $L=HL;function L4(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}L4.prototype.initialize=function(i){this.degree=i,this.genPoly=$L.generateECPolynomial(this.degree)},L4.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(i.length+this.degree);o.set(i);const u=$L.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const _=new Uint8Array(this.degree);return _.set(u,d),_}return u};var aW=L4,YL={},Tu={},z4={};z4.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};var Sl={};const GL="[0-9]+",lW="[A-Z $%*+\\-./:]+";let Ym="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ym=Ym.replace(/u/g,"\\u");const cW="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ym+`)(?:.|[\r
43
+ hot module replacement.`;console.warn(i)}}function vB(e){ff.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&_B(e.key),Eh.set(e.key,e);const i=e.set==null?new pf.RecoilValueReadOnly(e.key):new pf.RecoilState(e.key);return s3.set(e.key,i),i}class HC extends Error{}function xB(e){const i=Eh.get(e);if(i==null)throw new HC(`Missing definition for RecoilValue: "${e}""`);return i}function wB(e){return Eh.get(e)}const f_=new Map;function bB(e){var i;if(!qr("recoil_memory_managament_2020"))return;const o=Eh.get(e);if(o!=null&&(i=o.shouldDeleteConfigOnRelease)!==null&&i!==void 0&&i.call(o)){var u;Eh.delete(e),(u=$C(e))===null||u===void 0||u(),f_.delete(e)}}function MB(e,i){qr("recoil_memory_managament_2020")&&(i===void 0?f_.delete(e):f_.set(e,i))}function $C(e){return f_.get(e)}var Ws={nodes:Eh,recoilValues:s3,registerNode:vB,getNode:xB,getNodeMaybe:wB,deleteNodeConfigIfPossible:bB,setConfigDeletionHandler:MB,getConfigDeletionHandler:$C,recoilValuesForKeys:yB,NodeMissingError:HC,DefaultValue:QC,DEFAULT_VALUE:mB};function IB(e,i){i()}var TB={enqueueExecution:IB};function DB(e,i){return i={exports:{}},e(i,i.exports),i.exports}var SB=DB(function(e){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(vt){return typeof vt}:function(vt){return vt&&typeof Symbol=="function"&&vt.constructor===Symbol&&vt!==Symbol.prototype?"symbol":typeof vt},o={},u=5,d=Math.pow(2,u),_=d-1,b=d/2,a=d/4,E={},j=function(pt){return function(){return pt}},Q=o.hash=function(vt){var pt=typeof vt>"u"?"undefined":i(vt);if(pt==="number")return vt;pt!=="string"&&(vt+="");for(var ri=0,Gt=0,Jt=vt.length;Gt<Jt;++Gt){var mi=vt.charCodeAt(Gt);ri=(ri<<5)-ri+mi|0}return ri},ie=function(pt){return pt-=pt>>1&1431655765,pt=(pt&858993459)+(pt>>2&858993459),pt=pt+(pt>>4)&252645135,pt+=pt>>8,pt+=pt>>16,pt&127},G=function(pt,ri){return ri>>>pt&_},ue=function(pt){return 1<<pt},pe=function(pt,ri){return ie(pt&ri-1)},we=function(pt,ri,Gt,Jt){var mi=Jt;if(!pt){var Si=Jt.length;mi=new Array(Si);for(var Qi=0;Qi<Si;++Qi)mi[Qi]=Jt[Qi]}return mi[ri]=Gt,mi},qe=function(pt,ri,Gt){var Jt=Gt.length-1,mi=0,Si=0,Qi=Gt;if(pt)mi=Si=ri;else for(Qi=new Array(Jt);mi<ri;)Qi[Si++]=Gt[mi++];for(++mi;mi<=Jt;)Qi[Si++]=Gt[mi++];return pt&&(Qi.length=Jt),Qi},me=function(pt,ri,Gt,Jt){var mi=Jt.length;if(pt){for(var Si=mi;Si>=ri;)Jt[Si--]=Jt[Si];return Jt[ri]=Gt,Jt}for(var Qi=0,cn=0,Ji=new Array(mi+1);Qi<ri;)Ji[cn++]=Jt[Qi++];for(Ji[ri]=Gt;Qi<mi;)Ji[++cn]=Jt[Qi++];return Ji},te=1,J=2,re=3,Me=4,xe={__hamt_isEmpty:!0},Ke=function(pt){return pt===xe||pt&&pt.__hamt_isEmpty},st=function(pt,ri,Gt,Jt){return{type:te,edit:pt,hash:ri,key:Gt,value:Jt,_modify:Ot}},Ge=function(pt,ri,Gt){return{type:J,edit:pt,hash:ri,children:Gt,_modify:Ht}},xt=function(pt,ri,Gt){return{type:re,edit:pt,mask:ri,children:Gt,_modify:W}},dt=function(pt,ri,Gt){return{type:Me,edit:pt,size:ri,children:Gt,_modify:ne}},kt=function(pt){return pt===xe||pt.type===te||pt.type===J},bt=function(pt,ri,Gt,Jt,mi){for(var Si=[],Qi=Jt,cn=0,Ji=0;Qi;++Ji)Qi&1&&(Si[Ji]=mi[cn++]),Qi>>>=1;return Si[ri]=Gt,dt(pt,cn+1,Si)},oi=function(pt,ri,Gt,Jt){for(var mi=new Array(ri-1),Si=0,Qi=0,cn=0,Ji=Jt.length;cn<Ji;++cn)if(cn!==Gt){var wn=Jt[cn];wn&&!Ke(wn)&&(mi[Si++]=wn,Qi|=1<<cn)}return xt(pt,Qi,mi)},At=function vt(pt,ri,Gt,Jt,mi,Si){if(Gt===mi)return Ge(pt,Gt,[Si,Jt]);var Qi=G(ri,Gt),cn=G(ri,mi);return xt(pt,ue(Qi)|ue(cn),Qi===cn?[vt(pt,ri+u,Gt,Jt,mi,Si)]:Qi<cn?[Jt,Si]:[Si,Jt])},Tt=function(pt,ri,Gt,Jt,mi,Si,Qi,cn){for(var Ji=mi.length,wn=0;wn<Ji;++wn){var Dt=mi[wn];if(Gt(Qi,Dt.key)){var Vn=Dt.value,gr=Si(Vn);return gr===Vn?mi:gr===E?(--cn.value,qe(pt,wn,mi)):we(pt,wn,st(ri,Jt,Qi,gr),mi)}}var xr=Si();return xr===E?mi:(++cn.value,we(pt,Ji,st(ri,Jt,Qi,xr),mi))},si=function(pt,ri){return pt===ri.edit},Ot=function(pt,ri,Gt,Jt,mi,Si,Qi){if(ri(Si,this.key)){var cn=Jt(this.value);return cn===this.value?this:cn===E?(--Qi.value,xe):si(pt,this)?(this.value=cn,this):st(pt,mi,Si,cn)}var Ji=Jt();return Ji===E?this:(++Qi.value,At(pt,Gt,this.hash,this,mi,st(pt,mi,Si,Ji)))},Ht=function(pt,ri,Gt,Jt,mi,Si,Qi){if(mi===this.hash){var cn=si(pt,this),Ji=Tt(cn,pt,ri,this.hash,this.children,Jt,Si,Qi);return Ji===this.children?this:Ji.length>1?Ge(pt,this.hash,Ji):Ji[0]}var wn=Jt();return wn===E?this:(++Qi.value,At(pt,Gt,this.hash,this,mi,st(pt,mi,Si,wn)))},W=function(pt,ri,Gt,Jt,mi,Si,Qi){var cn=this.mask,Ji=this.children,wn=G(Gt,mi),Dt=ue(wn),Vn=pe(cn,Dt),gr=cn&Dt,xr=gr?Ji[Vn]:xe,Ye=xr._modify(pt,ri,Gt+u,Jt,mi,Si,Qi);if(xr===Ye)return this;var q=si(pt,this),ae=cn,de=void 0;if(gr&&Ke(Ye)){if(ae&=~Dt,!ae)return xe;if(Ji.length<=2&&kt(Ji[Vn^1]))return Ji[Vn^1];de=qe(q,Vn,Ji)}else if(!gr&&!Ke(Ye)){if(Ji.length>=b)return bt(pt,wn,Ye,cn,Ji);ae|=Dt,de=me(q,Vn,Ye,Ji)}else de=we(q,Vn,Ye,Ji);return q?(this.mask=ae,this.children=de,this):xt(pt,ae,de)},ne=function(pt,ri,Gt,Jt,mi,Si,Qi){var cn=this.size,Ji=this.children,wn=G(Gt,mi),Dt=Ji[wn],Vn=(Dt||xe)._modify(pt,ri,Gt+u,Jt,mi,Si,Qi);if(Dt===Vn)return this;var gr=si(pt,this),xr=void 0;if(Ke(Dt)&&!Ke(Vn))++cn,xr=we(gr,wn,Vn,Ji);else if(!Ke(Dt)&&Ke(Vn)){if(--cn,cn<=a)return oi(pt,cn,wn,Ji);xr=we(gr,wn,xe,Ji)}else xr=we(gr,wn,Vn,Ji);return gr?(this.size=cn,this.children=xr,this):dt(pt,cn,xr)};xe._modify=function(vt,pt,ri,Gt,Jt,mi,Si){var Qi=Gt();return Qi===E?xe:(++Si.value,st(vt,Jt,mi,Qi))};function T(vt,pt,ri,Gt,Jt){this._editable=vt,this._edit=pt,this._config=ri,this._root=Gt,this._size=Jt}T.prototype.setTree=function(vt,pt){return this._editable?(this._root=vt,this._size=pt,this):vt===this._root?this:new T(this._editable,this._edit,this._config,vt,pt)};var k=o.tryGetHash=function(vt,pt,ri,Gt){for(var Jt=Gt._root,mi=0,Si=Gt._config.keyEq;;)switch(Jt.type){case te:return Si(ri,Jt.key)?Jt.value:vt;case J:{if(pt===Jt.hash)for(var Qi=Jt.children,cn=0,Ji=Qi.length;cn<Ji;++cn){var wn=Qi[cn];if(Si(ri,wn.key))return wn.value}return vt}case re:{var Dt=G(mi,pt),Vn=ue(Dt);if(Jt.mask&Vn){Jt=Jt.children[pe(Jt.mask,Vn)],mi+=u;break}return vt}case Me:{if(Jt=Jt.children[G(mi,pt)],Jt){mi+=u;break}return vt}default:return vt}};T.prototype.tryGetHash=function(vt,pt,ri){return k(vt,pt,ri,this)};var F=o.tryGet=function(vt,pt,ri){return k(vt,ri._config.hash(pt),pt,ri)};T.prototype.tryGet=function(vt,pt){return F(vt,pt,this)};var V=o.getHash=function(vt,pt,ri){return k(void 0,vt,pt,ri)};T.prototype.getHash=function(vt,pt){return V(vt,pt,this)},o.get=function(vt,pt){return k(void 0,pt._config.hash(vt),vt,pt)},T.prototype.get=function(vt,pt){return F(pt,vt,this)};var Z=o.has=function(vt,pt,ri){return k(E,vt,pt,ri)!==E};T.prototype.hasHash=function(vt,pt){return Z(vt,pt,this)};var se=o.has=function(vt,pt){return Z(pt._config.hash(vt),vt,pt)};T.prototype.has=function(vt){return se(vt,this)};var he=function(pt,ri){return pt===ri};o.make=function(vt){return new T(0,0,{keyEq:vt&&vt.keyEq||he,hash:vt&&vt.hash||Q},xe,0)},o.empty=o.make();var le=o.isEmpty=function(vt){return vt&&!!Ke(vt._root)};T.prototype.isEmpty=function(){return le(this)};var ve=o.modifyHash=function(vt,pt,ri,Gt){var Jt={value:Gt._size},mi=Gt._root._modify(Gt._editable?Gt._edit:NaN,Gt._config.keyEq,0,vt,pt,ri,Jt);return Gt.setTree(mi,Jt.value)};T.prototype.modifyHash=function(vt,pt,ri){return ve(ri,vt,pt,this)};var He=o.modify=function(vt,pt,ri){return ve(vt,ri._config.hash(pt),pt,ri)};T.prototype.modify=function(vt,pt){return He(pt,vt,this)};var et=o.setHash=function(vt,pt,ri,Gt){return ve(j(ri),vt,pt,Gt)};T.prototype.setHash=function(vt,pt,ri){return et(vt,pt,ri,this)};var Ue=o.set=function(vt,pt,ri){return et(ri._config.hash(vt),vt,pt,ri)};T.prototype.set=function(vt,pt){return Ue(vt,pt,this)};var Xe=j(E),Be=o.removeHash=function(vt,pt,ri){return ve(Xe,vt,pt,ri)};T.prototype.removeHash=T.prototype.deleteHash=function(vt,pt){return Be(vt,pt,this)};var rt=o.remove=function(vt,pt){return Be(pt._config.hash(vt),vt,pt)};T.prototype.remove=T.prototype.delete=function(vt){return rt(vt,this)};var mt=o.beginMutation=function(vt){return new T(vt._editable+1,vt._edit+1,vt._config,vt._root,vt._size)};T.prototype.beginMutation=function(){return mt(this)};var Mt=o.endMutation=function(vt){return vt._editable=vt._editable&&vt._editable-1,vt};T.prototype.endMutation=function(){return Mt(this)};var Nt=o.mutate=function(vt,pt){var ri=mt(pt);return vt(ri),Mt(ri)};T.prototype.mutate=function(vt){return Nt(vt,this)};var di=function(pt){return pt&&Xt(pt[0],pt[1],pt[2],pt[3],pt[4])},Xt=function(pt,ri,Gt,Jt,mi){for(;Gt<pt;){var Si=ri[Gt++];if(Si&&!Ke(Si))return Ii(Si,Jt,[pt,ri,Gt,Jt,mi])}return di(mi)},Ii=function(pt,ri,Gt){switch(pt.type){case te:return{value:ri(pt),rest:Gt};case J:case Me:case re:var Jt=pt.children;return Xt(Jt.length,Jt,0,ri,Gt);default:return di(Gt)}},ai={done:!0};function Bt(vt){this.v=vt}Bt.prototype.next=function(){if(!this.v)return ai;var vt=this.v;return this.v=di(vt.rest),vt},Bt.prototype[Symbol.iterator]=function(){return this};var Ti=function(pt,ri){return new Bt(Ii(pt._root,ri))},xi=function(pt){return[pt.key,pt.value]},Ft=o.entries=function(vt){return Ti(vt,xi)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return Ft(this)};var Yi=function(pt){return pt.key},Ei=o.keys=function(vt){return Ti(vt,Yi)};T.prototype.keys=function(){return Ei(this)};var Ri=function(pt){return pt.value},dn=o.values=T.prototype.values=function(vt){return Ti(vt,Ri)};T.prototype.values=function(){return dn(this)};var pn=o.fold=function(vt,pt,ri){var Gt=ri._root;if(Gt.type===te)return vt(pt,Gt.value,Gt.key);for(var Jt=[Gt.children],mi=void 0;mi=Jt.pop();)for(var Si=0,Qi=mi.length;Si<Qi;){var cn=mi[Si++];cn&&cn.type&&(cn.type===te?pt=vt(pt,cn.value,cn.key):Jt.push(cn.children))}return pt};T.prototype.fold=function(vt,pt){return pn(vt,pt,this)};var sn=o.forEach=function(vt,pt){return pn(function(ri,Gt,Jt){return vt(Gt,Jt,pt)},null,pt)};T.prototype.forEach=function(vt){return sn(vt,this)};var En=o.count=function(vt){return vt._size};T.prototype.count=function(){return En(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=o:(void 0).hamt=o});class AB{constructor(i){ar(this,"_map",void 0),this._map=new Map(i==null?void 0:i.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(i){return this._map.get(i)}has(i){return this._map.has(i)}set(i,o){return this._map.set(i,o),this}delete(i){return this._map.delete(i),this}clone(){return l3(this)}toMap(){return new Map(this._map)}}class a3{constructor(i){if(ar(this,"_hamt",SB.empty.beginMutation()),i instanceof a3){const o=i._hamt.endMutation();i._hamt=o.beginMutation(),this._hamt=o.beginMutation()}else if(i)for(const[o,u]of i.entries())this._hamt.set(o,u)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(i){return this._hamt.get(i)}has(i){return this._hamt.has(i)}set(i,o){return this._hamt.set(i,o),this}delete(i){return this._hamt.delete(i),this}clone(){return l3(this)}toMap(){return new Map(this._hamt)}}function l3(e){return qr("recoil_hamt_2020")?new a3(e):new AB(e)}var CB={persistentMap:l3},EB=CB.persistentMap,NB=Object.freeze({__proto__:null,persistentMap:EB});function LB(e,...i){const o=new Set;e:for(const u of e){for(const d of i)if(d.has(u))continue e;o.add(u)}return o}var mm=LB;function zB(e,i){const o=new Map;return e.forEach((u,d)=>{o.set(d,i(u,d))}),o}var p_=zB;function OB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function kB(e){return{nodeDeps:p_(e.nodeDeps,i=>new Set(i)),nodeToNodeSubscriptions:p_(e.nodeToNodeSubscriptions,i=>new Set(i))}}function c3(e,i,o,u){const{nodeDeps:d,nodeToNodeSubscriptions:_}=o,b=d.get(e);if(b&&u&&b!==u.nodeDeps.get(e))return;d.set(e,i);const a=b==null?i:mm(i,b);for(const E of a)_.has(E)||_.set(E,new Set),uo(_.get(E)).add(e);if(b){const E=mm(b,i);for(const j of E){if(!_.has(j))return;const Q=uo(_.get(j));Q.delete(e),Q.size===0&&_.delete(j)}}}function jB(e,i,o,u){var d,_,b,a;const E=o.getState();u===E.currentTree.version||u===((d=E.nextTree)===null||d===void 0?void 0:d.version)||((_=E.previousTree)===null||_===void 0||_.version);const j=o.getGraph(u);if(c3(e,i,j),u===((b=E.previousTree)===null||b===void 0?void 0:b.version)){const ie=o.getGraph(E.currentTree.version);c3(e,i,ie,j)}if(u===((a=E.previousTree)===null||a===void 0?void 0:a.version)||u===E.currentTree.version){var Q;const ie=(Q=E.nextTree)===null||Q===void 0?void 0:Q.version;if(ie!==void 0){const G=o.getGraph(ie);c3(e,i,G,j)}}}var ym={cloneGraph:kB,graph:OB,saveDepsToStore:jB};let PB=0;const RB=()=>PB++;let BB=0;const FB=()=>BB++;let UB=0;var g_={getNextTreeStateVersion:RB,getNextStoreID:FB,getNextComponentID:()=>UB++};const{persistentMap:YC}=NB,{graph:VB}=ym,{getNextTreeStateVersion:GC}=g_;function ZC(){const e=GC();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:YC(),nonvalidatedAtoms:YC()}}function QB(){const e=ZC();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,VB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var WC={makeEmptyTreeState:ZC,makeEmptyStoreState:QB,getNextTreeStateVersion:GC};class qC{}function HB(){return new qC}var m_={RetentionZone:qC,retentionZone:HB};function $B(e,i){const o=new Set(e);return o.add(i),o}function YB(e,i){const o=new Set(e);return o.delete(i),o}function GB(e,i,o){const u=new Map(e);return u.set(i,o),u}function ZB(e,i,o){const u=new Map(e);return u.set(i,o(u.get(i))),u}function WB(e,i){const o=new Map(e);return o.delete(i),o}function qB(e,i){const o=new Map(e);return i.forEach(u=>o.delete(u)),o}var KC={setByAddingToSet:$B,setByDeletingFromSet:YB,mapBySettingInMap:GB,mapByUpdatingInMap:ZB,mapByDeletingFromMap:WB,mapByDeletingMultipleFromMap:qB};function*KB(e,i){let o=0;for(const u of e)i(u,o++)&&(yield u)}var u3=KB;function XB(e,i){return new Proxy(e,{get:(u,d)=>(!(d in u)&&d in i&&(u[d]=i[d]()),u[d]),ownKeys:u=>Object.keys(u)})}var XC=XB;const{getNode:_m,getNodeMaybe:JB,recoilValuesForKeys:JC}=Ws,{RetentionZone:e6}=m_,{setByAddingToSet:eF}=KC,tF=Object.freeze(new Set);class iF extends Error{}function nF(e,i,o){if(!qr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:u}=e.getState().retention;function d(_){let b=u.get(_);b||u.set(_,b=new Set),b.add(i)}if(o instanceof e6)d(o);else if(Array.isArray(o))for(const _ of o)d(_);return()=>{if(!qr("recoil_memory_managament_2020"))return;const{retention:_}=e.getState();function b(a){const E=_.nodesRetainedByZone.get(a);E==null||E.delete(i),E&&E.size===0&&_.nodesRetainedByZone.delete(a)}if(o instanceof e6)b(o);else if(Array.isArray(o))for(const a of o)b(a)}}function h3(e,i,o,u){const d=e.getState();if(d.nodeCleanupFunctions.has(o))return;const _=_m(o),b=nF(e,o,_.retainedBy),a=_.init(e,i,u);d.nodeCleanupFunctions.set(o,()=>{a(),b()})}function rF(e,i,o){h3(e,e.getState().currentTree,i,o)}function oF(e,i){var o;const u=e.getState();(o=u.nodeCleanupFunctions.get(i))===null||o===void 0||o(),u.nodeCleanupFunctions.delete(i)}function sF(e,i,o){return h3(e,i,o,"get"),_m(o).get(e,i)}function t6(e,i,o){return _m(o).peek(e,i)}function aF(e,i,o){var u;const d=JB(i);return d==null||(u=d.invalidate)===null||u===void 0||u.call(d,e),{...e,atomValues:e.atomValues.clone().delete(i),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(i,o),dirtyAtoms:eF(e.dirtyAtoms,i)}}function lF(e,i,o,u){const d=_m(o);if(d.set==null)throw new iF(`Attempt to set read-only RecoilValue: ${o}`);const _=d.set;return h3(e,i,o,"set"),_(e,i,u)}function cF(e,i,o){const u=e.getState(),d=e.getGraph(i.version),_=_m(o).nodeType;return XC({type:_},{loadable:()=>t6(e,i,o),isActive:()=>u.knownAtoms.has(o)||u.knownSelectors.has(o),isSet:()=>_==="selector"?!1:i.atomValues.has(o),isModified:()=>i.dirtyAtoms.has(o),deps:()=>{var b;return JC((b=d.nodeDeps.get(o))!==null&&b!==void 0?b:[])},subscribers:()=>{var b,a;return{nodes:JC(u3(i6(e,i,new Set([o])),E=>E!==o)),components:d_((b=(a=u.nodeToComponentSubscriptions.get(o))===null||a===void 0?void 0:a.values())!==null&&b!==void 0?b:[],([E])=>({name:E}))}}})}function i6(e,i,o){const u=new Set,d=Array.from(o),_=e.getGraph(i.version);for(let a=d.pop();a;a=d.pop()){var b;u.add(a);const E=(b=_.nodeToNodeSubscriptions.get(a))!==null&&b!==void 0?b:tF;for(const j of E)u.has(j)||d.push(j)}return u}var _u={getNodeLoadable:sF,peekNodeLoadable:t6,setNodeValue:lF,initializeNode:rF,cleanUpNode:oF,setUnvalidatedAtomValue_DEPRECATED:aF,peekNodeInfo:cF,getDownstreamNodes:i6};let n6=null;function uF(e){n6=e}function hF(){var e;(e=n6)===null||e===void 0||e()}var r6={setInvalidateMemoizedSnapshot:uF,invalidateMemoizedSnapshot:hF};const{getDownstreamNodes:dF,getNodeLoadable:o6,setNodeValue:fF}=_u,{getNextComponentID:pF}=g_,{getNode:gF,getNodeMaybe:s6}=Ws,{DefaultValue:d3}=Ws,{reactMode:mF}=gm,{AbstractRecoilValue:yF,RecoilState:_F,RecoilValueReadOnly:vF,isRecoilValue:xF}=pf,{invalidateMemoizedSnapshot:wF}=r6;function bF(e,{key:i},o=e.getState().currentTree){var u,d;const _=e.getState();o.version===_.currentTree.version||o.version===((u=_.nextTree)===null||u===void 0?void 0:u.version)||(o.version,(d=_.previousTree)===null||d===void 0||d.version);const b=o6(e,o,i);return b.state==="loading"&&b.contents.catch(()=>{}),b}function MF(e,i){const o=e.clone();return i.forEach((u,d)=>{u.state==="hasValue"&&u.contents instanceof d3?o.delete(d):o.set(d,u)}),o}function IF(e,i,{key:o},u){if(typeof u=="function"){const d=o6(e,i,o);if(d.state==="loading"){const _=`Tried to set atom or selector "${o}" using an updater function while the current state is pending, this is not currently supported.`;throw hr(_)}else if(d.state==="hasError")throw d.contents;return u(d.contents)}else return u}function TF(e,i,o){if(o.type==="set"){const{recoilValue:d,valueOrUpdater:_}=o,b=IF(e,i,d,_),a=fF(e,i,d.key,b);for(const[E,j]of a.entries())f3(i,E,j)}else if(o.type==="setLoadable"){const{recoilValue:{key:d},loadable:_}=o;f3(i,d,_)}else if(o.type==="markModified"){const{recoilValue:{key:d}}=o;i.dirtyAtoms.add(d)}else if(o.type==="setUnvalidated"){var u;const{recoilValue:{key:d},unvalidatedValue:_}=o,b=s6(d);b==null||(u=b.invalidate)===null||u===void 0||u.call(b,i),i.atomValues.delete(d),i.nonvalidatedAtoms.set(d,_),i.dirtyAtoms.add(d)}else t3(`Unknown action ${o.type}`)}function f3(e,i,o){o.state==="hasValue"&&o.contents instanceof d3?e.atomValues.delete(i):e.atomValues.set(i,o),e.dirtyAtoms.add(i),e.nonvalidatedAtoms.delete(i)}function a6(e,i){e.replaceState(o=>{const u=l6(o);for(const d of i)TF(e,u,d);return c6(e,u),wF(),u})}function y_(e,i){if(vm.length){const o=vm[vm.length-1];let u=o.get(e);u||o.set(e,u=[]),u.push(i)}else a6(e,[i])}const vm=[];function DF(){const e=new Map;return vm.push(e),()=>{for(const[i,o]of e)a6(i,o);vm.pop()}}function l6(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function c6(e,i){const o=dF(e,i,i.dirtyAtoms);for(const _ of o){var u,d;(u=s6(_))===null||u===void 0||(d=u.invalidate)===null||d===void 0||d.call(u,i)}}function u6(e,i,o){y_(e,{type:"set",recoilValue:i,valueOrUpdater:o})}function SF(e,i,o){if(o instanceof d3)return u6(e,i,o);y_(e,{type:"setLoadable",recoilValue:i,loadable:o})}function AF(e,i){y_(e,{type:"markModified",recoilValue:i})}function CF(e,i,o){y_(e,{type:"setUnvalidated",recoilValue:i,unvalidatedValue:o})}function EF(e,{key:i},o,u=null){const d=pF(),_=e.getState();_.nodeToComponentSubscriptions.has(i)||_.nodeToComponentSubscriptions.set(i,new Map),uo(_.nodeToComponentSubscriptions.get(i)).set(d,[u??"<not captured>",o]);const b=mF();if(b.early&&(b.mode==="LEGACY"||b.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(i)&&o(a)}return{release:()=>{const a=e.getState(),E=a.nodeToComponentSubscriptions.get(i);E===void 0||!E.has(d)||(E.delete(d),E.size===0&&a.nodeToComponentSubscriptions.delete(i))}}}function NF(e,i){var o;const{currentTree:u}=e.getState(),d=gF(i.key);(o=d.clearCache)===null||o===void 0||o.call(d,e,u)}var wl={RecoilValueReadOnly:vF,AbstractRecoilValue:yF,RecoilState:_F,getRecoilValueAsLoadable:bF,setRecoilValue:u6,setRecoilValueLoadable:SF,markRecoilValueModified:AF,setUnvalidatedRecoilValue:CF,subscribeToRecoilValue:EF,isRecoilValue:xF,applyAtomValueWrites:MF,batchStart:DF,writeLoadableToTreeState:f3,invalidateDownstreams:c6,copyTreeState:l6,refreshRecoilValue:NF};function LF(e,i,o){const u=e.entries();let d=u.next();for(;!d.done;){const _=d.value;if(i.call(o,_[1],_[0],e))return!0;d=u.next()}return!1}var zF=LF;const{cleanUpNode:OF}=_u,{deleteNodeConfigIfPossible:kF,getNode:h6}=Ws,{RetentionZone:d6}=m_,jF=12e4,f6=new Set;function p6(e,i){const o=e.getState(),u=o.currentTree;if(o.nextTree)return;const d=new Set;for(const b of i)if(b instanceof d6)for(const a of FF(o,b))d.add(a);else d.add(b);const _=PF(e,d);for(const b of _)BF(e,u,b)}function PF(e,i){const o=e.getState(),u=o.currentTree,d=e.getGraph(u.version),_=new Set,b=new Set;return a(i),_;function a(E){const j=new Set,Q=RF(e,u,E,_,b);for(const pe of Q){var ie;if(h6(pe).retainedBy==="recoilRoot"){b.add(pe);continue}if(((ie=o.retention.referenceCounts.get(pe))!==null&&ie!==void 0?ie:0)>0){b.add(pe);continue}if(g6(pe).some(qe=>o.retention.referenceCounts.get(qe))){b.add(pe);continue}const we=d.nodeToNodeSubscriptions.get(pe);if(we&&zF(we,qe=>b.has(qe))){b.add(pe);continue}_.add(pe),j.add(pe)}const G=new Set;for(const pe of j)for(const we of(ue=d.nodeDeps.get(pe))!==null&&ue!==void 0?ue:f6){var ue;_.has(we)||G.add(we)}G.size&&a(G)}}function RF(e,i,o,u,d){const _=e.getGraph(i.version),b=[],a=new Set;for(;o.size>0;)E(uo(o.values().next().value));return b;function E(j){if(u.has(j)||d.has(j)){o.delete(j);return}if(a.has(j))return;const Q=_.nodeToNodeSubscriptions.get(j);if(Q)for(const ie of Q)E(ie);a.add(j),o.delete(j),b.push(j)}}function BF(e,i,o){if(!qr("recoil_memory_managament_2020"))return;OF(e,o);const u=e.getState();u.knownAtoms.delete(o),u.knownSelectors.delete(o),u.nodeTransactionSubscriptions.delete(o),u.retention.referenceCounts.delete(o);const d=g6(o);for(const E of d){var _;(_=u.retention.nodesRetainedByZone.get(E))===null||_===void 0||_.delete(o)}i.atomValues.delete(o),i.dirtyAtoms.delete(o),i.nonvalidatedAtoms.delete(o);const b=u.graphsByVersion.get(i.version);if(b){const E=b.nodeDeps.get(o);if(E!==void 0){b.nodeDeps.delete(o);for(const j of E){var a;(a=b.nodeToNodeSubscriptions.get(j))===null||a===void 0||a.delete(o)}}b.nodeToNodeSubscriptions.delete(o)}kF(o)}function FF(e,i){var o;return(o=e.retention.nodesRetainedByZone.get(i))!==null&&o!==void 0?o:f6}function g6(e){const i=h6(e).retainedBy;return i===void 0||i==="components"||i==="recoilRoot"?[]:i instanceof d6?[i]:i}function UF(e,i){const o=e.getState();o.nextTree?o.retention.retainablesToCheckForRelease.add(i):p6(e,new Set([i]))}function VF(e,i,o){var u;if(!qr("recoil_memory_managament_2020"))return;const d=e.getState().retention.referenceCounts,_=((u=d.get(i))!==null&&u!==void 0?u:0)+o;_===0?m6(e,i):d.set(i,_)}function m6(e,i){if(!qr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(i),UF(e,i)}function QF(e){if(!qr("recoil_memory_managament_2020"))return;const i=e.getState();p6(e,i.retention.retainablesToCheckForRelease),i.retention.retainablesToCheckForRelease.clear()}function HF(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:jF,updateRetainCount:VF,updateRetainCountToZero:m6,releaseScheduledRetainablesNow:QF,retainedByOptionWithDefault:HF};const{unstable_batchedUpdates:$F}=dm;var YF={unstable_batchedUpdates:$F};const{unstable_batchedUpdates:GF}=YF;var ZF={unstable_batchedUpdates:GF};const{batchStart:WF}=wl,{unstable_batchedUpdates:qF}=ZF;let p3=qF||(e=>e());var __={getBatcher:()=>p3,setBatcher:e=>{p3=e},batchUpdates:e=>{p3(()=>{let i=()=>{};try{i=WF(),e()}finally{i()}})}};function*KF(e){for(const i of e)for(const o of i)yield o}var y6=KF;const _6=typeof Window>"u"||typeof window>"u",XF=e=>!_6&&(e===window||e instanceof Window),JF=typeof navigator<"u"&&navigator.product==="ReactNative";var v_={isSSR:_6,isReactNative:JF,isWindow:XF};function eU(e,i){let o;return(...u)=>{o||(o={});const d=i(...u);return Object.hasOwnProperty.call(o,d)||(o[d]=e(...u)),o[d]}}function tU(e,i){let o,u;return(...d)=>{const _=i(...d);return o===_||(o=_,u=e(...d)),u}}function iU(e,i){let o,u;return[(...b)=>{const a=i(...b);return o===a||(o=a,u=e(...b)),u},()=>{o=null}]}var nU={memoizeWithArgsHash:eU,memoizeOneWithArgsHash:tU,memoizeOneWithArgsHashAndInvalidation:iU};const{batchUpdates:g3}=__,{initializeNode:rU,peekNodeInfo:oU}=_u,{graph:sU}=ym,{getNextStoreID:aU}=g_,{DEFAULT_VALUE:lU,recoilValues:v6,recoilValuesForKeys:x6}=Ws,{AbstractRecoilValue:cU,getRecoilValueAsLoadable:uU,setRecoilValue:w6,setUnvalidatedRecoilValue:hU}=wl,{updateRetainCount:x_}=Nh,{setInvalidateMemoizedSnapshot:dU}=r6,{getNextTreeStateVersion:fU,makeEmptyStoreState:pU}=WC,{isSSR:gU}=v_,{memoizeOneWithArgsHashAndInvalidation:mU}=nU;class w_{constructor(i,o){ar(this,"_store",void 0),ar(this,"_refCount",1),ar(this,"getLoadable",u=>(this.checkRefCount_INTERNAL(),uU(this._store,u))),ar(this,"getPromise",u=>(this.checkRefCount_INTERNAL(),this.getLoadable(u).toPromise())),ar(this,"getNodes_UNSTABLE",u=>{if(this.checkRefCount_INTERNAL(),(u==null?void 0:u.isModified)===!0){if((u==null?void 0:u.isInitialized)===!1)return[];const b=this._store.getState().currentTree;return x6(b.dirtyAtoms)}const d=this._store.getState().knownAtoms,_=this._store.getState().knownSelectors;return(u==null?void 0:u.isInitialized)==null?v6.values():u.isInitialized===!0?x6(y6([d,_])):u3(v6.values(),({key:b})=>!d.has(b)&&!_.has(b))}),ar(this,"getInfo_UNSTABLE",({key:u})=>(this.checkRefCount_INTERNAL(),oU(this._store,this._store.getState().currentTree,u))),ar(this,"map",u=>{this.checkRefCount_INTERNAL();const d=new m3(this,g3);return u(d),d}),ar(this,"asyncMap",async u=>{this.checkRefCount_INTERNAL();const d=new m3(this,g3);return d.retain(),await u(d),d.autoRelease_INTERNAL(),d}),this._store={storeID:aU(),parentStoreID:o,getState:()=>i,replaceState:u=>{i.currentTree=u(i.currentTree)},getGraph:u=>{const d=i.graphsByVersion;if(d.has(u))return uo(d.get(u));const _=sU();return d.set(u,_),_},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw hr("Cannot subscribe to Snapshots")}};for(const u of this._store.getState().knownAtoms)rU(this._store,u,"get"),x_(this._store,u,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let i=!1;return()=>{i||(i=!0,this._release())}}autoRelease_INTERNAL(){gU||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(i=>i()),this._store.getState().nodeCleanupFunctions.clear(),!qr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){qr("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 b6(e,i,o=!1){const u=e.getState(),d=o?fU():i.version;return{currentTree:{version:o?d:i.version,stateID:o?d:i.stateID,transactionMetadata:{...i.transactionMetadata},dirtyAtoms:new Set(i.dirtyAtoms),atomValues:i.atomValues.clone(),nonvalidatedAtoms:i.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(u.knownAtoms),knownSelectors:new Set(u.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(d,e.getGraph(i.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(d_(u.nodeCleanupFunctions.entries(),([_])=>[_,()=>{}]))}}function yU(e){const i=new w_(pU());return e!=null?i.map(e):i}const[M6,I6]=mU((e,i)=>{var o;const u=e.getState(),d=i==="latest"?(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree:uo(u.previousTree);return new w_(b6(e,d),e.storeID)},(e,i)=>{var o,u;return String(i)+String(e.storeID)+String((o=e.getState().nextTree)===null||o===void 0?void 0:o.version)+String(e.getState().currentTree.version)+String((u=e.getState().previousTree)===null||u===void 0?void 0:u.version)});dU(I6);function _U(e,i="latest"){const o=M6(e,i);return o.isRetained()?o:(I6(),M6(e,i))}class m3 extends w_{constructor(i,o){super(b6(i.getStore_INTERNAL(),i.getStore_INTERNAL().getState().currentTree,!0),i.getStoreID()),ar(this,"_batch",void 0),ar(this,"set",(u,d)=>{this.checkRefCount_INTERNAL();const _=this.getStore_INTERNAL();this._batch(()=>{x_(_,u.key,1),w6(this.getStore_INTERNAL(),u,d)})}),ar(this,"reset",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{x_(d,u.key,1),w6(this.getStore_INTERNAL(),u,lU)})}),ar(this,"setUnvalidatedAtomValues_DEPRECATED",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();g3(()=>{for(const[_,b]of u.entries())x_(d,_,1),hU(d,new cU(_),b)})}),this._batch=o}}var b_={Snapshot:w_,MutableSnapshot:m3,freshSnapshot:yU,cloneSnapshot:_U},vU=b_.Snapshot,xU=b_.MutableSnapshot,wU=b_.freshSnapshot,bU=b_.cloneSnapshot,M_=Object.freeze({__proto__:null,Snapshot:vU,MutableSnapshot:xU,freshSnapshot:wU,cloneSnapshot:bU});function MU(...e){const i=new Set;for(const o of e)for(const u of o)i.add(u);return i}var IU=MU;const{useRef:TU}=Cr;function DU(e){const i=TU(e);return i.current===e&&typeof e=="function"&&(i.current=e()),i}var T6=DU;const{getNextTreeStateVersion:SU,makeEmptyStoreState:D6}=WC,{cleanUpNode:AU,getDownstreamNodes:CU,initializeNode:EU,setNodeValue:NU,setUnvalidatedAtomValue_DEPRECATED:LU}=_u,{graph:zU}=ym,{cloneGraph:OU}=ym,{getNextStoreID:S6}=g_,{createMutableSource:y3,reactMode:A6}=gm,{applyAtomValueWrites:kU}=wl,{releaseScheduledRetainablesNow:C6}=Nh,{freshSnapshot:jU}=M_,{useCallback:PU,useContext:E6,useEffect:_3,useMemo:RU,useRef:BU,useState:FU}=Cr;function xm(){throw hr("This component must be used inside a <RecoilRoot> component.")}const N6=Object.freeze({storeID:S6(),getState:xm,replaceState:xm,getGraph:xm,subscribeToTransactions:xm,addTransactionMetadata:xm});let v3=!1;function L6(e){if(v3)throw hr("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const i=e.getState();if(i.nextTree===null){qr("recoil_memory_managament_2020")&&qr("recoil_release_on_cascading_update_killswitch_2021")&&i.commitDepth>0&&C6(e);const o=i.currentTree.version,u=SU();i.nextTree={...i.currentTree,version:u,stateID:u,dirtyAtoms:new Set,transactionMetadata:{}},i.graphsByVersion.set(u,OU(uo(i.graphsByVersion.get(o))))}}const z6=Cr.createContext({current:N6}),I_=()=>E6(z6),O6=Cr.createContext(null);function UU(){return E6(O6)}function x3(e,i,o){const u=CU(e,o,o.dirtyAtoms);for(const d of u){const _=i.nodeToComponentSubscriptions.get(d);if(_)for(const[b,[a,E]]of _)E(o)}}function k6(e){const i=e.getState(),o=i.currentTree,u=o.dirtyAtoms;if(u.size){for(const[d,_]of i.nodeTransactionSubscriptions)if(u.has(d))for(const[b,a]of _)a(e);for(const[d,_]of i.transactionSubscriptions)_(e);(!A6().early||i.suspendedComponentResolvers.size>0)&&(x3(e,i,o),i.suspendedComponentResolvers.forEach(d=>d()),i.suspendedComponentResolvers.clear())}i.queuedComponentCallbacks_DEPRECATED.forEach(d=>d(o)),i.queuedComponentCallbacks_DEPRECATED.splice(0,i.queuedComponentCallbacks_DEPRECATED.length)}function VU(e){const i=e.getState();i.commitDepth++;try{const{nextTree:o}=i;if(o==null)return;i.previousTree=i.currentTree,i.currentTree=o,i.nextTree=null,k6(e),i.previousTree!=null?i.graphsByVersion.delete(i.previousTree.version):t3("Ended batch with no previous state, which is unexpected","recoil"),i.previousTree=null,qr("recoil_memory_managament_2020")&&o==null&&C6(e)}finally{i.commitDepth--}}function QU({setNotifyBatcherOfChange:e}){const i=I_(),[,o]=FU([]);return e(()=>o({})),_3(()=>(e(()=>o({})),()=>{e(()=>{})}),[e]),_3(()=>{TB.enqueueExecution("Batcher",()=>{VU(i.current)})}),null}function HU(e,i){const o=D6();return i({set:(u,d)=>{const _=o.currentTree,b=NU(e,_,u.key,d),a=new Set(b.keys()),E=_.nonvalidatedAtoms.clone();for(const j of a)E.delete(j);o.currentTree={..._,dirtyAtoms:IU(_.dirtyAtoms,a),atomValues:kU(_.atomValues,b),nonvalidatedAtoms:E}},setUnvalidatedAtomValues:u=>{u.forEach((d,_)=>{o.currentTree=LU(o.currentTree,_,d)})}}),o}function $U(e){const i=jU(e),o=i.getStore_INTERNAL().getState();return i.retain(),o.nodeCleanupFunctions.forEach(u=>u()),o.nodeCleanupFunctions.clear(),o}let j6=0;function YU({initializeState_DEPRECATED:e,initializeState:i,store_INTERNAL:o,children:u}){let d;const _=ue=>{const pe=d.current.graphsByVersion;if(pe.has(ue))return uo(pe.get(ue));const we=zU();return pe.set(ue,we),we},b=(ue,pe)=>{if(pe==null){const{transactionSubscriptions:we}=ie.current.getState(),qe=j6++;return we.set(qe,ue),{release:()=>{we.delete(qe)}}}else{const{nodeTransactionSubscriptions:we}=ie.current.getState();we.has(pe)||we.set(pe,new Map);const qe=j6++;return uo(we.get(pe)).set(qe,ue),{release:()=>{const me=we.get(pe);me&&(me.delete(qe),me.size===0&&we.delete(pe))}}}},a=ue=>{L6(ie.current);for(const pe of Object.keys(ue))uo(ie.current.getState().nextTree).transactionMetadata[pe]=ue[pe]},E=ue=>{L6(ie.current);const pe=uo(d.current.nextTree);let we;try{v3=!0,we=ue(pe)}finally{v3=!1}we!==pe&&(d.current.nextTree=we,A6().early&&x3(ie.current,d.current,we),uo(j.current)())},j=BU(null),Q=PU(ue=>{j.current=ue},[j]),ie=T6(()=>o??{storeID:S6(),getState:()=>d.current,replaceState:E,getGraph:_,subscribeToTransactions:b,addTransactionMetadata:a});o!=null&&(ie.current=o),d=T6(()=>e!=null?HU(ie.current,e):i!=null?$U(i):D6());const G=RU(()=>y3==null?void 0:y3(d,()=>d.current.currentTree.version),[d]);return _3(()=>{const ue=ie.current;for(const pe of new Set(ue.getState().knownAtoms))EU(ue,pe,"get");return()=>{for(const pe of ue.getState().knownAtoms)AU(ue,pe)}},[ie]),Cr.createElement(z6.Provider,{value:ie},Cr.createElement(O6.Provider,{value:G},Cr.createElement(QU,{setNotifyBatcherOfChange:Q}),u))}function GU(e){const{override:i,...o}=e,u=I_();return i===!1&&u.current!==N6?e.children:Cr.createElement(YU,o)}function ZU(){return I_().current.storeID}var pc={RecoilRoot:GU,useStoreRef:I_,useRecoilMutableSource:UU,useRecoilStoreID:ZU,notifyComponents_FOR_TESTING:x3,sendEndOfBatchNotifications_FOR_TESTING:k6};function WU(e,i){if(e===i)return!0;if(e.length!==i.length)return!1;for(let o=0,u=e.length;o<u;o++)if(e[o]!==i[o])return!1;return!0}var qU=WU;const{useEffect:KU,useRef:XU}=Cr;function JU(e){const i=XU();return KU(()=>{i.current=e}),i.current}var P6=JU;const{useStoreRef:eV}=pc,{SUSPENSE_TIMEOUT_MS:tV}=Nh,{updateRetainCount:wm}=Nh,{RetentionZone:iV}=m_,{useEffect:nV,useRef:rV}=Cr,{isSSR:R6}=v_;function oV(e){if(qr("recoil_memory_managament_2020"))return sV(e)}function sV(e){const o=(Array.isArray(e)?e:[e]).map(b=>b instanceof iV?b:b.key),u=eV();nV(()=>{if(!qr("recoil_memory_managament_2020"))return;const b=u.current;if(d.current&&!R6)window.clearTimeout(d.current),d.current=null;else for(const a of o)wm(b,a,1);return()=>{for(const a of o)wm(b,a,-1)}},[u,...o]);const d=rV(),_=P6(o);if(!R6&&(_===void 0||!qU(_,o))){const b=u.current;for(const a of o)wm(b,a,1);if(_)for(const a of _)wm(b,a,-1);d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=null;for(const a of o)wm(b,a,-1)},tV)}}var w3=oV;function aV(){return"<component name not available>"}var bm=aV;const{batchUpdates:lV}=__,{DEFAULT_VALUE:B6}=Ws,{currentRendererSupportsUseSyncExternalStore:cV,reactMode:gf,useMutableSource:uV,useSyncExternalStore:hV}=gm,{useRecoilMutableSource:dV,useStoreRef:bl}=pc,{AbstractRecoilValue:b3,getRecoilValueAsLoadable:Mm,setRecoilValue:T_,setUnvalidatedRecoilValue:fV,subscribeToRecoilValue:mf}=wl,{useCallback:qs,useEffect:yf,useMemo:F6,useRef:Im,useState:M3}=Cr,{setByAddingToSet:pV}=KC,{isSSR:gV}=v_;function I3(e,i,o){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(d=>{const _=o.current.getState().suspendedComponentResolvers;_.add(d),gV&&so(e.contents)&&e.contents.finally(()=>{_.delete(d)})}):e.state==="hasError"?e.contents:hr(`Invalid value of loadable atom "${i.key}"`)}function mV(){const e=bm(),i=bl(),[,o]=M3([]),u=Im(new Set);u.current=new Set;const d=Im(new Set),_=Im(new Map),b=qs(E=>{const j=_.current.get(E);j&&(j.release(),_.current.delete(E))},[_]),a=qs((E,j)=>{_.current.has(j)&&o([])},[]);return yf(()=>{const E=i.current;mm(u.current,d.current).forEach(j=>{if(_.current.has(j))return;const Q=mf(E,new b3(j),G=>a(G,j),e);_.current.set(j,Q),E.getState().nextTree?E.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(E.getState(),j)}):a(E.getState(),j)}),mm(d.current,u.current).forEach(j=>{b(j)}),d.current=u.current}),yf(()=>{const E=_.current;return mm(u.current,new Set(E.keys())).forEach(j=>{const Q=mf(i.current,new b3(j),ie=>a(ie,j),e);E.set(j,Q)}),()=>E.forEach((j,Q)=>b(Q))},[e,i,b,a]),F6(()=>{function E(pe){return we=>{T_(i.current,pe,we)}}function j(pe){return()=>T_(i.current,pe,B6)}function Q(pe){var we;u.current.has(pe.key)||(u.current=pV(u.current,pe.key));const qe=i.current.getState();return Mm(i.current,pe,gf().early&&(we=qe.nextTree)!==null&&we!==void 0?we:qe.currentTree)}function ie(pe){const we=Q(pe);return I3(we,pe,i)}function G(pe){return[ie(pe),E(pe)]}function ue(pe){return[Q(pe),E(pe)]}return{getRecoilValue:ie,getRecoilValueLoadable:Q,getRecoilState:G,getRecoilStateLoadable:ue,getSetRecoilState:E,getResetRecoilState:j}},[u,i])}const yV={current:0};function _V(e){const i=bl(),o=bm(),u=qs(()=>{var a;const E=i.current,j=E.getState(),Q=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return{loadable:Mm(E,e,Q),key:e.key}},[i,e]),d=qs(a=>{let E;return()=>{var j,Q;const ie=a();return(j=E)!==null&&j!==void 0&&j.loadable.is(ie.loadable)&&((Q=E)===null||Q===void 0?void 0:Q.key)===ie.key?E:(E=ie,ie)}},[]),_=F6(()=>d(u),[u,d]),b=qs(a=>{const E=i.current;return mf(E,e,a,o).release},[i,e,o]);return hV(b,_,_).loadable}function vV(e){const i=bl(),o=qs(()=>{var j;const Q=i.current,ie=Q.getState(),G=gf().early&&(j=ie.nextTree)!==null&&j!==void 0?j:ie.currentTree;return Mm(Q,e,G)},[i,e]),u=qs(()=>o(),[o]),d=bm(),_=qs((j,Q)=>{const ie=i.current;return mf(ie,e,()=>{if(!qr("recoil_suppress_rerender_in_callback"))return Q();const ue=o();E.current.is(ue)||Q(),E.current=ue},d).release},[i,e,d,o]),b=dV();if(b==null)throw hr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=uV(b,u,_),E=Im(a);return yf(()=>{E.current=a}),a}function T3(e){const i=bl(),o=bm(),u=qs(()=>{var E;const j=i.current,Q=j.getState(),ie=gf().early&&(E=Q.nextTree)!==null&&E!==void 0?E:Q.currentTree;return Mm(j,e,ie)},[i,e]),d=qs(()=>({loadable:u(),key:e.key}),[u,e.key]),_=qs(E=>{const j=d();return E.loadable.is(j.loadable)&&E.key===j.key?E:j},[d]);yf(()=>{const E=mf(i.current,e,j=>{a(_)},o);return a(_),E.release},[o,e,i,_]);const[b,a]=M3(d);return b.key!==e.key?d().loadable:b.loadable}function xV(e){const i=bl(),[,o]=M3([]),u=bm(),d=qs(()=>{var a;const E=i.current,j=E.getState(),Q=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return Mm(E,e,Q)},[i,e]),_=d(),b=Im(_);return yf(()=>{b.current=_}),yf(()=>{const a=i.current,E=a.getState(),j=mf(a,e,ie=>{var G;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const ue=d();(G=b.current)!==null&&G!==void 0&&G.is(ue)||o(ue),b.current=ue},u);if(E.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{b.current=null,o([])});else{var Q;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const ie=d();(Q=b.current)!==null&&Q!==void 0&&Q.is(ie)||o(ie),b.current=ie}return j.release},[u,d,e,i]),_}function D3(e){return qr("recoil_memory_managament_2020")&&w3(e),{TRANSITION_SUPPORT:T3,SYNC_EXTERNAL_STORE:cV()?_V:T3,MUTABLE_SOURCE:vV,LEGACY:xV}[gf().mode](e)}function U6(e){const i=bl(),o=D3(e);return I3(o,e,i)}function D_(e){const i=bl();return qs(o=>{T_(i.current,e,o)},[i,e])}function wV(e){const i=bl();return qs(()=>{T_(i.current,e,B6)},[i,e])}function bV(e){return[U6(e),D_(e)]}function MV(e){return[D3(e),D_(e)]}function IV(){const e=bl();return(i,o={})=>{lV(()=>{e.current.addTransactionMetadata(o),i.forEach((u,d)=>fV(e.current,new b3(d),u))})}}function V6(e){return qr("recoil_memory_managament_2020")&&w3(e),T3(e)}function Q6(e){const i=bl(),o=V6(e);return I3(o,e,i)}function TV(e){return[Q6(e),D_(e)]}var DV={recoilComponentGetRecoilValueCount_FOR_TESTING:yV,useRecoilInterface:mV,useRecoilState:bV,useRecoilStateLoadable:MV,useRecoilValue:U6,useRecoilValueLoadable:D3,useResetRecoilState:wV,useSetRecoilState:D_,useSetUnvalidatedAtomValues:IV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:V6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Q6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:TV};function SV(e,i){const o=new Map;for(const[u,d]of e)i(d,u)&&o.set(u,d);return o}var AV=SV;function CV(e,i){const o=new Set;for(const u of e)i(u)&&o.add(u);return o}var EV=CV;function NV(...e){const i=new Map;for(let o=0;o<e.length;o++){const u=e[o].keys();let d;for(;!(d=u.next()).done;)i.set(d.value,e[o].get(d.value))}return i}var LV=NV;const{batchUpdates:zV}=__,{DEFAULT_VALUE:OV,getNode:H6,nodes:kV}=Ws,{useStoreRef:S3}=pc,{AbstractRecoilValue:jV,setRecoilValueLoadable:PV}=wl,{SUSPENSE_TIMEOUT_MS:RV}=Nh,{cloneSnapshot:S_}=M_,{useCallback:A_,useEffect:$6,useRef:Y6,useState:BV}=Cr,{isSSR:G6}=v_;function C_(e){const i=S3();$6(()=>i.current.subscribeToTransactions(e).release,[e,i])}function Z6(e){const i=e.atomValues.toMap(),o=p_(AV(i,(u,d)=>{const b=H6(d).persistence_UNSTABLE;return b!=null&&b.type!=="none"&&u.state==="hasValue"}),u=>u.contents);return LV(e.nonvalidatedAtoms.toMap(),o)}function FV(e){C_(A_(i=>{let o=i.getState().previousTree;const u=i.getState().currentTree;o||(o=i.getState().currentTree);const d=Z6(u),_=Z6(o),b=p_(kV,E=>{var j,Q,ie,G;return{persistence_UNSTABLE:{type:(j=(Q=E.persistence_UNSTABLE)===null||Q===void 0?void 0:Q.type)!==null&&j!==void 0?j:"none",backButton:(ie=(G=E.persistence_UNSTABLE)===null||G===void 0?void 0:G.backButton)!==null&&ie!==void 0?ie:!1}}}),a=EV(u.dirtyAtoms,E=>d.has(E)||_.has(E));e({atomValues:d,previousAtomValues:_,atomInfo:b,modifiedAtoms:a,transactionMetadata:{...u.transactionMetadata}})},[e]))}function UV(e){C_(A_(i=>{const o=S_(i,"latest"),u=S_(i,"previous");e({snapshot:o,previousSnapshot:u})},[e]))}function VV(){const e=S3(),[i,o]=BV(()=>S_(e.current)),u=P6(i),d=Y6(),_=Y6();if(C_(A_(a=>o(S_(a)),[])),$6(()=>{const a=i.retain();if(d.current&&!G6){var E;window.clearTimeout(d.current),d.current=null,(E=_.current)===null||E===void 0||E.call(_),_.current=null}return()=>{window.setTimeout(a,10)}},[i]),u!==i&&!G6){if(d.current){var b;window.clearTimeout(d.current),d.current=null,(b=_.current)===null||b===void 0||b.call(_),_.current=null}_.current=i.retain(),d.current=window.setTimeout(()=>{var a;d.current=null,(a=_.current)===null||a===void 0||a.call(_),_.current=null},RV)}return i}function W6(e,i){var o;const u=e.getState(),d=(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree,_=i.getStore_INTERNAL().getState().currentTree;zV(()=>{const b=new Set;for(const j of[d.atomValues.keys(),_.atomValues.keys()])for(const Q of j){var a,E;((a=d.atomValues.get(Q))===null||a===void 0?void 0:a.contents)!==((E=_.atomValues.get(Q))===null||E===void 0?void 0:E.contents)&&H6(Q).shouldRestoreFromSnapshots&&b.add(Q)}b.forEach(j=>{PV(e,new jV(j),_.atomValues.has(j)?uo(_.atomValues.get(j)):OV)}),e.replaceState(j=>({...j,stateID:i.getID()}))})}function QV(){const e=S3();return A_(i=>W6(e.current,i),[e])}var q6={useRecoilSnapshot:VV,gotoSnapshot:W6,useGotoRecoilSnapshot:QV,useRecoilTransactionObserver:UV,useTransactionObservation_DEPRECATED:FV,useTransactionSubscription_DEPRECATED:C_};const{peekNodeInfo:HV}=_u,{useStoreRef:$V}=pc;function YV(){const e=$V();return({key:i})=>HV(e.current,e.current.getState().currentTree,i)}var GV=YV;const{reactMode:ZV}=gm,{RecoilRoot:WV,useStoreRef:qV}=pc,{useMemo:KV}=Cr;function XV(){ZV().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=qV().current;return KV(()=>{function i({children:o}){return Cr.createElement(WV,{store_INTERNAL:e},o)}return i},[e])}var JV=XV;const{loadableWithValue:eQ}=pm,{initializeNode:tQ}=_u,{DEFAULT_VALUE:iQ,getNode:nQ}=Ws,{copyTreeState:rQ,getRecoilValueAsLoadable:oQ,invalidateDownstreams:sQ,writeLoadableToTreeState:aQ}=wl;function K6(e){return nQ(e.key).nodeType==="atom"}class lQ{constructor(i,o){ar(this,"_store",void 0),ar(this,"_treeState",void 0),ar(this,"_changes",void 0),ar(this,"get",u=>{if(this._changes.has(u.key))return this._changes.get(u.key);if(!K6(u))throw hr("Reading selectors within atomicUpdate is not supported");const d=oQ(this._store,u,this._treeState);if(d.state==="hasValue")return d.contents;throw d.state==="hasError"?d.contents:hr(`Expected Recoil atom ${u.key} to have a value, but it is in a loading state.`)}),ar(this,"set",(u,d)=>{if(!K6(u))throw hr("Setting selectors within atomicUpdate is not supported");if(typeof d=="function"){const _=this.get(u);this._changes.set(u.key,d(_))}else tQ(this._store,u.key,"set"),this._changes.set(u.key,d)}),ar(this,"reset",u=>{this.set(u,iQ)}),this._store=i,this._treeState=o,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const i=rQ(this._treeState);for(const[o,u]of this._changes)aQ(i,o,eQ(u));return sQ(this._store,i),i}}function cQ(e){return i=>{e.replaceState(o=>{const u=new lQ(e,o);return i(u),u.newTreeState_INTERNAL()})}}var uQ={atomicUpdater:cQ},hQ=uQ.atomicUpdater,X6=Object.freeze({__proto__:null,atomicUpdater:hQ});function dQ(e,i){if(!e)throw new Error(i)}var fQ=dQ,Tm=fQ;const{atomicUpdater:pQ}=X6,{batchUpdates:gQ}=__,{DEFAULT_VALUE:mQ}=Ws,{useStoreRef:yQ}=pc,{refreshRecoilValue:_Q,setRecoilValue:J6}=wl,{cloneSnapshot:vQ}=M_,{gotoSnapshot:xQ}=q6,{useCallback:wQ}=Cr;class eE{}const bQ=new eE;function tE(e,i,o,u){let d=bQ,_;if(gQ(()=>{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 i!="function")throw hr(a);const E=XC({...u??{},set:(Q,ie)=>J6(e,Q,ie),reset:Q=>J6(e,Q,mQ),refresh:Q=>_Q(e,Q),gotoSnapshot:Q=>xQ(e,Q),transact_UNSTABLE:Q=>pQ(e)(Q)},{snapshot:()=>{const Q=vQ(e);return _=Q.retain(),Q}}),j=i(E);if(typeof j!="function")throw hr(a);d=j(...o)}),d instanceof eE&&Tm(!1),so(d))d=d.finally(()=>{var a;(a=_)===null||a===void 0||a()});else{var b;(b=_)===null||b===void 0||b()}return d}function MQ(e,i){const o=yQ();return wQ((...u)=>tE(o.current,e,u),i!=null?[...i,o]:void 0)}var iE={recoilCallback:tE,useRecoilCallback:MQ};const{useStoreRef:IQ}=pc,{refreshRecoilValue:TQ}=wl,{useCallback:DQ}=Cr;function SQ(e){const i=IQ();return DQ(()=>{const o=i.current;TQ(o,e)},[e,i])}var AQ=SQ;const{atomicUpdater:CQ}=X6,{useStoreRef:EQ}=pc,{useMemo:NQ}=Cr;function LQ(e,i){const o=EQ();return NQ(()=>(...u)=>{CQ(o.current)(_=>{e(_)(...u)})},i!=null?[...i,o]:void 0)}var zQ=LQ;class OQ{constructor(i){ar(this,"value",void 0),this.value=i}}var kQ={WrappedValue:OQ},jQ=kQ.WrappedValue,nE=Object.freeze({__proto__:null,WrappedValue:jQ});const{isFastRefreshEnabled:PQ}=gm;class rE extends Error{}class RQ{constructor(i){var o,u,d;ar(this,"_name",void 0),ar(this,"_numLeafs",void 0),ar(this,"_root",void 0),ar(this,"_onHit",void 0),ar(this,"_onSet",void 0),ar(this,"_mapNodeValue",void 0),this._name=i==null?void 0:i.name,this._numLeafs=0,this._root=null,this._onHit=(o=i==null?void 0:i.onHit)!==null&&o!==void 0?o:()=>{},this._onSet=(u=i==null?void 0:i.onSet)!==null&&u!==void 0?u:()=>{},this._mapNodeValue=(d=i==null?void 0:i.mapNodeValue)!==null&&d!==void 0?d:_=>_}size(){return this._numLeafs}root(){return this._root}get(i,o){var u;return(u=this.getLeafNode(i,o))===null||u===void 0?void 0:u.value}getLeafNode(i,o){if(this._root==null)return;let u=this._root;for(;u;){if(o==null||o.onNodeVisit(u),u.type==="leaf")return this._onHit(u),u;const d=this._mapNodeValue(i(u.nodeKey));u=u.branches.get(d)}}set(i,o,u){const d=()=>{var _,b,a,E;let j,Q;for(const[qe,me]of i){var ie,G,ue;const te=this._root;if((te==null?void 0:te.type)==="leaf")throw this.invalidCacheError();const J=j;if(j=J?J.branches.get(Q):te,j=(ie=j)!==null&&ie!==void 0?ie:{type:"branch",nodeKey:qe,parent:J,branches:new Map,branchKey:Q},j.type!=="branch"||j.nodeKey!==qe)throw this.invalidCacheError();J==null||J.branches.set(Q,j),u==null||(G=u.onNodeVisit)===null||G===void 0||G.call(u,j),Q=this._mapNodeValue(me),this._root=(ue=this._root)!==null&&ue!==void 0?ue:j}const pe=j?(_=j)===null||_===void 0?void 0:_.branches.get(Q):this._root;if(pe!=null&&(pe.type!=="leaf"||pe.branchKey!==Q))throw this.invalidCacheError();const we={type:"leaf",value:o,parent:j,branchKey:Q};(b=j)===null||b===void 0||b.branches.set(Q,we),this._root=(a=this._root)!==null&&a!==void 0?a:we,this._numLeafs++,this._onSet(we),u==null||(E=u.onNodeVisit)===null||E===void 0||E.call(u,we)};try{d()}catch(_){if(_ instanceof rE)this.clear(),d();else throw _}}delete(i){const o=this.root();if(!o)return!1;if(i===o)return this._root=null,this._numLeafs=0,!0;let u=i.parent,d=i.branchKey;for(;u;){var _;if(u.branches.delete(d),u===o)return u.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(u.branches.size>0)break;d=(_=u)===null||_===void 0?void 0:_.branchKey,u=u.parent}for(;u!==o;u=u.parent)if(u==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const i=PQ()?"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 t3(i+(this._name!=null?` - ${this._name}`:"")),new rE}}var BQ={TreeCache:RQ},FQ=BQ.TreeCache,oE=Object.freeze({__proto__:null,TreeCache:FQ});class UQ{constructor(i){var o;ar(this,"_maxSize",void 0),ar(this,"_size",void 0),ar(this,"_head",void 0),ar(this,"_tail",void 0),ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._maxSize=i.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(o=i.mapKey)!==null&&o!==void 0?o:u=>u}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(i){return this._map.has(this._keyMapper(i))}get(i){const o=this._keyMapper(i),u=this._map.get(o);if(u)return this.set(i,u.value),u.value}set(i,o){const u=this._keyMapper(i);this._map.get(u)&&this.delete(i);const _=this.head(),b={key:i,right:_,left:null,value:o};_?_.left=b:this._tail=b,this._map.set(u,b),this._head=b,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const i=this.tail();i&&this.delete(i.key)}delete(i){const o=this._keyMapper(i);if(!this._size||!this._map.has(o))return;const u=uo(this._map.get(o)),d=u.right,_=u.left;d&&(d.left=u.left),_&&(_.right=u.right),u===this.head()&&(this._head=d),u===this.tail()&&(this._tail=_),this._map.delete(o),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var VQ={LRUCache:UQ},QQ=VQ.LRUCache,sE=Object.freeze({__proto__:null,LRUCache:QQ});const{LRUCache:HQ}=sE,{TreeCache:$Q}=oE;function YQ({name:e,maxSize:i,mapNodeValue:o=u=>u}){const u=new HQ({maxSize:i}),d=new $Q({name:e,mapNodeValue:o,onHit:_=>{u.set(_,!0)},onSet:_=>{const b=u.tail();u.set(_,!0),b&&d.size()>i&&d.delete(b.key)}});return d}var aE=YQ;function Xa(e,i,o){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((i==null?void 0:i.allowFunctions)!==!0)throw hr("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var u;return(u=JSON.stringify(e))!==null&&u!==void 0?u:""}if(so(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((d,_)=>Xa(d,i,_.toString()))}]`;if(typeof e.toJSON=="function")return Xa(e.toJSON(o),i,o);if(e instanceof Map){const d={};for(const[_,b]of e)d[typeof _=="string"?_:Xa(_,i)]=b;return Xa(d,i,o)}return e instanceof Set?Xa(Array.from(e).sort((d,_)=>Xa(d,i).localeCompare(Xa(_,i))),i,o):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xa(Array.from(e),i,o):`{${Object.keys(e).filter(d=>e[d]!==void 0).sort().map(d=>`${Xa(d,i)}:${Xa(e[d],i,d)}`).join(",")}}`}function GQ(e,i={allowFunctions:!1}){return Xa(e,i)}var E_=GQ;const{TreeCache:ZQ}=oE,N_={equality:"reference",eviction:"keep-all",maxSize:1/0};function WQ({equality:e=N_.equality,eviction:i=N_.eviction,maxSize:o=N_.maxSize}=N_,u){const d=qQ(e);return KQ(i,o,d,u)}function qQ(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function KQ(e,i,o,u){switch(e){case"keep-all":return new ZQ({name:u,mapNodeValue:o});case"lru":return aE({name:u,maxSize:uo(i),mapNodeValue:o});case"most-recent":return aE({name:u,maxSize:1,mapNodeValue:o})}throw hr(`Unrecognized eviction policy ${e}`)}var XQ=WQ;function JQ(e){return()=>null}var eH={startPerfBlock:JQ};const{isLoadable:tH,loadableWithError:L_,loadableWithPromise:iH,loadableWithValue:A3}=pm,{WrappedValue:lE}=nE,{getNodeLoadable:z_,peekNodeLoadable:nH,setNodeValue:rH}=_u,{saveDepsToStore:oH}=ym,{DEFAULT_VALUE:sH,getConfigDeletionHandler:aH,getNode:lH,registerNode:cE}=Ws,{isRecoilValue:cH}=pf,{markRecoilValueModified:uE}=wl,{retainedByOptionWithDefault:uH}=Nh,{recoilCallback:hH}=iE,{startPerfBlock:dH}=eH;class hE{}const Dm=new hE,Sm=[],O_=new Map,fH=(()=>{let e=0;return()=>e++})();function dE(e){let i=null;const{key:o,get:u,cachePolicy_UNSTABLE:d}=e,_=e.set!=null?e.set:void 0,b=new Set,a=XQ(d??{equality:"reference",eviction:"keep-all"},o),E=uH(e.retainedBy_UNSTABLE),j=new Map;let Q=0;function ie(){return!qr("recoil_memory_managament_2020")||Q>0}function G(T){return T.getState().knownSelectors.add(o),Q++,()=>{Q--}}function ue(){return aH(o)!==void 0&&!ie()}function pe(T,k,F,V,Z){Tt(k,V,Z),we(T,F)}function we(T,k){oi(T,k)&&bt(T),me(k,!0)}function qe(T,k){oi(T,k)&&(uo(xt(T)).stateVersions.clear(),me(k,!1))}function me(T,k){const F=O_.get(T);if(F!=null){for(const V of F)uE(V,uo(i));k&&O_.delete(T)}}function te(T,k){let F=O_.get(k);F==null&&O_.set(k,F=new Set),F.add(T)}function J(T,k,F,V,Z,se){return k.then(he=>{if(!ie())throw bt(T),Dm;const le=A3(he);return pe(T,F,Z,le,V),he}).catch(he=>{if(!ie())throw bt(T),Dm;if(so(he))return re(T,he,F,V,Z,se);const le=L_(he);throw pe(T,F,Z,le,V),he})}function re(T,k,F,V,Z,se){return k.then(he=>{if(!ie())throw bt(T),Dm;se.loadingDepKey!=null&&se.loadingDepPromise===k?F.atomValues.set(se.loadingDepKey,A3(he)):T.getState().knownSelectors.forEach(et=>{F.atomValues.delete(et)});const le=Ke(T,F);if(le&&le.state!=="loading"){if((oi(T,Z)||xt(T)==null)&&we(T,Z),le.state==="hasValue")return le.contents;throw le.contents}if(!oi(T,Z)){const et=Ge(T,F);if(et!=null)return et.loadingLoadable.contents}const[ve,He]=xe(T,F,Z);if(ve.state!=="loading"&&pe(T,F,Z,ve,He),ve.state==="hasError")throw ve.contents;return ve.contents}).catch(he=>{if(he instanceof hE)throw Dm;if(!ie())throw bt(T),Dm;const le=L_(he);throw pe(T,F,Z,le,V),he})}function Me(T,k,F,V){var Z,se,he,le;if(oi(T,V)||k.version===((Z=T.getState())===null||Z===void 0||(se=Z.currentTree)===null||se===void 0?void 0:se.version)||k.version===((he=T.getState())===null||he===void 0||(le=he.nextTree)===null||le===void 0?void 0:le.version)){var ve,He,et;oH(o,F,T,(ve=(He=T.getState())===null||He===void 0||(et=He.nextTree)===null||et===void 0?void 0:et.version)!==null&&ve!==void 0?ve:T.getState().currentTree.version)}for(const Ue of F)b.add(Ue)}function xe(T,k,F){const V=dH(o);let Z=!0,se=!0;const he=()=>{V(),se=!1};let le,ve=!1,He;const et={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Xe({key:rt}){const mt=z_(T,k,rt);switch(Ue.set(rt,mt),Z||(Me(T,k,new Set(Ue.keys()),F),qe(T,F)),mt.state){case"hasValue":return mt.contents;case"hasError":throw mt.contents;case"loading":throw et.loadingDepKey=rt,et.loadingDepPromise=mt.contents,mt.contents}throw hr("Invalid Loadable state")}const Be=rt=>(...mt)=>{if(se)throw hr("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 i==null&&Tm(!1),hH(T,rt,mt,{node:i})};try{le=u({get:Xe,getCallback:Be}),le=cH(le)?Xe(le):le,tH(le)&&(le.state==="hasError"&&(ve=!0),le=le.contents),so(le)?le=J(T,le,k,Ue,F,et).finally(he):he(),le=le instanceof lE?le.value:le}catch(rt){le=rt,so(le)?le=re(T,le,k,Ue,F,et).finally(he):(ve=!0,he())}return ve?He=L_(le):so(le)?He=iH(le):He=A3(le),Z=!1,kt(T,F,Ue),Me(T,k,new Set(Ue.keys()),F),[He,Ue]}function Ke(T,k){let F=k.atomValues.get(o);if(F!=null)return F;const V=new Set;try{F=a.get(se=>(typeof se!="string"&&Tm(!1),z_(T,k,se).contents),{onNodeVisit:se=>{se.type==="branch"&&se.nodeKey!==o&&V.add(se.nodeKey)}})}catch(se){throw hr(`Problem with cache lookup for selector "${o}": ${se.message}`)}if(F){var Z;k.atomValues.set(o,F),Me(T,k,V,(Z=xt(T))===null||Z===void 0?void 0:Z.executionID)}return F}function st(T,k){const F=Ke(T,k);if(F!=null)return bt(T),F;const V=Ge(T,k);if(V!=null){var Z;return((Z=V.loadingLoadable)===null||Z===void 0?void 0:Z.state)==="loading"&&te(T,V.executionID),V.loadingLoadable}const se=fH(),[he,le]=xe(T,k,se);return he.state==="loading"?(dt(T,se,he,le,k),te(T,se)):(bt(T),Tt(k,he,le)),he}function Ge(T,k){const F=y6([j.has(T)?[uo(j.get(T))]:[],d_(u3(j,([Z])=>Z!==T),([,Z])=>Z)]);function V(Z){for(const[se,he]of Z)if(!z_(T,k,se).is(he))return!0;return!1}for(const Z of F){if(Z.stateVersions.get(k.version)||!V(Z.depValuesDiscoveredSoFarDuringAsyncWork))return Z.stateVersions.set(k.version,!0),Z;Z.stateVersions.set(k.version,!1)}}function xt(T){return j.get(T)}function dt(T,k,F,V,Z){j.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:V,executionID:k,loadingLoadable:F,stateVersions:new Map([[Z.version,!0]])})}function kt(T,k,F){if(oi(T,k)){const V=xt(T);V!=null&&(V.depValuesDiscoveredSoFarDuringAsyncWork=F)}}function bt(T){j.delete(T)}function oi(T,k){var F;return k===((F=xt(T))===null||F===void 0?void 0:F.executionID)}function At(T){return Array.from(T.entries()).map(([k,F])=>[k,F.contents])}function Tt(T,k,F){T.atomValues.set(o,k);try{a.set(At(F),k)}catch(V){throw hr(`Problem with setting cache for selector "${o}": ${V.message}`)}}function si(T){if(Sm.includes(o)){const k=`Recoil selector has circular dependencies: ${Sm.slice(Sm.indexOf(o)).join(" → ")}`;return L_(hr(k))}Sm.push(o);try{return T()}finally{Sm.pop()}}function Ot(T,k){const F=k.atomValues.get(o);return F??a.get(V=>{var Z;return typeof V!="string"&&Tm(!1),(Z=nH(T,k,V))===null||Z===void 0?void 0:Z.contents})}function Ht(T,k){return si(()=>st(T,k))}function W(T){T.atomValues.delete(o)}function ne(T,k){i==null&&Tm(!1);for(const V of b){var F;const Z=lH(V);(F=Z.clearCache)===null||F===void 0||F.call(Z,T,k)}b.clear(),W(k),a.clear(),uE(T,i)}return _!=null?i=cE({key:o,nodeType:"selector",peek:Ot,get:Ht,set:(k,F,V)=>{let Z=!1;const se=new Map;function he({key:et}){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Ue=z_(k,F,et);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Xe=`Getting value of asynchronous atom or selector "${et}" in a pending state while setting selector "${o}" is not yet supported.`;throw hr(Xe)}else throw Ue.contents}function le(et,Ue){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Xe=typeof Ue=="function"?Ue(he(et)):Ue;rH(k,F,et.key,Xe).forEach((rt,mt)=>se.set(mt,rt))}function ve(et){le(et,sH)}const He=_({set:le,get:he,reset:ve},V);if(He!==void 0)throw so(He)?hr("Recoil: Async selector sets are not currently supported."):hr("Recoil: selector set should be a void function.");return Z=!0,se},init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:ue,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E}):i=cE({key:o,nodeType:"selector",peek:Ot,get:Ht,init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:ue,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E})}dE.value=e=>new lE(e);var _f=dE;const{isLoadable:pH,loadableWithError:C3,loadableWithPromise:E3,loadableWithValue:vf}=pm,{WrappedValue:fE}=nE,{peekNodeInfo:gH}=_u,{DEFAULT_VALUE:Lh,DefaultValue:vu,getConfigDeletionHandler:pE,registerNode:mH,setConfigDeletionHandler:yH}=Ws,{isRecoilValue:_H}=pf,{getRecoilValueAsLoadable:vH,markRecoilValueModified:xH,setRecoilValue:gE,setRecoilValueLoadable:wH}=wl,{retainedByOptionWithDefault:bH}=Nh,Am=e=>e instanceof fE?e.value:e;function MH(e){const{key:i,persistence_UNSTABLE:o}=e,u=bH(e.retainedBy_UNSTABLE);let d=0;function _(te){return E3(te.then(J=>(b=vf(J),J)).catch(J=>{throw b=C3(J),J}))}let b=so(e.default)?_(e.default):pH(e.default)?e.default.state==="loading"?_(e.default.contents):e.default:vf(Am(e.default));b.contents;let a;const E=new Map;function j(te){return te}function Q(te,J){const re=J.then(Me=>{var xe,Ke;return((Ke=((xe=te.getState().nextTree)!==null&&xe!==void 0?xe:te.getState().currentTree).atomValues.get(i))===null||Ke===void 0?void 0:Ke.contents)===re&&gE(te,me,Me),Me}).catch(Me=>{var xe,Ke;throw((Ke=((xe=te.getState().nextTree)!==null&&xe!==void 0?xe:te.getState().currentTree).atomValues.get(i))===null||Ke===void 0?void 0:Ke.contents)===re&&wH(te,me,C3(Me)),Me});return re}function ie(te,J,re){var Me;d++;const xe=()=>{var xt;d--,(xt=E.get(te))===null||xt===void 0||xt.forEach(dt=>dt()),E.delete(te)};if(te.getState().knownAtoms.add(i),b.state==="loading"){const xt=()=>{var dt;((dt=te.getState().nextTree)!==null&&dt!==void 0?dt:te.getState().currentTree).atomValues.has(i)||xH(te,me)};b.contents.finally(xt)}const Ke=(Me=e.effects)!==null&&Me!==void 0?Me:e.effects_UNSTABLE;if(Ke!=null){let oi=function(W){if(dt&&W.key===i){const ne=xt;return ne instanceof vu?G(te,J):so(ne)?E3(ne.then(T=>T instanceof vu?b.toPromise():T)):vf(ne)}return vH(te,W)},At=function(W){return oi(W).toPromise()},Tt=function(W){var ne;const T=gH(te,(ne=te.getState().nextTree)!==null&&ne!==void 0?ne:te.getState().currentTree,W.key);return dt&&W.key===i&&!(xt instanceof vu)?{...T,isSet:!0,loadable:oi(W)}:T},xt=Lh,dt=!0,kt=!1,bt=null;const si=W=>ne=>{if(dt){const T=oi(me),k=T.state==="hasValue"?T.contents:Lh;xt=typeof ne=="function"?ne(k):ne,so(xt)&&(xt=xt.then(F=>(bt={effect:W,value:F},F)))}else{if(so(ne))throw hr("Setting atoms to async values is not implemented.");typeof ne!="function"&&(bt={effect:W,value:Am(ne)}),gE(te,me,typeof ne=="function"?T=>{const k=Am(ne(T));return bt={effect:W,value:k},k}:Am(ne))}},Ot=W=>()=>si(W)(Lh),Ht=W=>ne=>{var T;const{release:k}=te.subscribeToTransactions(F=>{var V;let{currentTree:Z,previousTree:se}=F.getState();se||(se=Z);const he=(V=Z.atomValues.get(i))!==null&&V!==void 0?V:b;if(he.state==="hasValue"){var le,ve,He,et;const Ue=he.contents,Xe=(le=se.atomValues.get(i))!==null&&le!==void 0?le:b,Be=Xe.state==="hasValue"?Xe.contents:Lh;((ve=bt)===null||ve===void 0?void 0:ve.effect)!==W||((He=bt)===null||He===void 0?void 0:He.value)!==Ue?ne(Ue,Be,!Z.atomValues.has(i)):((et=bt)===null||et===void 0?void 0:et.effect)===W&&(bt=null)}},i);E.set(te,[...(T=E.get(te))!==null&&T!==void 0?T:[],k])};for(const W of Ke)try{const ne=W({node:me,storeID:te.storeID,parentStoreID_UNSTABLE:te.parentStoreID,trigger:re,setSelf:si(W),resetSelf:Ot(W),onSet:Ht(W),getPromise:At,getLoadable:oi,getInfo_UNSTABLE:Tt});if(ne!=null){var st;E.set(te,[...(st=E.get(te))!==null&&st!==void 0?st:[],ne])}}catch(ne){xt=ne,kt=!0}if(dt=!1,!(xt instanceof vu)){var Ge;const W=kt?C3(xt):so(xt)?E3(Q(te,xt)):vf(Am(xt));W.contents,J.atomValues.set(i,W),(Ge=te.getState().nextTree)===null||Ge===void 0||Ge.atomValues.set(i,W)}}return xe}function G(te,J){var re,Me;return(re=(Me=J.atomValues.get(i))!==null&&Me!==void 0?Me:a)!==null&&re!==void 0?re:b}function ue(te,J){if(J.atomValues.has(i))return uo(J.atomValues.get(i));if(J.nonvalidatedAtoms.has(i)){if(a!=null)return a;if(o==null)return b;const re=J.nonvalidatedAtoms.get(i),Me=o.validator(re,Lh);return a=Me instanceof vu?b:vf(Me),a}else return b}function pe(){a=void 0}function we(te,J,re){if(J.atomValues.has(i)){const Me=uo(J.atomValues.get(i));if(Me.state==="hasValue"&&re===Me.contents)return new Map}else if(!J.nonvalidatedAtoms.has(i)&&re instanceof vu)return new Map;return a=void 0,new Map().set(i,vf(re))}function qe(){return pE(i)!==void 0&&d<=0}const me=mH({key:i,nodeType:"atom",peek:G,get:ue,set:we,init:ie,invalidate:pe,shouldDeleteConfigOnRelease:qe,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:u});return me}function N3(e){const{...i}=e,o="default"in e?e.default:new Promise(()=>{});return _H(o)?IH({...i,default:o}):MH({...i,default:o})}function IH(e){const i=N3({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:u=>u instanceof vu?u:uo(e.persistence_UNSTABLE).validator(u,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),o=_f({key:`${e.key}__withFallback`,get:({get:u})=>{const d=u(i);return d instanceof vu?e.default:d},set:({set:u},d)=>u(i,d),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return yH(o.key,pE(e.key)),o}N3.value=e=>new fE(e);var mE=N3;class TH{constructor(i){var o;ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(o=i==null?void 0:i.mapKey)!==null&&o!==void 0?o:u=>u}size(){return this._map.size}has(i){return this._map.has(this._keyMapper(i))}get(i){return this._map.get(this._keyMapper(i))}set(i,o){this._map.set(this._keyMapper(i),o)}delete(i){this._map.delete(this._keyMapper(i))}clear(){this._map.clear()}}var DH={MapCache:TH},SH=DH.MapCache,AH=Object.freeze({__proto__:null,MapCache:SH});const{LRUCache:yE}=sE,{MapCache:CH}=AH,k_={equality:"reference",eviction:"none",maxSize:1/0};function EH({equality:e=k_.equality,eviction:i=k_.eviction,maxSize:o=k_.maxSize}=k_){const u=NH(e);return LH(i,o,u)}function NH(e){switch(e){case"reference":return i=>i;case"value":return i=>E_(i)}throw hr(`Unrecognized equality policy ${e}`)}function LH(e,i,o){switch(e){case"keep-all":return new CH({mapKey:o});case"lru":return new yE({mapKey:o,maxSize:uo(i)});case"most-recent":return new yE({mapKey:o,maxSize:1})}throw hr(`Unrecognized eviction policy ${e}`)}var _E=EH;const{setConfigDeletionHandler:zH}=Ws;function OH(e){var i,o;const u=_E({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _,b;const a=u.get(d);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:E,...j}=e,Q="default"in e?e.default:new Promise(()=>{}),ie=mE({...j,key:`${e.key}__${(_=E_(d))!==null&&_!==void 0?_:"void"}`,default:typeof Q=="function"?Q(d):Q,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(d):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(d):(b=e.effects)!==null&&b!==void 0?b:e.effects_UNSTABLE});return u.set(d,ie),zH(ie.key,()=>{u.delete(d)}),ie}}var kH=OH;const{setConfigDeletionHandler:jH}=Ws;let PH=0;function RH(e){var i,o;const u=_E({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _;let b;try{b=u.get(d)}catch(G){throw hr(`Problem with cache lookup for selector ${e.key}: ${G.message}`)}if(b!=null)return b;const a=`${e.key}__selectorFamily/${(_=E_(d,{allowFunctions:!0}))!==null&&_!==void 0?_:"void"}/${PH++}`,E=G=>e.get(d)(G),j=e.cachePolicy_UNSTABLE,Q=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE;let ie;if(e.set!=null){const G=e.set;ie=_f({key:a,get:E,set:(pe,we)=>G(d)(pe,we),cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q})}else ie=_f({key:a,get:E,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:Q});return u.set(d,ie),jH(ie.key,()=>{u.delete(d)}),ie}}var xu=RH;const BH=xu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function FH(e){return BH(e)}var UH=FH;const VH=xu({key:"__error",get:e=>()=>{throw hr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function QH(e){return VH(e)}var HH=QH;function $H(e){return e}var YH=$H;const{loadableWithError:vE,loadableWithPromise:xE,loadableWithValue:wE}=pm;function j_(e,i){const o=Array(i.length).fill(void 0),u=Array(i.length).fill(void 0);for(const[d,_]of i.entries())try{o[d]=e(_)}catch(b){u[d]=b}return[o,u]}function GH(e){return e!=null&&!so(e)}function P_(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])}function L3(e,i){return Array.isArray(e)?i:Object.getOwnPropertyNames(e).reduce((o,u,d)=>({...o,[u]:i[d]}),{})}function xf(e,i,o){const u=o.map((d,_)=>d==null?wE(i[_]):so(d)?xE(d):vE(d));return L3(e,u)}function ZH(e,i){return i.map((o,u)=>o===void 0?e[u]:o)}const WH=xu({key:"__waitForNone",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return xf(e,u,d)},dangerouslyAllowMutability:!0}),qH=xu({key:"__waitForAny",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.some(_=>!so(_))?xf(e,u,d):new Promise(_=>{for(const[b,a]of d.entries())so(a)&&a.then(E=>{u[b]=E,d[b]=void 0,_(xf(e,u,d))}).catch(E=>{d[b]=E,_(xf(e,u,d))})})},dangerouslyAllowMutability:!0}),KH=xu({key:"__waitForAll",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);if(d.every(b=>b==null))return L3(e,u);const _=d.find(GH);if(_!=null)throw _;return Promise.all(d).then(b=>L3(e,ZH(u,b)))},dangerouslyAllowMutability:!0}),XH=xu({key:"__waitForAllSettled",get:e=>({get:i})=>{const o=P_(e),[u,d]=j_(i,o);return d.every(_=>!so(_))?xf(e,u,d):Promise.all(d.map((_,b)=>so(_)?_.then(a=>{u[b]=a,d[b]=void 0}).catch(a=>{u[b]=void 0,d[b]=a}):null)).then(()=>xf(e,u,d))},dangerouslyAllowMutability:!0}),JH=xu({key:"__noWait",get:e=>({get:i})=>{try{return _f.value(wE(i(e)))}catch(o){return _f.value(so(o)?xE(o):vE(o))}},dangerouslyAllowMutability:!0});var e$={waitForNone:WH,waitForAny:qH,waitForAll:KH,waitForAllSettled:XH,noWait:JH};const{RecoilLoadable:t$}=pm,{DefaultValue:i$}=Ws,{RecoilRoot:n$,useRecoilStoreID:r$}=pc,{isRecoilValue:o$}=pf,{retentionZone:s$}=m_,{freshSnapshot:a$}=M_,{useRecoilState:l$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:c$,useRecoilStateLoadable:u$,useRecoilValue:h$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilValueLoadable:f$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:p$,useResetRecoilState:g$,useSetRecoilState:m$}=DV,{useGotoRecoilSnapshot:y$,useRecoilSnapshot:_$,useRecoilTransactionObserver:v$}=q6,{useRecoilCallback:x$}=iE,{noWait:w$,waitForAll:b$,waitForAllSettled:M$,waitForAny:I$,waitForNone:T$}=e$;var wf={DefaultValue:i$,isRecoilValue:o$,RecoilLoadable:t$,RecoilEnv:ff,RecoilRoot:n$,useRecoilStoreID:r$,useRecoilBridgeAcrossReactRoots_UNSTABLE:JV,atom:mE,selector:_f,atomFamily:kH,selectorFamily:xu,constSelector:UH,errorSelector:HH,readOnlySelector:YH,noWait:w$,waitForNone:T$,waitForAny:I$,waitForAll:b$,waitForAllSettled:M$,useRecoilValue:h$,useRecoilValueLoadable:f$,useRecoilState:l$,useRecoilStateLoadable:u$,useSetRecoilState:m$,useResetRecoilState:g$,useGetRecoilValueInfo_UNSTABLE:GV,useRecoilRefresher_UNSTABLE:AQ,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:p$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:d$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:c$,useRecoilCallback:x$,useRecoilTransaction_UNSTABLE:zQ,useGotoRecoilSnapshot:y$,useRecoilSnapshot:_$,useRecoilTransactionObserver_UNSTABLE:v$,snapshot_UNSTABLE:a$,useRetain:w3,retentionZone:s$},D$=wf.RecoilRoot,On=wf.atom,R_=wf.selector,Oi=wf.useRecoilValue,on=wf.useRecoilState,Mo=wf.useResetRecoilState;const S$=(e,i)=>{const o=e[i];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((u,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+i)))})},A$="mi-components";let B_,bE,la=!1,z3=!1;const gc=(e,i="")=>()=>{},C$=(e,i)=>()=>{},E$="{visibility:hidden}.hydrated{visibility:inherit}",ME="http://www.w3.org/1999/xlink",IE={},N$="http://www.w3.org/2000/svg",L$="http://www.w3.org/1999/xhtml",z$=e=>e!=null,O3=e=>(e=typeof e,e==="object"||e==="function");function TE(e){var i,o,u;return(u=(o=(i=e.head)===null||i===void 0?void 0:i.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&u!==void 0?u:void 0}const Je=(e,i,...o)=>{let u=null,d=null,_=!1,b=!1;const a=[],E=Q=>{for(let ie=0;ie<Q.length;ie++)u=Q[ie],Array.isArray(u)?E(u):u!=null&&typeof u!="boolean"&&((_=typeof e!="function"&&!O3(u))&&(u=String(u)),_&&b?a[a.length-1].$text$+=u:a.push(_?k3(null,u):u),b=_)};if(E(o),i){i.key&&(d=i.key);{const Q=i.className||i.class;Q&&(i.class=typeof Q!="object"?Q:Object.keys(Q).filter(ie=>Q[ie]).join(" "))}}const j=k3(e,null);return j.$attrs$=i,a.length>0&&(j.$children$=a),j.$key$=d,j},k3=(e,i)=>{const o={$flags$:0,$tag$:e,$text$:i,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},ko={},O$=e=>e&&e.$tag$===ko,k$=(e,i)=>e!=null&&!O3(e)?i&4?e==="false"?!1:e===""||!!e:i&2?parseFloat(e):i&1?String(e):e:e,mc=e=>wu(e).$hostElement$,$r=(e,i,o)=>{const u=mc(e);return{emit:d=>DE(u,i,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:d})}},DE=(e,i,o)=>{const u=Ko.ce(i,o);return e.dispatchEvent(u),u},SE=new WeakMap,j$=(e,i,o)=>{let u=Q_.get(e);nY&&o?(u=u||new CSSStyleSheet,typeof u=="string"?u=i:u.replaceSync(i)):u=i,Q_.set(e,u)},P$=(e,i,o,u)=>{var d;let _=AE(i);const b=Q_.get(_);if(e=e.nodeType===11?e:Ml,b)if(typeof b=="string"){e=e.head||e;let a=SE.get(e),E;if(a||SE.set(e,a=new Set),!a.has(_)){{E=Ml.createElement("style"),E.innerHTML=b;const j=(d=Ko.$nonce$)!==null&&d!==void 0?d:TE(Ml);j!=null&&E.setAttribute("nonce",j),e.insertBefore(E,e.querySelector("link"))}a&&a.add(_)}}else e.adoptedStyleSheets.includes(b)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,b]);return _},R$=e=>{const i=e.$cmpMeta$,o=e.$hostElement$,u=i.$flags$,d=gc("attachStyles",i.$tagName$),_=P$(o.shadowRoot?o.shadowRoot:o.getRootNode(),i);u&10&&(o["s-sc"]=_,o.classList.add(_+"-h")),d()},AE=(e,i)=>"sc-"+e.$tagName$,CE=(e,i,o,u,d,_)=>{if(o!==u){let b=VE(e,i),a=i.toLowerCase();if(i==="class"){const E=e.classList,j=EE(o),Q=EE(u);E.remove(...j.filter(ie=>ie&&!Q.includes(ie))),E.add(...Q.filter(ie=>ie&&!j.includes(ie)))}else if(i==="style"){for(const E in o)(!u||u[E]==null)&&(E.includes("-")?e.style.removeProperty(E):e.style[E]="");for(const E in u)(!o||u[E]!==o[E])&&(E.includes("-")?e.style.setProperty(E,u[E]):e.style[E]=u[E])}else if(i!=="key")if(i==="ref")u&&u(e);else if(!b&&i[0]==="o"&&i[1]==="n")i[2]==="-"?i=i.slice(3):VE(Cm,a)?i=a.slice(2):i=a[2]+i.slice(3),o&&Ko.rel(e,i,o,!1),u&&Ko.ael(e,i,u,!1);else{const E=O3(u);if((b||E&&u!==null)&&!d)try{if(e.tagName.includes("-"))e[i]=u;else{const Q=u??"";i==="list"?b=!1:(o==null||e[i]!=Q)&&(e[i]=Q)}}catch{}let j=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(i=a,j=!0),u==null||u===!1?(u!==!1||e.getAttribute(i)==="")&&(j?e.removeAttributeNS(ME,i):e.removeAttribute(i)):(!b||_&4||d)&&!E&&(u=u===!0?"":u,j?e.setAttributeNS(ME,i,u):e.setAttribute(i,u))}}},B$=/\s/,EE=e=>e?e.split(B$):[],NE=(e,i,o,u)=>{const d=i.$elm$.nodeType===11&&i.$elm$.host?i.$elm$.host:i.$elm$,_=e&&e.$attrs$||IE,b=i.$attrs$||IE;for(u in _)u in b||CE(d,u,_[u],void 0,o,i.$flags$);for(u in b)CE(d,u,_[u],b[u],o,i.$flags$)},F_=(e,i,o,u)=>{const d=i.$children$[o];let _=0,b,a;if(d.$text$!==null)b=d.$elm$=Ml.createTextNode(d.$text$);else{if(la||(la=d.$tag$==="svg"),b=d.$elm$=Ml.createElementNS(la?N$:L$,d.$tag$),la&&d.$tag$==="foreignObject"&&(la=!1),NE(null,d,la),z$(B_)&&b["s-si"]!==B_&&b.classList.add(b["s-si"]=B_),d.$children$)for(_=0;_<d.$children$.length;++_)a=F_(e,d,_),a&&b.appendChild(a);d.$tag$==="svg"?la=!1:b.tagName==="foreignObject"&&(la=!0)}return b},LE=(e,i,o,u,d,_)=>{let b=e,a;for(b.shadowRoot&&b.tagName===bE&&(b=b.shadowRoot);d<=_;++d)u[d]&&(a=F_(null,o,d),a&&(u[d].$elm$=a,b.insertBefore(a,i)))},zE=(e,i,o,u,d)=>{for(;i<=o;++i)(u=e[i])&&(d=u.$elm$,OE(u),d.remove())},F$=(e,i,o,u)=>{let d=0,_=0,b=0,a=0,E=i.length-1,j=i[0],Q=i[E],ie=u.length-1,G=u[0],ue=u[ie],pe,we;for(;d<=E&&_<=ie;)if(j==null)j=i[++d];else if(Q==null)Q=i[--E];else if(G==null)G=u[++_];else if(ue==null)ue=u[--ie];else if(U_(j,G))bf(j,G),j=i[++d],G=u[++_];else if(U_(Q,ue))bf(Q,ue),Q=i[--E],ue=u[--ie];else if(U_(j,ue))bf(j,ue),e.insertBefore(j.$elm$,Q.$elm$.nextSibling),j=i[++d],ue=u[--ie];else if(U_(Q,G))bf(Q,G),e.insertBefore(Q.$elm$,j.$elm$),Q=i[--E],G=u[++_];else{for(b=-1,a=d;a<=E;++a)if(i[a]&&i[a].$key$!==null&&i[a].$key$===G.$key$){b=a;break}b>=0?(we=i[b],we.$tag$!==G.$tag$?pe=F_(i&&i[_],o,b):(bf(we,G),i[b]=void 0,pe=we.$elm$),G=u[++_]):(pe=F_(i&&i[_],o,_),G=u[++_]),pe&&j.$elm$.parentNode.insertBefore(pe,j.$elm$)}d>E?LE(e,u[ie+1]==null?null:u[ie+1].$elm$,o,u,_,ie):_>ie&&zE(i,d,E)},U_=(e,i)=>e.$tag$===i.$tag$?e.$key$===i.$key$:!1,bf=(e,i)=>{const o=i.$elm$=e.$elm$,u=e.$children$,d=i.$children$,_=i.$tag$,b=i.$text$;b===null?(la=_==="svg"?!0:_==="foreignObject"?!1:la,_==="slot"||NE(e,i,la),u!==null&&d!==null?F$(o,u,i,d):d!==null?(e.$text$!==null&&(o.textContent=""),LE(o,null,i,d,0,d.length-1)):u!==null&&zE(u,0,u.length-1),la&&_==="svg"&&(la=!1)):e.$text$!==b&&(o.data=b)},OE=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(OE)},U$=(e,i)=>{const o=e.$hostElement$,u=e.$cmpMeta$,d=e.$vnode$||k3(null,null),_=O$(i)?i:Je(null,null,i);bE=o.tagName,u.$attrsToReflect$&&(_.$attrs$=_.$attrs$||{},u.$attrsToReflect$.map(([b,a])=>_.$attrs$[a]=o[b])),_.$tag$=null,_.$flags$|=4,e.$vnode$=_,_.$elm$=d.$elm$=o.shadowRoot||o,B_=o["s-sc"],bf(d,_)},kE=(e,i)=>{i&&!e.$onRenderResolve$&&i["s-p"]&&i["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},V_=(e,i)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return kE(e,e.$ancestorComponent$),oY(()=>V$(e,i))},V$=(e,i)=>{const o=gc("scheduleUpdate",e.$cmpMeta$.$tagName$),u=e.$lazyInstance$;let d;return i&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([_,b])=>zh(u,_,b)),e.$queuedListeners$=null),d=zh(u,"componentWillLoad")),d=PE(d,()=>zh(u,"componentWillRender")),o(),PE(d,()=>Q$(e,u,i))},Q$=async(e,i,o)=>{const u=e.$hostElement$,d=gc("update",e.$cmpMeta$.$tagName$),_=u["s-rc"];o&&R$(e);const b=gc("render",e.$cmpMeta$.$tagName$);H$(e,i),_&&(_.map(a=>a()),u["s-rc"]=void 0),b(),d();{const a=u["s-p"],E=()=>$$(e);a.length===0?E():(Promise.all(a).then(E),e.$flags$|=4,a.length=0)}},H$=(e,i,o)=>{try{i=i.render&&i.render(),e.$flags$&=-17,e.$flags$|=2,U$(e,i)}catch(u){Oh(u,e.$hostElement$)}return null},$$=e=>{const i=e.$cmpMeta$.$tagName$,o=e.$hostElement$,u=gc("postUpdate",i),d=e.$lazyInstance$,_=e.$ancestorComponent$;zh(d,"componentDidRender"),e.$flags$&64?u():(e.$flags$|=64,RE(o),zh(d,"componentDidLoad"),u(),e.$onReadyResolve$(o),_||jE()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&B3(()=>V_(e,!1)),e.$flags$&=-517},j3=e=>{{const i=wu(e),o=i.$hostElement$.isConnected;return o&&(i.$flags$&18)===2&&V_(i,!1),o}},jE=e=>{RE(Ml.documentElement),B3(()=>DE(Cm,"appload",{detail:{namespace:A$}}))},zh=(e,i,o)=>{if(e&&e[i])try{return e[i](o)}catch(u){Oh(u)}},PE=(e,i)=>e&&e.then?e.then(i):i(),RE=e=>e.classList.add("hydrated"),Y$=(e,i)=>wu(e).$instanceValues$.get(i),G$=(e,i,o,u)=>{const d=wu(e),_=d.$hostElement$,b=d.$instanceValues$.get(i),a=d.$flags$,E=d.$lazyInstance$;o=k$(o,u.$members$[i][0]);const j=Number.isNaN(b)&&Number.isNaN(o),Q=o!==b&&!j;if((!(a&8)||b===void 0)&&Q&&(d.$instanceValues$.set(i,o),E)){if(u.$watchers$&&a&128){const ie=u.$watchers$[i];ie&&ie.map(G=>{try{E[G](o,b,i)}catch(ue){Oh(ue,_)}})}(a&18)===2&&V_(d,!1)}},BE=(e,i,o)=>{if(i.$members$){e.watchers&&(i.$watchers$=e.watchers);const u=Object.entries(i.$members$),d=e.prototype;if(u.map(([_,[b]])=>{b&31||o&2&&b&32?Object.defineProperty(d,_,{get(){return Y$(this,_)},set(a){G$(this,_,a,i)},configurable:!0,enumerable:!0}):o&1&&b&64&&Object.defineProperty(d,_,{value(...a){const E=wu(this);return E.$onInstancePromise$.then(()=>E.$lazyInstance$[_](...a))}})}),o&1){const _=new Map;d.attributeChangedCallback=function(b,a,E){Ko.jmp(()=>{const j=_.get(b);if(this.hasOwnProperty(j))E=this[j],delete this[j];else if(d.hasOwnProperty(j)&&typeof this[j]=="number"&&this[j]==E)return;this[j]=E===null&&typeof this[j]=="boolean"?!1:E})},e.observedAttributes=u.filter(([b,a])=>a[0]&15).map(([b,a])=>{const E=a[1]||b;return _.set(E,b),a[0]&512&&i.$attrsToReflect$.push([b,E]),E})}}return e},Z$=async(e,i,o,u,d)=>{if(!(i.$flags$&32)){{if(i.$flags$|=32,d=iY(o),d.then){const E=C$();d=await d,E()}d.isProxied||(o.$watchers$=d.watchers,BE(d,o,2),d.isProxied=!0);const a=gc("createInstance",o.$tagName$);i.$flags$|=8;try{new d(i)}catch(E){Oh(E)}i.$flags$&=-9,i.$flags$|=128,a(),FE(i.$lazyInstance$)}if(d.style){let a=d.style;const E=AE(o);if(!Q_.has(E)){const j=gc("registerStyles",o.$tagName$);j$(E,a,!!(o.$flags$&1)),j()}}}const _=i.$ancestorComponent$,b=()=>V_(i,!0);_&&_["s-rc"]?_["s-rc"].push(b):b()},FE=e=>{zh(e,"connectedCallback")},W$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$cmpMeta$,u=gc("connectedCallback",o.$tagName$);if(i.$flags$&1)UE(e,i,o.$listeners$),FE(i.$lazyInstance$);else{i.$flags$|=1;{let d=e;for(;d=d.parentNode||d.host;)if(d["s-p"]){kE(i,i.$ancestorComponent$=d);break}}o.$members$&&Object.entries(o.$members$).map(([d,[_]])=>{if(_&31&&e.hasOwnProperty(d)){const b=e[d];delete e[d],e[d]=b}}),Z$(e,i,o)}u()}},q$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$lazyInstance$;i.$rmListeners$&&(i.$rmListeners$.map(u=>u()),i.$rmListeners$=void 0),zh(o,"disconnectedCallback")}},K$=(e,i={})=>{var o;const u=gc(),d=[],_=i.exclude||[],b=Cm.customElements,a=Ml.head,E=a.querySelector("meta[charset]"),j=Ml.createElement("style"),Q=[];let ie,G=!0;Object.assign(Ko,i),Ko.$resourcesUrl$=new URL(i.resourcesUrl||"./",Ml.baseURI).href,e.map(ue=>{ue[1].map(pe=>{const we={$flags$:pe[0],$tagName$:pe[1],$members$:pe[2],$listeners$:pe[3]};we.$members$=pe[2],we.$listeners$=pe[3],we.$attrsToReflect$=[],we.$watchers$={};const qe=we.$tagName$,me=class extends HTMLElement{constructor(te){super(te),te=this,tY(te,we),we.$flags$&1&&te.attachShadow({mode:"open"})}connectedCallback(){ie&&(clearTimeout(ie),ie=null),G?Q.push(this):Ko.jmp(()=>W$(this))}disconnectedCallback(){Ko.jmp(()=>q$(this))}componentOnReady(){return wu(this).$onReadyPromise$}};we.$lazyBundleId$=ue[0],!_.includes(qe)&&!b.get(qe)&&(d.push(qe),b.define(qe,BE(me,we,1)))})});{j.innerHTML=d+E$,j.setAttribute("data-styles","");const ue=(o=Ko.$nonce$)!==null&&o!==void 0?o:TE(Ml);ue!=null&&j.setAttribute("nonce",ue),a.insertBefore(j,E?E.nextSibling:a.firstChild)}G=!1,Q.length?Q.map(ue=>ue.connectedCallback()):Ko.jmp(()=>ie=setTimeout(jE,30)),u()},UE=(e,i,o,u)=>{o&&o.map(([d,_,b])=>{const a=J$(e,d),E=X$(i,b),j=eY(d);Ko.ael(a,_,E,j),(i.$rmListeners$=i.$rmListeners$||[]).push(()=>Ko.rel(a,_,E,j))})},X$=(e,i)=>o=>{try{e.$flags$&256?e.$lazyInstance$[i](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([i,o])}catch(u){Oh(u)}},J$=(e,i)=>i&8?Cm:e,eY=e=>(e&2)!==0,P3=new WeakMap,wu=e=>P3.get(e),Ir=(e,i)=>P3.set(i.$lazyInstance$=e,i),tY=(e,i)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:i,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(u=>o.$onInstanceResolve$=u),o.$onReadyPromise$=new Promise(u=>o.$onReadyResolve$=u),e["s-p"]=[],e["s-rc"]=[],UE(e,o,i.$listeners$),P3.set(e,o)},VE=(e,i)=>i in e,Oh=(e,i)=>(0,console.error)(e,i),QE=new Map,iY=(e,i,o)=>{const u=e.$tagName$.replace(/-/g,"_"),d=e.$lazyBundleId$,_=QE.get(d);if(_)return _[u];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return S$(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>uq),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>fq),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>gq),"./mi-column.entry.js":()=>Promise.resolve().then(()=>mq),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>vq),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>Sq),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Eq),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>Nq),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Bq),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>Uq),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>Jq),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>tK),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>nK),"./mi-list.entry.js":()=>Promise.resolve().then(()=>oK),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Eie),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>Lie),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Bie),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>Qie),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>$ie),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>sne),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>lne),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>une),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>dne),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>pne),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>mne),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>_ne),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>xne),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>bne),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Sne),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Cne),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Nne),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>zne),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>One),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>jne),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Pne)}),`./${d}.entry.js`).then(b=>(QE.set(d,b),b[u]),Oh)},Q_=new Map,Cm=typeof window<"u"?window:{},Ml=Cm.document||{head:{}},Ko={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,i,o,u)=>e.addEventListener(i,o,u),rel:(e,i,o,u)=>e.removeEventListener(i,o,u),ce:(e,i)=>new CustomEvent(e,i)},HE=e=>Promise.resolve(e),nY=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),$E=[],YE=[],rY=(e,i)=>o=>{e.push(o),z3||(z3=!0,i&&Ko.$flags$&4?B3(R3):Ko.raf(R3))},GE=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(o){Oh(o)}e.length=0},R3=()=>{GE($E),GE(YE),(z3=$E.length>0)&&Ko.raf(R3)},B3=e=>HE().then(e),oY=rY(YE,!0),sY=()=>HE(),ZE=(e,i)=>typeof window>"u"?Promise.resolve():sY().then(()=>K$([["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"],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],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"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"],customPositionProvider:[16],positionState:[32],setPosition:[64],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"],updateScrollButtons:[64],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]}]]]],i)),aY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,i){console&&console[e]&&console[e].apply(console,i)}};class H_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(i,o)}init(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=i||aY,this.options=o,this.debug=o.debug}log(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"log","",!0)}warn(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","",!0)}error(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"error","")}deprecate(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,u,d){return d&&!this.debug?null:(typeof i[0]=="string"&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new H_(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new H_(this.logger,i)}}var Il=new H_;class $_{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(u=>{this.observers[u]=this.observers[u]||[],this.observers[u].push(o)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(u=>u!==o)}}emit(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];this.observers[i]&&[].concat(this.observers[i]).forEach(b=>{b(...u)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(b=>{b.apply(b,[i,...u])})}}function Em(){let e,i;const o=new Promise((u,d)=>{e=u,i=d});return o.resolve=e,o.reject=i,o}function WE(e){return e==null?"":""+e}function lY(e,i,o){e.forEach(u=>{i[u]&&(o[u]=i[u])})}function F3(e,i,o){function u(b){return b&&b.indexOf("###")>-1?b.replace(/###/g,"."):b}function d(){return!e||typeof e=="string"}const _=typeof i!="string"?[].concat(i):i.split(".");for(;_.length>1;){if(d())return{};const b=u(_.shift());!e[b]&&o&&(e[b]=new o),Object.prototype.hasOwnProperty.call(e,b)?e=e[b]:e={}}return d()?{}:{obj:e,k:u(_.shift())}}function qE(e,i,o){const{obj:u,k:d}=F3(e,i,Object);u[d]=o}function cY(e,i,o,u){const{obj:d,k:_}=F3(e,i,Object);d[_]=d[_]||[],u&&(d[_]=d[_].concat(o)),u||d[_].push(o)}function Y_(e,i){const{obj:o,k:u}=F3(e,i);if(o)return o[u]}function uY(e,i,o){const u=Y_(e,o);return u!==void 0?u:Y_(i,o)}function KE(e,i,o){for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in e?typeof e[u]=="string"||e[u]instanceof String||typeof i[u]=="string"||i[u]instanceof String?o&&(e[u]=i[u]):KE(e[u],i[u],o):e[u]=i[u]);return e}function Mf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var hY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function dY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,i=>hY[i]):e}const fY=[" ",",","?","!",";"];function pY(e,i,o){i=i||"",o=o||"";const u=fY.filter(b=>i.indexOf(b)<0&&o.indexOf(b)<0);if(u.length===0)return!0;const d=new RegExp(`(${u.map(b=>b==="?"?"\\?":b).join("|")})`);let _=!d.test(e);if(!_){const b=e.indexOf(o);b>0&&!d.test(e.substring(0,b))&&(_=!0)}return _}function G_(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[i])return e[i];const u=i.split(o);let d=e;for(let _=0;_<u.length;++_){if(!d||typeof d[u[_]]=="string"&&_+1<u.length)return;if(d[u[_]]===void 0){let b=2,a=u.slice(_,_+b).join(o),E=d[a];for(;E===void 0&&u.length>_+b;)b++,a=u.slice(_,_+b).join(o),E=d[a];if(E===void 0)return;if(E===null)return null;if(i.endsWith(a)){if(typeof E=="string")return E;if(a&&typeof E[a]=="string")return E[a]}const j=u.slice(_+b).join(o);return j?G_(E,j,o):void 0}d=d[u[_]]}return d}function Z_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class XE extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,b=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[i,o];u&&typeof u!="string"&&(a=a.concat(u)),u&&typeof u=="string"&&(a=a.concat(_?u.split(_):u)),i.indexOf(".")>-1&&(a=i.split("."));const E=Y_(this.data,a);return E||!b||typeof u!="string"?E:G_(this.data&&this.data[i]&&this.data[i][o],u,_)}addResource(i,o,u,d){let _=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const b=_.keySeparator!==void 0?_.keySeparator:this.options.keySeparator;let a=[i,o];u&&(a=a.concat(b?u.split(b):u)),i.indexOf(".")>-1&&(a=i.split("."),d=o,o=a[1]),this.addNamespaces(o),qE(this.data,a,d),_.silent||this.emit("added",i,o,u,d)}addResources(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _ in u)(typeof u[_]=="string"||Object.prototype.toString.apply(u[_])==="[object Array]")&&this.addResource(i,o,_,u[_],{silent:!0});d.silent||this.emit("added",i,o,u)}addResourceBundle(i,o,u,d,_){let b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[i,o];i.indexOf(".")>-1&&(a=i.split("."),d=u,u=o,o=a[1]),this.addNamespaces(o);let E=Y_(this.data,a)||{};d?KE(E,u,_):E={...E,...u},qE(this.data,a,E),b.silent||this.emit("added",i,o,u)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(i,o)}:this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(d=>o[d]&&Object.keys(o[d]).length>0)}toJSON(){return this.data}}var JE={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,i,o,u,d){return e.forEach(_=>{this.processors[_]&&(i=this.processors[_].process(i,o,u,d))}),i}};const eN={};class W_ extends $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),lY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Il.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;const u=this.resolve(i,o);return u&&u.res!==void 0}extractFromKey(i,o){let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let _=o.ns||this.options.defaultNS||[];const b=u&&i.indexOf(u)>-1,a=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!pY(i,u,d);if(b&&!a){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:_};const j=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(j[0])>-1)&&(_=j.shift()),i=j.join(d)}return typeof _=="string"&&(_=[_]),{key:i,namespaces:_}}translate(i,o,u){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,_=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:b,namespaces:a}=this.extractFromKey(i[i.length-1],o),E=a[a.length-1],j=o.lng||this.language,Q=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(j&&j.toLowerCase()==="cimode"){if(Q){const re=o.nsSeparator||this.options.nsSeparator;return d?{res:`${E}${re}${b}`,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:`${E}${re}${b}`}return d?{res:b,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:b}const ie=this.resolve(i,o);let G=ie&&ie.res;const ue=ie&&ie.usedKey||b,pe=ie&&ie.exactUsedKey||b,we=Object.prototype.toString.apply(G),qe=["[object Number]","[object Function]","[object RegExp]"],me=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject;if(te&&G&&(typeof G!="string"&&typeof G!="boolean"&&typeof G!="number")&&qe.indexOf(we)<0&&!(typeof me=="string"&&we==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(ue,G,{...o,ns:a}):`key '${b} (${this.language})' returned an object instead of string.`;return d?(ie.res=re,ie.usedParams=this.getUsedParamsDetails(o),ie):re}if(_){const re=we==="[object Array]",Me=re?[]:{},xe=re?pe:ue;for(const Ke in G)if(Object.prototype.hasOwnProperty.call(G,Ke)){const st=`${xe}${_}${Ke}`;Me[Ke]=this.translate(st,{...o,joinArrays:!1,ns:a}),Me[Ke]===st&&(Me[Ke]=G[Ke])}G=Me}}else if(te&&typeof me=="string"&&we==="[object Array]")G=G.join(me),G&&(G=this.extendTranslation(G,i,o,u));else{let re=!1,Me=!1;const xe=o.count!==void 0&&typeof o.count!="string",Ke=W_.hasDefaultValue(o),st=xe?this.pluralResolver.getSuffix(j,o.count,o):"",Ge=o.ordinal&&xe?this.pluralResolver.getSuffix(j,o.count,{ordinal:!1}):"",xt=o[`defaultValue${st}`]||o[`defaultValue${Ge}`]||o.defaultValue;!this.isValidLookup(G)&&Ke&&(re=!0,G=xt),this.isValidLookup(G)||(Me=!0,G=b);const kt=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Me?void 0:G,bt=Ke&&xt!==G&&this.options.updateMissing;if(Me||re||bt){if(this.logger.log(bt?"updateKey":"missingKey",j,E,b,bt?xt:G),_){const si=this.resolve(b,{...o,keySeparator:!1});si&&si.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 oi=[];const At=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&At&&At[0])for(let si=0;si<At.length;si++)oi.push(At[si]);else this.options.saveMissingTo==="all"?oi=this.languageUtils.toResolveHierarchy(o.lng||this.language):oi.push(o.lng||this.language);const Tt=(si,Ot,Ht)=>{const W=Ke&&Ht!==G?Ht:kt;this.options.missingKeyHandler?this.options.missingKeyHandler(si,E,Ot,W,bt,o):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(si,E,Ot,W,bt,o),this.emit("missingKey",si,E,Ot,G)};this.options.saveMissing&&(this.options.saveMissingPlurals&&xe?oi.forEach(si=>{this.pluralResolver.getSuffixes(si,o).forEach(Ot=>{Tt([si],b+Ot,o[`defaultValue${Ot}`]||xt)})}):Tt(oi,b,xt))}G=this.extendTranslation(G,i,o,ie,u),Me&&G===b&&this.options.appendNamespaceToMissingKey&&(G=`${E}:${b}`),(Me||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?G=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}:${b}`:b,re?G:void 0):G=this.options.parseMissingKeyHandler(G))}return d?(ie.res=G,ie.usedParams=this.getUsedParamsDetails(o),ie):G}extendTranslation(i,o,u,d,_){var b=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const j=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let Q;if(j){const G=i.match(this.interpolator.nestingRegexp);Q=G&&G.length}let ie=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(ie={...this.options.interpolation.defaultVariables,...ie}),i=this.interpolator.interpolate(i,ie,u.lng||this.language,u),j){const G=i.match(this.interpolator.nestingRegexp),ue=G&&G.length;Q<ue&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(u.lng=d.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var G=arguments.length,ue=new Array(G),pe=0;pe<G;pe++)ue[pe]=arguments[pe];return _&&_[0]===ue[0]&&!u.context?(b.logger.warn(`It seems you are nesting recursively key: ${ue[0]} in key: ${o[0]}`),null):b.translate(...ue,o)},u)),u.interpolation&&this.interpolator.reset()}const a=u.postProcess||this.options.postProcess,E=typeof a=="string"?[a]:a;return i!=null&&E&&E.length&&u.applyPostProcessor!==!1&&(i=JE.handle(E,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,d,_,b,a;return typeof i=="string"&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const j=this.extractFromKey(E,o),Q=j.key;d=Q;let ie=j.namespaces;this.options.fallbackNS&&(ie=ie.concat(this.options.fallbackNS));const G=o.count!==void 0&&typeof o.count!="string",ue=G&&!o.ordinal&&o.count===0&&this.pluralResolver.shouldUseIntlApi(),pe=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",we=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);ie.forEach(qe=>{this.isValidLookup(u)||(a=qe,!eN[`${we[0]}-${qe}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(eN[`${we[0]}-${qe}`]=!0,this.logger.warn(`key "${d}" for languages "${we.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!!!")),we.forEach(me=>{if(this.isValidLookup(u))return;b=me;const te=[Q];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(te,Q,me,qe,o);else{let re;G&&(re=this.pluralResolver.getSuffix(me,o.count,o));const Me=`${this.options.pluralSeparator}zero`,xe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(G&&(te.push(Q+re),o.ordinal&&re.indexOf(xe)===0&&te.push(Q+re.replace(xe,this.options.pluralSeparator)),ue&&te.push(Q+Me)),pe){const Ke=`${Q}${this.options.contextSeparator}${o.context}`;te.push(Ke),G&&(te.push(Ke+re),o.ordinal&&re.indexOf(xe)===0&&te.push(Ke+re.replace(xe,this.options.pluralSeparator)),ue&&te.push(Ke+Me))}}let J;for(;J=te.pop();)this.isValidLookup(u)||(_=J,u=this.getResource(me,qe,J,o))}))})}),{res:u,usedKey:d,exactUsedKey:_,usedLng:b,usedNS:a}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,d):this.resourceStore.getResource(i,o,u,d)}getUsedParamsDetails(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&typeof i.replace!="string";let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const _ of o)delete d[_]}return d}static hasDefaultValue(i){const o="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}function U3(e){return e.charAt(0).toUpperCase()+e.slice(1)}class tN{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Il.create("languageUtils")}getScriptPartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=Z_(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(typeof i=="string"&&i.indexOf("-")>-1){const o=["hans","hant","latn","cyrl","cans","mong","arab"];let u=i.split("-");return this.options.lowerCaseLng?u=u.map(d=>d.toLowerCase()):u.length===2?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=U3(u[1].toLowerCase()))):u.length===3&&(u[0]=u[0].toLowerCase(),u[1].length===2&&(u[1]=u[1].toUpperCase()),u[0]!=="sgn"&&u[2].length===2&&(u[2]=u[2].toUpperCase()),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=U3(u[1].toLowerCase())),o.indexOf(u[2].toLowerCase())>-1&&(u[2]=U3(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(u=>{if(o)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(o=d)}),!o&&this.options.supportedLngs&&i.forEach(u=>{if(o)return;const d=this.getLanguagePartFromCode(u);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(_=>{if(_===d)return _;if(!(_.indexOf("-")<0&&d.indexOf("-")<0)&&_.indexOf(d)===0)return _})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!o)return i.default||[];let u=i[o];return u||(u=i[this.getScriptPartFromCode(o)]),u||(u=i[this.formatLanguageCode(o)]),u||(u=i[this.getLanguagePartFromCode(o)]),u||(u=i.default),u||[]}toResolveHierarchy(i,o){const u=this.getFallbackCodes(o||this.options.fallbackLng||[],i),d=[],_=b=>{b&&(this.isSupportedCode(b)?d.push(b):this.logger.warn(`rejecting language code not found in supportedLngs: ${b}`))};return typeof i=="string"&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&_(this.getLanguagePartFromCode(i))):typeof i=="string"&&_(this.formatLanguageCode(i)),u.forEach(b=>{d.indexOf(b)<0&&_(this.formatLanguageCode(b))}),d}}let gY=[{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}],mY={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 yY=["v1","v2","v3"],_Y=["v4"],iN={zero:0,one:1,two:2,few:3,many:4,other:5};function vY(){const e={};return gY.forEach(i=>{i.lngs.forEach(o=>{e[o]={numbers:i.nr,plurals:mY[i.fc]}})}),e}class xY{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=i,this.options=o,this.logger=Il.create("pluralResolver"),(!this.options.compatibilityJSON||_Y.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=vY()}addRule(i,o){this.rules[i]=o}getRule(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Z_(i),{type:o.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}needsPlural(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(i,u).map(d=>`${o}${d}`)}getSuffixes(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((d,_)=>iN[d]-iN[_]).map(d=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${d}`):u.numbers.map(d=>this.getSuffix(i,d,o)):[]}getSuffix(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=this.getRule(i,u);return d?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(o)}`:this.getSuffixRetroCompatible(d,o):(this.logger.warn(`no plural rule found for: ${i}`),"")}getSuffixRetroCompatible(i,o){const u=i.noAbs?i.plurals(o):i.plurals(Math.abs(o));let d=i.numbers[u];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(d===2?d="plural":d===1&&(d=""));const _=()=>this.options.prepend&&d.toString()?this.options.prepend+d.toString():d.toString();return this.options.compatibilityJSON==="v1"?d===1?"":typeof d=="number"?`_plural_${d.toString()}`:_():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?_():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!yY.includes(this.options.compatibilityJSON)}}function nN(e,i,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_=uY(e,i,o);return!_&&d&&typeof o=="string"&&(_=G_(e,o,u),_===void 0&&(_=G_(i,o,u))),_}class wY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("interpolator"),this.options=i,this.format=i.interpolation&&i.interpolation.format||(o=>o),this.init(i)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});const o=i.interpolation;this.escape=o.escape!==void 0?o.escape:dY,this.escapeValue=o.escapeValue!==void 0?o.escapeValue:!0,this.useRawValueToEscape=o.useRawValueToEscape!==void 0?o.useRawValueToEscape:!1,this.prefix=o.prefix?Mf(o.prefix):o.prefixEscaped||"{{",this.suffix=o.suffix?Mf(o.suffix):o.suffixEscaped||"}}",this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||",",this.unescapePrefix=o.unescapeSuffix?"":o.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":o.unescapeSuffix||"",this.nestingPrefix=o.nestingPrefix?Mf(o.nestingPrefix):o.nestingPrefixEscaped||Mf("$t("),this.nestingSuffix=o.nestingSuffix?Mf(o.nestingSuffix):o.nestingSuffixEscaped||Mf(")"),this.nestingOptionsSeparator=o.nestingOptionsSeparator?o.nestingOptionsSeparator:o.nestingOptionsSeparator||",",this.maxReplaces=o.maxReplaces?o.maxReplaces:1e3,this.alwaysFormat=o.alwaysFormat!==void 0?o.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(i,"g");const o=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(o,"g");const u=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(u,"g")}interpolate(i,o,u,d){let _,b,a;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(pe){return pe.replace(/\$/g,"$$$$")}const Q=pe=>{if(pe.indexOf(this.formatSeparator)<0){const te=nN(o,E,pe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(te,void 0,u,{...d,...o,interpolationkey:pe}):te}const we=pe.split(this.formatSeparator),qe=we.shift().trim(),me=we.join(this.formatSeparator).trim();return this.format(nN(o,E,qe,this.options.keySeparator,this.options.ignoreJSONStructure),me,u,{...d,...o,interpolationkey:qe})};this.resetRegExp();const ie=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,G=d&&d.interpolation&&d.interpolation.skipOnVariables!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:pe=>j(pe)},{regex:this.regexp,safeValue:pe=>this.escapeValue?j(this.escape(pe)):j(pe)}].forEach(pe=>{for(a=0;_=pe.regex.exec(i);){const we=_[1].trim();if(b=Q(we),b===void 0)if(typeof ie=="function"){const me=ie(i,_,d);b=typeof me=="string"?me:""}else if(d&&Object.prototype.hasOwnProperty.call(d,we))b="";else if(G){b=_[0];continue}else this.logger.warn(`missed to pass in variable ${we} for interpolating ${i}`),b="";else typeof b!="string"&&!this.useRawValueToEscape&&(b=WE(b));const qe=pe.safeValue(b);if(i=i.replace(_[0],qe),G?(pe.regex.lastIndex+=b.length,pe.regex.lastIndex-=_[0].length):pe.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),i}nest(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,_,b;function a(E,j){const Q=this.nestingOptionsSeparator;if(E.indexOf(Q)<0)return E;const ie=E.split(new RegExp(`${Q}[ ]*{`));let G=`{${ie[1]}`;E=ie[0],G=this.interpolate(G,b);const ue=G.match(/'/g),pe=G.match(/"/g);(ue&&ue.length%2===0&&!pe||pe.length%2!==0)&&(G=G.replace(/'/g,'"'));try{b=JSON.parse(G),j&&(b={...j,...b})}catch(we){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,we),`${E}${Q}${G}`}return delete b.defaultValue,E}for(;d=this.nestingRegexp.exec(i);){let E=[];b={...u},b=b.replace&&typeof b.replace!="string"?b.replace:b,b.applyPostProcessor=!1,delete b.defaultValue;let j=!1;if(d[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(d[1])){const Q=d[1].split(this.formatSeparator).map(ie=>ie.trim());d[1]=Q.shift(),E=Q,j=!0}if(_=o(a.call(this,d[1].trim(),b),b),_&&d[0]===i&&typeof _!="string")return _;typeof _!="string"&&(_=WE(_)),_||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),_=""),j&&(_=E.reduce((Q,ie)=>this.format(Q,ie,u.lng,{...u,interpolationkey:d[1].trim()}),_.trim())),i=i.replace(d[0],_),this.regexp.lastIndex=0}return i}}function bY(e){let i=e.toLowerCase().trim();const o={};if(e.indexOf("(")>-1){const u=e.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?o.currency||(o.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?o.range||(o.range=d.trim()):d.split(";").forEach(b=>{if(!b)return;const[a,...E]=b.split(":"),j=E.join(":").trim().replace(/^'+|'+$/g,"");o[a.trim()]||(o[a.trim()]=j),j==="false"&&(o[a.trim()]=!1),j==="true"&&(o[a.trim()]=!0),isNaN(j)||(o[a.trim()]=parseInt(j,10))})}return{formatName:i,formatOptions:o}}function If(e){const i={};return function(u,d,_){const b=d+JSON.stringify(_);let a=i[b];return a||(a=e(Z_(d),_),i[b]=a),a(u)}}class MY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("formatter"),this.options=i,this.formats={number:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u});return _=>d.format(_)}),currency:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u,style:"currency"});return _=>d.format(_)}),datetime:If((o,u)=>{const d=new Intl.DateTimeFormat(o,{...u});return _=>d.format(_)}),relativetime:If((o,u)=>{const d=new Intl.RelativeTimeFormat(o,{...u});return _=>d.format(_,u.range||"day")}),list:If((o,u)=>{const d=new Intl.ListFormat(o,{...u});return _=>d.format(_)})},this.init(i)}init(i){const u=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=u.formatSeparator?u.formatSeparator:u.formatSeparator||","}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=If(o)}format(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return o.split(this.formatSeparator).reduce((a,E)=>{const{formatName:j,formatOptions:Q}=bY(E);if(this.formats[j]){let ie=a;try{const G=d&&d.formatParams&&d.formatParams[d.interpolationkey]||{},ue=G.locale||G.lng||d.locale||d.lng||u;ie=this.formats[j](a,ue,{...Q,...d,...G})}catch(G){this.logger.warn(G)}return ie}else this.logger.warn(`there was no format function for ${j}`);return a},i)}}function IY(e,i){e.pending[i]!==void 0&&(delete e.pending[i],e.pendingCount--)}class TY extends $_{constructor(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=i,this.store=o,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=Il.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,d.backend,d)}queueLoad(i,o,u,d){const _={},b={},a={},E={};return i.forEach(j=>{let Q=!0;o.forEach(ie=>{const G=`${j}|${ie}`;!u.reload&&this.store.hasResourceBundle(j,ie)?this.state[G]=2:this.state[G]<0||(this.state[G]===1?b[G]===void 0&&(b[G]=!0):(this.state[G]=1,Q=!1,b[G]===void 0&&(b[G]=!0),_[G]===void 0&&(_[G]=!0),E[ie]===void 0&&(E[ie]=!0)))}),Q||(a[j]=!0)}),(Object.keys(_).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(_),pending:Object.keys(b),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(E)}}loaded(i,o,u){const d=i.split("|"),_=d[0],b=d[1];o&&this.emit("failedLoading",_,b,o),u&&this.store.addResourceBundle(_,b,u),this.state[i]=o?-1:2;const a={};this.queue.forEach(E=>{cY(E.loaded,[_],b),IY(E,i),o&&E.errors.push(o),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(j=>{a[j]||(a[j]={});const Q=E.loaded[j];Q.length&&Q.forEach(ie=>{a[j][ie]===void 0&&(a[j][ie]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(E=>!E.done)}read(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,b=arguments.length>5?arguments[5]:void 0;if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:d,wait:_,callback:b});return}this.readingCalls++;const a=(j,Q)=>{if(this.readingCalls--,this.waitingReads.length>0){const ie=this.waitingReads.shift();this.read(ie.lng,ie.ns,ie.fcName,ie.tried,ie.wait,ie.callback)}if(j&&Q&&d<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,u,d+1,_*2,b)},_);return}b(j,Q)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const j=E(i,o);j&&typeof j.then=="function"?j.then(Q=>a(null,Q)).catch(a):a(null,j)}catch(j){a(j)}return}return E(i,o,a)}prepareLoading(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=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."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);const _=this.queueLoad(i,o,u,d);if(!_.toLoad.length)return _.pending.length||d(),null;_.toLoad.forEach(b=>{this.loadOne(b)})}load(i,o,u){this.prepareLoading(i,o,{},u)}reload(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}loadOne(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=i.split("|"),d=u[0],_=u[1];this.read(d,_,"read",void 0,void 0,(b,a)=>{b&&this.logger.warn(`${o}loading namespace ${_} for language ${d} failed`,b),!b&&a&&this.logger.log(`${o}loaded namespace ${_} for language ${d}`,a),this.loaded(i,b,a)})}saveMissing(i,o,u,d,_){let b=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(o)){this.logger.warn(`did not save key "${u}" as the namespace "${o}" 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(!(u==null||u==="")){if(this.backend&&this.backend.create){const E={...b,isUpdate:_},j=this.backend.create.bind(this.backend);if(j.length<6)try{let Q;j.length===5?Q=j(i,o,u,d,E):Q=j(i,o,u,d),Q&&typeof Q.then=="function"?Q.then(ie=>a(null,ie)).catch(a):a(null,Q)}catch(Q){a(Q)}else j(i,o,u,d,a,E)}!i||!i[0]||this.store.addResource(i[0],o,u,d)}}}function rN(){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(i){let o={};if(typeof i[1]=="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(d=>{o[d]=u[d]})}return o},interpolation:{escapeValue:!0,format:(e,i,o,u)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function oN(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 q_(){}function DY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})}class Nm extends $_{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=oN(i),this.services={},this.logger=Il,this.modules={external:[]},DY(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initImmediate)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(){var i=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const d=rN();this.options={...d,...this.options,...oN(o)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...d.interpolation,...this.options.interpolation}),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function _(Q){return Q?typeof Q=="function"?new Q:Q:null}if(!this.options.isClone){this.modules.logger?Il.init(_(this.modules.logger),this.options):Il.init(null,this.options);let Q;this.modules.formatter?Q=this.modules.formatter:typeof Intl<"u"&&(Q=MY);const ie=new tN(this.options);this.store=new XE(this.options.resources,this.options);const G=this.services;G.logger=Il,G.resourceStore=this.store,G.languageUtils=ie,G.pluralResolver=new xY(ie,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),Q&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(G.formatter=_(Q),G.formatter.init(G,this.options),this.options.interpolation.format=G.formatter.format.bind(G.formatter)),G.interpolator=new wY(this.options),G.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},G.backendConnector=new TY(_(this.modules.backend),G.resourceStore,G,this.options),G.backendConnector.on("*",function(ue){for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),qe=1;qe<pe;qe++)we[qe-1]=arguments[qe];i.emit(ue,...we)}),this.modules.languageDetector&&(G.languageDetector=_(this.modules.languageDetector),G.languageDetector.init&&G.languageDetector.init(G,this.options.detection,this.options)),this.modules.i18nFormat&&(G.i18nFormat=_(this.modules.i18nFormat),G.i18nFormat.init&&G.i18nFormat.init(this)),this.translator=new W_(this.services,this.options),this.translator.on("*",function(ue){for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),qe=1;qe<pe;qe++)we[qe-1]=arguments[qe];i.emit(ue,...we)}),this.modules.external.forEach(ue=>{ue.init&&ue.init(this)})}if(this.format=this.options.interpolation.format,u||(u=q_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const Q=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);Q.length>0&&Q[0]!=="dev"&&(this.options.lng=Q[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(Q=>{this[Q]=function(){return i.store[Q](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(Q=>{this[Q]=function(){return i.store[Q](...arguments),i}});const E=Em(),j=()=>{const Q=(ie,G)=>{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),E.resolve(G),u(ie,G)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return Q(null,this.t.bind(this));this.changeLanguage(this.options.lng,Q)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),E}loadResources(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const _=[],b=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(j=>{j!=="cimode"&&_.indexOf(j)<0&&_.push(j)})};d?b(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>b(E)),this.options.preload&&this.options.preload.forEach(a=>b(a)),this.services.backendConnector.load(_,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(a)})}else u(null)}reloadResources(i,o,u){const d=Em();return i||(i=this.languages),o||(o=this.options.ns),u||(u=q_),this.services.backendConnector.reload(i,o,_=>{d.resolve(),u(_)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&JE.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(let o=0;o<this.languages.length;o++){const u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(i,o){var u=this;this.isLanguageChangingTo=i;const d=Em();this.emit("languageChanging",i);const _=E=>{this.language=E,this.languages=this.services.languageUtils.toResolveHierarchy(E),this.resolvedLanguage=void 0,this.setResolvedLanguage(E)},b=(E,j)=>{j?(_(j),this.translator.changeLanguage(j),this.isLanguageChangingTo=void 0,this.emit("languageChanged",j),this.logger.log("languageChanged",j)):this.isLanguageChangingTo=void 0,d.resolve(function(){return u.t(...arguments)}),o&&o(E,function(){return u.t(...arguments)})},a=E=>{!i&&!E&&this.services.languageDetector&&(E=[]);const j=typeof E=="string"?E:this.services.languageUtils.getBestMatchFromCodes(E);j&&(this.language||_(j),this.translator.language||this.translator.changeLanguage(j),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(j)),this.loadResources(j,Q=>{b(Q,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!i&&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(i),d}getFixedT(i,o,u){var d=this;const _=function(b,a){let E;if(typeof a!="object"){for(var j=arguments.length,Q=new Array(j>2?j-2:0),ie=2;ie<j;ie++)Q[ie-2]=arguments[ie];E=d.options.overloadTranslationOptionHandler([b,a].concat(Q))}else E={...a};E.lng=E.lng||_.lng,E.lngs=E.lngs||_.lngs,E.ns=E.ns||_.ns,E.keyPrefix=E.keyPrefix||u||_.keyPrefix;const G=d.options.keySeparator||".";let ue;return E.keyPrefix&&Array.isArray(b)?ue=b.map(pe=>`${E.keyPrefix}${G}${pe}`):ue=E.keyPrefix?`${E.keyPrefix}${G}${b}`:b,d.t(ue,E)};return typeof i=="string"?_.lng=i:_.lngs=i,_.ns=o,_.keyPrefix=u,_}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i){let o=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 u=o.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,_=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=this.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};if(o.precheck){const a=o.precheck(this,b);if(a!==void 0)return a}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(u,i)&&(!d||b(_,i)))}loadNamespaces(i,o){const u=Em();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}loadLanguages(i,o){const u=Em();typeof i=="string"&&(i=[i]);const d=this.options.preload||[],_=i.filter(b=>d.indexOf(b)<0);return _.length?(this.options.preload=d.concat(_),this.loadResources(b=>{u.resolve(),o&&o(b)}),u):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";const o=["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"],u=this.services&&this.services.languageUtils||new tN(rN());return o.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new Nm(i,o)}cloneInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q_;const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},_=new Nm(d);return(i.debug!==void 0||i.prefix!==void 0)&&(_.logger=_.logger.clone(i)),["store","services","language"].forEach(a=>{_[a]=this[a]}),_.services={...this.services},_.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},u&&(_.store=new XE(this.store.data,d),_.services.resourceStore=_.store),_.translator=new W_(_.services,d),_.translator.on("*",function(a){for(var E=arguments.length,j=new Array(E>1?E-1:0),Q=1;Q<E;Q++)j[Q-1]=arguments[Q];_.emit(a,...j)}),_.init(d,o),_.translator.options=d,_.translator.backendConnector.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},_}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jo=Nm.createInstance();jo.createInstance=Nm.createInstance,jo.createInstance,jo.dir,jo.init,jo.loadResources,jo.reloadResources,jo.use,jo.changeLanguage,jo.getFixedT;const sN=jo.t;jo.exists,jo.setDefaultNamespace,jo.hasLoadedNamespace,jo.loadNamespaces,jo.loadLanguages;function V3(){return V3=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)({}).hasOwnProperty.call(o,u)&&(e[u]=o[u])}return e},V3.apply(null,arguments)}function SY(){if(console&&console.warn){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i)}}const aN={};function Q3(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&aN[i[0]]||(typeof i[0]=="string"&&(aN[i[0]]=new Date),SY(...i))}const lN=(e,i)=>()=>{if(e.isInitialized)i();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),i()};e.on("initialized",o)}};function cN(e,i,o){e.loadNamespaces(i,lN(e,o))}function uN(e,i,o,u){typeof o=="string"&&(o=[o]),o.forEach(d=>{e.options.ns.indexOf(d)<0&&e.options.ns.push(d)}),e.loadLanguages(i,lN(e,u))}function AY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=i.languages[0],d=i.options?i.options.fallbackLng:!1,_=i.languages[i.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=i.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!b(i.isLanguageChangingTo,e)?!1:!!(i.hasResourceBundle(u,e)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||b(u,e)&&(!d||b(_,e)))}function CY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!i.languages||!i.languages.length?(Q3("i18n.languages were undefined or empty",i.languages),!0):i.options.ignoreJSONStructure!==void 0?i.hasLoadedNamespace(e,{lng:o.lng,precheck:(d,_)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&d.services.backendConnector.backend&&d.isLanguageChangingTo&&!_(d.isLanguageChangingTo,e))return!1}}):AY(e,i,o)}const EY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},LY=e=>NY[e];let H3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(EY,LY)};function zY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};H3={...H3,...e}}function OY(){return H3}let hN;function kY(e){hN=e}function jY(){return hN}const PY={type:"3rdParty",init(e){zY(e.options.react),kY(e)}},RY=be.createContext();class BY{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const FY=(e,i)=>{const o=be.useRef();return be.useEffect(()=>{o.current=i?o.current:e},[e,i]),o.current};function cs(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=i,{i18n:u,defaultNS:d}=be.useContext(RY)||{},_=o||u||jY();if(_&&!_.reportNamespaces&&(_.reportNamespaces=new BY),!_){Q3("You will need to pass in an i18next instance by using initReactI18next");const J=(Me,xe)=>typeof xe=="string"?xe:xe&&typeof xe=="object"&&typeof xe.defaultValue=="string"?xe.defaultValue:Array.isArray(Me)?Me[Me.length-1]:Me,re=[J,{},!1];return re.t=J,re.i18n={},re.ready=!1,re}_.options.react&&_.options.react.wait!==void 0&&Q3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const b={...OY(),..._.options.react,...i},{useSuspense:a,keyPrefix:E}=b;let j=e||d||_.options&&_.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"],_.reportNamespaces.addUsedNamespaces&&_.reportNamespaces.addUsedNamespaces(j);const Q=(_.isInitialized||_.initializedStoreOnce)&&j.every(J=>CY(J,_,b));function ie(){return _.getFixedT(i.lng||null,b.nsMode==="fallback"?j:j[0],E)}const[G,ue]=be.useState(ie);let pe=j.join();i.lng&&(pe=`${i.lng}${pe}`);const we=FY(pe),qe=be.useRef(!0);be.useEffect(()=>{const{bindI18n:J,bindI18nStore:re}=b;qe.current=!0,!Q&&!a&&(i.lng?uN(_,i.lng,j,()=>{qe.current&&ue(ie)}):cN(_,j,()=>{qe.current&&ue(ie)})),Q&&we&&we!==pe&&qe.current&&ue(ie);function Me(){qe.current&&ue(ie)}return J&&_&&_.on(J,Me),re&&_&&_.store.on(re,Me),()=>{qe.current=!1,J&&_&&J.split(" ").forEach(xe=>_.off(xe,Me)),re&&_&&re.split(" ").forEach(xe=>_.store.off(xe,Me))}},[_,pe]);const me=be.useRef(!0);be.useEffect(()=>{qe.current&&!me.current&&ue(ie),me.current=!1},[_,E]);const te=[G,_,Q];if(te.t=G,te.i18n=_,te.ready=Q,Q||!Q&&!a)return te;throw new Promise(J=>{i.lng?uN(_,i.lng,j,()=>J()):cN(_,j,()=>J())})}const UY={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","Avoid stairs and escalators":"Avoid stairs and escalators","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",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",Share:"Share","Copy link":"Copy link","QR Code":"QR Code",Open:"Open",Closed:"Closed","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language"},VY={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","Avoid stairs and escalators":"Undgå trapper og rulletrapper","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",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",Share:"Del","Copy link":"Kopiér link","QR Code":"QR-kode",Open:"Åben",Closed:"Lukket","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog"},QY={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Nach Name, Kategorie, Gebäude suchen...","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":"Beschreibung öffnen",Locations:"Locations","Directions not available":"Wegbeschreibung nicht verfügbar","Start directions":"Starte Wegbeschreibung",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:"Verlassen Sie das",Enter:"Gehe Sie 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","Avoid stairs and escalators":"Treppen und Rolltreppen vermeiden","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Los!",Directions:"Wegbeschreibung","Choose departure":"Startpunkt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Standort wählen",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",Share:"Teilen","Copy link":"Link kopieren","QR Code":"QR code",Open:"Geöffnet",Closed:"Geschlossen","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen"},HY={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","Avoid stairs and escalators":"Éviter les escaliers et les escalators","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",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",Share:"Partager","Copy link":"Copier le lien","QR Code":"Code QR",Open:"Ouvert",Closed:"Fermé","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue"},$Y={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso",Share:"Condividi","Copy link":"Copia il collegamento","QR Code":"Codice QR",Open:"Aperto",Closed:"Chiuso","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua"},YY={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta",Share:"Compartir","Copy link":"Copiar link","QR Code":"Código QR",Open:"Abierto",Closed:"Cerrado","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma"},GY={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien ",Share:"Deel","Copy link":"Link kopiëren","QR Code":"QR code",Open:"Open",Closed:"Gesloten","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal"},ZY={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","Nothing was found":"未找到任何结果",d:"天",h:"小时",min:"分钟",Walk:"步行",Bike:"骑车",Transit:"公交",Drive:"驾车","Start wayfinding":"开始导航","Read full description":"查看完整描述",Locations:"位置","Directions not available":"导航不可用","Start directions":"开始导航",Previous:"上一步",Next:"下一步",StepYofX:"第 {{activeStep}} 步,共 {{totalSteps}} 步","You have arrived":"您已到达",Leave:"离开",Park:"停车",at:"在",Building:"建筑",Venue:"场所","Take staircase to level":"走楼梯到","Take the ladder to level":"走梯子到","Take elevator to level":"乘电梯到","Take escalator to level":"乘扶梯到","Take wheelchair lift to level":"乘轮椅升降机到","Take wheelchair ramp to level":"走轮椅坡道到",Exit:"离开",Enter:"进入",stops:"站","and continue":"然后继续","Continue straight ahead":"直行","Go left":"向左","Go sharp left":"急转左","Go slight left":"稍向左","Go right":"向右","Go sharp right":"急转右","Go slight right":"稍向右","Turn around":"掉头",Switch:"切换","Avoid stairs and escalators":"避开楼梯和扶梯","No route found":"未找到路线","My position":"我的位置","Go!":"出发!",Directions:"导航","Choose departure":"选择出发地","Choose destination":"选择目的地",Venues:"场所","Select venue":"选择场所",Current:"当前","Scan QR code":"扫描二维码","Scan the QR code to see the route on your phone":"扫描二维码在手机上查看路线",Done:"完成","Cancel route":"取消路线","Finish route":"完成路线",Share:"分享","Copy link":"复制链接","QR Code":"二维码",Open:"营业中",Closed:"已关闭","Go to view":"定位到","Select language":"选择语言"};function WY(e){jo.use(PY).init({resources:{en:{translation:UY},da:{translation:VY},de:{translation:QY},fr:{translation:HY},it:{translation:$Y},es:{translation:YY},nl:{translation:GY},zh:{translation:ZY}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const dN=[{code:"en",label:"English"},{code:"da",label:"Dansk"},{code:"de",label:"Deutsch"},{code:"fr",label:"Français"},{code:"it",label:"Italiano"},{code:"es",label:"Español"},{code:"nl",label:"Nederlands"},{code:"zh",label:"中文"}],zae="",Tf={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var fN={exports:{}},qY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",KY=qY,XY=KY;function pN(){}function gN(){}gN.resetWarningCache=pN;var JY=function(){function e(u,d,_,b,a,E){if(E!==XY){var j=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 j.name="Invariant Violation",j}}e.isRequired=e;function i(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:i,element:e,elementType:e,instanceOf:i,node:e,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:gN,resetWarningCache:pN};return o.PropTypes=o,o};fN.exports=JY();var eG=fN.exports;const ht=nc(eG),Oae="",tG=e=>{const[i,o]=be.useState(!1);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},$3=()=>tG("(min-width: 992px)");class iG{constructor(i={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:o=100}=i;this._maxAccuracy=o}get currentPosition(){return this._currentPosition}hasValidPosition(){const i=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=i}on(i,o){this._listeners.has(i)||this._listeners.set(i,[]),this._listeners.get(i).push(o)}off(i,o){const u=this._listeners.get(i);u&&this._listeners.set(i,u.filter(d=>d!==o))}setPosition(i){let o;if(i.coords&&i.timestamp)o={coords:{latitude:i.coords.latitude,longitude:i.coords.longitude,accuracy:i.coords.accuracy,altitude:i.coords.altitude??null,altitudeAccuracy:i.coords.altitudeAccuracy??null,heading:i.coords.heading??null,speed:i.coords.speed??null},timestamp:i.timestamp,floorIndex:i.floorIndex??null};else{const d={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:i};return this.emitError(d),!1}return o.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${o.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=o,(this._listeners.get("position_received")||[]).forEach(d=>{d.call(null,{position:o})}),!0)}emitError(i){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",i),(this._listeners.get("position_error")||[]).forEach(u=>{u.call(null,i)})}}mN.propTypes={mapType:ht.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:ht.object.isRequired,mapInstance:ht.object.isRequired,onPositionControl:ht.func,brandingColor:ht.string,devicePosition:ht.object};function mN({mapType:e,mapsIndoorsInstance:i,mapInstance:o,onPositionControl:u,brandingColor:d,devicePosition:_}){const b=$3(),a=be.useRef(null),E=be.useRef(null),j=Pe.jsx("div",{className:"venue-selector-portal"},"venue-selector"),Q=Pe.jsx("div",{className:"floor-selector-portal"},"floor-selector"),ie=Pe.jsx("div",{className:"my-position-element-portal"},"my-position"),G=Pe.jsx("div",{className:"viewmode-switch-portal"},"viewmode-switch"),ue=Pe.jsx("div",{className:"view-selector-portal"},"view-selector"),pe=Pe.jsx("div",{className:"language-selector-portal"},"language-selector"),we=Pe.jsx("div",{className:"reset-view-portal"},"reset-view"),qe=me=>{if(E.current.customPositionProvider.setPosition(me)&&(E.current.watchPosition(),me.floorIndex&&i)){const te=i.getFloor(),J=parseInt(me.floorIndex,10);J!==te&&i.setFloor(J)}};return be.useEffect(()=>{if(!(!i||!o)){if(!a.current){const me=document.createElement("mi-floor-selector");a.current=me}if(!E.current){const me=document.createElement("mi-my-position");E.current=me}a.current.mapsindoors=i,E.current.mapsindoors=i,d&&(a.current.primaryColor=d),u&&E.current&&u(E.current)}},[e,i,o,u,d]),be.useEffect(()=>{if(E.current){if(E.current.stopListeningForPosition&&typeof E.current.stopListeningForPosition=="function"&&E.current.stopListeningForPosition(),_&&typeof _=="object"){if(E.current.customPositionProvider||(E.current.customPositionProvider=new iG),Object.keys(_).length===0)return;qe(_)}return()=>{E.current&&E.current.stopListeningForPosition&&typeof E.current.stopListeningForPosition=="function"&&E.current.stopListeningForPosition()}}},[_]),be.useEffect(()=>{if(!a.current||!E.current)return;const me=(te,J)=>{const re=document.querySelector(`.${J}`);re&&!re.contains(te)&&(te.remove(),re.appendChild(te))};me(a.current,"floor-selector-portal"),me(E.current,"my-position-element-portal")},[b]),b?Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-container desktop top-right",children:[j,ue,pe,G,ie,Q]}),Pe.jsx("div",{className:"map-controls-container desktop bottom-right",children:we})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-left-column mobile-column",children:[j,G,ue,pe]}),Pe.jsxs("div",{className:"map-controls-right-column mobile-column",children:[ie,Q]})]})}const kae="",nG=be.lazy(()=>Promise.resolve().then(()=>Qne)),rG=be.lazy(()=>Promise.resolve().then(()=>Zne)),Df={Google:"google",Mapbox:"mapbox"};yN.propTypes={apiKey:ht.string.isRequired,gmApiKey:ht.string,mapboxAccessToken:ht.string,center:ht.object,zoom:ht.number,bounds:ht.object,bearing:ht.number,pitch:ht.number,resetUICounter:ht.number,mapOptions:ht.object,onInitialized:ht.func,gmMapId:ht.string,devicePosition:ht.object};function yN({apiKey:e,gmApiKey:i,mapboxAccessToken:o,center:u,zoom:d,bounds:_,bearing:b,pitch:a,resetUICounter:E,mapOptions:j,onInitialized:Q,gmMapId:ie,devicePosition:G}){const[ue,pe]=be.useState(),[we,qe]=be.useState(),[me,te]=be.useState(),[J,re]=be.useState(),[Me,xe]=be.useState(),[Ke,st]=be.useState(),[Ge,xt]=be.useState();be.useEffect(()=>{window.customElements.get("mi-floor-selector")||ZE()},[]),be.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),ue===Df.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(kt=>{xe(kt)}),window.mapsindoors.services.AppConfigService.getConfig().then(kt=>{st(kt)})))},[e,ue]);const dt=kt=>{xt(kt);const bt=new window.mapsindoors.MapsIndoors({mapView:kt});bt.once("building_changed",oi=>{const At=bt.getVenue();oi&&At&&oi.venueId!==At.id&&bt.setVenue(oi.venueId)}),bt.on("mouseenter",()=>{var At;const oi=bt.getHoveredLocation();((At=oi==null?void 0:oi.properties.locationSettings)==null?void 0:At.selectable)===!1&&bt.unhoverLocation()}),bt.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),qe(bt)};return be.useEffect(()=>{typeof Q=="function"&&we&&me&&typeof J=="boolean"&&Q(we,me,J)},[we,me,J]),be.useEffect(()=>{Me&&ue===Df.Mapbox&&["mapbox","3dwalls","floorplan"].every(kt=>Me.modules.map(bt=>bt.toLowerCase()).includes(kt))?re(!0):re(!1)},[Me,ue]),be.useEffect(()=>{o?pe(Df.Mapbox):i&&pe(Df.Google)},[i,o]),Pe.jsxs(Pe.Fragment,{children:[ue===Df.Google&&Pe.jsx(be.Suspense,{children:Pe.jsx(rG,{mapsIndoorsInstance:we,apiKey:i,onInitialized:dt,center:u,zoom:d,mapOptions:j,heading:b,tilt:a,bounds:_,gmMapId:ie})}),ue===Df.Mapbox&&Pe.jsx(be.Suspense,{children:Pe.jsx(nG,{mapsIndoorsInstance:we,accessToken:o,onInitialized:dt,center:u,zoom:d,mapOptions:j,bearing:b,pitch:a,bounds:_,resetViewMode:E,viewModeSwitchVisible:J,appConfig:Ke})}),we&&Ge&&ue&&Pe.jsx(mN,{mapType:ue,mapsIndoorsInstance:we,mapInstance:Ge,onPositionControl:te,brandingColor:j==null?void 0:j.brandingColor,devicePosition:G})]})}const us={Google:"google",Mapbox:"mapbox"},ca=On({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),oG=e=>{const i=Oi(ca),o=be.useRef(),[u,d]=be.useState([]);be.useEffect(()=>{(async()=>{if(i&&e){for(const a of u)o.current.disableLiveData(a);o.current=new window.mapsindoors.LiveDataManager(i);const b=await o.current.LiveDataInfo.activeDomainTypes();for(const a of b)await o.current.enableLiveData(a);d(b)}})()},[e,i])},K_=On({key:"userPosition",default:null}),Y3=On({key:"directionsService",default:null}),X_=On({key:"mapType",default:void 0}),G3=On({key:"apiKey",default:null}),Z3=On({key:"gmApiKey",default:null}),J_=On({key:"mapboxAccessToken",default:null}),ev=On({key:"filteredLocations",default:void 0}),tv=On({key:"filteredLocationsByExternalID",default:void 0}),_N=On({key:"tileStyle",default:null}),vN=On({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),W3=On({key:"bearing",default:0}),iv=On({key:"pitch",default:null}),xN=On({key:"solution",default:null,dangerouslyAllowMutability:!0}),Lm=On({key:"notificationMessage",default:null});function zm(){return new Promise(e=>{const i=document.querySelector(".modal--open"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-(i==null?void 0:i.offsetTop));else{const u=new MutationObserver(()=>{const d=document.querySelector(".modal--open");d&&(u.disconnect(),e(o.offsetHeight-(d==null?void 0:d.offsetTop)))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Om=On({key:"categories",default:[]}),q3=On({key:"kioskOriginLocationId",default:void 0}),nv=On({key:"locationId",default:void 0}),wN=On({key:"startZoomLevel",default:null}),bu=On({key:"currentVenueName",default:null}),km=On({key:"venues",default:[]}),K3=On({key:"venueWasSelected",default:!1}),rv=On({key:"isMapReady",default:!1});function Sf(){return new Promise(e=>{const i=document.querySelector(".sheet--active"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-i.offsetTop);else{const u=new MutationObserver(()=>{const d=document.querySelector(".sheet--active");d&&(u.disconnect(),e(o.offsetHeight-d.offsetTop))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function kh(){return new Promise(e=>{const i=document.querySelector(".modal--open");if(i)e((i==null?void 0:i.offsetWidth)+(i==null?void 0:i.offsetLeft)*2);else{const o=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(o.disconnect(),e((u==null?void 0:u.offsetWidth)+(u==null?void 0:u.offsetLeft)*2))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const bN=On({key:"timeout",default:void 0});function MN(){const[e,i]=be.useState(!1),o=Oi(rv),u=Oi(bN);return be.useEffect(()=>{if(!o||!u)return;let d;const _=()=>{i(!1),window.clearTimeout(d),d=window.setTimeout(b,u*1e3)},b=()=>{i(!0)};return d=window.setTimeout(b,u*1e3),window.addEventListener("mousemove",_),window.addEventListener("mousedown",_),window.addEventListener("resize",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),window.addEventListener("wheel",_),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mousedown",_),window.removeEventListener("resize",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_),window.removeEventListener("wheel",_),window.clearTimeout(d)}},[u,o]),e}const sG=e=>{const[i,o]=be.useState(window.matchMedia(e).matches);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Ja=()=>sG("(min-width: 992px)"),IN=On({key:"mapboxViewMode",default:null}),X3=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),aG=R_({key:"currentPitch",get:({get:e})=>{const i=e(iv),o=e(IN);let u;switch(o){case X3.initial3D:u=i??45;break;case X3.clicked3D:u=45;break;case X3.clicked2D:u=0;break;default:u=i}return u}}),TN=On({key:"center",default:null});function kr(e){return e==null}var xs=63710088e-1,J3={centimeters:xs*100,centimetres:xs*100,degrees:xs/111325,feet:xs*3.28084,inches:xs*39.37,kilometers:xs/1e3,kilometres:xs/1e3,meters:xs,metres:xs,miles:xs/1609.344,millimeters:xs*1e3,millimetres:xs*1e3,nauticalmiles:xs/1852,radians:1,yards:xs*1.0936},lG={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/xs,yards:1.0936133},e4={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Na(e,i,o){o===void 0&&(o={});var u={type:"Feature"};return(o.id===0||o.id)&&(u.id=o.id),o.bbox&&(u.bbox=o.bbox),u.properties=i||{},u.geometry=e,u}function cG(e,i,o){switch(e){case"Point":return el(i).geometry;case"LineString":return tl(i).geometry;case"Polygon":return t4(i).geometry;case"MultiPoint":return DN(i).geometry;case"MultiLineString":return i4(i).geometry;case"MultiPolygon":return SN(i).geometry;default:throw new Error(e+" is invalid")}}function el(e,i,o){if(o===void 0&&(o={}),!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(!ov(e[0])||!ov(e[1]))throw new Error("coordinates must contain numbers");var u={type:"Point",coordinates:e};return Na(u,i,o)}function uG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return el(u,i)}),o)}function t4(e,i,o){o===void 0&&(o={});for(var u=0,d=e;u<d.length;u++){var _=d[u];if(_.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var b=0;b<_[_.length-1].length;b++)if(_[_.length-1][b]!==_[0][b])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return Na(a,i,o)}function hG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return t4(u,i)}),o)}function tl(e,i,o){if(o===void 0&&(o={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var u={type:"LineString",coordinates:e};return Na(u,i,o)}function dG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return tl(u,i)}),o)}function Mu(e,i){i===void 0&&(i={});var o={type:"FeatureCollection"};return i.id&&(o.id=i.id),i.bbox&&(o.bbox=i.bbox),o.features=e,o}function i4(e,i,o){o===void 0&&(o={});var u={type:"MultiLineString",coordinates:e};return Na(u,i,o)}function DN(e,i,o){o===void 0&&(o={});var u={type:"MultiPoint",coordinates:e};return Na(u,i,o)}function SN(e,i,o){o===void 0&&(o={});var u={type:"MultiPolygon",coordinates:e};return Na(u,i,o)}function fG(e,i,o){o===void 0&&(o={});var u={type:"GeometryCollection",geometries:e};return Na(u,i,o)}function pG(e,i){if(i===void 0&&(i=0),i&&!(i>=0))throw new Error("precision must be a positive number");var o=Math.pow(10,i||0);return Math.round(e*o)/o}function AN(e,i){i===void 0&&(i="kilometers");var o=J3[i];if(!o)throw new Error(i+" units is invalid");return e*o}function n4(e,i){i===void 0&&(i="kilometers");var o=J3[i];if(!o)throw new Error(i+" units is invalid");return e/o}function gG(e,i){return CN(n4(e,i))}function mG(e){var i=e%360;return i<0&&(i+=360),i}function CN(e){var i=e%(2*Math.PI);return i*180/Math.PI}function yG(e){var i=e%360;return i*Math.PI/180}function _G(e,i,o){if(i===void 0&&(i="kilometers"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("length must be a positive number");return AN(n4(e,i),o)}function vG(e,i,o){if(i===void 0&&(i="meters"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("area must be a positive number");var u=e4[i];if(!u)throw new Error("invalid original units");var d=e4[o];if(!d)throw new Error("invalid final units");return e/u*d}function ov(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function r4(e){return!!e&&e.constructor===Object}function xG(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(i){if(!ov(i))throw new Error("bbox must only contain numbers")})}function wG(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}const bG=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:e4,bearingToAzimuth:mG,convertArea:vG,convertLength:_G,degreesToRadians:yG,earthRadius:xs,factors:J3,feature:Na,featureCollection:Mu,geometry:cG,geometryCollection:fG,isNumber:ov,isObject:r4,lengthToDegrees:gG,lengthToRadians:n4,lineString:tl,lineStrings:dG,multiLineString:i4,multiPoint:DN,multiPolygon:SN,point:el,points:uG,polygon:t4,polygons:hG,radiansToDegrees:CN,radiansToLength:AN,round:pG,unitsFactors:lG,validateBBox:xG,validateId:wG},Symbol.toStringTag,{value:"Module"}));function Af(e,i,o){if(e!==null)for(var u,d,_,b,a,E,j,Q=0,ie=0,G,ue=e.type,pe=ue==="FeatureCollection",we=ue==="Feature",qe=pe?e.features.length:1,me=0;me<qe;me++){j=pe?e.features[me].geometry:we?e.geometry:e,G=j?j.type==="GeometryCollection":!1,a=G?j.geometries.length:1;for(var te=0;te<a;te++){var J=0,re=0;if(b=G?j.geometries[te]:j,b!==null){E=b.coordinates;var Me=b.type;switch(Q=o&&(Me==="Polygon"||Me==="MultiPolygon")?1:0,Me){case null:break;case"Point":if(i(E,ie,me,J,re)===!1)return!1;ie++,J++;break;case"LineString":case"MultiPoint":for(u=0;u<E.length;u++){if(i(E[u],ie,me,J,re)===!1)return!1;ie++,Me==="MultiPoint"&&J++}Me==="LineString"&&J++;break;case"Polygon":case"MultiLineString":for(u=0;u<E.length;u++){for(d=0;d<E[u].length-Q;d++){if(i(E[u][d],ie,me,J,re)===!1)return!1;ie++}Me==="MultiLineString"&&J++,Me==="Polygon"&&re++}Me==="Polygon"&&J++;break;case"MultiPolygon":for(u=0;u<E.length;u++){for(re=0,d=0;d<E[u].length;d++){for(_=0;_<E[u][d].length-Q;_++){if(i(E[u][d][_],ie,me,J,re)===!1)return!1;ie++}re++}J++}break;case"GeometryCollection":for(u=0;u<b.geometries.length;u++)if(Af(b.geometries[u],i,o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function MG(e,i,o,u){var d=o;return Af(e,function(_,b,a,E,j){b===0&&o===void 0?d=_:d=i(d,_,b,a,E,j)},u),d}function EN(e,i){var o;switch(e.type){case"FeatureCollection":for(o=0;o<e.features.length&&i(e.features[o].properties,o)!==!1;o++);break;case"Feature":i(e.properties,0);break}}function IG(e,i,o){var u=o;return EN(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function sv(e,i){if(e.type==="Feature")i(e,0);else if(e.type==="FeatureCollection")for(var o=0;o<e.features.length&&i(e.features[o],o)!==!1;o++);}function TG(e,i,o){var u=o;return sv(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function DG(e){var i=[];return Af(e,function(o){i.push(o)}),i}function o4(e,i){var o,u,d,_,b,a,E,j,Q,ie,G=0,ue=e.type==="FeatureCollection",pe=e.type==="Feature",we=ue?e.features.length:1;for(o=0;o<we;o++){for(a=ue?e.features[o].geometry:pe?e.geometry:e,j=ue?e.features[o].properties:pe?e.properties:{},Q=ue?e.features[o].bbox:pe?e.bbox:void 0,ie=ue?e.features[o].id:pe?e.id:void 0,E=a?a.type==="GeometryCollection":!1,b=E?a.geometries.length:1,d=0;d<b;d++){if(_=E?a.geometries[d]:a,_===null){if(i(null,G,j,Q,ie)===!1)return!1;continue}switch(_.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(_,G,j,Q,ie)===!1)return!1;break}case"GeometryCollection":{for(u=0;u<_.geometries.length;u++)if(i(_.geometries[u],G,j,Q,ie)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}G++}}function SG(e,i,o){var u=o;return o4(e,function(d,_,b,a,E){_===0&&o===void 0?u=d:u=i(u,d,_,b,a,E)}),u}function yc(e,i){o4(e,function(o,u,d,_,b){var a=o===null?null:o.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return i(Na(o,d,{bbox:_,id:b}),u,0)===!1?!1:void 0}var E;switch(a){case"MultiPoint":E="Point";break;case"MultiLineString":E="LineString";break;case"MultiPolygon":E="Polygon";break}for(var j=0;j<o.coordinates.length;j++){var Q=o.coordinates[j],ie={type:E,coordinates:Q};if(i(Na(ie,d),u,j)===!1)return!1}})}function AG(e,i,o){var u=o;return yc(e,function(d,_,b){_===0&&b===0&&o===void 0?u=d:u=i(u,d,_,b)}),u}function NN(e,i){yc(e,function(o,u,d){var _=0;if(o.geometry){var b=o.geometry.type;if(!(b==="Point"||b==="MultiPoint")){var a,E=0,j=0,Q=0;if(Af(o,function(ie,G,ue,pe,we){if(a===void 0||u>E||pe>j||we>Q){a=ie,E=u,j=pe,Q=we,_=0;return}var qe=tl([a,ie],o.properties);if(i(qe,u,d,we,_)===!1)return!1;_++,a=ie})===!1)return!1}}})}function CG(e,i,o){var u=o,d=!1;return NN(e,function(_,b,a,E,j){d===!1&&o===void 0?u=_:u=i(u,_,b,a,E,j),d=!0}),u}function LN(e,i){if(!e)throw new Error("geojson is required");yc(e,function(o,u,d){if(o.geometry!==null){var _=o.geometry.type,b=o.geometry.coordinates;switch(_){case"LineString":if(i(o,u,d,0,0)===!1)return!1;break;case"Polygon":for(var a=0;a<b.length;a++)if(i(tl(b[a],o.properties),u,d,a)===!1)return!1;break}}})}function EG(e,i,o){var u=o;return LN(e,function(d,_,b,a){_===0&&o===void 0?u=d:u=i(u,d,_,b,a)}),u}function NG(e,i){if(i=i||{},!r4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.segmentIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":case"MultiPoint":return null;case"LineString":return _<0&&(_=E.length+_-1),tl([E[_],E[_+1]],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_-1),tl([E[d][_],E[d][_+1]],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_-1),tl([E[u][_],E[u][_+1]],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_-1),tl([E[u][d][_],E[u][d][_+1]],b,i)}throw new Error("geojson is invalid")}function LG(e,i){if(i=i||{},!r4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.coordIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":return el(E,b,i);case"MultiPoint":return u<0&&(u=E.length+u),el(E[u],b,i);case"LineString":return _<0&&(_=E.length+_),el(E[_],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_),el(E[d][_],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_),el(E[u][_],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_),el(E[u][d][_],b,i)}throw new Error("geojson is invalid")}const zG=Object.freeze(Object.defineProperty({__proto__:null,coordAll:DG,coordEach:Af,coordReduce:MG,featureEach:sv,featureReduce:TG,findPoint:LG,findSegment:NG,flattenEach:yc,flattenReduce:AG,geomEach:o4,geomReduce:SG,lineEach:LN,lineReduce:EG,propEach:EN,propReduce:IG,segmentEach:NN,segmentReduce:CG},Symbol.toStringTag,{value:"Module"}));function av(e){var i=[1/0,1/0,-1/0,-1/0];return Af(e,function(o){i[0]>o[0]&&(i[0]=o[0]),i[1]>o[1]&&(i[1]=o[1]),i[2]<o[0]&&(i[2]=o[0]),i[3]<o[1]&&(i[3]=o[1])}),i}av.default=av;const OG=Object.freeze(Object.defineProperty({__proto__:null,default:av},Symbol.toStringTag,{value:"Module"}));function kG(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 jm(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function lv(e){return e.type==="Feature"?e.geometry:e}function Pm(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("point is required");if(!i)throw new Error("polygon is required");var u=kG(e),d=lv(i),_=d.type,b=i.bbox,a=d.coordinates;if(b&&jG(u,b)===!1)return!1;_==="Polygon"&&(a=[a]);for(var E=!1,j=0;j<a.length&&!E;j++)if(zN(u,a[j][0],o.ignoreBoundary)){for(var Q=!1,ie=1;ie<a[j].length&&!Q;)zN(u,a[j][ie],!o.ignoreBoundary)&&(Q=!0),ie++;Q||(E=!0)}return E}function zN(e,i,o){var u=!1;i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]&&(i=i.slice(0,i.length-1));for(var d=0,_=i.length-1;d<i.length;_=d++){var b=i[d][0],a=i[d][1],E=i[_][0],j=i[_][1],Q=e[1]*(b-E)+a*(E-e[0])+j*(e[0]-b)===0&&(b-e[0])*(E-e[0])<=0&&(a-e[1])*(j-e[1])<=0;if(Q)return!o;var ie=a>e[1]!=j>e[1]&&e[0]<(E-b)*(e[1]-a)/(j-a)+b;ie&&(u=!u)}return u}function jG(e,i){return i[0]<=e[0]&&i[1]<=e[1]&&i[2]>=e[0]&&i[3]>=e[1]}function PG(e,i){i===void 0&&(i={});var o=av(e),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return el([u,d],i.properties,i)}function ON(e){if(!e)throw new Error("geojson is required");var i=[];return yc(e,function(o){RG(o,i)}),Mu(i)}function RG(e,i){var o=[],u=e.geometry;if(u!==null){switch(u.type){case"Polygon":o=jm(u);break;case"LineString":o=[jm(u)]}o.forEach(function(d){var _=BG(d,e.properties);_.forEach(function(b){b.id=i.length,i.push(b)})})}}function BG(e,i){var o=[];return e.reduce(function(u,d){var _=tl([u,d],i);return _.bbox=FG(u,d),o.push(_),d}),o}function FG(e,i){var o=e[0],u=e[1],d=i[0],_=i[1],b=o<d?o:d,a=u<_?u:_,E=o>d?o:d,j=u>_?u:_;return[b,a,E,j]}var s4={exports:{}},kN={exports:{}};(function(e,i){(function(o,u){e.exports=u()})(kd,function(){function o(te,J,re,Me,xe){(function Ke(st,Ge,xt,dt,kt){for(;dt>xt;){if(dt-xt>600){var bt=dt-xt+1,oi=Ge-xt+1,At=Math.log(bt),Tt=.5*Math.exp(2*At/3),si=.5*Math.sqrt(At*Tt*(bt-Tt)/bt)*(oi-bt/2<0?-1:1),Ot=Math.max(xt,Math.floor(Ge-oi*Tt/bt+si)),Ht=Math.min(dt,Math.floor(Ge+(bt-oi)*Tt/bt+si));Ke(st,Ge,Ot,Ht,kt)}var W=st[Ge],ne=xt,T=dt;for(u(st,xt,Ge),kt(st[dt],W)>0&&u(st,xt,dt);ne<T;){for(u(st,ne,T),ne++,T--;kt(st[ne],W)<0;)ne++;for(;kt(st[T],W)>0;)T--}kt(st[xt],W)===0?u(st,xt,T):u(st,++T,dt),T<=Ge&&(xt=T+1),Ge<=T&&(dt=T-1)}})(te,J,re||0,Me||te.length-1,xe||d)}function u(te,J,re){var Me=te[J];te[J]=te[re],te[re]=Me}function d(te,J){return te<J?-1:te>J?1:0}var _=function(te){te===void 0&&(te=9),this._maxEntries=Math.max(4,te),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(te,J,re){if(!re)return J.indexOf(te);for(var Me=0;Me<J.length;Me++)if(re(te,J[Me]))return Me;return-1}function a(te,J){E(te,0,te.children.length,J,te)}function E(te,J,re,Me,xe){xe||(xe=qe(null)),xe.minX=1/0,xe.minY=1/0,xe.maxX=-1/0,xe.maxY=-1/0;for(var Ke=J;Ke<re;Ke++){var st=te.children[Ke];j(xe,te.leaf?Me(st):st)}return xe}function j(te,J){return te.minX=Math.min(te.minX,J.minX),te.minY=Math.min(te.minY,J.minY),te.maxX=Math.max(te.maxX,J.maxX),te.maxY=Math.max(te.maxY,J.maxY),te}function Q(te,J){return te.minX-J.minX}function ie(te,J){return te.minY-J.minY}function G(te){return(te.maxX-te.minX)*(te.maxY-te.minY)}function ue(te){return te.maxX-te.minX+(te.maxY-te.minY)}function pe(te,J){return te.minX<=J.minX&&te.minY<=J.minY&&J.maxX<=te.maxX&&J.maxY<=te.maxY}function we(te,J){return J.minX<=te.maxX&&J.minY<=te.maxY&&J.maxX>=te.minX&&J.maxY>=te.minY}function qe(te){return{children:te,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function me(te,J,re,Me,xe){for(var Ke=[J,re];Ke.length;)if(!((re=Ke.pop())-(J=Ke.pop())<=Me)){var st=J+Math.ceil((re-J)/Me/2)*Me;o(te,st,J,re,xe),Ke.push(J,st,st,re)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(te){var J=this.data,re=[];if(!we(te,J))return re;for(var Me=this.toBBox,xe=[];J;){for(var Ke=0;Ke<J.children.length;Ke++){var st=J.children[Ke],Ge=J.leaf?Me(st):st;we(te,Ge)&&(J.leaf?re.push(st):pe(te,Ge)?this._all(st,re):xe.push(st))}J=xe.pop()}return re},_.prototype.collides=function(te){var J=this.data;if(!we(te,J))return!1;for(var re=[];J;){for(var Me=0;Me<J.children.length;Me++){var xe=J.children[Me],Ke=J.leaf?this.toBBox(xe):xe;if(we(te,Ke)){if(J.leaf||pe(te,Ke))return!0;re.push(xe)}}J=re.pop()}return!1},_.prototype.load=function(te){if(!te||!te.length)return this;if(te.length<this._minEntries){for(var J=0;J<te.length;J++)this.insert(te[J]);return this}var re=this._build(te.slice(),0,te.length-1,0);if(this.data.children.length)if(this.data.height===re.height)this._splitRoot(this.data,re);else{if(this.data.height<re.height){var Me=this.data;this.data=re,re=Me}this._insert(re,this.data.height-re.height-1,!0)}else this.data=re;return this},_.prototype.insert=function(te){return te&&this._insert(te,this.data.height-1),this},_.prototype.clear=function(){return this.data=qe([]),this},_.prototype.remove=function(te,J){if(!te)return this;for(var re,Me,xe,Ke=this.data,st=this.toBBox(te),Ge=[],xt=[];Ke||Ge.length;){if(Ke||(Ke=Ge.pop(),Me=Ge[Ge.length-1],re=xt.pop(),xe=!0),Ke.leaf){var dt=b(te,Ke.children,J);if(dt!==-1)return Ke.children.splice(dt,1),Ge.push(Ke),this._condense(Ge),this}xe||Ke.leaf||!pe(Ke,st)?Me?(re++,Ke=Me.children[re],xe=!1):Ke=null:(Ge.push(Ke),xt.push(re),re=0,Me=Ke,Ke=Ke.children[0])}return this},_.prototype.toBBox=function(te){return te},_.prototype.compareMinX=function(te,J){return te.minX-J.minX},_.prototype.compareMinY=function(te,J){return te.minY-J.minY},_.prototype.toJSON=function(){return this.data},_.prototype.fromJSON=function(te){return this.data=te,this},_.prototype._all=function(te,J){for(var re=[];te;)te.leaf?J.push.apply(J,te.children):re.push.apply(re,te.children),te=re.pop();return J},_.prototype._build=function(te,J,re,Me){var xe,Ke=re-J+1,st=this._maxEntries;if(Ke<=st)return a(xe=qe(te.slice(J,re+1)),this.toBBox),xe;Me||(Me=Math.ceil(Math.log(Ke)/Math.log(st)),st=Math.ceil(Ke/Math.pow(st,Me-1))),(xe=qe([])).leaf=!1,xe.height=Me;var Ge=Math.ceil(Ke/st),xt=Ge*Math.ceil(Math.sqrt(st));me(te,J,re,xt,this.compareMinX);for(var dt=J;dt<=re;dt+=xt){var kt=Math.min(dt+xt-1,re);me(te,dt,kt,Ge,this.compareMinY);for(var bt=dt;bt<=kt;bt+=Ge){var oi=Math.min(bt+Ge-1,kt);xe.children.push(this._build(te,bt,oi,Me-1))}}return a(xe,this.toBBox),xe},_.prototype._chooseSubtree=function(te,J,re,Me){for(;Me.push(J),!J.leaf&&Me.length-1!==re;){for(var xe=1/0,Ke=1/0,st=void 0,Ge=0;Ge<J.children.length;Ge++){var xt=J.children[Ge],dt=G(xt),kt=(bt=te,oi=xt,(Math.max(oi.maxX,bt.maxX)-Math.min(oi.minX,bt.minX))*(Math.max(oi.maxY,bt.maxY)-Math.min(oi.minY,bt.minY))-dt);kt<Ke?(Ke=kt,xe=dt<xe?dt:xe,st=xt):kt===Ke&&dt<xe&&(xe=dt,st=xt)}J=st||J.children[0]}var bt,oi;return J},_.prototype._insert=function(te,J,re){var Me=re?te:this.toBBox(te),xe=[],Ke=this._chooseSubtree(Me,this.data,J,xe);for(Ke.children.push(te),j(Ke,Me);J>=0&&xe[J].children.length>this._maxEntries;)this._split(xe,J),J--;this._adjustParentBBoxes(Me,xe,J)},_.prototype._split=function(te,J){var re=te[J],Me=re.children.length,xe=this._minEntries;this._chooseSplitAxis(re,xe,Me);var Ke=this._chooseSplitIndex(re,xe,Me),st=qe(re.children.splice(Ke,re.children.length-Ke));st.height=re.height,st.leaf=re.leaf,a(re,this.toBBox),a(st,this.toBBox),J?te[J-1].children.push(st):this._splitRoot(re,st)},_.prototype._splitRoot=function(te,J){this.data=qe([te,J]),this.data.height=te.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(te,J,re){for(var Me,xe,Ke,st,Ge,xt,dt,kt=1/0,bt=1/0,oi=J;oi<=re-J;oi++){var At=E(te,0,oi,this.toBBox),Tt=E(te,oi,re,this.toBBox),si=(xe=At,Ke=Tt,st=void 0,Ge=void 0,xt=void 0,dt=void 0,st=Math.max(xe.minX,Ke.minX),Ge=Math.max(xe.minY,Ke.minY),xt=Math.min(xe.maxX,Ke.maxX),dt=Math.min(xe.maxY,Ke.maxY),Math.max(0,xt-st)*Math.max(0,dt-Ge)),Ot=G(At)+G(Tt);si<kt?(kt=si,Me=oi,bt=Ot<bt?Ot:bt):si===kt&&Ot<bt&&(bt=Ot,Me=oi)}return Me||re-J},_.prototype._chooseSplitAxis=function(te,J,re){var Me=te.leaf?this.compareMinX:Q,xe=te.leaf?this.compareMinY:ie;this._allDistMargin(te,J,re,Me)<this._allDistMargin(te,J,re,xe)&&te.children.sort(Me)},_.prototype._allDistMargin=function(te,J,re,Me){te.children.sort(Me);for(var xe=this.toBBox,Ke=E(te,0,J,xe),st=E(te,re-J,re,xe),Ge=ue(Ke)+ue(st),xt=J;xt<re-J;xt++){var dt=te.children[xt];j(Ke,te.leaf?xe(dt):dt),Ge+=ue(Ke)}for(var kt=re-J-1;kt>=J;kt--){var bt=te.children[kt];j(st,te.leaf?xe(bt):bt),Ge+=ue(st)}return Ge},_.prototype._adjustParentBBoxes=function(te,J,re){for(var Me=re;Me>=0;Me--)j(J[Me],te)},_.prototype._condense=function(te){for(var J=te.length-1,re=void 0;J>=0;J--)te[J].children.length===0?J>0?(re=te[J-1].children).splice(re.indexOf(te[J]),1):this.clear():a(te[J],this.toBBox)},_})})(kN);var UG=kN.exports;const VG=Uw(bG),QG=Uw(zG),HG=Uw(OG);var Tl=UG,jN=VG,PN=QG,Cf=HG.default,$G=PN.featureEach;PN.coordEach,jN.polygon;var RN=jN.featureCollection;function BN(e){var i=new Tl(e);return i.insert=function(o){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.insert.call(this,o)},i.load=function(o){var u=[];return Array.isArray(o)?o.forEach(function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}):$G(o,function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}),Tl.prototype.load.call(this,u)},i.remove=function(o,u){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.remove.call(this,o,u)},i.clear=function(){return Tl.prototype.clear.call(this)},i.search=function(o){var u=Tl.prototype.search.call(this,this.toBBox(o));return RN(u)},i.collides=function(o){return Tl.prototype.collides.call(this,this.toBBox(o))},i.all=function(){var o=Tl.prototype.all.call(this);return RN(o)},i.toJSON=function(){return Tl.prototype.toJSON.call(this)},i.fromJSON=function(o){return Tl.prototype.fromJSON.call(this,o)},i.toBBox=function(o){var u;if(o.bbox)u=o.bbox;else if(Array.isArray(o)&&o.length===4)u=o;else if(Array.isArray(o)&&o.length===6)u=[o[0],o[1],o[3],o[4]];else if(o.type==="Feature")u=Cf(o);else if(o.type==="FeatureCollection")u=Cf(o);else throw new Error("invalid geojson");return{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3]}},i}s4.exports=BN,s4.exports.default=BN;var YG=s4.exports;const GG=nc(YG);function a4(e,i){var o={},u=[];if(e.type==="LineString"&&(e=Na(e)),i.type==="LineString"&&(i=Na(i)),e.type==="Feature"&&i.type==="Feature"&&e.geometry!==null&&i.geometry!==null&&e.geometry.type==="LineString"&&i.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&i.geometry.coordinates.length===2){var d=FN(e,i);return d&&u.push(d),Mu(u)}var _=GG();return _.load(ON(i)),sv(ON(e),function(b){sv(_.search(b),function(a){var E=FN(b,a);if(E){var j=jm(E).join(",");o[j]||(o[j]=!0,u.push(E))}})}),Mu(u)}function FN(e,i){var o=jm(e),u=jm(i);if(o.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(u.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var d=o[0][0],_=o[0][1],b=o[1][0],a=o[1][1],E=u[0][0],j=u[0][1],Q=u[1][0],ie=u[1][1],G=(ie-j)*(b-d)-(Q-E)*(a-_),ue=(Q-E)*(_-j)-(ie-j)*(d-E),pe=(b-d)*(_-j)-(a-_)*(d-E);if(G===0)return null;var we=ue/G,qe=pe/G;if(we>=0&&we<=1&&qe>=0&&qe<=1){var me=d+we*(b-d),te=_+we*(a-_);return el([me,te])}return null}function l4(e,i){i===void 0&&(i={});var o=lv(e);switch(!i.properties&&e.type==="Feature"&&(i.properties=e.properties),o.type){case"Polygon":return ZG(o,i);case"MultiPolygon":return WG(o,i);default:throw new Error("invalid poly")}}function ZG(e,i){i===void 0&&(i={});var o=lv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{};return UN(u,d)}function WG(e,i){i===void 0&&(i={});var o=lv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{},_=[];return u.forEach(function(b){_.push(UN(b,d))}),Mu(_)}function UN(e,i){return e.length>1?i4(e,i):tl(e[0],i)}function qG(e,i){var o=!0;return yc(e,function(u){yc(i,function(d){if(o===!1)return!1;o=KG(u.geometry,d.geometry)})}),o}function KG(e,i){switch(e.type){case"Point":switch(i.type){case"Point":return!tZ(e.coordinates,i.coordinates);case"LineString":return!VN(i,e);case"Polygon":return!Pm(e,i)}break;case"LineString":switch(i.type){case"Point":return!VN(e,i);case"LineString":return!XG(e,i);case"Polygon":return!QN(i,e)}break;case"Polygon":switch(i.type){case"Point":return!Pm(i,e);case"LineString":return!QN(e,i);case"Polygon":return!JG(i,e)}}return!1}function VN(e,i){for(var o=0;o<e.coordinates.length-1;o++)if(eZ(e.coordinates[o],e.coordinates[o+1],i.coordinates))return!0;return!1}function XG(e,i){var o=a4(e,i);return o.features.length>0}function QN(e,i){for(var o=0,u=i.coordinates;o<u.length;o++){var d=u[o];if(Pm(d,e))return!0}var _=a4(i,l4(e));return _.features.length>0}function JG(e,i){for(var o=0,u=e.coordinates[0];o<u.length;o++){var d=u[o];if(Pm(d,i))return!0}for(var _=0,b=i.coordinates[0];_<b.length;_++){var a=b[_];if(Pm(a,e))return!0}var E=a4(l4(e),l4(i));return E.features.length>0}function eZ(e,i,o){var u=o[0]-e[0],d=o[1]-e[1],_=i[0]-e[0],b=i[1]-e[1],a=u*b-d*_;return a!==0?!1:Math.abs(_)>=Math.abs(b)?_>0?e[0]<=o[0]&&o[0]<=i[0]:i[0]<=o[0]&&o[0]<=e[0]:b>0?e[1]<=o[1]&&o[1]<=i[1]:i[1]<=o[1]&&o[1]<=e[1]}function tZ(e,i){return e[0]===i[0]&&e[1]===i[1]}function iZ(e,i){var o=!1;return yc(e,function(u){yc(i,function(d){if(o===!0)return!0;o=!qG(u.geometry,d.geometry)})}),o}const nZ=()=>{const[e,i]=be.useState(!1),[o,u]=be.useState(!1),d=Ja(),_=MN(),b=Oi(W3),a=Oi(Om),E=Oi(q3),j=Oi(nv),Q=Oi(ca),ie=Oi(iv),G=Oi(wN),ue=Oi(km),pe=Oi(aG),we=Oi(K3),[qe,me]=be.useState(!1),[te,J]=on(bu),re=on(rv),[Me]=on(TN),[xe,Ke]=be.useState({id:null,originalRule:null});be.useEffect(()=>{_&&st()},[_]),be.useEffect(()=>{st()},[Q,te,j,E,ie,b,G,a,Me]);function st(){const kt=ue.find(bt=>bt.name.toLowerCase()===te.toLowerCase());if(!E&&xe.id&&Q&&qe&&(window.mapsindoors.services.LocationsService.getLocation(xe.id).then(bt=>{bt&&(Q.setDisplayRule(bt.id,xe.originalRule||null),me(!1))}),Ke({id:null,originalRule:null})),Q&&kt){if(i(!0),E&&d)Ke(bt=>({...bt,id:E})),kr(Me)?window.mapsindoors.services.LocationsService.getLocation(E).then(bt=>{if(bt){const oi=bt.properties.floor;Q.setFloor(oi);const At=Q.getDisplayRule(bt);Ke(Tt=>({...Tt,originalRule:{...At}})),Ge(bt),zm().then(Tt=>{u(bt.geometry),ua(bt.geometry,Q,Tt,0,G?dt(G):void 0,pe,b)})}}):zm().then(bt=>{u(xt().geometry),ua(xt().geometry,Q,bt,0,dt(G),pe,b)});else if(j&&!we)kr(Me)?window.mapsindoors.services.LocationsService.getLocation(j).then(bt=>{if(bt){const oi=bt.properties.floor;Q.setFloor(oi),d?kh().then(At=>{u(bt.geometry),ua(bt.geometry,Q,0,At,G?dt(G):void 0,pe,b)}):Sf().then(At=>{u(bt.geometry),ua(bt.geometry,Q,At,0,G?dt(G):void 0,pe,b)})}}):d?kh().then(bt=>{u(xt().geometry),ua(xt().geometry,Q,0,bt,dt(G),pe,b)}):Sf().then(bt=>{u(xt().geometry),ua(xt().geometry,Q,bt,0,dt(G),pe,b)});else if(kt)if(we)d?(u(kt.geometry),ua(kt.geometry,Q,0,0,dt(G),pe,b)):Sf().then(bt=>{u(kt.geometry),ua(kt.geometry,Q,bt,0,dt(G),pe,b)});else{const bt=ue.find(oi=>iZ(oi.geometry,xt().geometry));kr(Me)?(u(kt.geometry),ua(kt.geometry,Q,0,0,dt(G),pe,b)):kr(bt)?d?kh().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,0,oi,dt(G),pe,b)}):Sf().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,oi,0,dt(G),pe,b)}):(d?kh().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,0,oi,dt(G),pe,b)}):Sf().then(oi=>{u(xt().geometry),ua(xt().geometry,Q,oi,0,dt(G),pe,b)}),re&&J(bt.name))}}}function Ge(kt){if(qe)return;const bt=Q.getDisplayRule(kt);bt.visible=!0,bt.iconSize={width:bt.iconSize.width*2,height:bt.iconSize.height*2},bt.iconVisible=!0,bt.zoomFrom=0,bt.zoomTo=999,bt.clickable=!1,Q.setDisplayRule(kt.id,bt),me(!0)}function xt(){const[kt,bt]=Me?Me.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[kt,bt]}}}function dt(kt){return kr(kt)?18:kt}return[e,o]};function ua(e,i,o,u,d,_,b){const a=Number(_),E=Number(b),j=d!==void 0?Number(d):void 0;if(j===void 0)i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:j??22,padding:{top:0,right:0,bottom:o,left:u}});else{const Q=PG(e);i.getMapView().setCenter({lat:Q.geometry.coordinates[1],lng:Q.geometry.coordinates[0]}),i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.setZoom(j)}}const HN=On({key:"hideNonMatches",default:!1}),rZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V5H5V9H3V3ZM15 3H21V9H19V5H15V3ZM5 15V19H9V21H3V15H5ZM21 15V21H15V19H19V15H21Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}}),be.createElement("rect",{x:9,y:9,width:6,height:6,fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Rm=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),jae="";$N.propTypes={isViewSelectorDisabled:ht.bool,isViewSelectorVisible:ht.bool};function $N({isViewSelectorDisabled:e,isViewSelectorVisible:i}){const{t:o}=cs(),[u,d]=be.useState(!1),[_,b]=be.useState([]),[a,E]=be.useState(null),j=Ja(),Q=Oi(ca),ie=Oi(bu),G=".view-selector-portal",[ue,pe]=be.useState(null),we=be.useRef(null),qe=be.useRef(null),me=6,te=60;be.useEffect(()=>{let st=document.querySelector(G);if(st){pe(st);return}const Ge=new MutationObserver(()=>{st=document.querySelector(G),st&&(pe(st),Ge.disconnect())}),xt=document.body,dt={childList:!0,subtree:!0};return Ge.observe(xt,dt),()=>{Ge==null||Ge.disconnect()}},[]),be.useEffect(()=>{const st=()=>{const xt=document.querySelector(G);xt&&pe(xt)},Ge=new ResizeObserver(()=>{st()});return Ge.observe(document.body),()=>{Ge==null||Ge.disconnect()}},[j]),be.useEffect(()=>{var st;if(Q&&ie){const Ge=(st=Q.getVenue())==null?void 0:st.id;Ge&&E(Ge)}},[Q,ie]),be.useEffect(()=>{Q&&ie&&window.mapsindoors.services.VenuesService.getVenues().then(st=>{const Ge=st.find(xt=>xt.name.toLowerCase()===ie.toLowerCase());Ge!=null&&Ge.id&&E(Ge.id)})},[Q,ie]),be.useEffect(()=>{a&&window.mapsindoors.services.VenuesService.getBuildings(a).then(st=>{b(st)})},[a]);const J=be.useMemo(()=>_.map(st=>({id:st.id,name:st.buildingInfo.name})),[_]),re=be.useCallback(st=>{Q.fitBuilding(st),d(!1)},[Q]);if(be.useEffect(()=>{if(!(u&&j))return;function st(Ge){we.current&&!we.current.contains(Ge.target)&&qe.current&&!qe.current.contains(Ge.target)&&d(!1)}return document.addEventListener("mousedown",st),()=>{document.removeEventListener("mousedown",st)}},[u,j]),J.length<=1||i===!1)return null;const Me=()=>Pe.jsx("button",{ref:qe,className:"view-selector__toggle-button",onClick:()=>d(!u),disabled:e,children:Pe.jsx(rZ,{})}),xe=()=>{const st=be.useMemo(()=>j&&J.length>me?{height:`${me*te}px`}:{},[j,J.length]);return Pe.jsx("div",{className:"building-list",style:st,children:J.map(Ge=>Pe.jsx("button",{className:"building-list__item",onClick:()=>re(Ge.id),children:Pe.jsx("span",{children:Ge.name})},Ge.id))})},Ke=Pe.jsxs("div",{className:"view-selector",children:[!j&&u&&Pe.jsxs("div",{className:"mobile-overlay",children:[Pe.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>d(!1)}),Pe.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Pe.jsxs("div",{className:"mobile-overlay__header",children:[Pe.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>d(!1),"aria-label":o("Close view selector"),children:Pe.jsx(Rm,{})}),Pe.jsx("span",{children:o("Go to view")})]}),Pe.jsx(xe,{})]})]}),j?Pe.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[u&&Pe.jsx("div",{ref:we,className:"view-selector__container view-selector__container--desktop",children:Pe.jsx(xe,{})}),Pe.jsx(Me,{})]}):Pe.jsx(Me,{})]});return ue?yu.createPortal(Ke,ue):null}const oZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00177 3V5H13.0018V7H11.3742C11.0618 8.91166 10.4455 10.5244 9.43896 11.8188C10.1899 12.3437 11.1128 12.7471 12.2443 13.0299L13.2145 13.2725L12.7294 15.2128L11.7593 14.9702C10.2984 14.605 9.04252 14.0424 8.00171 13.245C6.96091 14.0424 5.70503 14.6049 4.24428 14.9701L3.27413 15.2127L2.78906 13.2724L3.75921 13.0299C4.89067 12.747 5.81358 12.3436 6.56448 11.8188C5.55798 10.5244 4.94173 8.91163 4.62931 7H3.00177V5H7.00177V3H9.00177ZM6.65973 7C6.92571 8.41424 7.37545 9.52718 8.00174 10.4013C8.62805 9.52718 9.0778 8.41425 9.34379 7H6.65973ZM16.1161 10H17.8874L22.3317 19.481L20.5207 20.3299L19.4286 18H14.5749L13.4828 20.3299L11.6719 19.481L16.1161 10ZM15.5124 16H18.4911L17.0018 12.8227L15.5124 16Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),Pae="";function YN({toggleButtonRef:e,isExpanded:i,setIsExpanded:o}){return Pe.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>o(u=>!u),"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Select language",children:Pe.jsx(oZ,{})})}function GN({supportedLanguages:e,currentLanguage:i,setLanguage:o,setIsExpanded:u}){return Pe.jsx("div",{className:"language-selector__list",children:e.map(d=>Pe.jsx("button",{className:`language-selector__item${i===d.code?" language-selector__item--selected":""}`,onClick:()=>{o(d.code),u(!1)},children:d.label},d.code))})}function ZN({currentLanguage:e,setLanguage:i,isVisible:o}){const{t:u}=cs(),[d,_]=be.useState(!1),b=be.useRef(null),a=be.useRef(null),[E,j]=be.useState(null),Q=Ja(),ie=".language-selector-portal";return be.useEffect(()=>{let G=document.querySelector(ie);if(G){j(G);return}const ue=new MutationObserver(()=>{G=document.querySelector(ie),G&&(j(G),ue.disconnect())});return ue.observe(document.body,{childList:!0,subtree:!0}),()=>ue.disconnect()},[]),be.useEffect(()=>{if(!(d&&Q))return;function G(ue){b.current&&!b.current.contains(ue.target)&&a.current&&!a.current.contains(ue.target)&&_(!1)}return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[d,Q]),!o||!E?null:yu.createPortal(Q?Pe.jsxs("div",{className:"language-selector__button-container",children:[d&&Pe.jsx("div",{ref:b,className:"language-selector__container",children:Pe.jsx(GN,{supportedLanguages:dN,currentLanguage:e,setLanguage:i,setIsExpanded:_})}),Pe.jsx(YN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(YN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_}),d&&Pe.jsxs("div",{className:"language-selector-overlay",children:[Pe.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>_(!1)}),Pe.jsxs("div",{className:"language-selector__container",children:[Pe.jsxs("div",{className:"language-selector-overlay__header",children:[Pe.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>_(!1),"aria-label":"Close language selector",children:"×"}),Pe.jsx("span",{children:u("Select language")})]}),Pe.jsx(GN,{supportedLanguages:dN,currentLanguage:e,setLanguage:i,setIsExpanded:_})]})]})]}),E)}ZN.propTypes={currentLanguage:ht.string,setLanguage:ht.func.isRequired,isVisible:ht.bool};const cv=On({key:"appConfig",default:void 0}),sZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M14.4978 10C14.4978 11.3807 13.3785 12.5 11.9978 12.5C10.6171 12.5 9.4978 11.3807 9.4978 10C9.4978 8.61929 10.6171 7.5 11.9978 7.5C13.3785 7.5 14.4978 8.61929 14.4978 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"}),be.createElement("path",{d:"M19 10C19 14.8354 14.2437 19.1734 12.5723 20.5484C12.2352 20.8258 11.7648 20.8258 11.4277 20.5484C9.75634 19.1734 5 14.8354 5 10C5 6.13401 8.13401 3 12 3C15.866 3 19 6.13401 19 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"})),Rae="",Dl=On({key:"kioskLocation",default:null}),jh=()=>{const e=Oi(Dl),i=Ja();return!(!e||e&&!i)};function WN(){const[e,i]=be.useState(null),o=".reset-view-portal",u=jh(),d=Oi(q3),_=Oi(ca),b=Oi(bu),a=Oi(Dl),E=Ja();function j(){window.mapsindoors.services.LocationsService.getLocation(d).then(ue=>{Q([ue])}).catch(ue=>{console.error("Error resetting map position:",ue)})}function Q(ue){if(!_.goTo)return;const pe=_.getFloor(),we={type:"FeatureCollection",features:ue.filter(qe=>parseInt(qe.properties.floor,10)===parseInt(pe,10)).filter(qe=>b&&qe.properties.venueId.toLowerCase()===b.toLowerCase()).map(qe=>({type:"Feature",geometry:qe.geometry,properties:qe.properties}))};we.features.length>0&&Promise.all([ie(),G()]).then(([qe,me])=>{_.goTo(we,{maxZoom:22,padding:{bottom:qe,left:me,top:0,right:0}})})}function ie(){return new Promise(ue=>{E?a?zm().then(pe=>ue(pe)):ue(0):ue(200)})}function G(){return new Promise(ue=>{E?a?ue(0):kh().then(pe=>ue(pe)):ue(0)})}return be.useEffect(()=>{let ue=document.querySelector(o);if(ue){i(ue);return}const pe=new MutationObserver(()=>{ue=document.querySelector(o),ue&&(i(ue),pe.disconnect())});return pe.observe(document.body,{childList:!0,subtree:!0}),()=>pe.disconnect()},[]),!u||!e?null:yu.createPortal(Pe.jsx("button",{className:"reset-kiosk-view-button",onClick:j,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Pe.jsx(sZ,{})}),e)}WN.propTypes={onReset:ht.func,isVisible:ht.bool},qN.propTypes={onLocationClick:ht.func,onMapPositionKnown:ht.func.isRequired,useMapProviderModule:ht.bool.isRequired,onMapPositionInvestigating:ht.func.isRequired,onViewModeSwitchKnown:ht.func.isRequired,resetCount:ht.number.isRequired,mapOptions:ht.object,gmMapId:ht.string,isWayfindingOrDirections:ht.bool,currentLanguage:ht.string,setLanguage:ht.func,devicePosition:ht.object};let c4;function qN({onLocationClick:e,onMapPositionKnown:i,useMapProviderModule:o,onMapPositionInvestigating:u,onViewModeSwitchKnown:d,resetCount:_,mapOptions:b,gmMapId:a,isWayfindingOrDirections:E,currentLanguage:j,setLanguage:Q,devicePosition:ie}){const G=Oi(G3),ue=Oi(Z3),pe=Oi(J_),[we,qe]=on(X_),[me,te]=on(ca),[,J]=on(K_),[,re]=on(Y3),Me=Oi(ev),xe=Oi(tv),Ke=Oi(_N),st=Oi(W3),Ge=Oi(iv),[,xt]=on(vN),dt=Oi(xN),[,kt]=on(Lm),bt=Oi(HN),oi=Oi(cv),[At,Tt]=be.useState(!1),[si,Ot]=be.useState(!1);oG(G);const[Ht,W]=nZ();be.useEffect(()=>{if(!dt||ue===null&&pe===null)return;let F;const V=dt.modules.map(Z=>Z.toLowerCase()).includes("mapbox");o?V?pe&&(F=us.Mapbox):ue&&(F=us.Google):pe?F=us.Mapbox:F=us.Google,F?qe(F):(kt({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),qe(void 0))},[ue,pe,dt]),be.useEffect(()=>{Ht&&u()},[Ht]),be.useEffect(()=>{W&&i()},[W]),be.useEffect(()=>{if(!me)return;const F=Me||xe;if(!F)return;const V=F.map(Z=>Z.id);bt||!me.highlight?me.filter(V):me.highlight(V)},[Me,xe,me,bt]),be.useEffect(()=>{me&&(isNaN(parseInt(Ge))||me.getMapView().tilt(parseInt(Ge)),isNaN(parseInt(st))||me.getMapView().rotate(parseInt(st)))},[st,Ge,me]);const ne=F=>{T(F)},T=F=>{if(F&&c4){let V=F.getTileURL();if(V){V=F.getTileURL().replace("default",c4);const Z=V==null?void 0:V.replace("{floor}",F.getFloor());F.getMapView().setMapsIndoorsTileURL(Z)}}},k=(F,V,Z)=>{F.on("mouseenter",()=>{var He;const ve=F.getHoveredLocation();((He=ve==null?void 0:ve.properties.locationSettings)==null?void 0:He.selectable)===!1&&F.unhoverLocation()}),F.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),F.on("click",ve=>e(ve)),F.once("building_changed",()=>ne(F)),F.on("floor_changed",()=>T(F)),te(F),window.mapsIndoorsInstance=F;const se=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(se);let he;we===us.Google?he=new window.mapsindoors.directions.GoogleMapsProvider:we===us.Mapbox&&(he=new window.mapsindoors.directions.MapboxProvider(pe));const le=new window.mapsindoors.services.DirectionsService(he);re(le),te(F),V.nodeName==="MI-MY-POSITION"?V.addEventListener("position_received",ve=>{ve.detail.accurate===!0&&J(ve.detail.position)}):V.on("position_received",ve=>{ve.accurate===!0&&J(ve.position)}),xt(V),d(Z)};return be.useEffect(()=>{c4=Ke||"default",T(me)},[Ke]),be.useEffect(()=>{var F,V,Z,se;oi&&(kr((F=oi==null?void 0:oi.appSettings)==null?void 0:F.viewSelector)?Tt(!1):Tt(((V=oi==null?void 0:oi.appSettings)==null?void 0:V.viewSelector.trim().toLowerCase())==="true"),kr((Z=oi==null?void 0:oi.appSettings)==null?void 0:Z.languageSelector)?Ot(!1):Ot(((se=oi==null?void 0:oi.appSettings)==null?void 0:se.languageSelector.trim().toLowerCase())==="true"))},[oi]),Pe.jsxs(Pe.Fragment,{children:[G&&Pe.jsx(yN,{apiKey:G,mapboxAccessToken:we===us.Mapbox?pe:void 0,gmApiKey:we===us.Google?ue:void 0,onInitialized:k,resetUICounter:_,mapOptions:b,gmMapId:a,devicePosition:ie}),G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx($N,{isViewSelectorVisible:At,isViewSelectorDisabled:E}),Pe.jsx(ZN,{currentLanguage:j,setLanguage:Q,isVisible:si}),Pe.jsx(WN,{})]})]})}const _c=On({key:"primaryColor",default:"#005655"}),Bae="",u4=On({key:"logo",default:void 0});function aZ(){const e=Oi(_c),i=Oi(u4);return Pe.jsx("div",{className:"splash-screen",children:Pe.jsxs("div",{className:"splash-screen__container",children:[Pe.jsx("img",{className:"splash-screen__logo "+(i?"splash-screen__logo--visible":""),src:i,alt:""}),Pe.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function KN(e,i){if(e==null)return{};var o={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(i.indexOf(u)!==-1)continue;o[u]=e[u]}return o}function h4(e,i){return h4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,u){return o.__proto__=u,o},h4(e,i)}function XN(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,h4(e,i)}function lZ(e,i){return e.classList?!!i&&e.classList.contains(i):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+i+" ")!==-1}function cZ(e,i){e.classList?e.classList.add(i):lZ(e,i)||(typeof e.className=="string"?e.className=e.className+" "+i:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+i))}function JN(e,i){return e.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uZ(e,i){e.classList?e.classList.remove(i):typeof e.className=="string"?e.className=JN(e.className,i):e.setAttribute("class",JN(e.className&&e.className.baseVal||"",i))}const eL={disabled:!1},tL=Cr.createContext(null);var iL=function(i){return i.scrollTop},Bm="unmounted",Ph="exited",Rh="entering",Ef="entered",d4="exiting",vc=function(e){XN(i,e);function i(u,d){var _;_=e.call(this,u,d)||this;var b=d,a=b&&!b.isMounting?u.enter:u.appear,E;return _.appearStatus=null,u.in?a?(E=Ph,_.appearStatus=Rh):E=Ef:u.unmountOnExit||u.mountOnEnter?E=Bm:E=Ph,_.state={status:E},_.nextCallback=null,_}i.getDerivedStateFromProps=function(d,_){var b=d.in;return b&&_.status===Bm?{status:Ph}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(d){var _=null;if(d!==this.props){var b=this.state.status;this.props.in?b!==Rh&&b!==Ef&&(_=Rh):(b===Rh||b===Ef)&&(_=d4)}this.updateStatus(!1,_)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var d=this.props.timeout,_,b,a;return _=b=a=d,d!=null&&typeof d!="number"&&(_=d.exit,b=d.enter,a=d.appear!==void 0?d.appear:b),{exit:_,enter:b,appear:a}},o.updateStatus=function(d,_){if(d===void 0&&(d=!1),_!==null)if(this.cancelNextCallback(),_===Rh){if(this.props.unmountOnExit||this.props.mountOnEnter){var b=this.props.nodeRef?this.props.nodeRef.current:dm.findDOMNode(this);b&&iL(b)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ph&&this.setState({status:Bm})},o.performEnter=function(d){var _=this,b=this.props.enter,a=this.context?this.context.isMounting:d,E=this.props.nodeRef?[a]:[dm.findDOMNode(this),a],j=E[0],Q=E[1],ie=this.getTimeouts(),G=a?ie.appear:ie.enter;if(!d&&!b||eL.disabled){this.safeSetState({status:Ef},function(){_.props.onEntered(j)});return}this.props.onEnter(j,Q),this.safeSetState({status:Rh},function(){_.props.onEntering(j,Q),_.onTransitionEnd(G,function(){_.safeSetState({status:Ef},function(){_.props.onEntered(j,Q)})})})},o.performExit=function(){var d=this,_=this.props.exit,b=this.getTimeouts(),a=this.props.nodeRef?void 0:dm.findDOMNode(this);if(!_||eL.disabled){this.safeSetState({status:Ph},function(){d.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:d4},function(){d.props.onExiting(a),d.onTransitionEnd(b.exit,function(){d.safeSetState({status:Ph},function(){d.props.onExited(a)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(d,_){_=this.setNextCallback(_),this.setState(d,_)},o.setNextCallback=function(d){var _=this,b=!0;return this.nextCallback=function(a){b&&(b=!1,_.nextCallback=null,d(a))},this.nextCallback.cancel=function(){b=!1},this.nextCallback},o.onTransitionEnd=function(d,_){this.setNextCallback(_);var b=this.props.nodeRef?this.props.nodeRef.current:dm.findDOMNode(this),a=d==null&&!this.props.addEndListener;if(!b||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var E=this.props.nodeRef?[this.nextCallback]:[b,this.nextCallback],j=E[0],Q=E[1];this.props.addEndListener(j,Q)}d!=null&&setTimeout(this.nextCallback,d)},o.render=function(){var d=this.state.status;if(d===Bm)return null;var _=this.props,b=_.children;_.in,_.mountOnEnter,_.unmountOnExit,_.appear,_.enter,_.exit,_.timeout,_.addEndListener,_.onEnter,_.onEntering,_.onEntered,_.onExit,_.onExiting,_.onExited,_.nodeRef;var a=KN(_,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(tL.Provider,{value:null},typeof b=="function"?b(d,a):Cr.cloneElement(Cr.Children.only(b),a))},i}(Cr.Component);vc.contextType=tL,vc.propTypes={};function Nf(){}vc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Nf,onEntering:Nf,onEntered:Nf,onExit:Nf,onExiting:Nf,onExited:Nf},vc.UNMOUNTED=Bm,vc.EXITED=Ph,vc.ENTERING=Rh,vc.ENTERED=Ef,vc.EXITING=d4;const hZ=vc;var dZ=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return cZ(i,u)})},f4=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return uZ(i,u)})},p4=function(e){XN(i,e);function i(){for(var u,d=arguments.length,_=new Array(d),b=0;b<d;b++)_[b]=arguments[b];return u=e.call.apply(e,[this].concat(_))||this,u.appliedClasses={appear:{},enter:{},exit:{}},u.onEnter=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],ie=j[1];u.removeClasses(Q,"exit"),u.addClass(Q,ie?"appear":"enter","base"),u.props.onEnter&&u.props.onEnter(a,E)},u.onEntering=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],ie=j[1],G=ie?"appear":"enter";u.addClass(Q,G,"active"),u.props.onEntering&&u.props.onEntering(a,E)},u.onEntered=function(a,E){var j=u.resolveArguments(a,E),Q=j[0],ie=j[1],G=ie?"appear":"enter";u.removeClasses(Q,G),u.addClass(Q,G,"done"),u.props.onEntered&&u.props.onEntered(a,E)},u.onExit=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"appear"),u.removeClasses(j,"enter"),u.addClass(j,"exit","base"),u.props.onExit&&u.props.onExit(a)},u.onExiting=function(a){var E=u.resolveArguments(a),j=E[0];u.addClass(j,"exit","active"),u.props.onExiting&&u.props.onExiting(a)},u.onExited=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"exit"),u.addClass(j,"exit","done"),u.props.onExited&&u.props.onExited(a)},u.resolveArguments=function(a,E){return u.props.nodeRef?[u.props.nodeRef.current,a]:[a,E]},u.getClassNames=function(a){var E=u.props.classNames,j=typeof E=="string",Q=j&&E?E+"-":"",ie=j?""+Q+a:E[a],G=j?ie+"-active":E[a+"Active"],ue=j?ie+"-done":E[a+"Done"];return{baseClassName:ie,activeClassName:G,doneClassName:ue}},u}var o=i.prototype;return o.addClass=function(d,_,b){var a=this.getClassNames(_)[b+"ClassName"],E=this.getClassNames("enter"),j=E.doneClassName;_==="appear"&&b==="done"&&j&&(a+=" "+j),b==="active"&&d&&iL(d),a&&(this.appliedClasses[_][b]=a,dZ(d,a))},o.removeClasses=function(d,_){var b=this.appliedClasses[_],a=b.base,E=b.active,j=b.done;this.appliedClasses[_]={},a&&f4(d,a),E&&f4(d,E),j&&f4(d,j)},o.render=function(){var d=this.props;d.classNames;var _=KN(d,["classNames"]);return Cr.createElement(hZ,V3({},_,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(Cr.Component);p4.defaultProps={classNames:""},p4.propTypes={};const fZ=p4,Fae="",pZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),Uae="";nL.propTypes={venue:ht.object.isRequired,isCurrent:ht.bool,onVenueClicked:ht.func.isRequired};function nL({venue:e,isCurrent:i,onVenueClicked:o}){const{t:u}=cs(),[d,_]=be.useState({});return be.useEffect(()=>()=>{_({})},[]),be.useEffect(()=>{const b={};e.image&&(b.backgroundImage=`url('${e.image}')`),_(b)},[e]),Pe.jsxs("button",{className:"venue",onClick:()=>o(),children:[Pe.jsx("div",{className:"venue__image",style:d}),Pe.jsxs("div",{className:"venue__content",children:[Pe.jsx("div",{children:e.venueInfo.name}),i&&Pe.jsx("div",{className:"venue__current",children:u("Current")})]})]})}const uv=On({key:"isLocationClicked",default:!1});rL.propTypes={onOpen:ht.func,onClose:ht.func,active:ht.bool};function rL({onOpen:e,onClose:i,active:o}){const{t:u}=cs(),d=be.useRef(null),_=Oi(km),[,b]=on(K3),[a,E]=on(bu),[,j]=on(uv),Q=document.querySelector(".venue-selector-portal"),ie=pe=>{b(!0),E(pe.name),G()},G=()=>{o?i():e()};function ue(pe){ie(pe),j(!1)}return Pe.jsxs(Pe.Fragment,{children:[!o&&Q&&yu.createPortal(Pe.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":u("Venues"),children:Pe.jsx(pZ,{})}),Q),Pe.jsx(fZ,{in:o,nodeRef:d,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Pe.jsxs("div",{className:"venue-selector__content",ref:d,children:[Pe.jsxs("div",{className:"venue-selector__header",children:[Pe.jsx("h1",{children:u("Select venue")}),Pe.jsx("button",{className:"venue-selector__button",onClick:()=>i(),"aria-label":u("Close"),children:Pe.jsx(Rm,{})})]}),Pe.jsx("div",{className:"venue-selector__list",children:_.map(pe=>Pe.jsx(nL,{isCurrent:(a==null?void 0:a.toLowerCase())===pe.name.toLowerCase(),venue:pe,onVenueClicked:()=>ue(pe)},pe.id))})]})})]})}const oL=be.createContext(),xc=On({key:"currentLocation",default:null}),gZ="Left",mZ="Right",yZ="Up",_Z="Down",Lf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},g4={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},sL="mousemove",aL="mouseup",vZ="touchend",xZ="touchmove",wZ="touchstart";function bZ(e,i,o,u){return e>i?o>0?mZ:gZ:u>0?_Z:yZ}function lL(e,i){if(i===0)return e;const o=Math.PI/180*i,u=e[0]*Math.cos(o)+e[1]*Math.sin(o),d=e[1]*Math.cos(o)-e[0]*Math.sin(o);return[u,d]}function MZ(e,i){const o=Q=>{const ie="touches"in Q;ie&&Q.touches.length>1||e((G,ue)=>{ue.trackMouse&&!ie&&(document.addEventListener(sL,u),document.addEventListener(aL,b));const{clientX:pe,clientY:we}=ie?Q.touches[0]:Q,qe=lL([pe,we],ue.rotationAngle);return ue.onTouchStartOrOnMouseDown&&ue.onTouchStartOrOnMouseDown({event:Q}),Object.assign(Object.assign(Object.assign({},G),g4),{initial:qe.slice(),xy:qe,start:Q.timeStamp||0})})},u=Q=>{e((ie,G)=>{const ue="touches"in Q;if(ue&&Q.touches.length>1)return ie;if(Q.timeStamp-ie.start>G.swipeDuration)return ie.swiping?Object.assign(Object.assign({},ie),{swiping:!1}):ie;const{clientX:pe,clientY:we}=ue?Q.touches[0]:Q,[qe,me]=lL([pe,we],G.rotationAngle),te=qe-ie.xy[0],J=me-ie.xy[1],re=Math.abs(te),Me=Math.abs(J),xe=(Q.timeStamp||0)-ie.start,Ke=Math.sqrt(re*re+Me*Me)/(xe||1),st=[te/(xe||1),J/(xe||1)],Ge=bZ(re,Me,te,J),xt=typeof G.delta=="number"?G.delta:G.delta[Ge.toLowerCase()]||Lf.delta;if(re<xt&&Me<xt&&!ie.swiping)return ie;const dt={absX:re,absY:Me,deltaX:te,deltaY:J,dir:Ge,event:Q,first:ie.first,initial:ie.initial,velocity:Ke,vxvy:st};dt.first&&G.onSwipeStart&&G.onSwipeStart(dt),G.onSwiping&&G.onSwiping(dt);let kt=!1;return(G.onSwiping||G.onSwiped||G[`onSwiped${Ge}`])&&(kt=!0),kt&&G.preventScrollOnSwipe&&G.trackTouch&&Q.cancelable&&Q.preventDefault(),Object.assign(Object.assign({},ie),{first:!1,eventData:dt,swiping:!0})})},d=Q=>{e((ie,G)=>{let ue;if(ie.swiping&&ie.eventData){if(Q.timeStamp-ie.start<G.swipeDuration){ue=Object.assign(Object.assign({},ie.eventData),{event:Q}),G.onSwiped&&G.onSwiped(ue);const pe=G[`onSwiped${ue.dir}`];pe&&pe(ue)}}else G.onTap&&G.onTap({event:Q});return G.onTouchEndOrOnMouseUp&&G.onTouchEndOrOnMouseUp({event:Q}),Object.assign(Object.assign(Object.assign({},ie),g4),{eventData:ue})})},_=()=>{document.removeEventListener(sL,u),document.removeEventListener(aL,b)},b=Q=>{_(),d(Q)},a=(Q,ie)=>{let G=()=>{};if(Q&&Q.addEventListener){const ue=Object.assign(Object.assign({},Lf.touchEventOptions),ie.touchEventOptions),pe=[[wZ,o,ue],[xZ,u,Object.assign(Object.assign({},ue),ie.preventScrollOnSwipe?{passive:!1}:{})],[vZ,d,ue]];pe.forEach(([we,qe,me])=>Q.addEventListener(we,qe,me)),G=()=>pe.forEach(([we,qe])=>Q.removeEventListener(we,qe))}return G},j={ref:Q=>{Q!==null&&e((ie,G)=>{if(ie.el===Q)return ie;const ue={};return ie.el&&ie.el!==Q&&ie.cleanUpTouch&&(ie.cleanUpTouch(),ue.cleanUpTouch=void 0),G.trackTouch&&Q&&(ue.cleanUpTouch=a(Q,G)),Object.assign(Object.assign(Object.assign({},ie),{el:Q}),ue)})}};return i.trackMouse&&(j.onMouseDown=o),[j,a]}function IZ(e,i,o,u){return!i.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?i.preventScrollOnSwipe!==o.preventScrollOnSwipe||i.touchEventOptions.passive!==o.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})}function cL(e){const{trackMouse:i}=e,o=be.useRef(Object.assign({},g4)),u=be.useRef(Object.assign({},Lf)),d=be.useRef(Object.assign({},u.current));d.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},Lf),e);let _;for(_ in Lf)u.current[_]===void 0&&(u.current[_]=Lf[_]);const[b,a]=be.useMemo(()=>MZ(E=>o.current=E(o.current,u.current),{trackMouse:i}),[i]);return o.current=IZ(o.current,u.current,d.current,a),b}const qn={MIN:"MIN",FIT:"FIT",MAX:"MAX"},Vae="",zf=be.forwardRef(function({children:i,isOpen:o,initialSnapPoint:u,minimizedHeight:d},_){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),Q=be.useRef(),[ie,G]=be.useState({}),[ue,pe]=be.useState(!1),[we,qe]=be.useState(null),me=be.useContext(oL),te=be.useRef();be.useImperativeHandle(_,()=>({setSnapPoint(Ge){J(Ge)}}));function J(Ge){requestAnimationFrame(()=>{switch(Ge){case qn.MAX:G({height:`${me.current.clientHeight}px`}),E.current=me.current.clientHeight;break;case qn.FIT:{const xt=a.current.children.item(0).clientHeight;xt<d?(G({height:`${d}px`}),E.current=d,Ge=qn.MIN):(G({height:`${xt}px`}),E.current=xt);break}case qn.MIN:G({height:`${d}px`}),E.current=d;break}}),Q.current=Ge}be.useEffect(()=>(o&&Q.current===qn.FIT?re():Me(),()=>{Me()}),[o,Q.current]);function re(){te.current&&te.current.disconnect(),te.current=new MutationObserver(()=>{J(qn.FIT)}),te.current.observe(a.current,{childList:!0,subtree:!0})}function Me(){te.current&&te.current.disconnect()}const xe=cL({onSwipeStart:()=>{pe(!0),qe(null),j.current=b.current.clientHeight},onSwiping:Ge=>{const xt=Math.max(j.current-Ge.deltaY,d);G({height:`${xt}px`})},onSwiped:Ge=>{pe(!1);const xt=TZ(Ge.dir,Ge.deltaY,Q.current,d,me.current.clientHeight,a.current.children.item(0));xt&&(J(xt),qe(xt))},trackMouse:!0,preventScrollOnSwipe:!0});be.useEffect(()=>{o&&(Q.current=u,J(u))},[d,u,o]);const Ke=Ge=>{xe.ref(Ge),b.current=Ge},st=Cr.Children.map(i,Ge=>be.cloneElement(Ge,{snapPointSwipedByUser:we}));return Pe.jsx("div",{...xe,ref:Ke,className:`sheet ${o?"sheet--active":""} ${ue?"sheet--dragging":""} ${Q.current===qn.MAX?"sheet--max":""}`,style:ie,children:Pe.jsx("div",{ref:a,className:`sheet__content ${Q.current===qn.MIN?"sheet__content--no-scroll":""}`,style:ie,children:st})})});zf.propTypes={children:ht.node.isRequired,isOpen:ht.bool.isRequired,initialSnapPoint:ht.string.isRequired,minimizedHeight:ht.number.isRequired};function TZ(e,i,o,u,d,_){if(Math.abs(i)<60)return o;let a;return e.toUpperCase()==="DOWN"?o===qn.MAX?DZ(_)?a=qn.MIN:_.clientHeight<=d&&_.clientHeight>u?a=qn.FIT:a=qn.MIN:o===qn.FIT&&(a=qn.MIN):e.toUpperCase()==="UP"&&(o===qn.MIN?_.clientHeight<=u||_.clientHeight>d?a=qn.MAX:a=qn.FIT:o===qn.FIT&&(a=qn.MAX)),a}function DZ(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const i of e.children)if(i.scrollHeight>i.clientHeight)return!0;return!1}const Qae="",Hae="",SZ=(e,i)=>{const[o,u]=be.useState(void 0),[d,_]=be.useState(void 0);return be.useEffect(()=>{const b=(a=!1)=>{var j,Q;const E=((j=i.current)==null?void 0:j.scrollHeight)>((Q=i.current)==null?void 0:Q.clientHeight);u(E),a===!0&&_(E)};b(!0),i.current&&new ResizeObserver(b).observe(i.current)},[e,i]),[o,d]},Of=()=>cL({onSwiping:({event:e})=>e.stopPropagation()});function uL(e){const i=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:i[1],lng:i[0],floor:e.properties.floor}}const Fm=On({key:"directionsResponse",default:null}),hv=On({key:"hasFoundRoute",default:!0}),hL=(e,i,o,u,d)=>{const[_,b]=be.useState(),[a,E]=be.useState(),[j,Q]=on(hv),[,ie]=on(Fm),[G,ue]=be.useState();return be.useEffect(()=>{ue(!1);let pe=!0;return e!=null&&e.geometry&&(i!=null&&i.geometry)&&o.getRoute({origin:uL(e),destination:uL(i),travelMode:u,avoidStairs:d}).then(we=>{if(pe)if(we&&we.legs){const qe=we.legs.reduce((te,J)=>te+J.distance.value,0),me=we.legs.reduce((te,J)=>te+J.duration.value,0);b(qe),E(me),ie({originLocation:e,destinationLocation:i,totalDistance:qe,totalTime:me,directionsResult:we}),Q(!0),ue(!0)}else Q(!1)},()=>{pe&&Q(!1)}),()=>{pe=!1}},[e,i,o,d,u]),[_,a,j,G]},Bh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Um=On({key:"travelMode",default:Bh.WALKING}),Vm=On({key:"accessibilityOn",default:!1}),dv=On({key:"showExternalIDs",default:!1});function dL(e,i){const o=Oi(X_),[u,d]=be.useState(!1),_=e.getMap();be.useEffect(()=>{i&&d(!1)},[i]);function b(E,j,Q,ie){const G=ue=>{if(!Q)return;j.getMap().queryRenderedFeatures(ue.point).length?ie(!1):ie(!0)};return E.on("click",G),()=>{E.off("click",G)}}function a(E,j,Q,ie){const G=()=>{Q&&ie(!1)},ue=()=>{Q&&ie(!0)};j.addListener("click",G);const pe=E.addListener("click",ue);return()=>{j.removeListener("click",G),pe.remove()}}return be.useEffect(()=>{let E;return o===us.Mapbox&&(E=b(_,e,i,d)),o===us.Google&&(E=a(_,e,i,d)),()=>E==null?void 0:E()},[e,i]),u}const $ae="",AZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M12 7.75V12L14.75 14.75M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),CZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M8 10L11.6464 13.6464C11.8417 13.8417 12.1583 13.8417 12.3536 13.6464L16 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),EZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M16 14L12.3536 10.3536C12.1583 10.1583 11.8417 10.1583 11.6464 10.3536L8 14",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fh=On({key:"language",default:void 0});fL.propTypes={openingHours:ht.object,isMondayFirstDayOfTheWeek:ht.bool,onExpand:ht.func};function fL({openingHours:e,isMondayFirstDayOfTheWeek:i=!0,onExpand:o}){const{t:u}=cs(),[d,_]=be.useState(!1),a=Oi(Fh)??navigator.language,E=be.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(a).match(/AM|PM/)!==null,[a]),j=new Date().getDay(),Q=be.useMemo(()=>{const re=[];for(let Me=0;Me<7;Me++)re.push(new Date(2024,0,Me+1));if(!i){const Me=re.pop();re.unshift(Me)}return re},[i]),ie=be.useMemo(()=>i?j===0?6:j-1:j,[j,i]),{standardOpeningHours:G}=e||{},ue=re=>{const[Me,xe]=re.split(":");return new Date(0,0,0,Me,xe).toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",hour12:E})},pe=re=>{const Me=re.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),xe=G==null?void 0:G[Me];return!(xe!=null&&xe.startTime)||!(xe!=null&&xe.endTime)||xe.closedAllDay?{text:u("Closed"),isClosed:!0}:{text:`${ue(xe.startTime)} - ${ue(xe.endTime)}`,isClosed:!1}},we=be.useCallback(re=>{if(!re||re.closedAllDay||!re.startHours)return!1;const Me=new Date,xe=Me.getHours()*60+Me.getMinutes(),[Ke,st]=re.startTime.split(":"),[Ge,xt]=re.endTime.split(":"),dt=parseInt(Ke)*60+parseInt(st),kt=parseInt(Ge)*60+parseInt(xt);return xe>=dt&&xe<=kt},[]),me=be.useCallback(()=>{const re=Q[ie].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return we(G==null?void 0:G[re])?"Open":"Closed"},[G,Q,ie,we,u])(),te=re=>re.charAt(0).toUpperCase()+re.slice(1),J=()=>{_(re=>!re)};return be.useEffect(()=>{d&&typeof o=="function"&&o()},[d,o]),Pe.jsxs("div",{className:"opening-hours",children:[Pe.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:J,children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx(AZ,{})}),Pe.jsx("div",{className:"contact-action-button__text",children:pe(Q[ie]).text}),Pe.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${me.toLowerCase()}`,children:u(me)}),d?Pe.jsx(EZ,{}):Pe.jsx(CZ,{})]}),d&&Pe.jsx("ul",{className:"opening-hours__list",children:Q.map(re=>{const Me=pe(re);return Pe.jsxs("li",{className:"opening-hours__list-item",children:[Pe.jsx("span",{className:"opening-hours__day",children:te(re.toLocaleString(a,{weekday:"long"}))}),Pe.jsx("span",{className:`opening-hours__hours ${Me.isClosed?"opening-hours__hours--closed":""}`,children:Me.text})]},re)})})]})}const NZ=be.memo(fL);function m4(e,i,o){return(i=function(u){var d=function(_,b){if(typeof _!="object"||!_)return _;var a=_[Symbol.toPrimitive];if(a!==void 0){var E=a.call(_,b||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(_)}(u,"string");return typeof d=="symbol"?d:d+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var y4={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},pL=function(e){var i=e.children,o=e.onClickAway,u=e.focusEvent,d=u===void 0?"focusin":u,_=e.mouseEvent,b=_===void 0?"click":_,a=e.touchEvent,E=a===void 0?"touchend":a,j=be.useRef(null),Q=be.useRef(null),ie=be.useRef(!1);be.useEffect(function(){return setTimeout(function(){ie.current=!0},0),function(){ie.current=!1}},[]);var G=function(qe){return function(me){Q.current=me.target;var te=i==null?void 0:i.props[qe];te&&te(me)}};be.useEffect(function(){var qe,me,te=(qe=(me=j.current)===null||me===void 0?void 0:me.ownerDocument)!==null&&qe!==void 0?qe:document,J=function(re){ie.current&&(j.current&&j.current.contains(re.target)||Q.current===re.target||!te.contains(re.target)||o(re))};return te.addEventListener(b,J),te.addEventListener(E,J),te.addEventListener(d,J),function(){te.removeEventListener(b,J),te.removeEventListener(E,J),te.removeEventListener(d,J)}},[d,b,o,E]);var ue=y4[b],pe=y4[E],we=y4[d];return Cr.Children.only(be.cloneElement(i,m4(m4(m4({ref:function(qe){j.current=qe;var me=i.ref;typeof me=="function"?me(qe):me&&(me.current=qe)}},we,G(we)),ue,G(ue)),pe,G(pe))))};pL.displayName="ClickAwayListener";const fv=On({key:"searchAllVenues",default:!1}),_4=On({key:"searchExternalLocations",default:!0}),gL=R_({key:"baseLink",get:({get:e})=>{const i=e(Z3),o=e(J_),u=e(G3),d=e(_c),_=e(Fh),b=e(fv),a=e(_4),E=e(u4),j=window.location.origin+window.location.pathname.replace(/\/$/,""),Q=new URLSearchParams(window.location.search),ie=new URLSearchParams;return[["gmApiKey",i],["mapboxAccessToken",o],["apiKey",u],["primaryColor",d],["language",_],["searchAllVenues",b],["searchExternalLocations",a],["logo",E]].forEach(([G,ue])=>{if(Q.has(G)){const pe=Q.get(G);ie.append(G,pe)}else ue&&(ue===d?ie.append(G,d.replace("#","")):ie.append(G,ue))}),`${j}?${ie.toString()}`}}),Yae="",LZ=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8484 4.66738C13.3129 3.20291 15.6872 3.20291 17.1517 4.66737L19.909 7.42474C21.3735 8.8892 21.3735 11.2636 19.909 12.7281L18.2804 14.3568C17.9875 14.6497 17.5126 14.6497 17.2197 14.3568C16.9268 14.0639 16.9268 13.589 17.2197 13.2961L18.8484 11.6674C19.7271 10.7887 19.7271 9.36407 18.8484 8.4854L16.091 5.72803C15.2123 4.84936 13.7877 4.84936 12.909 5.72804L11.2804 7.35672C10.9875 7.64961 10.5126 7.64961 10.2197 7.35672C9.92681 7.06382 9.92681 6.58895 10.2197 6.29606L11.8484 4.66738ZM15.5304 9.04606C15.8233 9.33895 15.8233 9.81382 15.5304 10.1067L9.53036 16.1068C9.23747 16.3997 8.7626 16.3997 8.4697 16.1068C8.17681 15.8139 8.17681 15.339 8.4697 15.0461L14.4697 9.04606C14.7626 8.75316 15.2375 8.75316 15.5304 9.04606ZM6.78036 10.7961C7.07326 11.089 7.07326 11.5639 6.78036 11.8568L5.15169 13.4854C4.27301 14.3641 4.27301 15.7887 5.15169 16.6674L7.90905 19.4248C8.78773 20.3035 10.2123 20.3035 11.091 19.4248L12.7197 17.7961C13.0126 17.5032 13.4875 17.5032 13.7804 17.7961C14.0733 18.089 14.0733 18.5639 13.7804 18.8568L12.1517 20.4854C10.6872 21.9499 8.31285 21.9499 6.84839 20.4854L4.09102 17.7281C2.62656 16.2636 2.62656 13.8893 4.09103 12.4248L5.7197 10.7961C6.0126 10.5032 6.48747 10.5032 6.78036 10.7961Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),mL=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.32635C3 5.25529 4.67893 3.57635 6.75 3.57635H7.25C9.32107 3.57635 11 5.25529 11 7.32635V7.82635C11 9.89742 9.32107 11.5764 7.25 11.5764H6.75C4.67893 11.5764 3 9.89742 3 7.82635V7.32635ZM6.75 5.07635C5.50736 5.07635 4.5 6.08371 4.5 7.32635V7.82635C4.5 9.06899 5.50736 10.0764 6.75 10.0764H7.25C8.49264 10.0764 9.5 9.06899 9.5 7.82635V7.32635C9.5 6.08371 8.49264 5.07635 7.25 5.07635H6.75ZM13 7.32635C13 5.25529 14.6789 3.57635 16.75 3.57635H17.25C19.3211 3.57635 21 5.25529 21 7.32635V7.82635C21 9.89742 19.3211 11.5764 17.25 11.5764H16.75C14.6789 11.5764 13 9.89742 13 7.82635V7.32635ZM16.75 5.07635C15.5074 5.07635 14.5 6.08371 14.5 7.32635V7.82635C14.5 9.06899 15.5074 10.0764 16.75 10.0764H17.25C18.4926 10.0764 19.5 9.06899 19.5 7.82635V7.32635C19.5 6.08371 18.4926 5.07635 17.25 5.07635H16.75ZM3 17.3264C3 15.2553 4.67893 13.5764 6.75 13.5764H7.25C9.32107 13.5764 11 15.2553 11 17.3264V17.8264C11 19.8975 9.32107 21.5764 7.25 21.5764H6.75C4.67893 21.5764 3 19.8975 3 17.8264V17.3264ZM6.75 15.0764C5.50736 15.0764 4.5 16.0838 4.5 17.3264V17.8264C4.5 19.069 5.50736 20.0764 6.75 20.0764H7.25C8.49264 20.0764 9.5 19.069 9.5 17.8264V17.3264C9.5 16.0838 8.49264 15.0764 7.25 15.0764H6.75Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 13.5764C14.1642 13.5764 14.5 13.9122 14.5 14.3264V16.0764H16.25C16.6642 16.0764 17 16.4122 17 16.8264C17 17.2406 16.6642 17.5764 16.25 17.5764H13.75C13.3358 17.5764 13 17.2406 13 16.8264V14.3264C13 13.9122 13.3358 13.5764 13.75 13.5764ZM17 14.3264C17 13.9122 17.3358 13.5764 17.75 13.5764H20.25C20.6642 13.5764 21 13.9122 21 14.3264C21 14.7406 20.6642 15.0764 20.25 15.0764H17.75C17.3358 15.0764 17 14.7406 17 14.3264ZM17 18.3264C17 17.9122 17.3358 17.5764 17.75 17.5764H20.25C20.6642 17.5764 21 17.9122 21 18.3264C21 18.7406 20.6642 19.0764 20.25 19.0764H18.5V20.8264C18.5 21.2406 18.1642 21.5764 17.75 21.5764C17.3358 21.5764 17 21.2406 17 20.8264V18.3264Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M13 20.5764C13 20.0241 13.4477 19.5764 14 19.5764C14.5523 19.5764 15 20.0241 15 20.5764C15 21.1287 14.5523 21.5764 14 21.5764C13.4477 21.5764 13 21.1287 13 20.5764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M5.5 17.0764C5.5 16.5241 5.94772 16.0764 6.5 16.0764H7.5C8.05228 16.0764 8.5 16.5241 8.5 17.0764V18.0764C8.5 18.6287 8.05228 19.0764 7.5 19.0764H6.5C5.94772 19.0764 5.5 18.6287 5.5 18.0764V17.0764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M5.5 7.07635C5.5 6.52407 5.94772 6.07635 6.5 6.07635H7.5C8.05228 6.07635 8.5 6.52407 8.5 7.07635V8.07635C8.5 8.62863 8.05228 9.07635 7.5 9.07635H6.5C5.94772 9.07635 5.5 8.62863 5.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),be.createElement("path",{d:"M15.5 7.07635C15.5 6.52407 15.9477 6.07635 16.5 6.07635H17.5C18.0523 6.07635 18.5 6.52407 18.5 7.07635V8.07635C18.5 8.62863 18.0523 9.07635 17.5 9.07635H16.5C15.9477 9.07635 15.5 8.62863 15.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),zZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M8 6L12 2L16 6",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M12 3V13",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M17 10C18.1046 10 19 10.8954 19 12V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V12C5 10.8954 5.89543 10 7 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),pv=On({key:"qrCodeLink",default:null}),yL=On({key:"supportsUrlParameters",default:!1});_L.propTypes={location:ht.object.isRequired,buttonClassName:ht.string};function _L({location:e,buttonClassName:i}){const{t:o}=cs(),[u,d]=be.useState(!1),_=Oi(gL),[b,a]=be.useState(),E=Oi(yL),[j,Q]=be.useState(!1),[ie,G]=be.useState(!1),ue=Oi(Dl),[,pe]=on(pv),we=Ja();be.useEffect(()=>{_&&e&&a(_+"&locationId="+e.id)},[_,e]),be.useEffect(()=>{var J;Q(!ue&&E&&we);const te=typeof((J=navigator.clipboard)==null?void 0:J.writeText)=="function";G(!ue&&E&&te)},[E,ue,we]);const qe=()=>{navigator.clipboard.writeText(b),d(!1)},me=()=>{pe(b),d(!1)};return(j||ie)&&Pe.jsxs("div",{className:"share-location-link",children:[Pe.jsx("button",{className:i,onClick:()=>d(te=>!te),title:o("Share"),"aria-label":o("Share"),children:Pe.jsx(zZ,{})}),u&&Pe.jsx(pL,{onClickAway:()=>d(!1),children:Pe.jsxs("ul",{children:[ie&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>qe(),children:[Pe.jsx(LZ,{}),o("Copy link")]})}),j&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>me(),children:[Pe.jsx(mL,{}),o("QR Code")]})})]})})]})}const Gae="",vL={email:"email",phone:"phone"};xL.propTypes={detailType:ht.string,active:ht.bool,displayText:ht.string,value:ht.string,icon:ht.string};function xL({detailType:e,active:i,displayText:o,value:u,icon:d}){if(!i||e.toLowerCase()==="openinghours")return null;const _=o!=null&&o.trim()?o:u,b=(a,E)=>{switch(a.toLowerCase()){case vL.email:return`mailto:${E}`;case vL.phone:return`tel:${E}`;default:try{return new URL(E),E}catch{return"#"}}};return Pe.jsxs("a",{className:"contact-action-button",href:b(e,u),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx("img",{alt:"",src:d,className:"contact-action-button__icon"})}),Pe.jsx("span",{className:"contact-action-button__text",children:_})]})}v4.propTypes={onBack:ht.func,onStartWayfinding:ht.func,onSetSize:ht.func,snapPointSwiped:ht.number,onStartDirections:ht.func,isOpen:ht.bool,snapPointSwipedByUser:ht.string};function v4({onBack:e,onStartWayfinding:i,onSetSize:o,onStartDirections:u,isOpen:d,snapPointSwipedByUser:_}){var Xe,Be;const{t:b}=cs(),a=be.useRef(null),E=be.useRef(null),j=be.useRef(null),Q=be.useRef(null),ie=be.useRef(null),[G,ue]=be.useState(!1),[pe,we]=be.useState(!1),[qe,me]=be.useState(!1),te=be.useRef(!1),[J,re]=be.useState(null),Me=Oi(ca),xe=Oi(xc),Ke=(Xe=xe==null?void 0:xe.properties)==null?void 0:Xe.additionalDetails,st=(Be=Ke==null?void 0:Ke.find(rt=>rt.key.toLowerCase().includes("openinghours")&&rt.active===!0))==null?void 0:Be.openingHours,[Ge,xt]=SZ(xe,j),dt=Of(),kt=Oi(_c),bt=Oi(Dl),oi=Oi(Y3),[At,Tt]=be.useState(),[si,Ot]=be.useState(),Ht=Ja(),W=Oi(Um),ne=Oi(Vm),[,,T]=hL(si,At,oi,W,ne),k=Oi(dv),F=dL(Me,d);be.useEffect(()=>()=>{re(null),Tt(),Ot()},[]);const V=be.useCallback(()=>{ue(!1),we(!1),me(!1),Z(qn.FIT),e()});function Z(rt){typeof o=="function"&&o(rt)}function se(){G===!1?(he(),Z(qn.MAX)):(le(),Z(qn.FIT))}function he(){requestAnimationFrame(()=>{ue(!0),ve(),te.current=!0})}function le(){ue(!1),He(),te.current=!1}function ve(){const rt=requestAnimationFrame(()=>{E.current&&(we(E.current.scrollTop>0),me(E.current.scrollTop<E.current.scrollHeight-E.current.offsetHeight-1))});return()=>cancelAnimationFrame(rt)}function He(){we(!1),me(!1)}function et(){ue(!1),we(!1),me(!1),Z(qn.FIT),i()}function Ue(){ue(!1),we(!1),me(!1),Z(qn.FIT),u()}return be.useEffect(()=>{F&&e()},[F]),be.useEffect(()=>()=>{re(null),Tt(),Ot()},[]),be.useEffect(()=>{ue(!1),we(!1),me(!1),re(null),xe&&(a.current.location=xe,re(Me.getDisplayRule(xe)),Tt(xe)),bt&&Ot(bt)},[xe,Me,bt]),be.useEffect(()=>{const rt=(Ke==null?void 0:Ke.length)>0;Z(xe&&d&&rt?qn.FIT:qn.MIN)},[xe,d,Ke]),be.useEffect(()=>{if(!_){te.current=!1;return}ue(_===qn.MAX),_===qn.MAX?he():le()},[_]),be.useLayoutEffect(()=>{const rt=document.querySelector(".modal.modal--open");if(!rt||!(Q!=null&&Q.current)||!(E!=null&&E.current))return;const mt=()=>{const Mt=rt.offsetHeight,Nt=E.current.offsetHeight;Mt>0&&Nt>0&&(Nt/Mt>.9?(rt.style.height="100%",ve()):rt.style.height="auto")};return ie.current?ie.current.complete?mt():(ie.current.onload=mt,ie.current.onerror=mt):mt(),()=>{rt.style.height="",ie.current&&(ie.current.onload=null,ie.current.onerror=null)}},[xe,G,d,Ke]),Pe.jsx("div",{className:`location-details ${te.current===!0?"location-details--max-height":""} ${pe?"location-details--content-above":""} ${qe?"location-details--content-below":""}`,children:xe&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"location-details__header",children:[Pe.jsxs("div",{className:"location-info",children:[Pe.jsx("div",{className:"location-info__icon",children:J&&Pe.jsx("img",{alt:"",src:J.icon.src?J.icon.src:J.icon})}),Pe.jsxs("div",{className:"location-info__content",children:[Pe.jsx("div",{className:"location-info__name",children:xe.properties.name}),Pe.jsx("mi-location-info",{level:b("Level"),ref:a,"show-external-id":k})]}),Pe.jsxs("div",{className:"location-info__actions",children:[Pe.jsx(_L,{buttonClassName:"location-info__button",location:xe}),Pe.jsx("button",{className:"location-info__button",onClick:()=>V(),children:Pe.jsx(Rm,{})})]})]}),bt&&Ht?Pe.jsx("button",{disabled:!T,onClick:()=>Ue(),className:`location-details__wayfinding ${T?"":"location-details--no-route"}`,style:{background:kt},children:b(T?"Start directions":"Directions not available")}):Pe.jsx("button",{onClick:()=>et(),style:{background:kt},className:"location-details__wayfinding",children:b("Start wayfinding")})]}),Pe.jsx("div",{className:"location-details__details prevent-scroll",...dt,ref:Q,children:Pe.jsxs("div",{ref:E,onScroll:rt=>ve(),className:"location-details__details-content",children:[xe.properties.imageURL&&Pe.jsx("img",{ref:ie,alt:"",src:xe.properties.imageURL,className:"location-details__image"}),Object.keys(xe.properties.categories).length>0&&Pe.jsx("p",{className:"location-details__categories",children:Object.values(xe.properties.categories).map((rt,mt,Mt)=>Pe.jsxs(Cr.Fragment,{children:[rt,mt<Mt.length-1&&Pe.jsx(Pe.Fragment,{children:"・"})]},rt))}),xe.properties.description&&Pe.jsxs("section",{className:`location-details__description ${G?"location-details__description--full":""}`,children:[Pe.jsx("div",{ref:j,children:xe.properties.description}),(Ge||xt||G)&&Pe.jsx("button",{onClick:()=>se(),children:b(G?"Close":"Read full description")})]}),Ke&&Pe.jsxs("div",{className:"contact-action-buttons-container",children:[Ke.map(rt=>Pe.jsx(xL,{detailType:rt.detailType,active:rt.active,displayText:rt.displayText,value:rt.value,icon:rt.icon},rt.key)),st&&Pe.jsx(NZ,{openingHours:st,onExpand:()=>ve()})]})]})})]})})}const Zae="",OZ=e=>be.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1663_3931)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1663_3931"},be.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),wL=e=>be.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),kZ=e=>be.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),Wae="";gv.propTypes={location:ht.object,locationClicked:ht.func,icon:ht.string,isHovered:ht.bool};function gv({location:e,locationClicked:i,icon:o,isHovered:u}){const{t:d}=cs(),_=be.useRef(),b=Oi(ca),a=Oi(dv);return be.useEffect(()=>{var G;const E=ue=>i(ue.detail),j=()=>{var ue;((ue=e.properties.locationSettings)==null?void 0:ue.selectable)!==!1&&b.hoverLocation(e)},Q=()=>{var ue;(ue=e.properties.locationSettings)!=null&&ue.selectable||b.unhoverLocation(e)};((G=e.properties.locationSettings)==null?void 0:G.selectable)===!1&&_.current.classList.add("non-selectable");const{current:ie}=_;return ie.location=e,ie.icon=o||b.getDisplayRule(e).icon,ie.addEventListener("locationClicked",E),ie.addEventListener("mouseover",j),ie.addEventListener("mouseout",Q),u?_.current.classList.add("hovered"):_.current.classList.remove("hovered"),()=>{ie.removeEventListener("locationClicked",E),ie.removeEventListener("mouseover",j),ie.removeEventListener("mouseout",Q)}},[e,i,u]),Pe.jsx("mi-list-item-location",{level:d("Level"),ref:_,"show-external-id":a})}const jZ=()=>{const[e,i]=be.useState(),o=Oi(ca),u=Oi(rv);return be.useEffect(()=>{function d(){const _=o.getMapView().getCenter();i(_.lat+","+_.lng)}return o&&u?(o.getMapView().addListener("idle",d),d()):o&&o.getMapView().removeListener("idle",d),()=>{o&&o.getMapView().removeListener("idle",d)}},[o,u]),e},x4=On({key:"searchInput",default:void 0}),mv=be.forwardRef(function(i,o){const{placeholder:u,mapsindoors:d,results:_,clicked:b,cleared:a,changed:E,category:j,google:Q,mapbox:ie,disabled:G=!1}=i,ue=be.useRef(),pe=Oi(K_),we=Oi(Fh),[,qe]=on(x4),me=sessionStorage.getItem("mapboxPlacesSessionToken"),te={longitude:pe==null?void 0:pe.coords.longitude,latitude:pe==null?void 0:pe.coords.latitude},J=jZ(),re=Oi(bu),Me=Oi(fv);return be.useImperativeHandle(o,()=>({triggerSearch(){ue.current.triggerSearch()},getValue(){return ue.current.value},setDisplayText(xe){ue.current.setDisplayText(xe)},focusInput(){ue.current.focusInput()},clear(){ue.current.clear()},getInputField(){return ue.current.getInputField().then(xe=>qe(xe))}})),be.useEffect(()=>{const{current:xe}=ue;xe.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{xe.triggerSearch()})},[we]),be.useEffect(()=>{const xe=Ge=>_(Ge.detail),Ke=()=>a(),{current:st}=ue;return d===!0&&(st.mapsindoors="true"),st.addEventListener("results",xe),st.addEventListener("click",b),st.addEventListener("cleared",Ke),st.addEventListener("changed",E),()=>{st.removeEventListener("results",xe),st.removeEventListener("click",b),st.removeEventListener("cleared",Ke),st.removeEventListener("changed",E)}},[u,d,_,b,a,Q,ie,E]),Pe.jsx("mi-search",{ref:ue,"id-attribute":"search",placeholder:u,"session-token":me,"user-position":te.latitude!==void 0&&te.longitude!==void 0?Object.values(te).join(","):null,"mi-near":J,"mi-categories":j,disabled:G,mapbox:ie,google:Q,"mi-venue":Me?void 0:re,language:we})});mv.propTypes={placeholder:ht.string,mapsindoors:ht.bool,results:ht.func,clicked:ht.func,cleared:ht.func,changed:ht.func,category:ht.string,preventFocus:ht.bool,google:ht.bool,mapbox:ht.bool,disabled:ht.bool};function w4(e){const i={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:i,properties:{name:sN("My position"),anchor:i},type:"Feature"}}let b4;function PZ(e){return new Promise((i,o)=>{b4||(b4=new window.google.maps.Geocoder),b4.geocode({placeId:e.properties.placeId},u=>{u.length>0?(e.geometry={type:"Point",coordinates:[u[0].geometry.location.lng(),u[0].geometry.location.lat()]},i(e)):o()})})}const RZ="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=",bL=e=>be.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),ML=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1697_57490)"},be.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"}),be.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"}),be.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"}),be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1697_57490"},be.createElement("rect",{width:20,height:20,fill:"white"})))),BZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_3407_1703)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_3407_1703"},be.createElement("rect",{width:20,height:20,fill:"white"}))));IL.propTypes={selectionChanged:ht.func,children:ht.node};function IL({selectionChanged:e,children:i}){const o=be.useRef();return be.useEffect(()=>{const u=_=>e(_.detail),{current:d}=o;return d.addEventListener("change",u),()=>d.removeEventListener("change",u)},[e]),Pe.jsx("mi-dropdown",{ref:o,children:i})}function FZ(e,i){const o=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((u,d)=>{const _=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${o}&access_token=${i}`;fetch(_).then(b=>b.status!==200?d():b.json()).then(b=>{e.geometry={type:"Point",coordinates:[b.features[0].geometry.coordinates[0],b.features[0].geometry.coordinates[1]]},u(e)}).catch(()=>{d()})})}const UZ=R_({key:"unitSystem",get:({get:e})=>e(Fh)==="en-US"?"imperial":"metric"}),qae="";M4.propTypes={onAccessibilityChanged:ht.func};function M4({onAccessibilityChanged:e}){const i=Oi(_c),[o,u]=on(Vm);function d(_){u(_.target.checked),e&&e()}return Pe.jsxs("div",{className:"accessibility",children:[Pe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:_=>d(_),style:{backgroundColor:o?i:""}}),Pe.jsx("div",{children:sN("Avoid stairs and escalators")})]})}const TL=On({key:"wayfindingLocation",default:null}),Co={TO:"TO",FROM:"FROM"},VZ="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";I4.propTypes={onStartDirections:ht.func.isRequired,onBack:ht.func.isRequired,directionsToLocation:ht.object,directionsFromLocation:ht.object,onSetSize:ht.func,isActive:ht.bool};function I4({onStartDirections:e,onBack:i,directionsToLocation:o,directionsFromLocation:u,onSetSize:d,isActive:_}){const{t:b}=cs(),a=be.useRef(),E=be.useRef(),j=be.useRef(),Q=be.useRef(),ie=Oi(Y3),G=Oi(K_),ue=Oi(xc),pe=Oi(X_),we=Oi(_c),[qe,me]=on(TL),[te,J]=be.useState(),[,re]=on(hv),[Me,xe]=be.useState(!0),[Ke,st]=be.useState(!1),[Ge,xt]=be.useState([]),[dt,kt]=be.useState(),[bt,oi]=be.useState(),At=Oi(Vm),Tt=Of(),[si,Ot]=be.useState(!1),[Ht,W]=on(Um),[ne,T]=be.useState(!1),k=Oi(J_),F=Oi(UZ),[V,Z,se,he]=hL(bt,dt,ie,Ht,At),le=Oi(_4);function ve(Bt){return pe===us.Google&&Bt.properties.type==="google_places"?PZ(Bt):pe===us.Mapbox&&Bt.properties.type==="mapbox_places"?FZ(Bt,k):Promise.resolve(Bt)}function He(Bt){te===Co.TO?ve(Bt).then(Ti=>{kt(Ti),j.current.setDisplayText(Ti.properties.name)},()=>re(!1)):te===Co.FROM&&ve(Bt).then(Ti=>{oi(Ti),Q.current.setDisplayText(Ti.properties.name)},()=>re(!1)),Ot(!1),st(!1),xt([]),T(!1)}function et(Bt,Ti){if(J(Ti),re(!0),Bt.length===0)xe(!1),Ot(!1),xt([]);else{xe(!0),xt(Bt);const xi=Bt.filter(Ft=>Ft.properties.type==="google_places").length>0;Ot(xi),Ue(qn.MAX)}}function Ue(Bt){typeof d=="function"&&d(Bt)}function Xe(){const Bt=w4(G);te===Co.TO?(j.current.setDisplayText(Bt.properties.name),kt(Bt)):te===Co.FROM&&(Q.current.setDisplayText(Bt.properties.name),oi(Bt)),xt([]),re(!0),xe(!0),Ot(!1),st(!1),T(!1)}function Be(Bt){(bt==null?void 0:bt.id)==="USER_POSITION"&&Bt===Co.TO||(dt==null?void 0:dt.id)==="USER_POSITION"&&Bt===Co.FROM?T(!1):T(!0)}function rt(Bt){Be(Bt)}function mt(Bt){J(Bt),di(Bt),re(!0),Ot(!1),Be(Bt)}function Mt(Bt){T(!0),J(Bt),Nt(Bt),xt([]),re(!0),Ot(!1),xe(!0)}function Nt(Bt){Bt===Co.TO?kt():Bt===Co.FROM&&oi()}function di(Bt){Bt===Co.TO?(xt([]),j.current.getValue()&&(st(!0),j.current.triggerSearch())):Bt===Co.FROM&&(xt([]),Q.current.getValue()&&(st(!0),Q.current.triggerSearch()))}function Xt(){(dt||bt)&&(bt?j.current.setDisplayText(bt.properties.name):j.current.clear(),dt?Q.current.setDisplayText(dt.properties.name):Q.current.clear(),kt(bt),oi(dt))}function Ii(){oi(),Q.current.setDisplayText(""),i()}function ai(){xt([]),st(!1),Ot(!1),T(!1)}return be.useEffect(()=>()=>{xt([]),kt(),oi()},[]),be.useEffect(()=>{if(qe){if(te===Co.FROM)Q.current.setDisplayText(qe.properties.name),oi(qe);else if(te===Co.TO)j.current.setDisplayText(qe.properties.name),kt(qe);else return;ai(),me(null)}},[qe]),be.useEffect(()=>{var Ti;Ue(qn.FIT);let Bt=!1;if((u==null?void 0:u.id)==="USER_POSITION"&&(o==null?void 0:o.id)==="USER_POSITION"&&(o=void 0),o!=null&&o.properties&&!ue&&(j.current.setDisplayText(o.properties.name),kt(o)),u!=null&&u.properties?bt||(Q.current.setDisplayText(u.properties.name),oi(u),Bt=!0):J(Co.FROM),_&&!((Ti=Q.current)!=null&&Ti.getValue())&&G&&!bt&&(o==null?void 0:o.id)!=="USER_POSITION"&&!Bt){const xi=w4(G);Q.current.setDisplayText(xi.properties.name),oi(xi),re(!0),xe(!0),xt([])}},[_,o,u]),be.useEffect(()=>{pe===us.Mapbox&&(Ot(!1),xt(Ge.filter(Bt=>Bt.properties.type!=="google_places")))},[pe]),be.useEffect(()=>{ue&&(kt(ue),j.current.setDisplayText(ue.properties.name))},[ue]),Pe.jsxs("div",{className:"wayfinding",ref:a,children:[Pe.jsxs("div",{className:"wayfinding__directions",children:[Pe.jsx("div",{className:"wayfinding__title",children:b("Directions")}),Pe.jsx("button",{className:"wayfinding__close",onClick:()=>Ii(),"aria-label":"Close",children:Pe.jsx(Rm,{})}),Pe.jsxs("div",{className:"wayfinding__locations",children:[Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose departure")}),Pe.jsx(mv,{ref:Q,mapsindoors:!0,google:pe===us.Google&&le,mapbox:pe===us.Mapbox&&le,placeholder:b("Choose departure"),results:Bt=>et(Bt,Co.FROM),clicked:()=>mt(Co.FROM),cleared:()=>Mt(Co.FROM),changed:()=>rt(Co.FROM)})]}),Pe.jsx("button",{onClick:()=>Xt(),"aria-label":b("Switch"),className:"wayfinding__switch",children:Pe.jsx(kZ,{})}),Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose destination")}),Pe.jsx(mv,{ref:j,mapsindoors:!0,google:pe===us.Google&&le,mapbox:pe===us.Mapbox&&le,placeholder:b("Choose destination"),results:Bt=>et(Bt,Co.TO),clicked:()=>mt(Co.TO),cleared:()=>Mt(Co.TO),changed:()=>rt(Co.TO)})]})]})]}),!se&&Pe.jsx("p",{className:"wayfinding__error",children:b("No route found")}),!Me&&!ne&&Pe.jsx("p",{className:"wayfinding__error",children:b("Nothing was found")}),G&&ne&&Pe.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Xe(),children:[Pe.jsx(BZ,{}),b("My position")]}),Ge.length>0&&Pe.jsx("div",{className:"wayfinding__scrollable",...Tt,children:Pe.jsxs("div",{className:"wayfinding__results",children:[Ge.map(Bt=>Pe.jsx(gv,{icon:Bt.properties.type==="google_places"||Bt.properties.type==="mapbox_places"?VZ:void 0,location:Bt,locationClicked:Ti=>He(Ti)},Bt.id)),si&&Pe.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:RZ})]})}),!Ke&&!ne&&se&&!si&&bt&&dt&&Pe.jsxs("div",{className:"wayfinding__details",ref:E,children:[Pe.jsxs("div",{className:"wayfinding__settings",children:[Pe.jsx(M4,{}),Pe.jsx("div",{className:"wayfinding__travel",children:Pe.jsxs(IL,{selectionChanged:Bt=>W(Bt[0].value),children:[Pe.jsxs("mi-dropdown-item",{selected:!0,value:Bh.WALKING,children:[Pe.jsx(wL,{}),b("Walk")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.DRIVING,children:[Pe.jsx(bL,{}),b("Drive")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.BICYCLING,children:[Pe.jsx(ML,{}),b("Bike")]})]})})]}),Pe.jsx("hr",{}),Pe.jsxs("div",{className:"wayfinding__info",children:[Pe.jsxs("div",{className:"wayfinding__distance",children:[Ht===Bh.WALKING&&Pe.jsx(wL,{}),Ht===Bh.DRIVING&&Pe.jsx(bL,{}),Ht===Bh.BICYCLING&&Pe.jsx(ML,{}),Pe.jsxs("div",{children:[b("Distance"),":"]}),Pe.jsx("div",{className:"wayfinding__meters",children:V&&he&&Pe.jsx("mi-distance",{unit:F,meters:V})})]}),Pe.jsxs("div",{className:"wayfinding__time",children:[Pe.jsx(OZ,{}),Pe.jsxs("div",{children:[b("Estimated time"),":"]}),Pe.jsx("div",{className:"wayfinding__minutes",children:Z&&he&&Pe.jsx("mi-time",{translations:JSON.stringify({days:b("d"),hours:b("h"),minutes:b("min")}),seconds:Z})})]})]}),Pe.jsx("button",{className:"wayfinding__button",style:{background:we},onClick:()=>e(),disabled:!he,children:b("Go!")})]})]})}const Kae="",Xae="",QZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),HZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yv=On({key:"activeStep",default:0}),_v=On({key:"substepsToggled",default:!1}),$Z=On({key:"triggerSubsteps",default:!1}),DL=be.forwardRef(function(i,o){var we;const{totalSteps:u,activeStep:d,previous:_,originLocation:b,directions:a}=i,E=be.useRef(),{t:j}=cs(),[Q,ie]=on(_v),[,G]=on($Z),ue=jh();be.useImperativeHandle(o,()=>({openSubsteps(){E.current.openSubsteps()},closeSubsteps(){E.current.closeSubsteps()}}));const pe={walk:j("Walk"),bike:j("Bike"),transit:j("Transit"),drive:j("Drive"),destination:j("You have arrived"),leave:j("Leave"),from:j("From"),park:j("Park"),at:j("at"),building:j("Building"),venue:j("Venue"),takeStaircaseToLevel:j("Take staircase to level"),takeLadderToLevel:j("Take the ladder to level"),takeElevatorToLevel:j("Take elevator to level"),takeEscalatorToLevel:j("Take escalator to level"),takeWheelchairLiftToLevel:j("Take wheelchair lift to level"),takeWheelchairRampToLevel:j("Take wheelchair ramp to level"),exit:j("Exit"),enter:j("Enter"),stops:j("stops"),andContinue:j("and continue"),continueStraightAhead:j("Continue straight ahead"),goLeft:j("Go left"),goSharpLeft:j("Go sharp left"),goSlightLeft:j("Go slight left"),goRight:j("Go right"),goSharpRight:j("Go sharp right"),goSlightRight:j("Go slight right"),turnAround:j("Turn around"),days:j("d"),hours:j("h"),minutes:j("min")};return be.useEffect(()=>{const{current:qe}=E;function me(){G(!0),ie(!Q)}return qe.addEventListener("substepsToggled",me),()=>{qe.removeEventListener("substepsToggled",me)}},[Q]),Pe.jsx("mi-route-instructions-step",{ref:E,"show-toggle-button":!ue,step:JSON.stringify(u[d]),translations:JSON.stringify(pe),"destination-location":a==null?void 0:a.destinationLocation.properties.name,"from-travel-mode":(_==null?void 0:_.travel_mode)??"","from-route-context":(_==null?void 0:_.route_context)??((we=b==null?void 0:b.properties)==null?void 0:we.name)??""})});DL.propTypes={totalSteps:ht.array,activeStep:ht.number,previous:ht.object,originLocation:ht.object,directions:ht.object};const SL=On({key:"isDestinationStep",default:!1});AL.propTypes={steps:ht.array,onNextStep:ht.func,onPreviousStep:ht.func,originLocation:ht.object,isOpen:ht.bool};function AL({steps:e,onNextStep:i,onPreviousStep:o,originLocation:u,isOpen:d}){const{t:_}=cs(),b=Of(),a=be.useRef(),[E,j]=be.useState(),[Q,ie]=on(yv),[G,ue]=be.useState(),pe=Oi(Fm),we=Oi(_v),[,qe]=on(SL),me=jh();be.useEffect(()=>{ue(e)},[e]),be.useEffect(()=>{var re,Me;d&&(Q===(G==null?void 0:G.length)-1&&(pe!=null&&pe.destinationLocation)?qe(!0):qe(!1),we===!1?(re=a.current)==null||re.closeSubsteps():we===!0&&((Me=a.current)==null||Me.openSubsteps()))},[d,Q,G,we]);function te(){j(G[Q]),ie(Q+1),i()}function J(){j(G[Q-2]),ie(Q-1),o()}return Pe.jsx("div",{className:"route-instructions prevent-scroll",...b,children:G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(DL,{totalSteps:G,activeStep:Q,previous:E,directions:pe,originLocation:u,ref:a}),Pe.jsx("div",{className:`route-instructions__footer ${me?"route-instructions__footer--kiosk":""}`,children:Pe.jsxs("div",{className:"route-instructions__actions",children:[Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>J(),"aria-label":_("Previous"),disabled:Q===0,children:Pe.jsx(HZ,{})}),Pe.jsx("div",{className:"route-instructions__overview",children:_("StepYofX",{activeStep:Q+1,totalSteps:G.length})}),Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>te(),"aria-label":_("Next"),disabled:Q===G.length-1,children:Pe.jsx(QZ,{})})]})})]})})}const CL=Object.freeze({minZoom:10});let ws;T4.propTypes={isOpen:ht.bool,onBack:ht.func,onSetSize:ht.func,onRouteFinished:ht.func,snapPointSwipedByUser:ht.string};function T4({isOpen:e,onBack:i,onSetSize:o,onRouteFinished:u,snapPointSwipedByUser:d}){const{t:_}=cs(),b=be.useRef(),[a,E]=be.useState(null),j=be.useRef(null),[Q,ie]=be.useState(),G=Oi(ca),ue=Oi(Um),pe=Oi(Fm),[,we]=on(yv),[qe,me]=on(_v),te=Oi(Dl),J=Ja(),[,re]=on(pv),Me=Oi(SL),xe=Oi(_c),Ke=jh(),st=Oi(dv),Ge=Oi(gL),xt=Oi(xc),dt=Oi(X_);be.useEffect(()=>()=>{E(null)},[]),be.useEffect(()=>{if(E(null),e&&pe){ie(pe.totalTime);const k=Math.min(window.innerHeight,window.innerWidth)*.06;ws==null||ws.setRoute(null),ws=null,Promise.all([kt(k),bt(k)]).then(([F,V])=>{ws=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:G,fitBoundsPadding:{top:k,bottom:F,left:V,right:k}}),ws.setRoute(pe.directionsResult).then(()=>{ws.setStepIndex(0)}),j.current.location=pe.destinationLocation,pe.destinationLocation.id==="USER_POSITION"?E(null):E(G.getDisplayRule(pe.destinationLocation)),Ht(null)})}},[e,pe,G,ue]);function kt(k){return new Promise(F=>{if(J)te?zm().then(V=>F(V)):F(k);else return Sf().then(V=>F(V))})}function bt(k){return new Promise(F=>{J?te?F(k):kh().then(V=>F(V)):F(k)})}be.useEffect(()=>{!e&&ws&&(si(),Ht(CL.minZoom))},[e]);function oi(){return pe?pe.directionsResult.legs.reduce((k,F)=>{for(const V in F.steps){const Z=F.steps[V];k.push(Z)}return k},[]):[]}function At(){ws&&ws.nextStep()}function Tt(){ws&&ws.previousStep()}function si(){ws==null||ws.setRoute(null),ws=null}function Ot(){we(0),me(!1),ne(qn.FIT)}function Ht(k){dt==="mapbox"?G.getMapView().getMap().setMinZoom(k):dt==="google"&&G.getMapView().getMap().setOptions({minZoom:k})}function W(){Ot(),si(),i()}function ne(k){typeof o=="function"&&o(k)}function T(){const k=`${Ge}&directionsFrom=${te.id}&directionsTo=${xt.id}`;re(k)}return be.useEffect(()=>(b.current=requestAnimationFrame(()=>{ne(qe?qn.MAX:qn.FIT)}),()=>{b.current&&cancelAnimationFrame(b.current)}),[qe]),be.useEffect(()=>{e&&d&&me(d===qn.MAX)},[e,d]),Pe.jsxs("div",{className:"directions",style:{display:Ke?"block":"grid"},children:[Pe.jsxs("div",{className:"directions__steps",children:[Pe.jsx("div",{className:"directions__minutes",children:Q&&Pe.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:Q})}),Pe.jsx(AL,{steps:oi(),originLocation:pe==null?void 0:pe.originLocation,onNextStep:()=>At(),isOpen:e,onPreviousStep:()=>Tt()})]}),Ke&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("hr",{}),Pe.jsxs("div",{className:"directions__kiosk",children:[Pe.jsx(M4,{onAccessibilityChanged:()=>Ot()}),Pe.jsxs("button",{className:"directions__qr-code",onClick:()=>T(),children:[Pe.jsx(mL,{}),_("Scan QR code")]})]})]}),Pe.jsxs("div",{className:"directions__actions",children:[Pe.jsx("div",{className:"directions__details",children:(pe==null?void 0:pe.destinationLocation)&&Pe.jsxs("div",{className:"directions__info",children:[a&&pe.destinationLocation.id!=="USER_POSITION"&&Pe.jsx("div",{className:"directions__icon",children:Pe.jsx("img",{alt:"",src:a.icon.src?a.icon.src:a.icon})}),Pe.jsxs("div",{className:"directions__content",children:[Pe.jsx("div",{className:"directions__name",children:pe==null?void 0:pe.destinationLocation.properties.name}),Pe.jsx("mi-location-info",{ref:j,"show-external-id":st})]})]})}),Me?Pe.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:xe},children:_("Finish route")}):Pe.jsx("button",{className:"directions__cancel",onClick:()=>W(),children:_("Cancel route")})]})]})}const Jae="",EL=On({key:"useKeyboard",default:!1}),NL=be.forwardRef(function(i,o){const{searchInputElement:u}=i,d=be.useRef(),_=Oi(Fh);return be.useImperativeHandle(o,()=>({clearInputField(){d.current.clearInputField()}})),be.useEffect(()=>{const{current:b}=d;u&&(b.inputElement=u)},[u]),Pe.jsx("mi-keyboard",{language:_,ref:d})});NL.propTypes={searchInputElement:ht.instanceOf(HTMLInputElement)};const vv=On({key:"searchResults",default:[]}),D4=On({key:"selectedCategory",default:void 0}),ele="";function YZ(){return new Promise(e=>{const i=document.querySelector(".chip--active");if(i)e(i);else{const o=new MutationObserver(()=>{const u=document.querySelector(".chip--active");u&&(o.disconnect(),e(u))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const GZ=On({key:"isBottomSheetLoaded",default:!1}),LL=On({key:"category",default:void 0}),zL=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),ZZ=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));S4.propTypes={onSetSize:ht.func,getFilteredLocations:ht.func,searchFieldRef:ht.object,isOpen:ht.bool,topLevelCategory:ht.bool,handleBack:ht.func,selectedCategoriesArray:ht.object,categoryOrientation:ht.oneOf(["horizontal","vertical"])};function S4({onSetSize:e,getFilteredLocations:i,searchFieldRef:o,isOpen:u,topLevelCategory:d,handleBack:_,selectedCategoriesArray:b,categoryOrientation:a}){const E=Oi(Om),j=Ja(),[Q,ie]=on(D4),[,G]=on(vv),[,ue]=on(ev),pe=Of(),[we,qe]=be.useState(),me=Oi(GZ),te=Oi(LL),J=Oi(ca),re=dL(J,u),[Me,xe]=be.useState([]),[Ke,st]=be.useState([]),{t:Ge}=cs(),xt=jh(),dt=be.useRef(null),[kt,bt]=be.useState(!1),[oi,At]=be.useState(!1),Tt=k=>{Ht&&dt.current&&dt.current.scrollBy({left:k==="left"?-200:200,behavior:"smooth"})},si=()=>{if(dt.current){const{scrollLeft:k,scrollWidth:F,clientWidth:V}=dt.current,Z=k<=0,se=k>=F-V-1;bt(!Z),At(!se)}},Ot=!d&&Me.length===0,Ht=xt&&a==="horizontal"&&!Ot;be.useEffect(()=>{if(!Ht)return;const k=dt.current;if(k)return si(),k.addEventListener("scroll",si),()=>{k.removeEventListener("scroll",si)}},[Ht,Me.length]);const W=`categories prevent-scroll${xt?` categories--kiosk-${a||"vertical"}`:""}`;function ne(k){typeof e=="function"&&e(k)}function T(k){ie(k),Q===k?(G([]),ie(null),ue([]),o.current.getValue()&&o.current.triggerSearch()):o.current.getValue()?o.current.triggerSearch():i(k)}return be.useEffect(()=>{var k;re&&Q&&(ie(null),G([]),ue([]),(k=o.current)!=null&&k.getValue()&&o.current.clear())},[re]),be.useEffect(()=>{Q&&(YZ().then(k=>qe(k)),ne(qn.MAX))},[Q]),be.useEffect(()=>{we&&te!==void 0&&(j||!j&&me)&&we.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[we,te,me]),be.useEffect(()=>{var V,Z,se;let k=[];if(d){const he=E.flatMap(([,le])=>le.childKeys||[]);k=E.filter(([le])=>!he.includes(le))}else if(Q){const he=(V=E.find(([ve])=>ve===Q))==null?void 0:V[1],le=(he==null?void 0:he.childKeys)||[];k=E.filter(([ve])=>le.includes(ve))}xe(k);const F=(se=(Z=E.find(([he])=>he===Q))==null?void 0:Z[1])==null?void 0:se.displayName;st(F)},[E]),Pe.jsx("div",{className:W,...pe,children:E.length>0&&Pe.jsxs(Pe.Fragment,{children:[!d&&Pe.jsxs("div",{className:"categories__nav",children:[Pe.jsx("button",{"aria-label":Ge("Back"),type:"button",className:"categories__nav-button",onClick:_,children:Pe.jsx(zL,{})}),Pe.jsx("div",{children:Ke})]}),Pe.jsxs("div",{className:"categories__row",children:[Ht&&Pe.jsx("div",{className:"categories__chevron categories__chevron--left",children:Pe.jsx("button",{"aria-label":Ge("Previous categories"),type:"button",disabled:!kt,onClick:()=>Tt("left"),children:Pe.jsx(zL,{})})}),Pe.jsx("div",{className:"categories__list",ref:xt?dt:void 0,children:Me.map(([k,F])=>!d&&b.current.length!==1?null:Pe.jsx("div",{className:"categories__category",children:Pe.jsxs("button",{onClick:()=>d?T(k):i(k),children:[Pe.jsx("img",{src:F.iconUrl,alt:""}),F.displayName]})},k))}),Ht&&Pe.jsx("div",{className:"categories__chevron categories__chevron--right",children:Pe.jsx("button",{"aria-label":Ge("Next categories"),type:"button",disabled:!oi,onClick:()=>Tt("right"),children:Pe.jsx(ZZ,{})})})]})]})})}const WZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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"})),xv=On({key:"isLegendDialogVisible",default:!1}),OL=R_({key:"legendFields",get:({get:e})=>{const i=e(Dl);if(!(i!=null&&i.properties.fields))return;const o=[];for(const d of Object.keys(i.properties.fields)){const _=parseInt(d.charAt(0));if(!Number.isInteger(_))continue;const b=o.find(j=>j.index===_),a=d.toLowerCase().includes("legendheading"),E=d.toLowerCase().includes("legendcontent");if(b)a?b.heading=i.properties.fields[d].value:E&&(b.content=i.properties.fields[d].value);else{const j={index:_,heading:a?i.properties.fields[d].value:null,content:E?i.properties.fields[d].value:null};o.push(j)}}return o.sort((d,_)=>d.index-_.index)}}),A4=On({key:"initialVenueName",default:null});C4.propTypes={categories:ht.array,onSetSize:ht.func,isOpen:ht.bool};function C4({onSetSize:e,isOpen:i}){const o=Oi(cv),{t:u}=cs(),d=be.useRef(),_=be.useRef(),b=be.useRef(),a=be.useRef(),E=be.useRef(),j=100,[Q,ie]=be.useState(!0),[G,ue]=on(vv),pe=Oi(Om),we=Oi(EL),[qe,me]=be.useState(!1),[te,J]=on(D4),re=Of(),[Me,xe]=be.useState(),Ke=Oi(ca),[,st]=on(ev),[,Ge]=on(xc),[,xt]=on(uv),[dt,kt]=on(bu),bt=Oi(Fh),oi=Ja(),At=Oi(Dl),[Tt,si]=be.useState(!1),Ot=Oi(x4),Ht=jh(),[,W]=on(xv),[ne,T]=be.useState(!1),k=Oi(OL),F=Oi(fv),V=Oi(km),Z=Oi(A4),[se,he]=be.useState(!1),le=be.useRef([]),[ve,He]=be.useState([]),[et,Ue]=be.useState(!1);function Xe(){var Ft,Yi,Ei;le.current.length===1?(J(null),ue([]),st([]),rt(qn.FIT),he(!0),((Yi=(Ft=a.current)==null?void 0:Ft.getValue())==null?void 0:Yi.trim())?a.current.triggerSearch():(Ei=a.current)==null||Ei.clear(),le.current.pop()):(le.current.pop(),J(le.current[0]))}function Be(Ft){var Yi;le.current.includes(Ft)||le.current.push(Ft),te&&(J([]),ue([]),st([])),J(Ft),window.mapsindoors.services.LocationsService.getLocations({categories:Ft,venue:F||(Yi=V.find(Ei=>Ei.name.toLowerCase()===dt.toLowerCase()))==null?void 0:Yi.name}).then(Ei=>mt(Ei,!0))}function rt(Ft){typeof e=="function"&&e(Ft)}function mt(Ft,Yi=!1){var Ri;const Ei=Ft.slice(0,j);rt(qn.MAX),ue(Ei),st(Ei),me(Ei.length===0),Ft&&Yi&&Mt(Ft),Ht&&((Ri=d.current)==null||Ri.addEventListener("transitionend",()=>{var dn;(dn=_==null?void 0:_.current)==null||dn.updateScrollButtons()},{once:!0}))}function Mt(Ft){if(!Ke.goTo)return;const Yi=Ke.getFloor(),Ei={type:"FeatureCollection",features:Ft.filter(Ri=>parseInt(Ri.properties.floor,10)===parseInt(Yi,10)).filter(Ri=>Ri.properties.venueId.toLowerCase()===dt.toLowerCase()).map(Ri=>({type:"Feature",geometry:Ri.geometry,properties:Ri.properties}))};Ei.features.length>0&&Promise.all([ai(),Bt()]).then(([Ri,dn])=>{Ke.goTo(Ei,{maxZoom:22,padding:{bottom:Ri,left:dn,top:0,right:0}})})}function Nt(){ue([]),me(!1),te&&Be(te),st([]),kr(E.current)||E.current.clearInputField()}function di(){ie(!1),a.current.getInputField();const Ft=d.current.closest(".sheet");Ft?Ft.addEventListener("transitionend",()=>{a.current.focusInput(),he(!0)},{once:!0}):(a.current.focusInput(),he(!0))}function Xt(Ft){xe(Ft)}function Ii(Ft){Ge(Ft),Ft.properties.venueId.toLowerCase()!==dt.toLowerCase()&&(kt(Ft.properties.venueId),xt(!0));const Yi=Ke.getFloor(),Ei=Ft.properties.floor;Ei!==Yi&&Ke.setFloor(Ei),Promise.all([ai(),Bt()]).then(([Ri,dn])=>{Ke.goTo(Ft,{maxZoom:22,padding:{bottom:Ri,left:dn,top:0,right:0}})})}function ai(){return new Promise(Ft=>{oi?At?zm().then(Yi=>Ft(Yi)):Ft(0):Ft(200)})}function Bt(){return new Promise(Ft=>{oi?At?Ft(0):kh().then(Yi=>Ft(Yi)):Ft(0)})}function Ti(){if(G.length>0){let Ft;return oi?Ft=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":Ft="100%",{display:"flex",flexDirection:"column",maxHeight:Ft,overflow:"hidden"}}}function xi(){return Ht&&et}return be.useEffect(()=>{const Ft=[".search__info",".search__back-button",".categories",".sheet__content"],Yi=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],Ei=Ri=>{const dn=Ft.some(En=>Ri.target.closest(En)),pn=Yi.some(En=>Ri.target.closest(En)),sn=Ri.target.closest(".search__results");dn?(rt(qn.MAX),b.current=requestAnimationFrame(()=>{he(!0)})):!sn&&!pn&&(he(!1),rt(qn.MIN),J(null),ue([]),st([]),le.current=[])};return i?b.current=requestAnimationFrame(()=>{document.addEventListener("click",Ei)}):document.removeEventListener("click",Ei),()=>{document.removeEventListener("click",Ei),b.current&&cancelAnimationFrame(b.current)}},[i]),be.useEffect(()=>()=>{xe()},[]),be.useEffect(()=>{te&&dt!==Z&&(ue([]),J(null))},[dt]),be.useEffect(()=>{te&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{a.current.triggerSearch()})},[bt]),be.useEffect(()=>(Ke==null||Ke.on("mouseenter",Xt),()=>{Ke==null||Ke.off("mouseenter",Xt)}),[Ke]),be.useEffect(()=>{if(i&&Ht&&G.length>0){const Ft=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=Ft}},[G,i]),be.useEffect(()=>{if(we){const Ft=Yi=>{Yi.target.closest("mi-keyboard")||Yi.target.tagName.toUpperCase()==="MI-SEARCH"||Yi.target.tagName.toUpperCase()==="INPUT"?si(!0):si(!1)};return window.addEventListener("click",Ft,!1),()=>{window.removeEventListener("click",Ft,!1)}}},[we]),be.useEffect(()=>{te&&Be(te)},[te]),be.useEffect(()=>{At&&T(k.length>0)},[At]),be.useEffect(()=>{var Yi,Ei;const Ft=((Ei=(Yi=pe.find(([Ri])=>Ri===te))==null?void 0:Yi[1])==null?void 0:Ei.childKeys)||[];He(Ft)},[pe,te]),be.useEffect(()=>{var Ft,Yi;Ue(((Ft=o==null?void 0:o.appSettings)==null?void 0:Ft.areHorizontalCategoriesEnabled)===!0||((Yi=o==null?void 0:o.appSettings)==null?void 0:Yi.areHorizontalCategoriesEnabled)==="true")},[o]),Pe.jsxs("div",{className:"search",ref:d,style:Ti(),children:[Pe.jsxs("div",{className:"search__info",style:{gridTemplateColumns:Ht&&ne?"min-content 1fr":"auto"},children:[Ht&&ne&&Pe.jsx("button",{className:"search__legend",onClick:()=>W(!0),children:Pe.jsx(WZ,{})}),Pe.jsxs("label",{className:"search__label",children:[Pe.jsx("span",{children:u("Search by name, category, building...")}),Pe.jsx(mv,{ref:a,mapsindoors:!0,placeholder:u("Search by name, category, building..."),results:Ft=>mt(Ft),clicked:()=>di(),cleared:()=>Nt(),category:te,disabled:Q})]})]}),(xi()||se)&&!qe&&pe.length>0&&G.length===0&&Pe.jsx(S4,{onSetSize:e,searchFieldRef:a,getFilteredLocations:Ft=>Be(Ft),isOpen:!!te,topLevelCategory:!0,categoryOrientation:et?"horizontal":"vertical"}),qe&&Pe.jsxs("p",{className:"search__error",children:[" ",u("Nothing was found")]}),G.length>0&&Pe.jsxs("div",{className:"search__results prevent-scroll",...re,children:[te&&Pe.jsx(S4,{handleBack:Xe,getFilteredLocations:Ft=>Be(Ft),onLocationClicked:Ii,childKeys:ve,topLevelCategory:!1,selectedCategoriesArray:le,categoryOrientation:et?"horizontal":"vertical"}),Pe.jsx("div",{className:"search__results",children:G.map(Ft=>Pe.jsx(gv,{location:Ft,locationClicked:()=>Ii(Ft),isHovered:(Ft==null?void 0:Ft.id)===(Me==null?void 0:Me.id)},Ft.id))})]}),Tt&&oi&&Pe.jsx(NL,{ref:E,searchInputElement:Ot}),i&&Ht&&G.length>0&&yu.createPortal(Pe.jsx("div",{className:"search__scroll-buttons",children:Pe.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const tle="";E4.propTypes={onLocationClick:ht.func.isRequired,onBack:ht.func.isRequired,locations:ht.arrayOf(ht.object),onSetSize:ht.func};function E4({onBack:e,onLocationClick:i,locations:o,onSetSize:u}){const{t:d}=cs(),_=Of();function b(a){typeof u=="function"&&u(a)}return be.useEffect(()=>{b(qn.FIT)},[]),Pe.jsxs("div",{className:"locations-list",children:[Pe.jsxs("div",{className:"locations-list__header",children:[Pe.jsxs("div",{className:"locations-list__title",children:[o==null?void 0:o.length," ",d("Locations")]}),Pe.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":d("Close"),children:Pe.jsx(Rm,{})})]}),Pe.jsx("div",{className:"locations-list__scrollable prevent-scroll",..._,children:Pe.jsx("div",{className:"locations-list__list",children:o==null?void 0:o.map(a=>Pe.jsx(gv,{location:a,locationClicked:E=>i(E)},a.id))})})]})}kL.propTypes={directionsFromLocation:ht.string,directionsToLocation:ht.string,pushAppView:ht.func.isRequired,currentAppView:ht.string,appViews:ht.object,onRouteFinished:ht.func.isRequired};function kL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),Q=be.useRef(),ie=be.useRef(),[G,ue]=on(xc),[pe,we]=be.useState(!1),[qe,me]=on(tv),[,te]=on(nv);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):G?o(d.LOCATION_DETAILS,G):(qe==null?void 0:qe.length)>1?o(d.EXTERNALIDS):(qe==null?void 0:qe.length)===1?(ue(qe[0]),te(qe[0].id)):o(d.SEARCH))},[G,e,i,qe]),be.useEffect(()=>{if(G){const xe=G.properties.imageURL||G.properties.description||G.properties.additionalDetails||Object.keys(G.properties.categories).length>0;we(xe)}},[G]);function J(){(qe==null?void 0:qe.length)>1?(o(d.EXTERNALIDS),ue()):(qe==null?void 0:qe.length)===1?(o(d.SEARCH),ue(),me([]),a.current.setSnapPoint(qn.MIN)):(o(d.SEARCH),ue(),a.current.setSnapPoint(qn.MIN))}function re(){o(d.SEARCH),ue(),me([])}const Me=[Pe.jsx(zf,{minimizedHeight:80,initialSnapPoint:qn.MIN,isOpen:u===d.SEARCH,ref:a,children:Pe.jsx(C4,{isOpen:u===d.SEARCH,onSetSize:xe=>a.current.setSnapPoint(xe)})},"SEARCH"),Pe.jsx(zf,{minimizedHeight:200,isOpen:u===d.EXTERNALIDS,initialSnapPoint:qn.MIN,ref:E,children:Pe.jsx(E4,{onSetSize:xe=>E.current.setSnapPoint(xe),onBack:()=>re(),locations:qe,onLocationClick:xe=>ue(xe)})},"EXTERNALIDS"),Pe.jsx(zf,{minimizedHeight:pe?180:136,initialSnapPoint:qn.MIN,isOpen:u===d.LOCATION_DETAILS,ref:j,children:Pe.jsx(v4,{onSetSize:xe=>j.current.setSnapPoint(xe),onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>J(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(zf,{minimizedHeight:190,initialSnapPoint:qn.FIT,isOpen:u===d.WAYFINDING,ref:Q,children:Pe.jsx(I4,{onSetSize:xe=>Q.current.setSnapPoint(xe),onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(G?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(zf,{minimizedHeight:273,isOpen:u===d.DIRECTIONS,initialSnapPoint:qn.FIT,ref:ie,children:Pe.jsx(T4,{onSetSize:xe=>ie.current.setSnapPoint(xe),isOpen:u===d.DIRECTIONS,onBack:()=>o(d.WAYFINDING),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{ref:b,className:"bottom-sheets",children:Pe.jsx(oL.Provider,{value:b,children:Me})})}const qZ={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},KZ=()=>{const[e,i]=be.useState(void 0),[o,u]=be.useState(),[d,_]=be.useState(null);be.useEffect(()=>{function j(Q){var ie,G;i((ie=Q.state)==null?void 0:ie.value),u((G=Q.state)==null?void 0:G.payload)}return window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}},[]);const b=(j,Q)=>{window.history.pushState({value:j,payload:Q},""),i(j),d===null&&_({value:j,payload:Q})};return[b,()=>{window.history.back()},e,o,qZ,()=>{b(d.value,d.payload)}]},XZ=On({key:"showQRCodeDialog",default:!1});function JZ(){const e=Oi(A4),[,i]=on(bu),o=Mo(yv),u=Mo(xc),d=Mo(Fm),_=Mo(hv),b=Mo(uv),a=Mo(Lm),E=Mo(XZ),j=Mo(_v),Q=Mo(Um),ie=Mo(vv),G=Mo(Vm),ue=Mo(xv),pe=Mo(IN),we=Mo(K3);return()=>{o(),u(),d(),_(),b(),a(),E(),j(),Q(),ie(),G(),ue(),pe(),we(),e&&i(e)}}const ile="";kf.propTypes={children:ht.node,isOpen:ht.bool};function kf({children:e,isOpen:i}){const[o,u]=be.useState(!1),d=Oi(Dl),_=be.useRef(),b=be.useRef();return be.useEffect(()=>{if(!b)return;const a=new MutationObserver(()=>{var Q;const E=b.current.clientHeight,j=(Q=_.current)==null?void 0:Q.clientHeight;u(E>j)});return a.observe(b.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[b]),Pe.jsx("div",{ref:_,className:`modal ${i?"modal--open":""} ${o?"modal--full":""} ${d?"modal--kiosk":""}`,children:Pe.jsx("div",{ref:b,className:"modal__content",children:e})})}jL.propTypes={directionsFromLocation:ht.string,directionsToLocation:ht.string,pushAppView:ht.func,currentAppView:ht.string,appViews:ht.object,filteredLocationsByExternalIDs:ht.array,onRouteFinished:ht.func};function jL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const[b,a]=on(xc),[E,j]=on(tv),[,Q]=on(nv),ie=Oi(Dl);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):b?o(d.LOCATION_DETAILS,b):(E==null?void 0:E.length)>1?o(d.EXTERNALIDS):(E==null?void 0:E.length)===1?(a(E[0]),Q(E[0].id)):o(d.SEARCH))},[b,e,i,E]);function G(){(E==null?void 0:E.length)>1?(o(d.EXTERNALIDS),a()):(E==null?void 0:E.length)===1?(o(d.SEARCH),a(),j([])):(o(d.SEARCH),a())}function ue(){o(d.SEARCH),a(),j([])}function pe(){o(ie?d.LOCATION_DETAILS:d.WAYFINDING)}const we=[Pe.jsx(kf,{isOpen:u===d.SEARCH,children:Pe.jsx(C4,{isOpen:u===d.SEARCH})},"SEARCH"),Pe.jsx(kf,{isOpen:u===d.EXTERNALIDS,children:Pe.jsx(E4,{onBack:()=>ue(),locations:E,onLocationClick:qe=>a(qe)})},"EXTERNALIDS"),Pe.jsx(kf,{isOpen:u===d.LOCATION_DETAILS,children:Pe.jsx(v4,{onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>G(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(kf,{isOpen:u===d.WAYFINDING,children:Pe.jsx(I4,{onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(b?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(kf,{isOpen:u===d.DIRECTIONS,children:Pe.jsx(T4,{isOpen:u===d.DIRECTIONS,onBack:()=>pe(),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{children:we})}const PL=e=>{const[i,o]=be.useState(),u=Oi(K_),d=Oi(vN);return be.useEffect(()=>{d&&e&&(e==="USER_POSITION"&&!u?(o("USER_POSITION_PENDING"),d.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(_=>o(_)),u&&e==="USER_POSITION"&&o(w4(u)))},[e,u,d]),i},eW=On({key:"gmMapId",default:null}),nle="";function tW(){const e=Oi(Lm),i=be.useRef();return be.useEffect(()=>{var o;(o=i.current)==null||o.classList.add("notification"),e?i.current.push(e.text,e.type,!0):i.current.clearAll()},[e]),Pe.jsx("mi-notification",{ref:i,position:"top-center"})}const rle="";var Qm={},iW=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},RL={},ha={};let N4;const nW=[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];ha.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},ha.getSymbolTotalCodewords=function(i){return nW[i]},ha.getBCHDigit=function(e){let i=0;for(;e!==0;)i++,e>>>=1;return i},ha.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');N4=i},ha.isKanjiModeEnabled=function(){return typeof N4<"u"},ha.toSJIS=function(i){return N4(i)};var wv={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.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: "+o)}}e.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},e.from=function(u,d){if(e.isValid(u))return u;try{return i(u)}catch{return d}}})(wv);function BL(){this.buffer=[],this.length=0}BL.prototype={get:function(e){const i=Math.floor(e/8);return(this.buffer[i]>>>7-e%8&1)===1},put:function(e,i){for(let o=0;o<i;o++)this.putBit((e>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),e&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var rW=BL;function Hm(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)}Hm.prototype.set=function(e,i,o,u){const d=e*this.size+i;this.data[d]=o,u&&(this.reservedBit[d]=!0)},Hm.prototype.get=function(e,i){return this.data[e*this.size+i]},Hm.prototype.xor=function(e,i,o){this.data[e*this.size+i]^=o},Hm.prototype.isReserved=function(e,i){return this.reservedBit[e*this.size+i]};var oW=Hm,FL={};(function(e){const i=ha.getSymbolSize;e.getRowColCoords=function(u){if(u===1)return[];const d=Math.floor(u/7)+2,_=i(u),b=_===145?26:Math.ceil((_-13)/(2*d-2))*2,a=[_-7];for(let E=1;E<d-1;E++)a[E]=a[E-1]-b;return a.push(6),a.reverse()},e.getPositions=function(u){const d=[],_=e.getRowColCoords(u),b=_.length;for(let a=0;a<b;a++)for(let E=0;E<b;E++)a===0&&E===0||a===0&&E===b-1||a===b-1&&E===0||d.push([_[a],_[E]]);return d}})(FL);var UL={};const sW=ha.getSymbolSize,VL=7;UL.getPositions=function(i){const o=sW(i);return[[0,0],[o-VL,0],[0,o-VL]]};var QL={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},e.from=function(d){return e.isValid(d)?parseInt(d,10):void 0},e.getPenaltyN1=function(d){const _=d.size;let b=0,a=0,E=0,j=null,Q=null;for(let ie=0;ie<_;ie++){a=E=0,j=Q=null;for(let G=0;G<_;G++){let ue=d.get(ie,G);ue===j?a++:(a>=5&&(b+=i.N1+(a-5)),j=ue,a=1),ue=d.get(G,ie),ue===Q?E++:(E>=5&&(b+=i.N1+(E-5)),Q=ue,E=1)}a>=5&&(b+=i.N1+(a-5)),E>=5&&(b+=i.N1+(E-5))}return b},e.getPenaltyN2=function(d){const _=d.size;let b=0;for(let a=0;a<_-1;a++)for(let E=0;E<_-1;E++){const j=d.get(a,E)+d.get(a,E+1)+d.get(a+1,E)+d.get(a+1,E+1);(j===4||j===0)&&b++}return b*i.N2},e.getPenaltyN3=function(d){const _=d.size;let b=0,a=0,E=0;for(let j=0;j<_;j++){a=E=0;for(let Q=0;Q<_;Q++)a=a<<1&2047|d.get(j,Q),Q>=10&&(a===1488||a===93)&&b++,E=E<<1&2047|d.get(Q,j),Q>=10&&(E===1488||E===93)&&b++}return b*i.N3},e.getPenaltyN4=function(d){let _=0;const b=d.data.length;for(let E=0;E<b;E++)_+=d.data[E];return Math.abs(Math.ceil(_*100/b/5)-10)*i.N4};function o(u,d,_){switch(u){case e.Patterns.PATTERN000:return(d+_)%2===0;case e.Patterns.PATTERN001:return d%2===0;case e.Patterns.PATTERN010:return _%3===0;case e.Patterns.PATTERN011:return(d+_)%3===0;case e.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(_/3))%2===0;case e.Patterns.PATTERN101:return d*_%2+d*_%3===0;case e.Patterns.PATTERN110:return(d*_%2+d*_%3)%2===0;case e.Patterns.PATTERN111:return(d*_%3+(d+_)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}e.applyMask=function(d,_){const b=_.size;for(let a=0;a<b;a++)for(let E=0;E<b;E++)_.isReserved(E,a)||_.xor(E,a,o(d,E,a))},e.getBestMask=function(d,_){const b=Object.keys(e.Patterns).length;let a=0,E=1/0;for(let j=0;j<b;j++){_(j),e.applyMask(j,d);const Q=e.getPenaltyN1(d)+e.getPenaltyN2(d)+e.getPenaltyN3(d)+e.getPenaltyN4(d);e.applyMask(j,d),Q<E&&(E=Q,a=j)}return a}})(QL);var bv={};const Iu=wv,Mv=[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],Iv=[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];bv.getBlocksCount=function(i,o){switch(o){case Iu.L:return Mv[(i-1)*4+0];case Iu.M:return Mv[(i-1)*4+1];case Iu.Q:return Mv[(i-1)*4+2];case Iu.H:return Mv[(i-1)*4+3];default:return}},bv.getTotalCodewordsCount=function(i,o){switch(o){case Iu.L:return Iv[(i-1)*4+0];case Iu.M:return Iv[(i-1)*4+1];case Iu.Q:return Iv[(i-1)*4+2];case Iu.H:return Iv[(i-1)*4+3];default:return}};var HL={},Tv={};const $m=new Uint8Array(512),Dv=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)$m[o]=i,Dv[i]=o,i<<=1,i&256&&(i^=285);for(let o=255;o<512;o++)$m[o]=$m[o-255]})(),Tv.log=function(i){if(i<1)throw new Error("log("+i+")");return Dv[i]},Tv.exp=function(i){return $m[i]},Tv.mul=function(i,o){return i===0||o===0?0:$m[Dv[i]+Dv[o]]},function(e){const i=Tv;e.mul=function(u,d){const _=new Uint8Array(u.length+d.length-1);for(let b=0;b<u.length;b++)for(let a=0;a<d.length;a++)_[b+a]^=i.mul(u[b],d[a]);return _},e.mod=function(u,d){let _=new Uint8Array(u);for(;_.length-d.length>=0;){const b=_[0];for(let E=0;E<d.length;E++)_[E]^=i.mul(d[E],b);let a=0;for(;a<_.length&&_[a]===0;)a++;_=_.slice(a)}return _},e.generateECPolynomial=function(u){let d=new Uint8Array([1]);for(let _=0;_<u;_++)d=e.mul(d,new Uint8Array([1,i.exp(_)]));return d}}(HL);const $L=HL;function L4(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}L4.prototype.initialize=function(i){this.degree=i,this.genPoly=$L.generateECPolynomial(this.degree)},L4.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(i.length+this.degree);o.set(i);const u=$L.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const _=new Uint8Array(this.degree);return _.set(u,d),_}return u};var aW=L4,YL={},Tu={},z4={};z4.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};var Sl={};const GL="[0-9]+",lW="[A-Z $%*+\\-./:]+";let Ym="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ym=Ym.replace(/u/g,"\\u");const cW="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ym+`)(?:.|[\r
44
44
  ]))+`;Sl.KANJI=new RegExp(Ym,"g"),Sl.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Sl.BYTE=new RegExp(cW,"g"),Sl.NUMERIC=new RegExp(GL,"g"),Sl.ALPHANUMERIC=new RegExp(lW,"g");const uW=new RegExp("^"+Ym+"$"),hW=new RegExp("^"+GL+"$"),dW=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Sl.testKanji=function(i){return uW.test(i)},Sl.testNumeric=function(i){return hW.test(i)},Sl.testAlphanumeric=function(i){return dW.test(i)},function(e){const i=z4,o=Sl;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(_,b){if(!_.ccBits)throw new Error("Invalid mode: "+_);if(!i.isValid(b))throw new Error("Invalid version: "+b);return b>=1&&b<10?_.ccBits[0]:b<27?_.ccBits[1]:_.ccBits[2]},e.getBestModeForData=function(_){return o.testNumeric(_)?e.NUMERIC:o.testAlphanumeric(_)?e.ALPHANUMERIC:o.testKanji(_)?e.KANJI:e.BYTE},e.toString=function(_){if(_&&_.id)return _.id;throw new Error("Invalid mode")},e.isValid=function(_){return _&&_.bit&&_.ccBits};function u(d){if(typeof d!="string")throw new Error("Param is not a string");switch(d.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: "+d)}}e.from=function(_,b){if(e.isValid(_))return _;try{return u(_)}catch{return b}}}(Tu),function(e){const i=ha,o=bv,u=wv,d=Tu,_=z4,b=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=i.getBCHDigit(b);function E(G,ue,pe){for(let we=1;we<=40;we++)if(ue<=e.getCapacity(we,pe,G))return we}function j(G,ue){return d.getCharCountIndicator(G,ue)+4}function Q(G,ue){let pe=0;return G.forEach(function(we){const qe=j(we.mode,ue);pe+=qe+we.getBitsLength()}),pe}function ie(G,ue){for(let pe=1;pe<=40;pe++)if(Q(G,pe)<=e.getCapacity(pe,ue,d.MIXED))return pe}e.from=function(ue,pe){return _.isValid(ue)?parseInt(ue,10):pe},e.getCapacity=function(ue,pe,we){if(!_.isValid(ue))throw new Error("Invalid QR Code version");typeof we>"u"&&(we=d.BYTE);const qe=i.getSymbolTotalCodewords(ue),me=o.getTotalCodewordsCount(ue,pe),te=(qe-me)*8;if(we===d.MIXED)return te;const J=te-j(we,ue);switch(we){case d.NUMERIC:return Math.floor(J/10*3);case d.ALPHANUMERIC:return Math.floor(J/11*2);case d.KANJI:return Math.floor(J/13);case d.BYTE:default:return Math.floor(J/8)}},e.getBestVersionForData=function(ue,pe){let we;const qe=u.from(pe,u.M);if(Array.isArray(ue)){if(ue.length>1)return ie(ue,qe);if(ue.length===0)return 1;we=ue[0]}else we=ue;return E(we.mode,we.getLength(),qe)},e.getEncodedBits=function(ue){if(!_.isValid(ue)||ue<7)throw new Error("Invalid QR Code version");let pe=ue<<12;for(;i.getBCHDigit(pe)-a>=0;)pe^=b<<i.getBCHDigit(pe)-a;return ue<<12|pe}}(YL);var ZL={};const O4=ha,WL=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,fW=1<<14|1<<12|1<<10|1<<4|1<<1,qL=O4.getBCHDigit(WL);ZL.getEncodedBits=function(i,o){const u=i.bit<<3|o;let d=u<<10;for(;O4.getBCHDigit(d)-qL>=0;)d^=WL<<O4.getBCHDigit(d)-qL;return(u<<10|d)^fW};var KL={};const pW=Tu;function jf(e){this.mode=pW.NUMERIC,this.data=e.toString()}jf.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},jf.prototype.getLength=function(){return this.data.length},jf.prototype.getBitsLength=function(){return jf.getBitsLength(this.data.length)},jf.prototype.write=function(i){let o,u,d;for(o=0;o+3<=this.data.length;o+=3)u=this.data.substr(o,3),d=parseInt(u,10),i.put(d,10);const _=this.data.length-o;_>0&&(u=this.data.substr(o),d=parseInt(u,10),i.put(d,_*3+1))};var gW=jf;const mW=Tu,k4=["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 Pf(e){this.mode=mW.ALPHANUMERIC,this.data=e}Pf.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},Pf.prototype.getLength=function(){return this.data.length},Pf.prototype.getBitsLength=function(){return Pf.getBitsLength(this.data.length)},Pf.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let u=k4.indexOf(this.data[o])*45;u+=k4.indexOf(this.data[o+1]),i.put(u,11)}this.data.length%2&&i.put(k4.indexOf(this.data[o]),6)};var yW=Pf,_W=function(i){for(var o=[],u=i.length,d=0;d<u;d++){var _=i.charCodeAt(d);if(_>=55296&&_<=56319&&u>d+1){var b=i.charCodeAt(d+1);b>=56320&&b<=57343&&(_=(_-55296)*1024+b-56320+65536,d+=1)}if(_<128){o.push(_);continue}if(_<2048){o.push(_>>6|192),o.push(_&63|128);continue}if(_<55296||_>=57344&&_<65536){o.push(_>>12|224),o.push(_>>6&63|128),o.push(_&63|128);continue}if(_>=65536&&_<=1114111){o.push(_>>18|240),o.push(_>>12&63|128),o.push(_>>6&63|128),o.push(_&63|128);continue}o.push(239,191,189)}return new Uint8Array(o).buffer};const vW=_W,xW=Tu;function Rf(e){this.mode=xW.BYTE,typeof e=="string"&&(e=vW(e)),this.data=new Uint8Array(e)}Rf.getBitsLength=function(i){return i*8},Rf.prototype.getLength=function(){return this.data.length},Rf.prototype.getBitsLength=function(){return Rf.getBitsLength(this.data.length)},Rf.prototype.write=function(e){for(let i=0,o=this.data.length;i<o;i++)e.put(this.data[i],8)};var wW=Rf;const bW=Tu,MW=ha;function Bf(e){this.mode=bW.KANJI,this.data=e}Bf.getBitsLength=function(i){return i*13},Bf.prototype.getLength=function(){return this.data.length},Bf.prototype.getBitsLength=function(){return Bf.getBitsLength(this.data.length)},Bf.prototype.write=function(e){let i;for(i=0;i<this.data.length;i++){let o=MW.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
45
45
  Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var IW=Bf,XL={exports:{}};(function(e){var i={single_source_shortest_paths:function(o,u,d){var _={},b={};b[u]=0;var a=i.PriorityQueue.make();a.push(u,0);for(var E,j,Q,ie,G,ue,pe,we,qe;!a.empty();){E=a.pop(),j=E.value,ie=E.cost,G=o[j]||{};for(Q in G)G.hasOwnProperty(Q)&&(ue=G[Q],pe=ie+ue,we=b[Q],qe=typeof b[Q]>"u",(qe||we>pe)&&(b[Q]=pe,a.push(Q,pe),_[Q]=j))}if(typeof d<"u"&&typeof b[d]>"u"){var me=["Could not find a path from ",u," to ",d,"."].join("");throw new Error(me)}return _},extract_shortest_path_from_predecessor_list:function(o,u){for(var d=[],_=u;_;)d.push(_),o[_],_=o[_];return d.reverse(),d},find_path:function(o,u,d){var _=i.single_source_shortest_paths(o,u,d);return i.extract_shortest_path_from_predecessor_list(_,d)},PriorityQueue:{make:function(o){var u=i.PriorityQueue,d={},_;o=o||{};for(_ in u)u.hasOwnProperty(_)&&(d[_]=u[_]);return d.queue=[],d.sorter=o.sorter||u.default_sorter,d},default_sorter:function(o,u){return o.cost-u.cost},push:function(o,u){var d={value:o,cost:u};this.queue.push(d),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=i})(XL);var TW=XL.exports;(function(e){const i=Tu,o=gW,u=yW,d=wW,_=IW,b=Sl,a=ha,E=TW;function j(me){return unescape(encodeURIComponent(me)).length}function Q(me,te,J){const re=[];let Me;for(;(Me=me.exec(J))!==null;)re.push({data:Me[0],index:Me.index,mode:te,length:Me[0].length});return re}function ie(me){const te=Q(b.NUMERIC,i.NUMERIC,me),J=Q(b.ALPHANUMERIC,i.ALPHANUMERIC,me);let re,Me;return a.isKanjiModeEnabled()?(re=Q(b.BYTE,i.BYTE,me),Me=Q(b.KANJI,i.KANJI,me)):(re=Q(b.BYTE_KANJI,i.BYTE,me),Me=[]),te.concat(J,re,Me).sort(function(Ke,st){return Ke.index-st.index}).map(function(Ke){return{data:Ke.data,mode:Ke.mode,length:Ke.length}})}function G(me,te){switch(te){case i.NUMERIC:return o.getBitsLength(me);case i.ALPHANUMERIC:return u.getBitsLength(me);case i.KANJI:return _.getBitsLength(me);case i.BYTE:return d.getBitsLength(me)}}function ue(me){return me.reduce(function(te,J){const re=te.length-1>=0?te[te.length-1]:null;return re&&re.mode===J.mode?(te[te.length-1].data+=J.data,te):(te.push(J),te)},[])}function pe(me){const te=[];for(let J=0;J<me.length;J++){const re=me[J];switch(re.mode){case i.NUMERIC:te.push([re,{data:re.data,mode:i.ALPHANUMERIC,length:re.length},{data:re.data,mode:i.BYTE,length:re.length}]);break;case i.ALPHANUMERIC:te.push([re,{data:re.data,mode:i.BYTE,length:re.length}]);break;case i.KANJI:te.push([re,{data:re.data,mode:i.BYTE,length:j(re.data)}]);break;case i.BYTE:te.push([{data:re.data,mode:i.BYTE,length:j(re.data)}])}}return te}function we(me,te){const J={},re={start:{}};let Me=["start"];for(let xe=0;xe<me.length;xe++){const Ke=me[xe],st=[];for(let Ge=0;Ge<Ke.length;Ge++){const xt=Ke[Ge],dt=""+xe+Ge;st.push(dt),J[dt]={node:xt,lastCount:0},re[dt]={};for(let kt=0;kt<Me.length;kt++){const bt=Me[kt];J[bt]&&J[bt].node.mode===xt.mode?(re[bt][dt]=G(J[bt].lastCount+xt.length,xt.mode)-G(J[bt].lastCount,xt.mode),J[bt].lastCount+=xt.length):(J[bt]&&(J[bt].lastCount=xt.length),re[bt][dt]=G(xt.length,xt.mode)+4+i.getCharCountIndicator(xt.mode,te))}}Me=st}for(let xe=0;xe<Me.length;xe++)re[Me[xe]].end=0;return{map:re,table:J}}function qe(me,te){let J;const re=i.getBestModeForData(me);if(J=i.from(te,re),J!==i.BYTE&&J.bit<re.bit)throw new Error('"'+me+'" cannot be encoded with mode '+i.toString(J)+`.
46
46
  Suggested mode is: `+i.toString(re));switch(J===i.KANJI&&!a.isKanjiModeEnabled()&&(J=i.BYTE),J){case i.NUMERIC:return new o(me);case i.ALPHANUMERIC:return new u(me);case i.KANJI:return new _(me);case i.BYTE:return new d(me)}}e.fromArray=function(te){return te.reduce(function(J,re){return typeof re=="string"?J.push(qe(re,null)):re.data&&J.push(qe(re.data,re.mode)),J},[])},e.fromString=function(te,J){const re=ie(te,a.isKanjiModeEnabled()),Me=pe(re),xe=we(Me,J),Ke=E.find_path(xe.map,"start","end"),st=[];for(let Ge=1;Ge<Ke.length-1;Ge++)st.push(xe.table[Ke[Ge]].node);return e.fromArray(ue(st))},e.rawSplit=function(te){return e.fromArray(ie(te,a.isKanjiModeEnabled()))}})(KL);const Sv=ha,j4=wv,DW=rW,SW=oW,AW=FL,CW=UL,P4=QL,R4=bv,EW=aW,Av=YL,NW=ZL,LW=Tu,B4=KL;function zW(e,i){const o=e.size,u=CW.getPositions(i);for(let d=0;d<u.length;d++){const _=u[d][0],b=u[d][1];for(let a=-1;a<=7;a++)if(!(_+a<=-1||o<=_+a))for(let E=-1;E<=7;E++)b+E<=-1||o<=b+E||(a>=0&&a<=6&&(E===0||E===6)||E>=0&&E<=6&&(a===0||a===6)||a>=2&&a<=4&&E>=2&&E<=4?e.set(_+a,b+E,!0,!0):e.set(_+a,b+E,!1,!0))}}function OW(e){const i=e.size;for(let o=8;o<i-8;o++){const u=o%2===0;e.set(o,6,u,!0),e.set(6,o,u,!0)}}function kW(e,i){const o=AW.getPositions(i);for(let u=0;u<o.length;u++){const d=o[u][0],_=o[u][1];for(let b=-2;b<=2;b++)for(let a=-2;a<=2;a++)b===-2||b===2||a===-2||a===2||b===0&&a===0?e.set(d+b,_+a,!0,!0):e.set(d+b,_+a,!1,!0)}}function jW(e,i){const o=e.size,u=Av.getEncodedBits(i);let d,_,b;for(let a=0;a<18;a++)d=Math.floor(a/3),_=a%3+o-8-3,b=(u>>a&1)===1,e.set(d,_,b,!0),e.set(_,d,b,!0)}function F4(e,i,o){const u=e.size,d=NW.getEncodedBits(i,o);let _,b;for(_=0;_<15;_++)b=(d>>_&1)===1,_<6?e.set(_,8,b,!0):_<8?e.set(_+1,8,b,!0):e.set(u-15+_,8,b,!0),_<8?e.set(8,u-_-1,b,!0):_<9?e.set(8,15-_-1+1,b,!0):e.set(8,15-_-1,b,!0);e.set(u-8,8,1,!0)}function PW(e,i){const o=e.size;let u=-1,d=o-1,_=7,b=0;for(let a=o-1;a>0;a-=2)for(a===6&&a--;;){for(let E=0;E<2;E++)if(!e.isReserved(d,a-E)){let j=!1;b<i.length&&(j=(i[b]>>>_&1)===1),e.set(d,a-E,j),_--,_===-1&&(b++,_=7)}if(d+=u,d<0||o<=d){d-=u,u=-u;break}}}function RW(e,i,o){const u=new DW;o.forEach(function(E){u.put(E.mode.bit,4),u.put(E.getLength(),LW.getCharCountIndicator(E.mode,e)),E.write(u)});const d=Sv.getSymbolTotalCodewords(e),_=R4.getTotalCodewordsCount(e,i),b=(d-_)*8;for(u.getLengthInBits()+4<=b&&u.put(0,4);u.getLengthInBits()%8!==0;)u.putBit(0);const a=(b-u.getLengthInBits())/8;for(let E=0;E<a;E++)u.put(E%2?17:236,8);return BW(u,e,i)}function BW(e,i,o){const u=Sv.getSymbolTotalCodewords(i),d=R4.getTotalCodewordsCount(i,o),_=u-d,b=R4.getBlocksCount(i,o),a=u%b,E=b-a,j=Math.floor(u/b),Q=Math.floor(_/b),ie=Q+1,G=j-Q,ue=new EW(G);let pe=0;const we=new Array(b),qe=new Array(b);let me=0;const te=new Uint8Array(e.buffer);for(let Ke=0;Ke<b;Ke++){const st=Ke<E?Q:ie;we[Ke]=te.slice(pe,pe+st),qe[Ke]=ue.encode(we[Ke]),pe+=st,me=Math.max(me,st)}const J=new Uint8Array(u);let re=0,Me,xe;for(Me=0;Me<me;Me++)for(xe=0;xe<b;xe++)Me<we[xe].length&&(J[re++]=we[xe][Me]);for(Me=0;Me<G;Me++)for(xe=0;xe<b;xe++)J[re++]=qe[xe][Me];return J}function FW(e,i,o,u){let d;if(Array.isArray(e))d=B4.fromArray(e);else if(typeof e=="string"){let j=i;if(!j){const Q=B4.rawSplit(e);j=Av.getBestVersionForData(Q,o)}d=B4.fromString(e,j||40)}else throw new Error("Invalid data");const _=Av.getBestVersionForData(d,o);if(!_)throw new Error("The amount of data is too big to be stored in a QR Code");if(!i)i=_;else if(i<_)throw new Error(`