@eyeon/threejs-map 1.1.32 → 1.1.33

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.
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ is considered to be not a multigraph by default (each edge is unique).`),e.multi
8
8
  `);return a===-1?"":n.stack.slice(a+1)})();try{if(!r.stack)r.stack=o;else if(o){const a=o.indexOf(`
9
9
  `),q=a===-1?-1:o.indexOf(`
10
10
  `,a+1),i=q===-1?"":o.slice(q+1);String(r.stack).endsWith(i)||(r.stack+=`
11
- `+o)}}catch{}}throw r}}_request(t,l){typeof t=="string"?(l=l||{},l.url=t):l=t||{},l=A4(this.defaults,l);const{transitional:r,paramsSerializer:n,headers:o}=l;r!==void 0&&A2.assertOptions(r,{silentJSONParsing:W1.transitional(W1.boolean),forcedJSONParsing:W1.transitional(W1.boolean),clarifyTimeoutError:W1.transitional(W1.boolean),legacyInterceptorReqResOrdering:W1.transitional(W1.boolean),advertiseZstdAcceptEncoding:W1.transitional(W1.boolean),validateStatusUndefinedResolves:W1.transitional(W1.boolean)},!1),n!=null&&(F.isFunction(n)?l.paramsSerializer={serialize:n}:A2.assertOptions(n,{encode:W1.function,serialize:W1.function},!0)),l.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?l.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:l.allowAbsoluteUrls=!0),A2.assertOptions(l,{baseUrl:W1.spelling("baseURL"),withXsrfToken:W1.spelling("withXSRFToken")},!0),l.method=(l.method||this.defaults.method||"get").toLowerCase();let a=o&&F.merge(o.common,o[l.method]);o&&F.forEach(["delete","get","head","post","put","patch","query","common"],v=>{delete o[v]}),l.headers=X1.concat(a,o);const q=[];let i=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(l)===!1)return;i=i&&b.synchronous;const h=l.transitional||c6;h&&h.legacyInterceptorReqResOrdering?q.unshift(b.fulfilled,b.rejected):q.push(b.fulfilled,b.rejected)});const s=[];this.interceptors.response.forEach(function(b){s.push(b.fulfilled,b.rejected)});let c,u=0,_;if(!i){const v=[n8.bind(this),void 0];for(v.unshift(...q),v.push(...s),_=v.length,c=Promise.resolve(l);u<_;)c=c.then(v[u++],v[u++]);return c}_=q.length;let A=l;for(;u<_;){const v=q[u++],b=q[u++];try{A=v(A)}catch(h){b.call(this,h);break}}try{c=n8.call(this,A)}catch(v){return Promise.reject(v)}for(u=0,_=s.length;u<_;)c=c.then(s[u++],s[u++]);return c}getUri(t){t=A4(this.defaults,t);const l=N9(t.baseURL,t.url,t.allowAbsoluteUrls,t);return S9(l,t.params,t.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(t){v4.prototype[t]=function(l,r){return this.request(A4(r||{},{method:t,url:l,data:r&&F.hasOwnProp(r,"data")?r.data:void 0}))}});F.forEach(["post","put","patch","query"],function(t){function l(r){return function(o,a,q){return this.request(A4(q||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}v4.prototype[t]=l(),t!=="query"&&(v4.prototype[t+"Form"]=l(!0))});let at=class F9{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let l;this.promise=new Promise(function(o){l=o});const r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o;const a=new Promise(q=>{r.subscribe(q),o=q}).then(n);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,q){r.reason||(r.reason=new a2(o,a,q),l(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const l=this._listeners.indexOf(t);l!==-1&&this._listeners.splice(l,1)}toAbortSignal(){const t=new AbortController,l=r=>{t.abort(r)};return this.subscribe(l),t.signal.unsubscribe=()=>this.unsubscribe(l),t.signal}static source(){let t;return{token:new F9(function(n){t=n}),cancel:t}}};function it(e){return function(l){return e.apply(null,l)}}function qt(e){return F.isObject(e)&&e.isAxiosError===!0}const B3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(B3).forEach(([e,t])=>{B3[t]=e});function B9(e){const t=new v4(e),l=f9(v4.prototype.request,t);return F.extend(l,v4.prototype,t,{allOwnKeys:!0}),F.extend(l,t,null,{allOwnKeys:!0}),l.create=function(n){return B9(A4(e,n))},l}const M1=B9(o2);M1.Axios=v4;M1.CanceledError=a2;M1.CancelToken=at;M1.isCancel=w9;M1.VERSION=m6;M1.toFormData=J2;M1.AxiosError=u1;M1.Cancel=M1.CanceledError;M1.all=function(t){return Promise.all(t)};M1.spread=it;M1.isAxiosError=qt;M1.mergeConfig=A4;M1.AxiosHeaders=X1;M1.formToJSON=e=>z9(F.isHTMLForm(e)?new FormData(e):e);M1.getAdapter=P9.getAdapter;M1.HttpStatusCode=B3;M1.default=M1;const{Axios:xq,AxiosError:hq,CanceledError:pq,isCancel:gq,CancelToken:bq,VERSION:_q,all:vq,Cancel:Cq,isAxiosError:yq,spread:Iq,toFormData:Eq,AxiosHeaders:Aq,HttpStatusCode:Rq,formToJSON:Sq,getAdapter:Oq,mergeConfig:zq,create:wq}=M1,st=e=>({getMapData:()=>new Promise((a,q)=>{e("/v1/mapit2/data").then(i=>{var c,u;const s=[];if((c=i==null?void 0:i.data)!=null&&c.items)for(const _ of(u=i==null?void 0:i.data)==null?void 0:u.items)s.push({id:_.id,retailer_id:_.retailer_id,kiosk_id:_.kiosk_id,map_obj_name:_.map_obj_name,obj_type:_.obj_type,layer_type:_.layer_type,value:_.value,custom_text:_.custom_text,custom_image:_.custom_image,bg_color:_.bg_color,transparent:_.transparent,text_color:_.text_color,size:parseInt(_.size),rotate:parseInt(_.rotate),offset_x:parseInt(_.offset_x),offset_y:parseInt(_.offset_y),lock_size:!1});a(s)}).catch(i=>{console.error("Error mapApiService:getMapData()",i),a([])})}),getMapFloors:a=>new Promise((q,i)=>{e("/v1/mapit2/floors?limit=100&offset=0").then(async s=>{var u,_;const c=[];if((u=s==null?void 0:s.data)!=null&&u.items){const A=async v=>{try{return(await fetch(v,{method:"HEAD"})).ok}catch{try{return(await fetch(v,{method:"GET"})).ok}catch{return!1}}};for(const v of(_=s==null?void 0:s.data)==null?void 0:_.items)await A(T2(v.svg,a))&&c.push({id:v.id,name:v.title,svgUrl:v.svg})}q(c)}).catch(s=>{console.error("Error mapApiService:getMapFloors()",s),q([])})}),getMapKiosks:()=>new Promise((a,q)=>{e("/v1/display_kiosks?limit=100&page=1&display_type_id=1").then(i=>{var c,u;const s=[];if((c=i==null?void 0:i.data)!=null&&c.items)for(const _ of(u=i==null?void 0:i.data)==null?void 0:u.items)s.push({id:_.id,name:_.title});a(s)}).catch(i=>{console.error("Error mapApiService:getMapKiosks()",i),a([])})}),getMapSettings:()=>new Promise((a,q)=>{e("/v1/mapit2/settings").then(i=>{var _,A;const s={...d4};let c=P1;(_=i==null?void 0:i.data)!=null&&_.settings&&(c=(A=i==null?void 0:i.data)==null?void 0:A.settings,c.MAP_BACKGROUND_COLOR&&(s.MAP_BACKGROUND_COLOR=O1(c.MAP_BACKGROUND_COLOR)),c.STORE_DEFAULT_COLOR&&(s.STORE_DEFAULT_COLOR=O1(c.STORE_DEFAULT_COLOR)),c.ACCENT_COLOR&&(s.ACCENT_COLOR=O1(c.ACCENT_COLOR)),c.BASE_COLOR&&(s.BASE_COLOR=O1(c.BASE_COLOR)),c.BOUNDARY_COLOR&&(s.BOUNDARY_COLOR=O1(c.BOUNDARY_COLOR)),c.BASE_COLOR&&(s.BASE_COLOR=O1(c.BASE_COLOR)),c.WALL_COLOR&&(s.WALL_COLOR=O1(c.WALL_COLOR)),c.STORE_TEXT_COLOR&&(s.STORE_TEXT_COLOR=O1(c.STORE_TEXT_COLOR)),c.OVERLAY_COLOR&&(s.OVERLAY_COLOR=O1(c.OVERLAY_COLOR)),c.BOUNDARY_THICKNESS&&(s.BOUNDARY_THICKNESS=c.BOUNDARY_THICKNESS),c.WALL_THICKNESS&&(s.WALL_THICKNESS=c.WALL_THICKNESS),c.OVERLAY_OPACITY&&(s.OVERLAY_OPACITY=c.OVERLAY_OPACITY),c.KIOSK_SIZE&&(s.KIOSK_SIZE=c.KIOSK_SIZE),c.ZOOM_STEP&&(s.ZOOM_STEP=c.ZOOM_STEP),c.SELECTED_ZOOM_LIMIT&&(s.SELECTED_ZOOM_LIMIT=c.SELECTED_ZOOM_LIMIT),s.CAMERA.minDistance=c.CAMERA_MIN_DISTANCE?c.CAMERA_MIN_DISTANCE:s.CAMERA.minDistance,s.CAMERA.maxDistance=c.CAMERA_MAX_DISTANCE?c.CAMERA_MAX_DISTANCE:s.CAMERA.maxDistance,s.CAMERA={...s.CAMERA});const u={...s};delete u.DEVICE,delete u.ROLE,delete u.PARKING_LINE_COLOR,delete u.PARKING_ICON_COLOR,delete u.PARKING_LANE_COLOR,delete u.GREEN_AREA_COLOR,delete u.PARKING_LINE_THICKNESS,a({apiResponse:c,responseConfig:u})}).catch(i=>{console.error("Error mapApiService:getMapSettings()",i);const{DEVICE:s,ROLE:c,PARKING_LINE_COLOR:u,PARKING_ICON_COLOR:_,PARKING_LANE_COLOR:A,GREEN_AREA_COLOR:v,PARKING_LINE_THICKNESS:b,...h}=d4;a({apiResponse:P1,responseConfig:h})})}),getMapResponsiveSettings:()=>new Promise((a,q)=>{e("/v1/mapit2/responsive").then(i=>{const s={...d4.CAMERA_CONTROLS_STATES};if(i.data)if(Array.isArray(i.data)){s.perFloor=s.perFloor||{};for(const c of i.data)s.perFloor[c.floor_id]=c,s.perFloor[c.floor_id].display_app=c.display_app||JSON.parse(JSON.stringify(a4)),s.perFloor[c.floor_id].desktop=c.desktop||JSON.parse(JSON.stringify(a4)),s.perFloor[c.floor_id].tablet=c.tablet||JSON.parse(JSON.stringify(a4)),s.perFloor[c.floor_id].mobile=c.mobile||JSON.parse(JSON.stringify(a4))}else i.data.display_app&&(s.display_app=i.data.display_app),i.data.desktop&&(s.desktop=i.data.desktop),i.data.tablet&&(s.tablet=i.data.tablet),i.data.mobile&&(s.mobile=i.data.mobile),i.data.perFloor&&(s.perFloor=i.data.perFloor);a(s)}).catch(i=>{console.error("Error mapApiService:getMapResponsiveSettings()",i),a({...d4.CAMERA_CONTROLS_STATES})})})}),ct=e=>({getAllRetailers:()=>new Promise((r,n)=>{let o=[];const a=(q=1)=>{e(`/v1/retailers?limit=100&page=${q}`).then(i=>{var s,c;if((s=i==null?void 0:i.data)!=null&&s.items)if(o=[...o,...i.data.items],i.data.count>o.length)a(q+1);else{const u=[],_=[];for(const A of o){const v={id:A.id,location:A.location,retailer_phone:A.retailer_phone,map_obj_name:""};A.global_retailer?(v.global_retailer_id=A.global_retailer.id,v.retail_name=A.global_retailer.name,v.slug=A.global_retailer.slug,v.retailer_description=A.global_retailer.description,v.logo=((c=A.global_retailer.media)==null?void 0:c.url)||""):(v.global_retailer_id=A.global_retailer_id,v.retail_name=A.name,v.slug=A.slug,v.retailer_description=A.description,v.logo=A.media.url||""),u.push(v),_.push(A.global_retailer_id)}u.sort((A,v)=>{const b=(A.retail_name||"").toLowerCase(),h=(v.retail_name||"").toLowerCase();return b<h?-1:b>h?1:0}),r({retailers:u,globalRetailerIds:_})}}).catch(i=>{console.error("Error fetching retailers",i),r({retailers:[],globalRetailerIds:[]})})};a()}),getRetailer:r=>new Promise((n,o)=>{e(`/v1/retailers/${r}`).then(a=>{var q;if((q=a==null?void 0:a.data)!=null&&q.id){const i=a==null?void 0:a.data,s={id:i.id,global_retailer_id:i.global_retailer_id,retail_name:i.name,slug:i.slug,retailer_description:i.description,location:i.location,retailer_phone:i.retailer_phone,logo:i.media.url||"",map_obj_name:"",opening_hours:i.opening_hours};n(s)}}).catch(a=>{console.error("Error fetching retailers",a),o(a)})})}),ut=(e,t)=>{const l={baseURL:e,timeout:3e4,withCredentials:!0,headers:{"Content-Type":"application/json"},params:t.ROLE==="PORTAL"||t.ROLE==="PORTAL_RESPONSIVE"?{center_id:t.CENTER_ID}:void 0},r=M1.create(l);r.interceptors.response.use(a=>a,a=>{console.error("Axios Interceptor Error: ",a.response)});const n=st(r),o=ct(r);return{mapApiService:n,retailersService:o}},G9=C.createContext(void 0),mt=({children:e,initialData:t,mapApiResponseRef:l,cachedMapApiResponse:r,onNewMapApiResponse:n=void 0,rerenderMapOnNewMapApiResponse:o=!1})=>{const a=t.webApiBaseUrl,[q,i]=C.useState(!1),[s,c]=C.useState(s3({...d4,...t.config})),[u,_]=C.useState({retailers:[],globalRetailerIds:[],floors:[],kiosks:[],map_objs:[],mapSettings:{apiResponse:P1,responseConfig:{}},responsiveSettings:d4.CAMERA_CONTROLS_STATES});l&&(l.current=u),C.useEffect(()=>{r&&_(r)},[r]);const A=r!=null,[v,b]=C.useState(new Map),[h,d]=C.useState([]),[y,f]=C.useState({}),[m,p]=C.useState({}),[E,S]=C.useState({}),[L,B]=C.useState([]),[V,e1]=C.useState({}),[X,r1]=C.useState(j7()),[K,l1]=C.useState(ce),[$,J]=C.useState(null),[j,q1]=C.useState(),G=C.useMemo(()=>ut(a,s),[a,s.CENTER_ID]);C.useEffect(()=>{c(H=>s3({...H,...t.config}))},[t.config,t.config.CENTER_ID]);const P=C.useCallback(()=>{s.CENTER_ID>0&&Promise.all([G.retailersService.getAllRetailers(),G.mapApiService.getMapData(),G.mapApiService.getMapFloors(s),G.mapApiService.getMapKiosks(),G.mapApiService.getMapSettings(),G.mapApiService.getMapResponsiveSettings()]).then(([{retailers:H,globalRetailerIds:O},R,g,x,z,Z])=>{const k=R.map(T=>T.map_obj_name);R=R.filter((T,n1)=>k.indexOf(T.map_obj_name)===n1);const t1={retailers:H,globalRetailerIds:O,map_objs:R,floors:g,kiosks:x,mapSettings:z,responsiveSettings:Z};(o||!A)&&_(t1),n&&n(t1)}).catch(H=>{console.error("Error: MapBoxContextProvider fetching api data:",H),i(!0)})},[G,s.CENTER_ID,o,A,n]);C.useEffect(()=>{c(H=>s3({...H,...u.mapSettings.responseConfig,CAMERA_CONTROLS_STATES:u.responsiveSettings,CENTER_ID:t.config.CENTER_ID||H.CENTER_ID,KIOSK_ID:t.config.KIOSK_ID||H.KIOSK_ID,SELECTED_RETAILER_ID:t.config.SELECTED_RETAILER_ID||H.SELECTED_RETAILER_ID})),p(u.retailers.reduce((H,O)=>(H[O.id]=O,H),{})),S(u.kiosks.reduce((H,O)=>{H[O.id]=O;const R=u.map_objs.find(g=>g.kiosk_id===O.id);return R&&(H[O.id].map_obj_name=R.map_obj_name),H},{})),f(u.map_objs.reduce((H,O)=>(H[O.map_obj_name]={...y2,...O},H),{})),B(u.floors.map(H=>{const O=new Q.Group;return O.scale.y*=-1,O.lookAt(0,1,0),{...H,objsGroup:O,interactiveObjs:[],escalatorsObjs:[],escalatorsNodes:{},escalatorMeshes:[],route_points:[],route_tube:void 0,route_texture:null,routeMeshes:[],route_active:!1}})),i(!0)},[u]),C.useEffect(()=>{A||i(!1),P()},[P,A]);const W={refetchMapData:P,apiServices:G,initialFloorsDataIsLoaded:q,setInitialFloorsDataIsLoaded:i,mapConfig:s,setMapConfig:c,mapApiResponse:u,setMapApiResponse:_,meshByObjectId:v,setMeshByObjectId:b,allMapObjects:h,setAllMapObjects:d,allIndexedMapObjects:y,setAllIndexedMapObjects:f,allIndexedRetailers:m,setAllIndexedRetailers:p,indexedKiosks:E,setIndexedKiosks:S,floorsData:L,setFloorsData:B,allNodesFloor:V,setAllNodesFloor:e1,pathFinderGraph:X,setPathFinderGraph:r1,ngraphPath:K,setNgraphPath:l1,meshObject:$,setMeshObject:J,cameraLength:j,setCameraLength:q1};return q?L.length<=0?M.jsx("div",{className:"messageStyle",children:"Map doesn't have any floors"}):M.jsx(G9.Provider,{value:W,children:e}):M.jsx("div",{className:"messageStyle",children:"Map loading, please wait..."})};function Q1(){const e=C.useContext(G9);if(e===void 0)throw new Error("useMapBoxContext must be used within MapBoxContextProvider");return e}const dt=(e,t)=>{const l=e[0].index!==null,r=new Set(Object.keys(e[0].attributes)),n=new Set(Object.keys(e[0].morphAttributes)),o={},a={},q=e[0].morphTargetsRelative,i=new Q.BufferGeometry;if(e.forEach((s,c)=>{let u=0;if(l!==(s.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let _ in s.attributes){if(!r.has(_))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+'. All geometries must have compatible attributes; make sure "'+_+'" attribute exists among all geometries, or in none of them.'),null;o[_]===void 0&&(o[_]=[]),o[_].push(s.attributes[_]),u++}if(u!==r.size)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". Make sure all geometries have the same number of attributes."),null;if(q!==s.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let _ in s.morphAttributes){if(!n.has(_))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". .morphAttributes must be consistent throughout all geometries."),null;a[_]===void 0&&(a[_]=[]),a[_].push(s.morphAttributes[_])}i.userData.mergedUserData=i.userData.mergedUserData||[],i.userData.mergedUserData.push(s.userData)}),l){let s=0;const c=[];e.forEach(u=>{const _=u.index;for(let A=0;A<_.count;++A)c.push(_.getX(A)+s);s+=u.attributes.position.count}),i.setIndex(c)}for(let s in o){const c=o8(o[s]);if(!c)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+s+" attribute."),null;i.setAttribute(s,c)}for(let s in a){const c=a[s][0].length;if(c===0)break;i.morphAttributes=i.morphAttributes||{},i.morphAttributes[s]=[];for(let u=0;u<c;++u){const _=[];for(let v=0;v<a[s].length;++v)_.push(a[s][v][u]);const A=o8(_);if(!A)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+s+" morphAttribute."),null;i.morphAttributes[s].push(A)}}return i},o8=e=>{let t,l,r,n=0;if(e.forEach(o=>{if(t===void 0&&(t=o.array.constructor),t!==o.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(l===void 0&&(l=o.itemSize),l!==o.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(r===void 0&&(r=o.normalized),r!==o.normalized)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;n+=o.array.length}),t&&l){const o=new t(n);let a=0;return e.forEach(q=>{o.set(q.array,a),a+=q.array.length}),new Q.BufferAttribute(o,l,r)}};class k9 extends Q.ExtrudeGeometry{constructor(t,l={}){const{bevelEnabled:r=!1,bevelSize:n=8,bevelThickness:o=10,font:a,height:q=50,size:i=100,lineHeight:s=1,letterSpacing:c=0,...u}=l;if(a===void 0)super();else{const _=a.generateShapes(t,i,{lineHeight:s,letterSpacing:c});super(_,{...u,bevelEnabled:r,bevelSize:n,bevelThickness:o,depth:q})}this.type="TextGeometry"}}function ft(e,t=3,l=0){let r=new Q.Shape,n=new Q.Vector3(e.v1.x,e.v1.y,0),o=new Q.Vector3(e.v2.x,e.v2.y,0),a=o.clone().sub(n).normalize().multiplyScalar(-t*l),q=n.clone().add(a);a=n.clone().sub(o).normalize().multiplyScalar(-t*l);let i=o.clone().add(a),s=n.distanceTo(i);if(s===0)return r;let c={x:q.x-(o.y-q.y)*t/s,y:q.y-(q.x-o.x)*t/s},u={x:q.x+(o.y-q.y)*t/s,y:q.y+(q.x-o.x)*t/s},_={x:i.x+(n.y-i.y)*t/s,y:i.y+(i.x-n.x)*t/s},A={x:i.x-(n.y-i.y)*t/s,y:i.y-(i.x-n.x)*t/s};return r.moveTo(c.x,c.y),r.lineTo(u.x,u.y),r.lineTo(A.x,A.y),r.lineTo(_.x,_.y),r}function xt(e,t,l,r=0,n){const o="MaterialAndGeometry",a=[];if(e.subPaths.forEach(q=>{q.curves.forEach(i=>{if(i.type==="LineCurve"){const s=ft(i,t,r);a.push(new Q.ExtrudeGeometry(s,{depth:-l,bevelEnabled:!1}))}else n&&console.warn(o+'"%s" found in line layer. Check layer "%s"',i.type,n)})}),a.length===1)return a[0];if(a.length>1)return dt(a)??void 0;n&&console.warn(o+'Unneccessary line exists "%s"',n)}const Z1={Kiosk:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 443.83 787.21">
11
+ `+o)}}catch{}}throw r}}_request(t,l){typeof t=="string"?(l=l||{},l.url=t):l=t||{},l=A4(this.defaults,l);const{transitional:r,paramsSerializer:n,headers:o}=l;r!==void 0&&A2.assertOptions(r,{silentJSONParsing:W1.transitional(W1.boolean),forcedJSONParsing:W1.transitional(W1.boolean),clarifyTimeoutError:W1.transitional(W1.boolean),legacyInterceptorReqResOrdering:W1.transitional(W1.boolean),advertiseZstdAcceptEncoding:W1.transitional(W1.boolean),validateStatusUndefinedResolves:W1.transitional(W1.boolean)},!1),n!=null&&(F.isFunction(n)?l.paramsSerializer={serialize:n}:A2.assertOptions(n,{encode:W1.function,serialize:W1.function},!0)),l.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?l.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:l.allowAbsoluteUrls=!0),A2.assertOptions(l,{baseUrl:W1.spelling("baseURL"),withXsrfToken:W1.spelling("withXSRFToken")},!0),l.method=(l.method||this.defaults.method||"get").toLowerCase();let a=o&&F.merge(o.common,o[l.method]);o&&F.forEach(["delete","get","head","post","put","patch","query","common"],v=>{delete o[v]}),l.headers=X1.concat(a,o);const q=[];let i=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(l)===!1)return;i=i&&b.synchronous;const h=l.transitional||c6;h&&h.legacyInterceptorReqResOrdering?q.unshift(b.fulfilled,b.rejected):q.push(b.fulfilled,b.rejected)});const s=[];this.interceptors.response.forEach(function(b){s.push(b.fulfilled,b.rejected)});let c,u=0,_;if(!i){const v=[n8.bind(this),void 0];for(v.unshift(...q),v.push(...s),_=v.length,c=Promise.resolve(l);u<_;)c=c.then(v[u++],v[u++]);return c}_=q.length;let A=l;for(;u<_;){const v=q[u++],b=q[u++];try{A=v(A)}catch(h){b.call(this,h);break}}try{c=n8.call(this,A)}catch(v){return Promise.reject(v)}for(u=0,_=s.length;u<_;)c=c.then(s[u++],s[u++]);return c}getUri(t){t=A4(this.defaults,t);const l=N9(t.baseURL,t.url,t.allowAbsoluteUrls,t);return S9(l,t.params,t.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(t){v4.prototype[t]=function(l,r){return this.request(A4(r||{},{method:t,url:l,data:r&&F.hasOwnProp(r,"data")?r.data:void 0}))}});F.forEach(["post","put","patch","query"],function(t){function l(r){return function(o,a,q){return this.request(A4(q||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}v4.prototype[t]=l(),t!=="query"&&(v4.prototype[t+"Form"]=l(!0))});let at=class F9{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let l;this.promise=new Promise(function(o){l=o});const r=this;this.promise.then(n=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](n);r._listeners=null}),this.promise.then=n=>{let o;const a=new Promise(q=>{r.subscribe(q),o=q}).then(n);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,q){r.reason||(r.reason=new a2(o,a,q),l(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const l=this._listeners.indexOf(t);l!==-1&&this._listeners.splice(l,1)}toAbortSignal(){const t=new AbortController,l=r=>{t.abort(r)};return this.subscribe(l),t.signal.unsubscribe=()=>this.unsubscribe(l),t.signal}static source(){let t;return{token:new F9(function(n){t=n}),cancel:t}}};function it(e){return function(l){return e.apply(null,l)}}function qt(e){return F.isObject(e)&&e.isAxiosError===!0}const B3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(B3).forEach(([e,t])=>{B3[t]=e});function B9(e){const t=new v4(e),l=f9(v4.prototype.request,t);return F.extend(l,v4.prototype,t,{allOwnKeys:!0}),F.extend(l,t,null,{allOwnKeys:!0}),l.create=function(n){return B9(A4(e,n))},l}const M1=B9(o2);M1.Axios=v4;M1.CanceledError=a2;M1.CancelToken=at;M1.isCancel=w9;M1.VERSION=m6;M1.toFormData=J2;M1.AxiosError=u1;M1.Cancel=M1.CanceledError;M1.all=function(t){return Promise.all(t)};M1.spread=it;M1.isAxiosError=qt;M1.mergeConfig=A4;M1.AxiosHeaders=X1;M1.formToJSON=e=>z9(F.isHTMLForm(e)?new FormData(e):e);M1.getAdapter=P9.getAdapter;M1.HttpStatusCode=B3;M1.default=M1;const{Axios:hq,AxiosError:pq,CanceledError:gq,isCancel:bq,CancelToken:_q,VERSION:vq,all:Cq,Cancel:yq,isAxiosError:Iq,spread:Eq,toFormData:Aq,AxiosHeaders:Rq,HttpStatusCode:Sq,formToJSON:Oq,getAdapter:zq,mergeConfig:wq,create:Tq}=M1,st=e=>({getMapData:()=>new Promise((a,q)=>{e("/v1/mapit2/data").then(i=>{var c,u;const s=[];if((c=i==null?void 0:i.data)!=null&&c.items)for(const _ of(u=i==null?void 0:i.data)==null?void 0:u.items)s.push({id:_.id,retailer_id:_.retailer_id,kiosk_id:_.kiosk_id,map_obj_name:_.map_obj_name,obj_type:_.obj_type,layer_type:_.layer_type,value:_.value,custom_text:_.custom_text,custom_image:_.custom_image,bg_color:_.bg_color,transparent:_.transparent,text_color:_.text_color,size:parseInt(_.size),rotate:parseInt(_.rotate),offset_x:parseInt(_.offset_x),offset_y:parseInt(_.offset_y),lock_size:!1});a(s)}).catch(i=>{console.error("Error mapApiService:getMapData()",i),a([])})}),getMapFloors:a=>new Promise((q,i)=>{e("/v1/mapit2/floors?limit=100&offset=0").then(async s=>{var u,_;const c=[];if((u=s==null?void 0:s.data)!=null&&u.items){const A=async v=>{try{return(await fetch(v,{method:"HEAD"})).ok}catch{try{return(await fetch(v,{method:"GET"})).ok}catch{return!1}}};for(const v of(_=s==null?void 0:s.data)==null?void 0:_.items)await A(T2(v.svg,a))&&c.push({id:v.id,name:v.title,svgUrl:v.svg})}q(c)}).catch(s=>{console.error("Error mapApiService:getMapFloors()",s),q([])})}),getMapKiosks:()=>new Promise((a,q)=>{e("/v1/display_kiosks?limit=100&page=1&display_type_id=1").then(i=>{var c,u;const s=[];if((c=i==null?void 0:i.data)!=null&&c.items)for(const _ of(u=i==null?void 0:i.data)==null?void 0:u.items)s.push({id:_.id,name:_.title});a(s)}).catch(i=>{console.error("Error mapApiService:getMapKiosks()",i),a([])})}),getMapSettings:()=>new Promise((a,q)=>{e("/v1/mapit2/settings").then(i=>{var _,A;const s={...d4};let c=P1;(_=i==null?void 0:i.data)!=null&&_.settings&&(c=(A=i==null?void 0:i.data)==null?void 0:A.settings,c.MAP_BACKGROUND_COLOR&&(s.MAP_BACKGROUND_COLOR=O1(c.MAP_BACKGROUND_COLOR)),c.STORE_DEFAULT_COLOR&&(s.STORE_DEFAULT_COLOR=O1(c.STORE_DEFAULT_COLOR)),c.ACCENT_COLOR&&(s.ACCENT_COLOR=O1(c.ACCENT_COLOR)),c.BASE_COLOR&&(s.BASE_COLOR=O1(c.BASE_COLOR)),c.BOUNDARY_COLOR&&(s.BOUNDARY_COLOR=O1(c.BOUNDARY_COLOR)),c.BASE_COLOR&&(s.BASE_COLOR=O1(c.BASE_COLOR)),c.WALL_COLOR&&(s.WALL_COLOR=O1(c.WALL_COLOR)),c.STORE_TEXT_COLOR&&(s.STORE_TEXT_COLOR=O1(c.STORE_TEXT_COLOR)),c.OVERLAY_COLOR&&(s.OVERLAY_COLOR=O1(c.OVERLAY_COLOR)),c.BOUNDARY_THICKNESS&&(s.BOUNDARY_THICKNESS=c.BOUNDARY_THICKNESS),c.WALL_THICKNESS&&(s.WALL_THICKNESS=c.WALL_THICKNESS),c.OVERLAY_OPACITY&&(s.OVERLAY_OPACITY=c.OVERLAY_OPACITY),c.KIOSK_SIZE&&(s.KIOSK_SIZE=c.KIOSK_SIZE),c.ZOOM_STEP&&(s.ZOOM_STEP=c.ZOOM_STEP),c.SELECTED_ZOOM_LIMIT&&(s.SELECTED_ZOOM_LIMIT=c.SELECTED_ZOOM_LIMIT),s.CAMERA.minDistance=c.CAMERA_MIN_DISTANCE?c.CAMERA_MIN_DISTANCE:s.CAMERA.minDistance,s.CAMERA.maxDistance=c.CAMERA_MAX_DISTANCE?c.CAMERA_MAX_DISTANCE:s.CAMERA.maxDistance,s.CAMERA={...s.CAMERA});const u={...s};delete u.DEVICE,delete u.ROLE,delete u.PARKING_LINE_COLOR,delete u.PARKING_ICON_COLOR,delete u.PARKING_LANE_COLOR,delete u.GREEN_AREA_COLOR,delete u.PARKING_LINE_THICKNESS,a({apiResponse:c,responseConfig:u})}).catch(i=>{console.error("Error mapApiService:getMapSettings()",i);const{DEVICE:s,ROLE:c,PARKING_LINE_COLOR:u,PARKING_ICON_COLOR:_,PARKING_LANE_COLOR:A,GREEN_AREA_COLOR:v,PARKING_LINE_THICKNESS:b,...h}=d4;a({apiResponse:P1,responseConfig:h})})}),getMapResponsiveSettings:()=>new Promise((a,q)=>{e("/v1/mapit2/responsive").then(i=>{const s={...d4.CAMERA_CONTROLS_STATES};if(i.data)if(Array.isArray(i.data)){s.perFloor=s.perFloor||{};for(const c of i.data)s.perFloor[c.floor_id]=c,s.perFloor[c.floor_id].display_app=c.display_app||JSON.parse(JSON.stringify(a4)),s.perFloor[c.floor_id].desktop=c.desktop||JSON.parse(JSON.stringify(a4)),s.perFloor[c.floor_id].tablet=c.tablet||JSON.parse(JSON.stringify(a4)),s.perFloor[c.floor_id].mobile=c.mobile||JSON.parse(JSON.stringify(a4))}else i.data.display_app&&(s.display_app=i.data.display_app),i.data.desktop&&(s.desktop=i.data.desktop),i.data.tablet&&(s.tablet=i.data.tablet),i.data.mobile&&(s.mobile=i.data.mobile),i.data.perFloor&&(s.perFloor=i.data.perFloor);a(s)}).catch(i=>{console.error("Error mapApiService:getMapResponsiveSettings()",i),a({...d4.CAMERA_CONTROLS_STATES})})})}),ct=e=>({getAllRetailers:()=>new Promise((r,n)=>{let o=[];const a=(q=1)=>{e(`/v1/retailers?limit=100&page=${q}`).then(i=>{var s,c;if((s=i==null?void 0:i.data)!=null&&s.items)if(o=[...o,...i.data.items],i.data.count>o.length)a(q+1);else{const u=[],_=[];for(const A of o){const v={id:A.id,location:A.location,retailer_phone:A.retailer_phone,map_obj_name:""};A.global_retailer?(v.global_retailer_id=A.global_retailer.id,v.retail_name=A.global_retailer.name,v.slug=A.global_retailer.slug,v.retailer_description=A.global_retailer.description,v.logo=((c=A.global_retailer.media)==null?void 0:c.url)||""):(v.global_retailer_id=A.global_retailer_id,v.retail_name=A.name,v.slug=A.slug,v.retailer_description=A.description,v.logo=A.media.url||""),u.push(v),_.push(A.global_retailer_id)}u.sort((A,v)=>{const b=(A.retail_name||"").toLowerCase(),h=(v.retail_name||"").toLowerCase();return b<h?-1:b>h?1:0}),r({retailers:u,globalRetailerIds:_})}}).catch(i=>{console.error("Error fetching retailers",i),r({retailers:[],globalRetailerIds:[]})})};a()}),getRetailer:r=>new Promise((n,o)=>{e(`/v1/retailers/${r}`).then(a=>{var q;if((q=a==null?void 0:a.data)!=null&&q.id){const i=a==null?void 0:a.data,s={id:i.id,global_retailer_id:i.global_retailer_id,retail_name:i.name,slug:i.slug,retailer_description:i.description,location:i.location,retailer_phone:i.retailer_phone,logo:i.media.url||"",map_obj_name:"",opening_hours:i.opening_hours};n(s)}}).catch(a=>{console.error("Error fetching retailers",a),o(a)})})}),ut=(e,t)=>{const l={baseURL:e,timeout:3e4,withCredentials:!0,headers:{"Content-Type":"application/json"},params:t.ROLE==="PORTAL"||t.ROLE==="PORTAL_RESPONSIVE"?{center_id:t.CENTER_ID}:void 0},r=M1.create(l);r.interceptors.response.use(a=>a,a=>{console.error("Axios Interceptor Error: ",a.response)});const n=st(r),o=ct(r);return{mapApiService:n,retailersService:o}},G9=C.createContext(void 0),mt=({children:e,initialData:t,mapApiResponseRef:l,cachedMapApiResponse:r,onNewMapApiResponse:n=void 0,rerenderMapOnNewMapApiResponse:o=!1})=>{const a=t.webApiBaseUrl,[q,i]=C.useState(!1),[s,c]=C.useState(s3({...d4,...t.config})),[u,_]=C.useState({retailers:[],globalRetailerIds:[],floors:[],kiosks:[],map_objs:[],mapSettings:{apiResponse:P1,responseConfig:{}},responsiveSettings:d4.CAMERA_CONTROLS_STATES});l&&(l.current=u),C.useEffect(()=>{r&&_(r)},[r]);const A=r!=null,[v,b]=C.useState(new Map),[h,d]=C.useState([]),[y,f]=C.useState({}),[m,p]=C.useState({}),[E,S]=C.useState({}),[L,B]=C.useState([]),[V,e1]=C.useState({}),[X,r1]=C.useState(j7()),[K,l1]=C.useState(ce),[$,J]=C.useState(null),[j,q1]=C.useState(),G=C.useMemo(()=>ut(a,s),[a,s.CENTER_ID]);C.useEffect(()=>{c(H=>s3({...H,...t.config}))},[t.config,t.config.CENTER_ID]);const P=C.useCallback(()=>{s.CENTER_ID>0&&Promise.all([G.retailersService.getAllRetailers(),G.mapApiService.getMapData(),G.mapApiService.getMapFloors(s),G.mapApiService.getMapKiosks(),G.mapApiService.getMapSettings(),G.mapApiService.getMapResponsiveSettings()]).then(([{retailers:H,globalRetailerIds:O},R,g,x,z,Z])=>{const k=R.map(T=>T.map_obj_name);R=R.filter((T,n1)=>k.indexOf(T.map_obj_name)===n1);const t1={retailers:H,globalRetailerIds:O,map_objs:R,floors:g,kiosks:x,mapSettings:z,responsiveSettings:Z};(o||!A)&&_(t1),n&&n(t1)}).catch(H=>{console.error("Error: MapBoxContextProvider fetching api data:",H),i(!0)})},[G,s.CENTER_ID,o,A,n]);C.useEffect(()=>{c(H=>s3({...H,...u.mapSettings.responseConfig,CAMERA_CONTROLS_STATES:u.responsiveSettings,CENTER_ID:t.config.CENTER_ID||H.CENTER_ID,KIOSK_ID:t.config.KIOSK_ID||H.KIOSK_ID,SELECTED_RETAILER_ID:t.config.SELECTED_RETAILER_ID||H.SELECTED_RETAILER_ID})),p(u.retailers.reduce((H,O)=>(H[O.id]=O,H),{})),S(u.kiosks.reduce((H,O)=>{H[O.id]=O;const R=u.map_objs.find(g=>g.kiosk_id===O.id);return R&&(H[O.id].map_obj_name=R.map_obj_name),H},{})),f(u.map_objs.reduce((H,O)=>(H[O.map_obj_name]={...y2,...O},H),{})),B(u.floors.map(H=>{const O=new Q.Group;return O.scale.y*=-1,O.lookAt(0,1,0),{...H,objsGroup:O,interactiveObjs:[],escalatorsObjs:[],escalatorsNodes:{},escalatorMeshes:[],route_points:[],route_tube:void 0,route_texture:null,routeMeshes:[],route_active:!1}})),i(!0)},[u]),C.useEffect(()=>{A||i(!1),P()},[P,A]);const W={refetchMapData:P,apiServices:G,initialFloorsDataIsLoaded:q,setInitialFloorsDataIsLoaded:i,mapConfig:s,setMapConfig:c,mapApiResponse:u,setMapApiResponse:_,meshByObjectId:v,setMeshByObjectId:b,allMapObjects:h,setAllMapObjects:d,allIndexedMapObjects:y,setAllIndexedMapObjects:f,allIndexedRetailers:m,setAllIndexedRetailers:p,indexedKiosks:E,setIndexedKiosks:S,floorsData:L,setFloorsData:B,allNodesFloor:V,setAllNodesFloor:e1,pathFinderGraph:X,setPathFinderGraph:r1,ngraphPath:K,setNgraphPath:l1,meshObject:$,setMeshObject:J,cameraLength:j,setCameraLength:q1};return q?L.length<=0?M.jsx("div",{className:"messageStyle",children:"Map doesn't have any floors"}):M.jsx(G9.Provider,{value:W,children:e}):M.jsx("div",{className:"messageStyle",children:"Map loading, please wait..."})};function Q1(){const e=C.useContext(G9);if(e===void 0)throw new Error("useMapBoxContext must be used within MapBoxContextProvider");return e}const dt=(e,t)=>{const l=e[0].index!==null,r=new Set(Object.keys(e[0].attributes)),n=new Set(Object.keys(e[0].morphAttributes)),o={},a={},q=e[0].morphTargetsRelative,i=new Q.BufferGeometry;if(e.forEach((s,c)=>{let u=0;if(l!==(s.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let _ in s.attributes){if(!r.has(_))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+'. All geometries must have compatible attributes; make sure "'+_+'" attribute exists among all geometries, or in none of them.'),null;o[_]===void 0&&(o[_]=[]),o[_].push(s.attributes[_]),u++}if(u!==r.size)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". Make sure all geometries have the same number of attributes."),null;if(q!==s.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let _ in s.morphAttributes){if(!n.has(_))return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index "+c+". .morphAttributes must be consistent throughout all geometries."),null;a[_]===void 0&&(a[_]=[]),a[_].push(s.morphAttributes[_])}i.userData.mergedUserData=i.userData.mergedUserData||[],i.userData.mergedUserData.push(s.userData)}),l){let s=0;const c=[];e.forEach(u=>{const _=u.index;for(let A=0;A<_.count;++A)c.push(_.getX(A)+s);s+=u.attributes.position.count}),i.setIndex(c)}for(let s in o){const c=o8(o[s]);if(!c)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+s+" attribute."),null;i.setAttribute(s,c)}for(let s in a){const c=a[s][0].length;if(c===0)break;i.morphAttributes=i.morphAttributes||{},i.morphAttributes[s]=[];for(let u=0;u<c;++u){const _=[];for(let v=0;v<a[s].length;++v)_.push(a[s][v][u]);const A=o8(_);if(!A)return console.error("THREE.BufferGeometryUtils: .mergeBufferGeometries() failed while trying to merge the "+s+" morphAttribute."),null;i.morphAttributes[s].push(A)}}return i},o8=e=>{let t,l,r,n=0;if(e.forEach(o=>{if(t===void 0&&(t=o.array.constructor),t!==o.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(l===void 0&&(l=o.itemSize),l!==o.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(r===void 0&&(r=o.normalized),r!==o.normalized)return console.error("THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;n+=o.array.length}),t&&l){const o=new t(n);let a=0;return e.forEach(q=>{o.set(q.array,a),a+=q.array.length}),new Q.BufferAttribute(o,l,r)}};class k9 extends Q.ExtrudeGeometry{constructor(t,l={}){const{bevelEnabled:r=!1,bevelSize:n=8,bevelThickness:o=10,font:a,height:q=50,size:i=100,lineHeight:s=1,letterSpacing:c=0,...u}=l;if(a===void 0)super();else{const _=a.generateShapes(t,i,{lineHeight:s,letterSpacing:c});super(_,{...u,bevelEnabled:r,bevelSize:n,bevelThickness:o,depth:q})}this.type="TextGeometry"}}function ft(e,t=3,l=0){let r=new Q.Shape,n=new Q.Vector3(e.v1.x,e.v1.y,0),o=new Q.Vector3(e.v2.x,e.v2.y,0),a=o.clone().sub(n).normalize().multiplyScalar(-t*l),q=n.clone().add(a);a=n.clone().sub(o).normalize().multiplyScalar(-t*l);let i=o.clone().add(a),s=n.distanceTo(i);if(s===0)return r;let c={x:q.x-(o.y-q.y)*t/s,y:q.y-(q.x-o.x)*t/s},u={x:q.x+(o.y-q.y)*t/s,y:q.y+(q.x-o.x)*t/s},_={x:i.x+(n.y-i.y)*t/s,y:i.y+(i.x-n.x)*t/s},A={x:i.x-(n.y-i.y)*t/s,y:i.y-(i.x-n.x)*t/s};return r.moveTo(c.x,c.y),r.lineTo(u.x,u.y),r.lineTo(A.x,A.y),r.lineTo(_.x,_.y),r}function xt(e,t,l,r=0,n){const o="MaterialAndGeometry",a=[];if(e.subPaths.forEach(q=>{q.curves.forEach(i=>{if(i.type==="LineCurve"){const s=ft(i,t,r);a.push(new Q.ExtrudeGeometry(s,{depth:-l,bevelEnabled:!1}))}else n&&console.warn(o+'"%s" found in line layer. Check layer "%s"',i.type,n)})}),a.length===1)return a[0];if(a.length>1)return dt(a)??void 0;n&&console.warn(o+'Unneccessary line exists "%s"',n)}const Z1={Kiosk:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 443.83 787.21">
12
12
  <path fill="#444444" d="M451,587.7V8.14H7.14V589.5H111.43V730.89H71.27L38.59,763.58v31.78H416.36V764.93l-34.05-34H345.78V587.7ZM396.91,71.23v452.7H59.85V71.23Z" transform="translate(-7.14 -8.14)" />
13
13
  </svg>`,Escalator:`<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 576 445.3">
14
14
  <path fill="#444444" d="M243.4,75.9c21.2,0,38.1-16.8,38.1-38S264.6,0,243.4,0c-21.2,0-38.1,16.8-38.1,38S222.1,75.9,243.4,75.9z M508.5,41.2h-88.7 c-18.5,0-41.9,7.6-56.1,21.7l-82.2,81.9V121c0-51-75.7-50.4-75.7,0v98.2l-71.3,71c-6.5,6.5-7.6,7.1-20.7,7.1H70.2 C26.1,297.2,0,336.8,0,369.9c0,33.6,26.1,75.4,74,75.4h77.9c18.5,0,40.8-7.1,58.8-24.4l228.1-226.7c4.9-4.3,7.6-5.4,15.8-5.4h56.1 c27.2,0,65.3-30.4,65.3-74.8C576.5,70.5,537.9,41.2,508.5,41.2z M504.7,150.8h-47.9c-20.1,0-29.4,2.7-41.4,14.7L185.7,394.3 c-9.3,9.2-21.2,13-36.5,13H73.5c-19.6,0-36.5-16.3-36.5-38c0-21.7,16.3-33.6,33.2-33.6H122c15.2,0,25-4.3,33.7-13L389.3,90 c9.8-9.8,19.1-10.9,35.4-10.9h80c19.6,0,32.7,21.7,32.7,34.7C537.9,126.4,528.6,150.8,504.7,150.8z" />
@@ -71,47 +71,47 @@ is considered to be not a multigraph by default (each edge is unique).`),e.multi
71
71
  </svg>`,WheelChair:`<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 432 492.2">
72
72
  <path fill="#444444" d="M134.7,80.1l9.5,103h104.6v33.3H146.6l3.2,30.9h147.4l66.6,157l56.3-23.8l11.9,27l-84,36.4l-69.7-163.3H118.9l-19-221.9 c-3.2-5.5-4.7-11.9-4.7-18.2C95.1,18.2,112.5,0,134.7,0c22.2,0,40.4,18.2,40.4,40.4C175.2,61.8,156.9,80.1,134.7,80.1L134.7,80.1z" />
73
73
  <path fill="#444444" d="M306.7,397.1c-25.3,56.3-81.6,95.1-146.6,95.1C72.1,492.2,0,420.9,0,332.1C0,268.7,37.2,214,91.1,187.9l3.2,36.5 c-36.5,22.2-61,61.8-61,107.8c0,69.8,57.1,126.8,126.8,126.8c65,0,118.1-48.3,126-110.2L306.7,397.1"/>
74
- </svg>`},i2=[{name:"ATM",type:"atm",svgCode:Z1.ATM},{name:"Management",type:"management",svgCode:Z1.Management},{name:"Kids Area",type:"playarea",svgCode:Z1.PlayArea},{name:"Restroom",type:"restroom",svgCode:Z1.RestRoom},{name:"Family Restroom",type:"family-restroom",svgCode:Z1.FamilyRestRoom},{name:"Elevator",type:"elevator",svgCode:Z1.Elevator},{name:"Security",type:"security",svgCode:Z1.Security},{name:"Escalator",type:"escalator",svgCode:Z1.Escalator},{name:"Child Stroller",type:"child-stroller",svgCode:Z1.ChildStroller},{name:"Vending Machine",type:"vending-machine",svgCode:Z1.VendingMachine},{name:"Stairs",type:"stairs",svgCode:Z1.Stairs},{name:"Charging Station",type:"charging-station",svgCode:Z1.ChargingStation},{name:"Wheelchair",type:"wheelchair",svgCode:Z1.WheelChair}],a8={"route-path":0,escalator:0,underlay:0,overlay:1,"building-base":1,base:2,"green-area":2,"parking-lane":2,store:3,"big-store":4,kiosk:5,wall:6,"parking-line":6,"parking-icon":7,"outer-wall":7,boundary:8,amenity:9,"layer-image":10,"layer-text":11,"route-tube":12,"special-shape":13},$2=()=>{const{mapConfig:e,allMapObjects:t,allIndexedMapObjects:l,allIndexedRetailers:r,floorsData:n}=Q1(),o=C.useCallback(s=>s!=null&&a8[s]!==void 0?a8[s]:0,[]),a=C.useCallback((s,c,u,_)=>{const A={color:u instanceof Q.Color?u:O1(u),side:Q.DoubleSide,transparent:!1,depthWrite:!0,depthTest:!0,opacity:1};(e.STYLE==="2D"||s==="base"||s==null)&&s!=="boundary"&&(A.depthWrite=!1,A.depthTest=!1),s==="overlay"&&(A.color=e.OVERLAY_COLOR,A.opacity=e.OVERLAY_OPACITY),s&&["store","big-store","kiosk"].includes(s)&&e.ROLE!=="PORTAL"&&l[c]&&l[c].transparent&&(A.opacity=0);var v=new Q.MeshBasicMaterial(A);return s&&["store","big-store","kiosk","amenity"].includes(s)&&(v.colorDefault=v.color.clone(),l[c]&&l[c].bg_color!==""&&(v.color=O1(l[c].bg_color),v.colorDefault=v.color.clone()),v.active=!1),e.ROLE!=="PORTAL"&&_&&(v.opacity=0,v.transparent=!0),v.transparent=v.opacity!==1,v},[l,e.OVERLAY_COLOR,e.OVERLAY_OPACITY,e.ROLE,e.STYLE]),q=C.useCallback((s,c,u,_,A)=>{const v="MaterialAndGeometry";let b=A.toShapes(!0),h;e.STYLE==="2D"?h=["building-base"]:h=["store","big-store","base","building-base"];let d=["wall","outer-wall","boundary","parking-line"];var y;if(s&&h.includes(s))y=new Q.ExtrudeGeometry(b,{depth:-u,bevelEnabled:!1});else if(s&&d.includes(s)){let f=0;s==="boundary"&&(f=1),y=xt(A,_,u,f,c)}else{y=new Q.ShapeGeometry(b);try{y.attributes.position.count===0&&console.warn(v+'Unneccessary map shape "%s"',c,A.userData.node)}catch(f){console.error(f.message)}}return y},[e.STYLE]),i=C.useCallback((s,c,u,_,A,v,b,h,d,y)=>{var S,L;const f=a(s,c,u,_),m=q(s,c,b,h,y),p=new Q.Mesh(m??new Q.ShapeGeometry,f);p.object_id=c,p.mesh_type=s,p.floor_index=d,p.visible=A,p.position.z=v;let E="";if(["retail_logo","retail_name","retail_text","custom_text","amenity"].includes((S=l[c])==null?void 0:S.layer_type)){if(l[c].layer_type&&["retail_name","retail_logo"].includes(l[c].layer_type)&&l[c].retailer_id&&r[((L=l[c])==null?void 0:L.retailer_id)||0])E=r[l[c].retailer_id].retail_name;else if(["retail_text","custom_text"].includes(l[c].layer_type))E=l[c].custom_text,E===""&&l[c].retailer_id&&r[l[c].retailer_id]&&(E=r[l[c].retailer_id].retail_name);else if(["amenity"].includes(l[c].layer_type)&&(E=l[c].value,E)){const B=i2.find(V=>V.type===E);B&&(E=B.name)}}return p.userData.storeName=E,e.STYLE==="2D"&&(p.renderOrder=o(s),c&&c.includes("underlay")&&(p.renderOrder=o("underlay"))),n[d].objsGroup.add(p),s==="escalator"&&(n[d].escalatorsNodes[c]=null,n[d].escalatorsObjs.push(p),p.escalator_id=d+"-"+c),s&&["store","big-store","kiosk","amenity"].includes(s)&&(p.route_node_id=null,l[c]&&l[c].layer_type,t.push(c),(e.ROLE!=="PORTAL"&&s==="kiosk"||e.ROLE!=="PORTAL"&&e.ROLE!=="PORTAL_KIOSK"&&l[c]&&l[c].obj_type==="retailer"&&l[c].retailer_id!=null||e.ROLE!=="PORTAL"&&e.ROLE!=="PORTAL_KIOSK"&&l[c]&&l[c].obj_type==="custom"&&l[c].custom_text!==""||e.ROLE!=="PORTAL"&&e.ROLE!=="PORTAL_KIOSK"&&l[c]&&l[c].layer_type==="amenity"&&l[c].value!==null||e.ROLE==="PORTAL"&&l[c]&&(l[c].obj_type==="special"||l[c].obj_type==="custom")||e.ROLE==="PORTAL"&&["store","kiosk","amenity"].includes(p.mesh_type??"")||e.ROLE==="PORTAL")&&n[d].interactiveObjs.push(p)),{mesh:p,geometry:m??new Q.ShapeGeometry,material:f,object_id:c,mesh_type:s,floor_index:d,visible:A,renderOrder:p.renderOrder}},[l,r,t,n,q,a,o,e.ROLE,e.STYLE]);return{getRenderOrder:o,getMaterial:a,getGeometry:q,getMaterialAndGeometry:i}},x3="ROUTE: ",ht=1e4,D9=()=>{const{floorsData:e,allNodesFloor:t,ngraphPath:l,pathFinderGraph:r,allIndexedMapObjects:n}=Q1(),{getRenderOrder:o}=$2(),a=C.useCallback((d,y,f)=>{if(!f.data)return!1;let m=f.data.weight;const p=t[d.id],E=t[y.id];return p!==E?m+ht+Math.abs(p-E):m},[t]),q=C.useCallback(d=>{var y;for(let f=0;f<d.length;f++){const m=d[f];m.route_active=!1,m.route_tube!=null&&(m.route_tube.geometry.dispose(),m.route_tube.material.dispose(),(y=m.objsGroup)==null||y.remove(m.route_tube)),m.route_tube=void 0,m.route_texture=null,m.escalatorMeshes=[]}},[]),i=C.useCallback((d,y,f)=>{let m=f.find(d,y);return m.length===0?!1:m},[]),s=C.useCallback((d,y,f)=>{let p=document.createElement("canvas").getContext("2d");if(p){p.canvas.width=d,p.canvas.height=80,p.fillStyle="#4ea5ff",p.fillRect(0,0,d,80);let E=.1*d;const S=60,L=120;E<S&&(E=S),E>L&&(E=L);let B=p.createLinearGradient(0,0,E,0);B.addColorStop(0,"#4ea5ff"),B.addColorStop(.4,"white"),B.addColorStop(.6,"white"),B.addColorStop(1,"#4ea5ff"),p.fillStyle=B,p.fillRect(10,0,E,80);let V=new Q.CanvasTexture(p.canvas);return V.offset.x=1,V.colorSpace="srgb",f[y].route_texture=V,V}else return},[]),c=C.useCallback((d,y,f,m="2D")=>{var V;let p=0,E=new Q.CurvePath;for(let e1=1;e1<d.length;e1++){let X=new Q.Vector3(d[e1-1].data.x,d[e1-1].data.y,0),r1=new Q.Vector3(d[e1].data.x,d[e1].data.y,0);E.add(new Q.LineCurve3(X,r1)),p+=X.distanceTo(r1)}var S=new Q.TubeGeometry(E,400,6,8);S=new Q.BufferGeometry().copy(S);var L=new Q.MeshBasicMaterial({map:s(p,y,f),transparent:!0,side:Q.DoubleSide,depthTest:!1,depthWrite:!1});let B=new Q.Mesh(S,L);return m==="2D"&&(B.position.z=-10,B.scale.z=.1),B.position.z=0,B.renderOrder=o("route-tube"),B.mesh_type="route-tube",B.geometry.index!==null?B.geometry.setDrawRange(0,B.geometry.index.count):console.warn("route_tube.geometry.index is null"),f[y].route_tube=B,(V=f[y].objsGroup)==null||V.add(B),B},[o,s]),u=C.useCallback((d,y,f,m,p,E,S,L,B=null)=>{var P,W,H,O,R,g;const V=[];q(E);let e1=f.getObjectByProperty("object_id",d),X=f.getObjectByProperty("object_id",y),r1=e1.route_node_id,K=X.route_node_id;if(r1||console.error(x3+'Route Anchor point missing for "%s"',d),K||console.error(x3+'Route Anchor point missing for "%s"',y),!r1||!K)return V;const l1=e1.floor_index,$=X.floor_index,J=l.nba(S,{distance:a,oriented:!0,blocked(x,z,Z){return Z.data.blocked},debug:!0}),j=i(r1,K,J),q1=[];if(!j)return[];j.reverse();const G=[];for(let x=0;x<j.length;x++){const z=j[x];G[m[z.id]]?G[m[z.id]].push(z):G[m[z.id]]=[z],p.includes(z.id)&&p.includes(j[x-1].id)&&p.includes(j[x+1].id),q1.push(z)}for(let x=0;x<q1.length;x++){const z=q1[x];if(m[q1[0].id]!==m[q1[q1.length-1].id]&&p.includes(z.id)){const Z=Object.keys(E[m[z.id]].escalatorsNodes).find(T=>{var n1,U;return((U=(n1=E[m[z.id]])==null?void 0:n1.escalatorsNodes)==null?void 0:U[T])===z.id}),k=f.getObjectByProperty("escalator_id",m[z.id]+"-"+Z);let t1=null;if(m[z.id]!==m[q1[x+1].id]&&p.includes(q1[x+1].id)&&(t1={index:m[q1[x+1].id],direction:"To"}),m[z.id]!==m[q1[x-1].id]&&p.includes(q1[x-1].id)&&(t1={index:m[q1[x-1].id],direction:"From"}),t1&&k){k.goToFloor=t1;const T=k.clone();T.goToFloor=t1,T.object_id=Z,(W=(P=E[m[z.id]])==null?void 0:P.escalatorMeshes)==null||W.push(T)}}}for(let x=0;x<G.length;x++){const z=G[x];if(z&&z.length>1){const Z=c(z,x,E,L);V[x]=Z,E[x].route_active=!0,E[x].routeMeshes=[Z],x===l1&&((O=(H=E[x])==null?void 0:H.routeMeshes)==null||O.push(e1)),x===$&&((g=(R=E[x])==null?void 0:R.routeMeshes)==null||g.push(X))}}return V},[c,i,l,q,a]),_=C.useCallback((d,y,f,m,p,E,S,L)=>{if(y===f)return{routePaths:[],fromFloor:void 0};const B=u(y,f,m,d,E,p,S,L);B.length||console.warn(x3+'No route found in between "%s" and "%s"',y,f);let V=m.getObjectByProperty("object_id",y);return{routePaths:B,fromFloor:V.floor_index}},[u]),A=C.useCallback((d,y,f,m)=>{let p=0,E=f.find(y,d);if(E.length===0)return!1;for(let S=1;S<E.length;S++){let L=m.getLink(E[S-1].id,E[S].id);p+=(L==null?void 0:L.data.weight)||0}return p},[]),v=C.useCallback(()=>{if(e.length>1){const d=[],y=[];for(let f=0;f<e.length;f++)y[f]=[],e[f].escalatorsNodes&&(d[f]=Object.fromEntries(Object.entries(e[f].escalatorsNodes).map(([m,p])=>{const E=m.split("-"),S=E.slice(0,2).join("-"),L=E.includes("end"),B=E.includes("start"),V=E.includes("up"),e1=E.includes("down"),X=V?"up":e1?"down":"both";return y[f].push(S),[S,{node:p,escalatorId:S,isExitOnly:L,isEntranceOnly:B,upOnly:V,downOnly:e1,direction:X,floorsTo:[]}]})));for(let f=0;f<e.length;f++)for(let m=0;m<y[f].length;m++){const p=y[f][m],E=d[f][p];for(let S=f+1;S<e.length;S++)for(let L=0;L<y[S].length;L++){const B=y[S][L];p===B&&E.floorsTo.push(S)}}for(let f=0;f<e.length-1;f++){const m=d[f];for(const p in m){const E=m[p],S=E.node;E.floorsTo.forEach(L=>{const V=d[L][p].node;V&&(E.isExitOnly?(r.addLink(S,V,{blocked:!0}),r.addLink(V,S,{weight:1})):E.isEntranceOnly?(r.addLink(V,S,{blocked:!0}),r.addLink(S,V,{weight:1})):(r.addLink(S,V,{weight:1}),r.addLink(V,S,{weight:1})))})}}}},[e,r]),b=C.useCallback((d,y,f,m,p)=>{let E=f.getObjectByProperty("object_id",d),S=E?E.route_node_id:"";var L=null,B=9999;const V=[];for(let e1 in n){const X=n[e1];X.layer_type==="amenity"&&X.obj_type==="special"&&X.value===y&&V.push(e1)}return V.forEach(e1=>{let X=f.getObjectByProperty("object_id",e1);const r1=l.aStar(r,{distance:a,debug:!0});if(X&&S){var K=X.route_node_id;try{var l1=A(S||"",K||"",r1,r);l1&&l1<B&&(B=l1,L=e1)}catch($){console.warn(`Amenity Path: ${$.message}`)}}!S&&X&&(L=K)}),_(t,d,L??"",f,e,m,r,p)},[n,t,_,e,A,l,r,a]),h=C.useCallback((d,y,f)=>{const m=new Map,p=e[d];return p&&p.route_points&&p.route_points.forEach(E=>{let S=new Q.Vector3(E.node.x,E.node.y,-10),L=new Q.Vector3(0,0,1);f.set(S,L);var B=f.intersectObjects(e[d].interactiveObjs);B.length&&(B[0].object.route_node_id=E.name,m.set(B[0].object.object_id,E.name));var V=f.intersectObjects(e[d].escalatorsObjs);if(V.length){let X=V[0].object.object_id;const r1=e[d].escalatorsNodes;r1&&(r1[X]=E.name,t[E.name]=d,y.push(E.name))}}),m},[t,e]);return{delete_route_path:q,create_route:_,create_route_paths:u,create_route_path:c,get_route_nodes:i,get_nodes_distance:A,get_route_texture:s,linkFloorEscalators:v,make_amenity_route:b,assign_route_nodes_to_stores:h}};function pt(e){return"node-"+e}function i8(e,t,l,r){let n=!1,o="-name-not-found-";const a=l[t];if(a.route_points!==void 0){for(let q=0;q<a.route_points.length;q++)if(e.x===a.route_points[q].node.x&&e.y===a.route_points[q].node.y){n=!0,o=a.route_points[q].name;break}n||(o=pt(r))}return[o,n]}const gt=()=>{const{mapConfig:e,floorsData:t,allNodesFloor:l,pathFinderGraph:r}=Q1();return{getMeshParams:C.useCallback((o,a,q,i)=>{var p;const s="MeshParams";let c=null;var u=o.color.clone(),_=0,A=0,v=!0,b=!0,h=!1,d=e.WALL_THICKNESS,y=!0,f=(p=o.userData)==null?void 0:p.node.id;return f!==void 0?f.startsWith("boundary")?(c="boundary",u=e.BOUNDARY_COLOR,d=e.BOUNDARY_THICKNESS,e.STYLE==="3D"&&(_=9)):f.startsWith("wall")?(c="wall",u=e.WALL_COLOR,e.STYLE==="3D"&&(_=8.5)):f.startsWith("outer-wall")?(c="outer-wall",u=e.WALL_COLOR,e.STYLE==="3D"&&(b=!1)):f.startsWith("base")?(c="base",u=e.BASE_COLOR):f.startsWith("store")?(c="store",u=e.STORE_DEFAULT_COLOR,e.STYLE==="3D"&&(_=e.STORE_HEIGHT),f.startsWith("store-underlay")&&(y=!1)):f.startsWith("route-path")?(c="route-path",b=!1,o.subPaths.forEach(E=>{E.curves.length===0&&console.warn(s+'Route-path standalone anchor point exists, layer_name: "%s"',f),E.curves.forEach(S=>{var K,l1;const L=S.v1,B=S.v2,[V,e1]=i8(L,q,t,i);e1||((K=t[q].route_points)==null||K.push({name:V,node:new Q.Vector3(L.x,L.y,1)}),l[V]=q);const[X,r1]=i8(B,q,t,i);r1||((l1=t[q].route_points)==null||l1.push({name:X,node:new Q.Vector3(B.x,B.y,1)}),l[X]=q),r.addNode(V,{...L}),r.addNode(X,{...B}),r.addLink(V,X,{weight:L.distanceTo(B)}),r.addLink(X,V,{weight:L.distanceTo(B)})})})):f.startsWith("escalator-")?(c="escalator",v=!1,h=!0):f.startsWith("kiosk-")?(c="kiosk",h=!0):f.startsWith("amenity-")?(c="amenity",h=!0,A=1):f.startsWith("overlay")?c="overlay":f.startsWith("special-shape")?c="special-shape":f.startsWith("parking-lane")?(c="parking-lane",u=h4.PARKING_LANE_COLOR,e.STYLE==="3D"&&(_=1)):f.startsWith("parking-line")?(c="parking-line",u=h4.PARKING_LINE_COLOR,d=h4.PARKING_LINE_THICKNESS,e.STYLE==="3D"&&(_=.5)):f.startsWith("parking-icon")?(c="parking-icon",u=h4.PARKING_ICON_COLOR,e.STYLE==="3D"&&(_=1)):f.startsWith("green-area")?(c="green-area",u=h4.GREEN_AREA_COLOR,e.STYLE==="3D"&&(_=1)):_=1:console.warn(s+"Layer name is undefined, path",o),{mesh_type:c,layer_color:u,extrude:_,z_index:A,mesh_visible:v,mesh_draw:b,mesh_transparent:h,line_thickness:d,interactiveMesh:y,path:o,layer_name:f}},[l,t,e.STORE_HEIGHT,e.STYLE,e.BASE_COLOR,e.BOUNDARY_COLOR,e.BOUNDARY_THICKNESS,e.STORE_DEFAULT_COLOR,e.WALL_COLOR,e.WALL_THICKNESS,r])}};let q8=0;const bt=e=>{const{mapConfig:t,pathFinderGraph:l,floorsData:r}=Q1(),{getMaterialAndGeometry:n}=$2(),{getMeshParams:o}=gt(),{assign_route_nodes_to_stores:a,linkFloorEscalators:q}=D9(),[i,s,c]=C.useMemo(()=>{q8=0;const u=new Set,_=[],A=[];e.forEach((v,b)=>{var h,d;if(r[b]&&v&&v.paths&&v.paths.length){const y=[];for(let E=0;E<v.paths.length;E++)y.push((d=(h=v.paths[E])==null?void 0:h.userData)==null?void 0:d.node.id);const f=v.paths;for(let E=0;E<f.length;E++){const{mesh_type:S,layer_color:L,extrude:B,z_index:V,mesh_visible:e1,mesh_draw:X,mesh_transparent:r1,line_thickness:K,path:l1,layer_name:$}=o(f[E],f,b,++q8);if(X){const J=n(S,$,L,r1,e1,V,B,K,b,l1);$.startsWith("kiosk-")&&t.ROLE,_[b]||(_[b]=[]),_[b].push(J)}}const m=new Q.Raycaster,p=a(b,A,m);if(p.size&&_[b].length)for(let E=0;E<_[b].length;E++)p.has(_[b][E].mesh.object_id)&&(_[b][E].mesh.route_node_id=p.get(_[b][E].mesh.object_id));q()}});for(let v=0;v<_.length;v++){const b=_[v];for(let h=0;h<b.length;h++)u.add(b[h].object_id)}return[_,A,u]},[a,r,n,o,q,t.ROLE,e]);return{GeometriesAndMaterials:i,graph:l,escalator_nodes:s,allSvgObjectIds:c}},j9=()=>{const{allIndexedRetailers:e,allIndexedMapObjects:t,floorsData:l,mapConfig:r}=Q1(),{getRenderOrder:n}=$2(),o=(v,b,h,d,y,f,m,p)=>{for(let E=0;E<v.length;E++)a(v[E],b,h,d,y,f,m,p)},a=(v,b,h,d,y,f,m,p)=>{let E=b.getObjectByProperty("object_id",v.map_obj_name);E&&add_store_name_logo(E,h,d,y,f,m,p,b)},q=v=>(Array.isArray(v)||(v=[v]),v.reduce((h,d)=>(d.geometry.boundingBox||d.geometry.computeBoundingBox(),h.union(d.geometry.boundingBox),h),new Q.Box3)),i=(v,b,h,d,y)=>{let f=y[v];b.z=-h.z,d.rotateZ(((f==null?void 0:f.rotate)||0)*Math.PI/180),d.scale.y*=-1,b.x+=(f==null?void 0:f.offset_x)||0,b.y+=(f==null?void 0:f.offset_y)||0,d.position.set(b.x,b.y,b.z+1)},s=async v=>{try{const b=T2(v,r);return b}catch(b){return console.error("Error fetching or converting the image:",b),""}},c=(v,b)=>new Promise((h,d)=>{var y;if(v.obj_type==="retailer")b?s(b.logo).then(f=>{h(f||b.logo)}):(console.error("retailer not found"),h(""));else if(v.obj_type==="special"){let f=v.value;if(v.layer_type==="kiosk"&&(f="kiosk"),v.layer_type==="escalator"&&(f="escalator"),f){let m="222222";v.text_color!=null&&(m=v.text_color.replace("#",""));const p=document.getElementById("map-special-svg-"+f);if(p){const E=p.querySelector("svg");if(E){const S=E.cloneNode(!0);S.querySelectorAll("[fill]").forEach(X=>{X.setAttribute("fill","#"+m)});const B=new XMLSerializer().serializeToString(S),V=new Blob([B],{type:"image/svg+xml"}),e1=URL.createObjectURL(V);h(e1)}else console.error("svg_element not found",f),h("")}else console.error("svg_block not found",f),h("")}}else v.custom_image!==""&&((y=v==null?void 0:v.custom_image)!=null&&y.startsWith("http"))?h(T2(v.custom_image,r)):(console.error("custom_image URL not found"),h(""))}),u=(v,b,h)=>{const d=document.createElement("img");d.crossOrigin="anonymous",d.src=v,d.onload=function(){const y=document.getElementById("temp-image-rendering");y&&(d.style.height="100px",y.appendChild(d),setTimeout(()=>{const f=document.createElement("canvas"),m=f.getContext("2d");if(m){f.width=d.width*G6,f.height=d.height*G6,m==null||m.drawImage(d,0,0,f.width,f.height);let p=new Q.CanvasTexture(f);p.colorSpace="srgb";const E=new Q.PlaneGeometry(b.size,b.size*d.height/d.width),S=new Q.MeshBasicMaterial({map:p,transparent:!0,side:Q.DoubleSide,depthTest:!1,depthWrite:!1});b.layer_type==="kiosk"&&(S.visible=!1),h(E,S)}},100))},d.onerror=function(){console.error("processImage():: Error loading image:",v)}},_=C.useCallback((v,b,h,d,y,f,m,p,E,S)=>{c(h,b[h.retailer_id]).then(L=>{L&&u(L,h,(B,V)=>{var r1;const e1=new Q.Mesh(B,V),X=d.floor_index;i(y,m,p,e1,v),e1.object_id=f,e1.floor_index=X,e1.renderOrder=n("layer-image"),(r1=E[X])==null||r1.objsGroup.add(e1),S({storeLogo:e1})})})},[n]),A=C.useCallback((v,b,h,d,y,f)=>{const m=d+b;let p=null;if(v.boundingBox||v.computeBoundingBox(),!v.boundingBox)return null;const E=v.boundingBox,S=new Q.Vector3;E.getCenter(S);const L=new Q.Vector3;E.getSize(L);let B=t[b]?t[b]:{layer_type:b.startsWith("escalator")?"escalator":"custom_text",custom_text:"",size:8};if(["retail_name","retail_text","custom_text"].includes(B.layer_type)){let V="";B.layer_type==="retail_name"&&B.retailer_id&&e[B.retailer_id]?V=e[B.retailer_id].retail_name:["retail_text","custom_text"].includes(B.layer_type)?V=B.custom_text:V="";let e1=r.STORE_TEXT_COLOR;B.text_color&&(e1=O1(B.text_color));const X={color:e1,transparent:!1,side:Q.DoubleSide,depthWrite:!1,depthTest:!1};let r1=new Q.MeshBasicMaterial(X),K=new k9(V,{font:y,size:parseInt(B.size),height:.01,curveSegments:4});K.center();const l1=new Q.Mesh(K,r1);l1.userData.debug_name=V,l1.userData.font=y,i(b,S,L,l1,t),l1.object_id=m,l1.floor_index=h,l1.renderOrder=n("layer-text"),B.layer_type==="retail_name"&&(l1.userData.retail_name=V),l[h].objsGroup.add(l1),p={textMesh:l1}}else(B.layer_type==="retail_logo"||B.layer_type==="custom_image"||B.obj_type==="special"&&B.layer_type==="kiosk"&&B.kiosk_id!=null||B.obj_type==="special"&&B.layer_type==="amenity"&&B.value!==""||B.layer_type==="escalator")&&_(t,e,B,v,b,m,S,L,l,f);return p},[t,e,l,_,n,r.STORE_TEXT_COLOR]);return{drawTextLogoStoreOnMap:o,addTextOrLogoOnStore:a,getMeshGroupBoundingBox:q,layer_text_logo_position_by_id:i,getImage:c,processImage:u,getImageLogo:_,get_store_name_logo_geometry:A}};let h3=[];const _t=()=>{const{mapConfig:e,initialFloorsDataIsLoaded:t,allIndexedMapObjects:l,allIndexedRetailers:r,allMapObjects:n,allNodesFloor:o,pathFinderGraph:a,setPathFinderGraph:q,mapApiResponse:i}=Q1(),[s,c]=C.useState([]),[u,_]=C.useState([]),[A,v]=C.useState([]),[b,h]=C.useState([]);let d=y4.useLoader(E7,i.floors.map(V=>T2(V.svgUrl,e)));const{GeometriesAndMaterials:y,graph:f,escalator_nodes:m,allSvgObjectIds:p}=bt(d),{get_store_name_logo_geometry:E}=j9(),S=S4.useFont(s9),L=C.useCallback(V=>e1=>{v(X=>(X[V]?X[V].push({...e1}):X[V]=[{...e1}],[...X]))},[]),B=C.useCallback(()=>{c(V=>(V&&V.forEach(e1=>{e1&&e1.forEach(X=>{X.mesh.removeFromParent()})}),[])),_(V=>(V&&V.forEach(e1=>{e1&&e1.forEach(X=>{X.textMesh.removeFromParent()})}),[])),v(V=>(V&&V.forEach(e1=>{e1&&e1.forEach(X=>{X.storeLogo.removeFromParent()})}),[]))},[]);return C.useEffect(()=>{if(t&&e.ROLE==="PORTAL")return()=>{B()}},[B,t]),C.useEffect(()=>()=>{B()},[]),C.useEffect(()=>{if(!S||!d)return;v([]);const V=[];if(h3.forEach(r1=>{let K;for(let $=0;$<y.length&&(K=y[$].find(J=>J.object_id===r1.map_obj_name),K===void 0);$++);if(!K)return null;const l1=E(K.geometry,r1.map_obj_name,K.floor_index,N2,S,L(K.floor_index));l1&&(V[K.floor_index]||(V[K.floor_index]=[]),V[K.floor_index].push(l1))}),y.reduce((r1,K)=>r1+K.length,0)-h3.length!==0){const r1=new Set;h3.forEach(K=>{r1.add(K.map_obj_name)}),y.forEach(K=>{K.forEach(l1=>{if(!r1.has(l1.object_id)){const $=E(l1.geometry,l1.object_id,l1.floor_index,N2,S,L(l1.floor_index));$&&(V[l1.floor_index]||(V[l1.floor_index]=[]),V[l1.floor_index].push($))}})})}c([...y]),_(V),q(f),h([...m])},[d,S,l,r,n,o,a,e,q,L,y,E,f,m]),C.useMemo(()=>({meshParams:s,textParams:u,storeLogos:A,pathFinderGraph:a,escalator_nodes:b,allSvgObjectIds:p}),[s,u,A,a,b,p])},vt=e=>{const{scene:t}=y4.useThree();return e.background&&(t.background=new Q.Color(e.background)),null},Ct=e=>{const{camera:t}=y4.useThree(),l=e.far||e.near||e.fov;return e.far&&(t.far=e.far),e.near&&(t.near=e.near),t instanceof Q.PerspectiveCamera&&e.fov&&(t.fov=e.fov),l&&t.updateProjectionMatrix(),null};function s8(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}function yt({mesh:e}){const t=C.useRef(null);return C.useEffect(()=>{var o;if(!e)return;if(!((o=e.geometry.index)!=null&&o.count)){console.log("NO ROUTE TUBE GEOMETRY INDEX COUNT");return}if(!(e.material instanceof Q.MeshBasicMaterial))return;if(!e.material.map){console.log("NO ROUTE TEXTURE");return}e.geometry.setDrawRange(0,0);const l=e.geometry.index.count,r=(()=>{const q=performance.now();return()=>{const i=(performance.now()-q)/1e3,s=Math.floor(s8(i)*l);i>=1&&(t.current=n),e.geometry.setDrawRange(0,s)}})(),n=(()=>{if(!(e.material instanceof Q.MeshBasicMaterial)||!e.material.map)return null;const a=e.material.map.offset,q=2e3,i=.1,s=1+i,c=performance.now();return()=>{const u=(performance.now()-c)/q%1;a.x=i-s*s8(u)}})();return t.current=r,()=>{t.current=null,e.removeFromParent(),e.material instanceof Q.MeshBasicMaterial&&e.material.dispose(),e.geometry&&e.geometry.dispose()}},[e]),y4.useFrame(()=>{if(t.current)try{t.current()}catch(l){console.error(`ERROR ANIMATE ROUTE: ${l.message}`),t.current=null}}),e?M.jsx("primitive",{object:e}):null}const It="_escalator_elems_1kqb9_1",Et="_element_1kqb9_4",At="_svgIcon_1kqb9_21",Rt="_label_1kqb9_34",f2={escalator_elems:It,element:Et,svgIcon:At,label:Rt},St="_mapCenterMarker_1eu0j_18",Ot={mapCenterMarker:St},c8=({size:e,lockSize:t,blink:l,cameraLength:r,text_color:n="black"})=>{const{mapConfig:o}=Q1(),[,a]=C.useState(1),[q,i]=C.useState(null),s=t?5*e/256:8*e;C.useEffect(()=>{!t&&r!==void 0&&a(1-(r-o.CAMERA.minDistance)/(o.CAMERA.maxDistance-o.CAMERA.minDistance))},[t,o,r]);const c=C.useMemo(()=>q?new Q.SpriteMaterial({map:q,sizeAttenuation:!t,depthTest:!1,depthWrite:!1,color:n}):null,[t,q,n]);return C.useEffect(()=>{var _;const u=(_=document.getElementById("map-special-svg-kiosk"))==null?void 0:_.querySelector("svg");if(u){const A=u.cloneNode(!0),v=new XMLSerializer().serializeToString(A),b=new Blob([v],{type:"image/svg+xml"}),h=URL.createObjectURL(b),d=document.createElement("canvas");d.width=256,d.height=256;const y=d.getContext("2d"),f=document.createElement("img");f.src=h,f.onload=()=>{y==null||y.drawImage(f,96,0,64,128);const m=new Q.Texture(d);m.needsUpdate=!0,i(m)}}},[]),c?M.jsxs("group",{children:[M.jsx("sprite",{scale:s,material:c}),l&&M.jsx(S4.Html,{children:M.jsx("div",{className:`mapCenterMarker ${Ot.mapCenterMarker}`})})]}):null},u8=e=>{const{type:t,mesh:l,currentFloorIndex:r}=e;C.useEffect(()=>(l.userData.triggerUpdate=()=>{},()=>l.userData.triggerUpdate=void 0),[l.userData]);const{cameraLength:n}=Q1();switch(t){case"storeLogo":return l.userData.kioskConfig&&l.userData.kioskConfig.floorIndex===r?M.jsx("primitive",{object:l,children:M.jsx(c8,{size:l.userData.kioskConfig.size,blink:l.userData.kioskConfig.blink,cameraLength:n,lockSize:l.userData.kioskConfig.lockSize,text_color:l.userData.kioskConfig.text_color})},l.uuid):M.jsx("primitive",{object:l,children:l.userData.htmlContent?M.jsx(S4.Html,{style:{pointerEvents:"none"},distanceFactor:l.userData.distanceFactor,children:l.userData.htmlContent}):null},l.uuid);case"kiosk":return l.userData.kioskConfig&&l.userData.kioskConfig.floorIndex===r?M.jsx(c8,{size:l.userData.kioskConfig.size,blink:l.userData.kioskConfig.blink,cameraLength:n,lockSize:l.userData.kioskConfig.lockSize,text_color:l.userData.kioskConfig.text_color}):null;default:return null}},zt=e=>{const{meshFloors:t,routeTube:l,floorIndex:r,currentFloorIndex:n,activeObjectId:o,hoverObjectId:a,visible:q,handleChangeFloor:i}=e,{mapConfig:s,floorsData:c}=Q1(),{meshParams:u,textParams:_,storeLogos:A}=t,v=c[r],b=e.onPointerMove,h=e.onPointerEnter,d=e.onPointerLeave,y=e.onClick,f=u[r],m=_[r],p=A[r],E=c[r].escalatorMeshes;return M.jsxs("group",{visible:q,children:[f==null?void 0:f.map(S=>{if(!S.mesh)return null;const L=q&&S.mesh.visible&&v.interactiveObjs&&v.interactiveObjs.includes(S.mesh),B=a&&S.mesh.object_id===a,V=o&&S.mesh.object_id===o;if(L&&S.mesh.material instanceof Q.MeshBasicMaterial){const e1=S.mesh.material.colorDefault;if(e1){const X=V?s.ACCENT_COLOR:e1;S.mesh.material.color.copy(B?F7(X):c9(X))}}return M.jsx("group",{...L?{onPointerOver:h,onPointerMove:b,onPointerOut:d,onClick:y}:{},children:M.jsx("primitive",{object:S.mesh})},S.mesh.uuid)}),m==null?void 0:m.map(S=>S.textMesh?M.jsx(C.Fragment,{children:M.jsx("primitive",{object:S.textMesh,children:S.textMesh.userData.kioskConfig?M.jsx(u8,{mesh:S.textMesh,currentFloorIndex:n,type:"kiosk",visible:q},void 0):null})},S.textMesh.uuid):null),p==null?void 0:p.map(S=>S.storeLogo?M.jsx(u8,{mesh:S.storeLogo,currentFloorIndex:n,type:"storeLogo",visible:q},S.storeLogo.uuid):null),E==null?void 0:E.map(S=>{var L,B;return M.jsx("primitive",{object:S,children:M.jsx(S4.Html,{visible:!0,position:(L=S.geometry.boundingSphere)==null?void 0:L.center,children:M.jsx("div",{className:`escalator_elems ${f2.escalator_elems}`,style:{display:q?"block":"none"},onClick:V=>{var e1;return V.stopPropagation(),i(((e1=S.goToFloor)==null?void 0:e1.index)||0),!1},onPointerMove:V=>V.stopPropagation(),children:M.jsxs("div",{className:`element ${f2.element}`,id:S.object_id,children:[M.jsx("div",{className:`svgIcon ${f2.svgIcon}`,dangerouslySetInnerHTML:{__html:u9("escalator")}}),M.jsxs("div",{className:`label ${f2.label}`,children:[(B=S.goToFloor)==null?void 0:B.direction,": ",S.goToFloor?c[S.goToFloor.index].name:""]})]})})})},`escalator-${S.object_id}`)}),M.jsx(yt,{mesh:l})]})};function m8(e,t,l,r){if(Array.isArray(e)||(e=[e]),!e.length)return console.warn("get_camera_focus_object: no objects passed"),{position:new Q.Vector3,target:new Q.Vector3};const n=e.reduce((b,h)=>(h.geometry.boundingBox||h.geometry.computeBoundingBox(),h.geometry.boundingBox&&b.union(h.geometry.boundingBox),b),new Q.Box3),o=new Q.Vector3;n.getSize(o);const a=new Q.Vector3;n.getCenter(a),e[0].localToWorld(a);let q=Math.tan(Math.PI*t/360),i=1.1,s=o.x*i/2/(q*l),c=o.y*i/2/q,u=Math.max(s,c),_=wt(u,r);const A=new Q.Vector3(a.x,0,a.z);return{position:new Q.Vector3(a.x,u,a.z+_),target:A}}function wt(e,t){let l=60;return t==="2D"&&(l=89.9),e/Math.tan(l*Math.PI/180)}const Tt=C.forwardRef((e,t)=>{const{mapConfig:l,allMapObjects:r,allIndexedMapObjects:n,allNodesFloor:o,mapApiResponse:a,pathFinderGraph:q,setCameraLength:i,floorsData:s}=Q1(),{make_amenity_route:c,create_route:u}=D9(),[_,A]=C.useState(!1),{meshFloors:v,currentFloorIndex:b,currKioskObj:h,currKioskFloorIndex:d,routeTargetId:y,routeTargetFromId:f,selectedAmenityType:m,handleChangeFloor:p,escalatorNodes:E,zoom:S,handleCameraLength:L,handleCameraAndControlsChange:B,activeObjectId:V,isSelectedRetailerSlug:e1,setIsCameraInit:X,handleObjectClick:r1,triggerClick:K,cameraControlsPosition:l1,deviceType:$}=e,[J,j]=C.useState({min:l.CAMERA.minDistance,max:l.CAMERA.maxDistance,initialDistance:0,needsUpdate:!0}),q1=C.useRef(null),[G,P]=C.useState([]),W=C.useRef(null),{camera:H,scene:O}=y4.useThree(),R=C.useRef(null),g=l.STYLE,x=l.ACCENT_COLOR,z=h?h.object_id:f||void 0,Z=l.ROLE==="PORTAL"&&y,k=C.useCallback((D=!1)=>{if(!(H instanceof Q.PerspectiveCamera)){console.error("Camera is not a PerspectiveCamera");return}const w=v.meshParams[d];if(!(w!=null&&w.length)){console.warn("objects not loaded yet");return}let I;I=w.map(_1=>_1.mesh);const o1=m8(I,H.fov,H.aspect,l.ROLE==="PORTAL"?"2D":g);let s1=!0;if(l1){let _1=l1.camera;_1 instanceof Q.Vector3||(_1=new Q.Vector3(_1.x,_1.y,_1.z)),s1=_1.length()===0}!D&&l1&&!s1&&!["PORTAL"].includes(l.ROLE)&&(o1.position.set(l1.camera.x,l1.camera.y,l1.camera.z),o1.target.set(l1.controls.x,l1.controls.y,l1.controls.z));const b1=Math.min(J.max,Math.max(J.min,o1.position.distanceTo(o1.target)));o1.position.sub(o1.target).setLength(b1).add(o1.target),R.current={...o1,fromPosition:W.current.object.position.clone(),fromTarget:W.current.target.clone(),animationStartTime:performance.now(),duration:l.CAMERA.animSpeed},["DISPLAY_APP","WP_SITE"].includes(l.ROLE)&&J.needsUpdate===!1&&J.initialDistance>0&&j(_1=>({..._1,min:l.CAMERA.minDistance<.1?.1:l.CAMERA.minDistance,max:l.CAMERA.maxDistance}))},[H,J.needsUpdate,l.CAMERA.animSpeed,l.CAMERA.maxDistance,l.CAMERA.minDistance,l1,l.ROLE,d,v.meshParams,g]),t1=R.current?R.current.position.distanceTo(R.current.target):0;C.useEffect(()=>{l1&&k()},[l1,k]),C.useEffect(()=>{t1>0&&J.needsUpdate&&(j({min:l.CAMERA.minDistance<.1?.1:l.CAMERA.minDistance,max:l.CAMERA.maxDistance,initialDistance:t1,needsUpdate:!1}),X(!0))},[t1,J.needsUpdate,l.CAMERA,X]),C.useEffect(()=>{j(D=>({...D,needsUpdate:!0}))},[l.CAMERA]),C.useEffect(()=>{v.meshParams.length>0&&k()},[v.meshParams.length,k]),C.useEffect(()=>{if(!m||l.ROLE==="PORTAL"){P([]);return}const{routePaths:D,fromFloor:w}=c(z??"",m,O,E,g);P(D),w!==void 0&&p(w),h&&l.ROLE==="DISPLAY_APP"&&p(d)},[m,O,q,s,E,g,z,l.ROLE,o,n,c,h,p,d]);const T=C.useCallback(()=>{s.flat().forEach(D=>D.escalatorMeshes=[])},[s]);C.useEffect(()=>{if(!z||!y||l.ROLE==="PORTAL"){if(l.ROLE==="PORTAL")if(y){const I=O.getObjectByProperty("object_id",y);I&&P([I])}else T(),P([]);else m||(T(),P([]));return}m||s.forEach(I=>{I.escalatorMeshes=[]});const{routePaths:D,fromFloor:w}=u(o,z,y,O,s,v.escalator_nodes,q,g);P(D),w!==void 0&&p(w)},[z,y,O,H,s,x,q,g,v.escalator_nodes,m,l.ROLE,o,K,u,T,p]);const n1=v.meshParams[b];C.useEffect(()=>{var s1;if(l.ROLE==="PORTAL_RESPONSIVE")return;if(!(H instanceof Q.PerspectiveCamera)){console.error("Camera is not a PerspectiveCamera");return}if(!(n1!=null&&n1.length)){console.warn("objects not loaded yet");return}let D=(s1=s[b])==null?void 0:s1.routeMeshes;if(!V&&!m)return;let w=[];if(G[b]&&(D!=null&&D.length))w=[...D];else if(V&&(l.ROLE==="PORTAL"||e1)){const b1=y&&n1.find(_1=>_1.mesh.object_id===y);b1&&(w=[b1.mesh])}w.length||(w=n1.map(b1=>b1.mesh));const I=m8(w,H.fov,H.aspect,l.ROLE==="PORTAL"||l.ROLE==="WP_SITE"?"2D":g),o1=Math.min(Z?l.CAMERA.maxDistance:J.max,Math.max(Z?l.CAMERA.minDistance:J.min,I.position.distanceTo(I.target)));I.position.sub(I.target).setLength(o1).add(I.target),R.current={...I,fromPosition:W.current.object.position.clone(),fromTarget:W.current.target.clone(),animationStartTime:performance.now(),duration:l.CAMERA.animSpeed}},[G,n1,b,g,H,y,l.ROLE,l.CAMERA.maxDistance,l.CAMERA.minDistance,l.CAMERA.animSpeed,s,V,m,e1,Z,J.max,J.min]),C.useEffect(()=>{if(S!=null&&S.direction&&W.current){if(!(H instanceof Q.PerspectiveCamera)){console.error("Camera is not a PerspectiveCamera");return}if(!n1.length){console.warn("objects not loaded yet");return}let D;if(G[b]){D=[G[b]];const o1=y&&n1.find(s1=>s1.mesh.object_id===y);o1&&D.push(o1.mesh)}else D=n1.map(o1=>o1.mesh);const w={position:W.current.object.position.clone(),target:W.current.target.clone()};let I=parseInt(w.position.distanceTo(w.target));S.direction==="in"?I-=l.ZOOM_STEP:I+=l.ZOOM_STEP,I=Math.min(J.max,Math.max(J.min,I)),w.position.sub(w.target).setLength(I).add(w.target),R.current={...w,fromPosition:W.current.object.position.clone(),fromTarget:W.current.target.clone(),animationStartTime:performance.now(),duration:l.CAMERA.animSpeed}}},[S]);const U=()=>J.initialDistance,Y=C.useCallback(D=>{if(L){const w=new Q.Vector3;w.copy(D.target.object.position),w.sub(W.current.target),L(w.length()),i(w.length()),B&&B({camera:W.current.object.position.clone(),controls:W.current.target.clone()})}},[L,B,i]);y4.useFrame(()=>{var D,w;if((D=R.current)!=null&&D.duration&&((w=R.current)==null?void 0:w.duration)>0){_||(A(!0),R.current.duration=0);const I=R.current,o1=(performance.now()-I.animationStartTime)/1e3,s1=Math.min(1,o1/(I==null?void 0:I.duration));W.current.object.position.lerpVectors(I.fromPosition,I.position,s1),W.current.target.lerpVectors(I==null?void 0:I.fromTarget,I.target,s1),W.current.object.updateProjectionMatrix(),s1>=1&&(R.current=null)}});const N=C.useCallback(D=>{if(D>0){const w=a.retailers.find(I=>I.id===D);if(w){const I=a.map_objs.filter(o1=>o1.retailer_id===w.id);for(let o1=0;o1<I.length;o1++)if(r.includes(I[o1].map_obj_name)){const s1=O.getObjectByProperty("object_id",I[o1].map_obj_name);s1&&r1(s1,I[o1].map_obj_name,!0);break}}}},[r1,a,O]);return C.useImperativeHandle(t,()=>({resetCamera:k,createRouteToStore:N,getInitialDistance:U})),M.jsxs("group",{rotation:[Math.PI/2,0,0],ref:q1,children:[M.jsx(S4.MapControls,{makeDefault:!0,onChange:Y,ref:W,maxPolarAngle:Math.PI/2,minDistance:Z?d4.CAMERA.minDistance:J.min,maxDistance:Z?d4.CAMERA.maxDistance:J.max,enableZoom:l.ROLE==="PORTAL"||l.ROLE==="DISPLAY_APP"||l.ROLE==="WP_SITE"&&["mobile","tablet"].includes($),enableRotate:l.ROLE!=="WP_SITE"&&l.ROLE!=="PORTAL_RESPONSIVE"&&l.ROLE!=="DISPLAY_APP",dampingFactor:.3}),s&&s.map((D,w)=>M.jsx(zt,{visible:b===w,floorIndex:w,currentFloorIndex:b,currKioskObj:e.currKioskObj,activeObjectId:e.activeObjectId,hoverObjectId:e.hoverObjectId,meshFloors:v,routeTube:l.ROLE!=="PORTAL"?G&&G[w]:void 0,onPointerEnter:e.onPointerEnter,onPointerLeave:e.onPointerLeave,onPointerMove:e.onPointerMove,onClick:e.onClick,handleChangeFloor:p},`Map-${w}`))]})}),Nt="_threejsMapWrapper_6jbfd_1",Mt="_threejsMap_6jbfd_1",Lt="_map_controls_6jbfd_18",Pt="_amenities_6jbfd_112",Ft="_amenity_6jbfd_123",Bt="_content_6jbfd_155",Gt="_icon_6jbfd_163",kt="_name_6jbfd_176",u4={threejsMapWrapper:Nt,threejsMap:Mt,map_controls:Lt,amenities:Pt,amenity:Ft,content:Bt,icon:Gt,name:kt},Dt=e=>{const{selectedFloorIndex:t,handleFloorChange:l,amenitiesList:r,zoomIn:n,zoomOut:o,reset:a,handleAmenityClick:q,onExtractedAmenities:i}=e,{mapConfig:s,mapApiResponse:c,floorsData:u,allMapObjects:_}=Q1(),A=b=>{b.preventDefault(),a instanceof Function&&(s.ROLE==="PORTAL_RESPONSIVE"||s.ROLE==="PORTAL"?a(!0):a())},v=C.useMemo(()=>c!=null&&c.map_objs?c==null?void 0:c.map_objs.filter(b=>b.layer_type==="amenity"&&_.includes(b.map_obj_name)).map(b=>b.value):[],[c,_]);return C.useEffect(()=>{i&&i(v)},[i,v]),M.jsx("div",{className:u4.threejsMapWrapper,children:M.jsxs("div",{className:u4.threejsMap,children:[u.length>0&&M.jsx("div",{className:`map_controls ${u4.map_controls}`,children:M.jsxs("div",{className:"map_controls_wrapper",children:[M.jsx("div",{className:"floors btn_group",children:u.length>1&&u.map((b,h)=>M.jsx("div",{className:`floor control_btn ${h===t?"active":""}`,onClick:()=>{l(h)},children:b.name},h))}),M.jsxs("div",{className:"reset-zoom",children:[M.jsx("div",{onClick:A,className:"reset_btn control_btn",children:"RESET"}),M.jsxs("div",{className:"zoom_btns",children:[M.jsx("div",{onClick:o,className:"zoom-out control_btn",children:"–"}),M.jsx("div",{onClick:n,className:"zoom-in control_btn",children:"+"})]})]})]})}),M.jsx("div",{className:"loading_map",children:"Map loading, please wait..."}),!["PORTAL","DISPLAY_APP"].includes(s.ROLE)&&M.jsx("div",{className:`amenities ${u4.amenities}`,style:{display:"block"},children:r.map((b,h)=>v.includes(b.type)?M.jsx("div",{className:`amenity ${u4.amenity}`,onClick:()=>q(b.type),children:M.jsxs("div",{className:`content ${u4.content}`,children:[M.jsx("div",{className:`icon ${u4.icon}`,dangerouslySetInnerHTML:{__html:u9(b.type)}}),M.jsx("div",{className:`name ${u4.name}`,children:b.name})]})},`amenity-${b.name}-${h}`):null)})]})})},jt="_mapBoxSidebar_kftp4_1",Vt="_active_kftp4_6",Wt="_sidebarWrapper_kftp4_10",Ht="_sidebarBox_kftp4_15",Xt="_mapBox_kftp4_1",Zt="_storeNamePlaceholder_kftp4_29",Yt="_stats_kftp4_41",f4={mapBoxSidebar:jt,active:Vt,sidebarWrapper:Wt,sidebarBox:Ht,mapBox:Xt,storeNamePlaceholder:Zt,stats:Yt};function f6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V9={exports:{}};/*!
74
+ </svg>`},i2=[{name:"ATM",type:"atm",svgCode:Z1.ATM},{name:"Management",type:"management",svgCode:Z1.Management},{name:"Kids Area",type:"playarea",svgCode:Z1.PlayArea},{name:"Restroom",type:"restroom",svgCode:Z1.RestRoom},{name:"Family Restroom",type:"family-restroom",svgCode:Z1.FamilyRestRoom},{name:"Elevator",type:"elevator",svgCode:Z1.Elevator},{name:"Security",type:"security",svgCode:Z1.Security},{name:"Escalator",type:"escalator",svgCode:Z1.Escalator},{name:"Child Stroller",type:"child-stroller",svgCode:Z1.ChildStroller},{name:"Vending Machine",type:"vending-machine",svgCode:Z1.VendingMachine},{name:"Stairs",type:"stairs",svgCode:Z1.Stairs},{name:"Charging Station",type:"charging-station",svgCode:Z1.ChargingStation},{name:"Wheelchair",type:"wheelchair",svgCode:Z1.WheelChair}],a8={"route-path":0,escalator:0,underlay:0,overlay:1,"building-base":1,base:2,"green-area":2,"parking-lane":2,store:3,"big-store":4,kiosk:5,wall:6,"parking-line":6,"parking-icon":7,"outer-wall":7,boundary:8,amenity:9,"layer-image":10,"layer-text":11,"route-tube":12,"special-shape":13},$2=()=>{const{mapConfig:e,allMapObjects:t,allIndexedMapObjects:l,allIndexedRetailers:r,floorsData:n}=Q1(),o=C.useCallback(s=>s!=null&&a8[s]!==void 0?a8[s]:0,[]),a=C.useCallback((s,c,u,_)=>{const A={color:u instanceof Q.Color?u:O1(u),side:Q.DoubleSide,transparent:!1,depthWrite:!0,depthTest:!0,opacity:1};(e.STYLE==="2D"||s==="base"||s==null)&&s!=="boundary"&&(A.depthWrite=!1,A.depthTest=!1),s==="overlay"&&(A.color=e.OVERLAY_COLOR,A.opacity=e.OVERLAY_OPACITY),s&&["store","big-store","kiosk"].includes(s)&&e.ROLE!=="PORTAL"&&l[c]&&l[c].transparent&&(A.opacity=0);var v=new Q.MeshBasicMaterial(A);return s&&["store","big-store","kiosk","amenity"].includes(s)&&(v.colorDefault=v.color.clone(),l[c]&&l[c].bg_color!==""&&(v.color=O1(l[c].bg_color),v.colorDefault=v.color.clone()),v.active=!1),e.ROLE!=="PORTAL"&&_&&(v.opacity=0,v.transparent=!0),v.transparent=v.opacity!==1,v},[l,e.OVERLAY_COLOR,e.OVERLAY_OPACITY,e.ROLE,e.STYLE]),q=C.useCallback((s,c,u,_,A)=>{const v="MaterialAndGeometry";let b=A.toShapes(!0),h;e.STYLE==="2D"?h=["building-base"]:h=["store","big-store","base","building-base"];let d=["wall","outer-wall","boundary","parking-line"];var y;if(s&&h.includes(s))y=new Q.ExtrudeGeometry(b,{depth:-u,bevelEnabled:!1});else if(s&&d.includes(s)){let f=0;s==="boundary"&&(f=1),y=xt(A,_,u,f,c)}else{y=new Q.ShapeGeometry(b);try{y.attributes.position.count===0&&console.warn(v+'Unneccessary map shape "%s"',c,A.userData.node)}catch(f){console.error(f.message)}}return y},[e.STYLE]),i=C.useCallback((s,c,u,_,A,v,b,h,d,y)=>{var S,L;const f=a(s,c,u,_),m=q(s,c,b,h,y),p=new Q.Mesh(m??new Q.ShapeGeometry,f);p.object_id=c,p.mesh_type=s,p.floor_index=d,p.visible=A,p.position.z=v;let E="";if(["retail_logo","retail_name","retail_text","custom_text","amenity"].includes((S=l[c])==null?void 0:S.layer_type)){if(l[c].layer_type&&["retail_name","retail_logo"].includes(l[c].layer_type)&&l[c].retailer_id&&r[((L=l[c])==null?void 0:L.retailer_id)||0])E=r[l[c].retailer_id].retail_name;else if(["retail_text","custom_text"].includes(l[c].layer_type))E=l[c].custom_text,E===""&&l[c].retailer_id&&r[l[c].retailer_id]&&(E=r[l[c].retailer_id].retail_name);else if(["amenity"].includes(l[c].layer_type)&&(E=l[c].value,E)){const B=i2.find(V=>V.type===E);B&&(E=B.name)}}return p.userData.storeName=E,e.STYLE==="2D"&&(p.renderOrder=o(s),c&&c.includes("underlay")&&(p.renderOrder=o("underlay"))),n[d].objsGroup.add(p),s==="escalator"&&(n[d].escalatorsNodes[c]=null,n[d].escalatorsObjs.push(p),p.escalator_id=d+"-"+c),s&&["store","big-store","kiosk","amenity"].includes(s)&&(p.route_node_id=null,l[c]&&l[c].layer_type,t.push(c),(e.ROLE!=="PORTAL"&&s==="kiosk"||e.ROLE!=="PORTAL"&&e.ROLE!=="PORTAL_KIOSK"&&l[c]&&l[c].obj_type==="retailer"&&l[c].retailer_id!=null||e.ROLE!=="PORTAL"&&e.ROLE!=="PORTAL_KIOSK"&&l[c]&&l[c].obj_type==="custom"&&l[c].custom_text!==""||e.ROLE!=="PORTAL"&&e.ROLE!=="PORTAL_KIOSK"&&l[c]&&l[c].layer_type==="amenity"&&l[c].value!==null||e.ROLE==="PORTAL"&&l[c]&&(l[c].obj_type==="special"||l[c].obj_type==="custom")||e.ROLE==="PORTAL"&&["store","kiosk","amenity"].includes(p.mesh_type??"")||e.ROLE==="PORTAL")&&n[d].interactiveObjs.push(p)),{mesh:p,geometry:m??new Q.ShapeGeometry,material:f,object_id:c,mesh_type:s,floor_index:d,visible:A,renderOrder:p.renderOrder}},[l,r,t,n,q,a,o,e.ROLE,e.STYLE]);return{getRenderOrder:o,getMaterial:a,getGeometry:q,getMaterialAndGeometry:i}},x3="ROUTE: ",ht=1e4,D9=()=>{const{floorsData:e,allNodesFloor:t,ngraphPath:l,pathFinderGraph:r,allIndexedMapObjects:n}=Q1(),{getRenderOrder:o}=$2(),a=C.useCallback((d,y,f)=>{if(!f.data)return!1;let m=f.data.weight;const p=t[d.id],E=t[y.id];return p!==E?m+ht+Math.abs(p-E):m},[t]),q=C.useCallback(d=>{var y;for(let f=0;f<d.length;f++){const m=d[f];m.route_active=!1,m.route_tube!=null&&(m.route_tube.geometry.dispose(),m.route_tube.material.dispose(),(y=m.objsGroup)==null||y.remove(m.route_tube)),m.route_tube=void 0,m.route_texture=null,m.escalatorMeshes=[]}},[]),i=C.useCallback((d,y,f)=>{let m=f.find(d,y);return m.length===0?!1:m},[]),s=C.useCallback((d,y,f)=>{let p=document.createElement("canvas").getContext("2d");if(p){p.canvas.width=d,p.canvas.height=80,p.fillStyle="#4ea5ff",p.fillRect(0,0,d,80);let E=.1*d;const S=60,L=120;E<S&&(E=S),E>L&&(E=L);let B=p.createLinearGradient(0,0,E,0);B.addColorStop(0,"#4ea5ff"),B.addColorStop(.4,"white"),B.addColorStop(.6,"white"),B.addColorStop(1,"#4ea5ff"),p.fillStyle=B,p.fillRect(10,0,E,80);let V=new Q.CanvasTexture(p.canvas);return V.offset.x=1,V.colorSpace="srgb",f[y].route_texture=V,V}else return},[]),c=C.useCallback((d,y,f,m="2D")=>{var V;let p=0,E=new Q.CurvePath;for(let e1=1;e1<d.length;e1++){let X=new Q.Vector3(d[e1-1].data.x,d[e1-1].data.y,0),r1=new Q.Vector3(d[e1].data.x,d[e1].data.y,0);E.add(new Q.LineCurve3(X,r1)),p+=X.distanceTo(r1)}var S=new Q.TubeGeometry(E,400,6,8);S=new Q.BufferGeometry().copy(S);var L=new Q.MeshBasicMaterial({map:s(p,y,f),transparent:!0,side:Q.DoubleSide,depthTest:!1,depthWrite:!1});let B=new Q.Mesh(S,L);return m==="2D"&&(B.position.z=-10,B.scale.z=.1),B.position.z=0,B.renderOrder=o("route-tube"),B.mesh_type="route-tube",B.geometry.index!==null?B.geometry.setDrawRange(0,B.geometry.index.count):console.warn("route_tube.geometry.index is null"),f[y].route_tube=B,(V=f[y].objsGroup)==null||V.add(B),B},[o,s]),u=C.useCallback((d,y,f,m,p,E,S,L,B=null)=>{var P,W,H,O,R,g;const V=[];q(E);let e1=f.getObjectByProperty("object_id",d),X=f.getObjectByProperty("object_id",y),r1=e1.route_node_id,K=X.route_node_id;if(r1||console.error(x3+'Route Anchor point missing for "%s"',d),K||console.error(x3+'Route Anchor point missing for "%s"',y),!r1||!K)return V;const l1=e1.floor_index,$=X.floor_index,J=l.nba(S,{distance:a,oriented:!0,blocked(x,z,Z){return Z.data.blocked},debug:!0}),j=i(r1,K,J),q1=[];if(!j)return[];j.reverse();const G=[];for(let x=0;x<j.length;x++){const z=j[x];G[m[z.id]]?G[m[z.id]].push(z):G[m[z.id]]=[z],p.includes(z.id)&&p.includes(j[x-1].id)&&p.includes(j[x+1].id),q1.push(z)}for(let x=0;x<q1.length;x++){const z=q1[x];if(m[q1[0].id]!==m[q1[q1.length-1].id]&&p.includes(z.id)){const Z=Object.keys(E[m[z.id]].escalatorsNodes).find(T=>{var n1,U;return((U=(n1=E[m[z.id]])==null?void 0:n1.escalatorsNodes)==null?void 0:U[T])===z.id}),k=f.getObjectByProperty("escalator_id",m[z.id]+"-"+Z);let t1=null;if(m[z.id]!==m[q1[x+1].id]&&p.includes(q1[x+1].id)&&(t1={index:m[q1[x+1].id],direction:"To"}),m[z.id]!==m[q1[x-1].id]&&p.includes(q1[x-1].id)&&(t1={index:m[q1[x-1].id],direction:"From"}),t1&&k){k.goToFloor=t1;const T=k.clone();T.goToFloor=t1,T.object_id=Z,(W=(P=E[m[z.id]])==null?void 0:P.escalatorMeshes)==null||W.push(T)}}}for(let x=0;x<G.length;x++){const z=G[x];if(z&&z.length>1){const Z=c(z,x,E,L);V[x]=Z,E[x].route_active=!0,E[x].routeMeshes=[Z],x===l1&&((O=(H=E[x])==null?void 0:H.routeMeshes)==null||O.push(e1)),x===$&&((g=(R=E[x])==null?void 0:R.routeMeshes)==null||g.push(X))}}return V},[c,i,l,q,a]),_=C.useCallback((d,y,f,m,p,E,S,L)=>{if(y===f)return{routePaths:[],fromFloor:void 0};const B=u(y,f,m,d,E,p,S,L);B.length||console.warn(x3+'No route found in between "%s" and "%s"',y,f);let V=m.getObjectByProperty("object_id",y);return{routePaths:B,fromFloor:V.floor_index}},[u]),A=C.useCallback((d,y,f,m)=>{let p=0,E=f.find(y,d);if(E.length===0)return!1;for(let S=1;S<E.length;S++){let L=m.getLink(E[S-1].id,E[S].id);p+=(L==null?void 0:L.data.weight)||0}return p},[]),v=C.useCallback(()=>{if(e.length>1){const d=[],y=[];for(let f=0;f<e.length;f++)y[f]=[],e[f].escalatorsNodes&&(d[f]=Object.fromEntries(Object.entries(e[f].escalatorsNodes).map(([m,p])=>{const E=m.split("-"),S=E.slice(0,2).join("-"),L=E.includes("end"),B=E.includes("start"),V=E.includes("up"),e1=E.includes("down"),X=V?"up":e1?"down":"both";return y[f].push(S),[S,{node:p,escalatorId:S,isExitOnly:L,isEntranceOnly:B,upOnly:V,downOnly:e1,direction:X,floorsTo:[]}]})));for(let f=0;f<e.length;f++)for(let m=0;m<y[f].length;m++){const p=y[f][m],E=d[f][p];for(let S=f+1;S<e.length;S++)for(let L=0;L<y[S].length;L++){const B=y[S][L];p===B&&E.floorsTo.push(S)}}for(let f=0;f<e.length-1;f++){const m=d[f];for(const p in m){const E=m[p],S=E.node;E.floorsTo.forEach(L=>{const V=d[L][p].node;V&&(E.isExitOnly?(r.addLink(S,V,{blocked:!0}),r.addLink(V,S,{weight:1})):E.isEntranceOnly?(r.addLink(V,S,{blocked:!0}),r.addLink(S,V,{weight:1})):(r.addLink(S,V,{weight:1}),r.addLink(V,S,{weight:1})))})}}}},[e,r]),b=C.useCallback((d,y,f,m,p)=>{let E=f.getObjectByProperty("object_id",d),S=E?E.route_node_id:"";var L=null,B=9999;const V=[];for(let e1 in n){const X=n[e1];X.layer_type==="amenity"&&X.obj_type==="special"&&X.value===y&&V.push(e1)}return V.forEach(e1=>{let X=f.getObjectByProperty("object_id",e1);const r1=l.aStar(r,{distance:a,debug:!0});if(X&&S){var K=X.route_node_id;try{var l1=A(S||"",K||"",r1,r);l1&&l1<B&&(B=l1,L=e1)}catch($){console.warn(`Amenity Path: ${$.message}`)}}!S&&X&&(L=K)}),_(t,d,L??"",f,e,m,r,p)},[n,t,_,e,A,l,r,a]),h=C.useCallback((d,y,f)=>{const m=new Map,p=e[d];return p&&p.route_points&&p.route_points.forEach(E=>{let S=new Q.Vector3(E.node.x,E.node.y,-10),L=new Q.Vector3(0,0,1);f.set(S,L);var B=f.intersectObjects(e[d].interactiveObjs);B.length&&(B[0].object.route_node_id=E.name,m.set(B[0].object.object_id,E.name));var V=f.intersectObjects(e[d].escalatorsObjs);if(V.length){let X=V[0].object.object_id;const r1=e[d].escalatorsNodes;r1&&(r1[X]=E.name,t[E.name]=d,y.push(E.name))}}),m},[t,e]);return{delete_route_path:q,create_route:_,create_route_paths:u,create_route_path:c,get_route_nodes:i,get_nodes_distance:A,get_route_texture:s,linkFloorEscalators:v,make_amenity_route:b,assign_route_nodes_to_stores:h}};function pt(e){if(!e||e.nodeType!==1)return;let t=e;for(;t;){const l=t.getAttribute("id");if(l)return l;t=t.parentElement}}function gt(e){return"node-"+e}function i8(e,t,l,r){let n=!1,o="-name-not-found-";const a=l[t];if(a.route_points!==void 0){for(let q=0;q<a.route_points.length;q++)if(e.x===a.route_points[q].node.x&&e.y===a.route_points[q].node.y){n=!0,o=a.route_points[q].name;break}n||(o=gt(r))}return[o,n]}const bt=()=>{const{mapConfig:e,floorsData:t,allNodesFloor:l,pathFinderGraph:r}=Q1();return{getMeshParams:C.useCallback((o,a,q,i)=>{var p;const s="MeshParams";let c=null;var u=o.color.clone(),_=0,A=0,v=!0,b=!0,h=!1,d=e.WALL_THICKNESS,y=!0,f=pt((p=o.userData)==null?void 0:p.node);return f!==void 0?f.startsWith("boundary")?(c="boundary",u=e.BOUNDARY_COLOR,d=e.BOUNDARY_THICKNESS,e.STYLE==="3D"&&(_=9)):f.startsWith("wall")?(c="wall",u=e.WALL_COLOR,e.STYLE==="3D"&&(_=8.5)):f.startsWith("outer-wall")?(c="outer-wall",u=e.WALL_COLOR,e.STYLE==="3D"&&(b=!1)):f.startsWith("base")?(c="base",u=e.BASE_COLOR):f.startsWith("store")?(c="store",u=e.STORE_DEFAULT_COLOR,e.STYLE==="3D"&&(_=e.STORE_HEIGHT),f.startsWith("store-underlay")&&(y=!1)):f.startsWith("route-path")?(c="route-path",b=!1,o.subPaths.forEach(E=>{E.curves.length===0&&console.warn(s+'Route-path standalone anchor point exists, layer_name: "%s"',f),E.curves.forEach(S=>{var K,l1;const L=S.v1,B=S.v2,[V,e1]=i8(L,q,t,i);e1||((K=t[q].route_points)==null||K.push({name:V,node:new Q.Vector3(L.x,L.y,1)}),l[V]=q);const[X,r1]=i8(B,q,t,i);r1||((l1=t[q].route_points)==null||l1.push({name:X,node:new Q.Vector3(B.x,B.y,1)}),l[X]=q),r.addNode(V,{...L}),r.addNode(X,{...B}),r.addLink(V,X,{weight:L.distanceTo(B)}),r.addLink(X,V,{weight:L.distanceTo(B)})})})):f.startsWith("escalator-")?(c="escalator",v=!1,h=!0):f.startsWith("kiosk-")?(c="kiosk",h=!0):f.startsWith("amenity-")?(c="amenity",h=!0,A=1):f.startsWith("overlay")?c="overlay":f.startsWith("special-shape")?c="special-shape":f.startsWith("parking-lane")?(c="parking-lane",u=h4.PARKING_LANE_COLOR,e.STYLE==="3D"&&(_=1)):f.startsWith("parking-line")?(c="parking-line",u=h4.PARKING_LINE_COLOR,d=h4.PARKING_LINE_THICKNESS,e.STYLE==="3D"&&(_=.5)):f.startsWith("parking-icon")?(c="parking-icon",u=h4.PARKING_ICON_COLOR,e.STYLE==="3D"&&(_=1)):f.startsWith("green-area")?(c="green-area",u=h4.GREEN_AREA_COLOR,e.STYLE==="3D"&&(_=1)):_=1:console.warn(s+"Layer name is undefined, path",o),{mesh_type:c,layer_color:u,extrude:_,z_index:A,mesh_visible:v,mesh_draw:b,mesh_transparent:h,line_thickness:d,interactiveMesh:y,path:o,layer_name:f}},[l,t,e.STORE_HEIGHT,e.STYLE,e.BASE_COLOR,e.BOUNDARY_COLOR,e.BOUNDARY_THICKNESS,e.STORE_DEFAULT_COLOR,e.WALL_COLOR,e.WALL_THICKNESS,r])}};let q8=0;const _t=e=>{const{mapConfig:t,pathFinderGraph:l,floorsData:r}=Q1(),{getMaterialAndGeometry:n}=$2(),{getMeshParams:o}=bt(),{assign_route_nodes_to_stores:a,linkFloorEscalators:q}=D9(),[i,s,c]=C.useMemo(()=>{q8=0;const u=new Set,_=[],A=[];e.forEach((v,b)=>{var h,d;if(r[b]&&v&&v.paths&&v.paths.length){const y=[];for(let E=0;E<v.paths.length;E++)y.push((d=(h=v.paths[E])==null?void 0:h.userData)==null?void 0:d.node.id);const f=v.paths;for(let E=0;E<f.length;E++){const{mesh_type:S,layer_color:L,extrude:B,z_index:V,mesh_visible:e1,mesh_draw:X,mesh_transparent:r1,line_thickness:K,path:l1,layer_name:$}=o(f[E],f,b,++q8);if(X){const J=n(S,$,L,r1,e1,V,B,K,b,l1);$.startsWith("kiosk-")&&t.ROLE,_[b]||(_[b]=[]),_[b].push(J)}}const m=new Q.Raycaster,p=a(b,A,m);if(p.size&&_[b].length)for(let E=0;E<_[b].length;E++)p.has(_[b][E].mesh.object_id)&&(_[b][E].mesh.route_node_id=p.get(_[b][E].mesh.object_id));q()}});for(let v=0;v<_.length;v++){const b=_[v];for(let h=0;h<b.length;h++)u.add(b[h].object_id)}return[_,A,u]},[a,r,n,o,q,t.ROLE,e]);return{GeometriesAndMaterials:i,graph:l,escalator_nodes:s,allSvgObjectIds:c}},j9=()=>{const{allIndexedRetailers:e,allIndexedMapObjects:t,floorsData:l,mapConfig:r}=Q1(),{getRenderOrder:n}=$2(),o=(v,b,h,d,y,f,m,p)=>{for(let E=0;E<v.length;E++)a(v[E],b,h,d,y,f,m,p)},a=(v,b,h,d,y,f,m,p)=>{let E=b.getObjectByProperty("object_id",v.map_obj_name);E&&add_store_name_logo(E,h,d,y,f,m,p,b)},q=v=>(Array.isArray(v)||(v=[v]),v.reduce((h,d)=>(d.geometry.boundingBox||d.geometry.computeBoundingBox(),h.union(d.geometry.boundingBox),h),new Q.Box3)),i=(v,b,h,d,y)=>{let f=y[v];b.z=-h.z,d.rotateZ(((f==null?void 0:f.rotate)||0)*Math.PI/180),d.scale.y*=-1,b.x+=(f==null?void 0:f.offset_x)||0,b.y+=(f==null?void 0:f.offset_y)||0,d.position.set(b.x,b.y,b.z+1)},s=async v=>{try{const b=T2(v,r);return b}catch(b){return console.error("Error fetching or converting the image:",b),""}},c=(v,b)=>new Promise((h,d)=>{var y;if(v.obj_type==="retailer")b?s(b.logo).then(f=>{h(f||b.logo)}):(console.error("retailer not found"),h(""));else if(v.obj_type==="special"){let f=v.value;if(v.layer_type==="kiosk"&&(f="kiosk"),v.layer_type==="escalator"&&(f="escalator"),f){let m="222222";v.text_color!=null&&(m=v.text_color.replace("#",""));const p=document.getElementById("map-special-svg-"+f);if(p){const E=p.querySelector("svg");if(E){const S=E.cloneNode(!0);S.querySelectorAll("[fill]").forEach(X=>{X.setAttribute("fill","#"+m)});const B=new XMLSerializer().serializeToString(S),V=new Blob([B],{type:"image/svg+xml"}),e1=URL.createObjectURL(V);h(e1)}else console.error("svg_element not found",f),h("")}else console.error("svg_block not found",f),h("")}}else v.custom_image!==""&&((y=v==null?void 0:v.custom_image)!=null&&y.startsWith("http"))?h(T2(v.custom_image,r)):(console.error("custom_image URL not found"),h(""))}),u=(v,b,h)=>{const d=document.createElement("img");d.crossOrigin="anonymous",d.src=v,d.onload=function(){const y=document.getElementById("temp-image-rendering");y&&(d.style.height="100px",y.appendChild(d),setTimeout(()=>{const f=document.createElement("canvas"),m=f.getContext("2d");if(m){f.width=d.width*G6,f.height=d.height*G6,m==null||m.drawImage(d,0,0,f.width,f.height);let p=new Q.CanvasTexture(f);p.colorSpace="srgb";const E=new Q.PlaneGeometry(b.size,b.size*d.height/d.width),S=new Q.MeshBasicMaterial({map:p,transparent:!0,side:Q.DoubleSide,depthTest:!1,depthWrite:!1});b.layer_type==="kiosk"&&(S.visible=!1),h(E,S)}},100))},d.onerror=function(){console.error("processImage():: Error loading image:",v)}},_=C.useCallback((v,b,h,d,y,f,m,p,E,S)=>{c(h,b[h.retailer_id]).then(L=>{L&&u(L,h,(B,V)=>{var r1;const e1=new Q.Mesh(B,V),X=d.floor_index;i(y,m,p,e1,v),e1.object_id=f,e1.floor_index=X,e1.renderOrder=n("layer-image"),(r1=E[X])==null||r1.objsGroup.add(e1),S({storeLogo:e1})})})},[n]),A=C.useCallback((v,b,h,d,y,f)=>{const m=d+b;let p=null;if(v.boundingBox||v.computeBoundingBox(),!v.boundingBox)return null;const E=v.boundingBox,S=new Q.Vector3;E.getCenter(S);const L=new Q.Vector3;E.getSize(L);let B=t[b]?t[b]:{layer_type:b.startsWith("escalator")?"escalator":"custom_text",custom_text:"",size:8};if(["retail_name","retail_text","custom_text"].includes(B.layer_type)){let V="";B.layer_type==="retail_name"&&B.retailer_id&&e[B.retailer_id]?V=e[B.retailer_id].retail_name:["retail_text","custom_text"].includes(B.layer_type)?V=B.custom_text:V="";let e1=r.STORE_TEXT_COLOR;B.text_color&&(e1=O1(B.text_color));const X={color:e1,transparent:!1,side:Q.DoubleSide,depthWrite:!1,depthTest:!1};let r1=new Q.MeshBasicMaterial(X),K=new k9(V,{font:y,size:parseInt(B.size),height:.01,curveSegments:4});K.center();const l1=new Q.Mesh(K,r1);l1.userData.debug_name=V,l1.userData.font=y,i(b,S,L,l1,t),l1.object_id=m,l1.floor_index=h,l1.renderOrder=n("layer-text"),B.layer_type==="retail_name"&&(l1.userData.retail_name=V),l[h].objsGroup.add(l1),p={textMesh:l1}}else(B.layer_type==="retail_logo"||B.layer_type==="custom_image"||B.obj_type==="special"&&B.layer_type==="kiosk"&&B.kiosk_id!=null||B.obj_type==="special"&&B.layer_type==="amenity"&&B.value!==""||B.layer_type==="escalator")&&_(t,e,B,v,b,m,S,L,l,f);return p},[t,e,l,_,n,r.STORE_TEXT_COLOR]);return{drawTextLogoStoreOnMap:o,addTextOrLogoOnStore:a,getMeshGroupBoundingBox:q,layer_text_logo_position_by_id:i,getImage:c,processImage:u,getImageLogo:_,get_store_name_logo_geometry:A}};let h3=[];const vt=()=>{const{mapConfig:e,initialFloorsDataIsLoaded:t,allIndexedMapObjects:l,allIndexedRetailers:r,allMapObjects:n,allNodesFloor:o,pathFinderGraph:a,setPathFinderGraph:q,mapApiResponse:i}=Q1(),[s,c]=C.useState([]),[u,_]=C.useState([]),[A,v]=C.useState([]),[b,h]=C.useState([]);let d=y4.useLoader(E7,i.floors.map(V=>T2(V.svgUrl,e)));const{GeometriesAndMaterials:y,graph:f,escalator_nodes:m,allSvgObjectIds:p}=_t(d),{get_store_name_logo_geometry:E}=j9(),S=S4.useFont(s9),L=C.useCallback(V=>e1=>{v(X=>(X[V]?X[V].push({...e1}):X[V]=[{...e1}],[...X]))},[]),B=C.useCallback(()=>{c(V=>(V&&V.forEach(e1=>{e1&&e1.forEach(X=>{X.mesh.removeFromParent()})}),[])),_(V=>(V&&V.forEach(e1=>{e1&&e1.forEach(X=>{X.textMesh.removeFromParent()})}),[])),v(V=>(V&&V.forEach(e1=>{e1&&e1.forEach(X=>{X.storeLogo.removeFromParent()})}),[]))},[]);return C.useEffect(()=>{if(t&&e.ROLE==="PORTAL")return()=>{B()}},[B,t]),C.useEffect(()=>()=>{B()},[]),C.useEffect(()=>{if(!S||!d)return;v([]);const V=[];if(h3.forEach(r1=>{let K;for(let $=0;$<y.length&&(K=y[$].find(J=>J.object_id===r1.map_obj_name),K===void 0);$++);if(!K)return null;const l1=E(K.geometry,r1.map_obj_name,K.floor_index,N2,S,L(K.floor_index));l1&&(V[K.floor_index]||(V[K.floor_index]=[]),V[K.floor_index].push(l1))}),y.reduce((r1,K)=>r1+K.length,0)-h3.length!==0){const r1=new Set;h3.forEach(K=>{r1.add(K.map_obj_name)}),y.forEach(K=>{K.forEach(l1=>{if(!r1.has(l1.object_id)){const $=E(l1.geometry,l1.object_id,l1.floor_index,N2,S,L(l1.floor_index));$&&(V[l1.floor_index]||(V[l1.floor_index]=[]),V[l1.floor_index].push($))}})})}c([...y]),_(V),q(f),h([...m])},[d,S,l,r,n,o,a,e,q,L,y,E,f,m]),C.useMemo(()=>({meshParams:s,textParams:u,storeLogos:A,pathFinderGraph:a,escalator_nodes:b,allSvgObjectIds:p}),[s,u,A,a,b,p])},Ct=e=>{const{scene:t}=y4.useThree();return e.background&&(t.background=new Q.Color(e.background)),null},yt=e=>{const{camera:t}=y4.useThree(),l=e.far||e.near||e.fov;return e.far&&(t.far=e.far),e.near&&(t.near=e.near),t instanceof Q.PerspectiveCamera&&e.fov&&(t.fov=e.fov),l&&t.updateProjectionMatrix(),null};function s8(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}function It({mesh:e}){const t=C.useRef(null);return C.useEffect(()=>{var o;if(!e)return;if(!((o=e.geometry.index)!=null&&o.count)){console.log("NO ROUTE TUBE GEOMETRY INDEX COUNT");return}if(!(e.material instanceof Q.MeshBasicMaterial))return;if(!e.material.map){console.log("NO ROUTE TEXTURE");return}e.geometry.setDrawRange(0,0);const l=e.geometry.index.count,r=(()=>{const q=performance.now();return()=>{const i=(performance.now()-q)/1e3,s=Math.floor(s8(i)*l);i>=1&&(t.current=n),e.geometry.setDrawRange(0,s)}})(),n=(()=>{if(!(e.material instanceof Q.MeshBasicMaterial)||!e.material.map)return null;const a=e.material.map.offset,q=2e3,i=.1,s=1+i,c=performance.now();return()=>{const u=(performance.now()-c)/q%1;a.x=i-s*s8(u)}})();return t.current=r,()=>{t.current=null,e.removeFromParent(),e.material instanceof Q.MeshBasicMaterial&&e.material.dispose(),e.geometry&&e.geometry.dispose()}},[e]),y4.useFrame(()=>{if(t.current)try{t.current()}catch(l){console.error(`ERROR ANIMATE ROUTE: ${l.message}`),t.current=null}}),e?M.jsx("primitive",{object:e}):null}const Et="_escalator_elems_1kqb9_1",At="_element_1kqb9_4",Rt="_svgIcon_1kqb9_21",St="_label_1kqb9_34",f2={escalator_elems:Et,element:At,svgIcon:Rt,label:St},Ot="_mapCenterMarker_1eu0j_18",zt={mapCenterMarker:Ot},c8=({size:e,lockSize:t,blink:l,cameraLength:r,text_color:n="black"})=>{const{mapConfig:o}=Q1(),[,a]=C.useState(1),[q,i]=C.useState(null),s=t?5*e/256:8*e;C.useEffect(()=>{!t&&r!==void 0&&a(1-(r-o.CAMERA.minDistance)/(o.CAMERA.maxDistance-o.CAMERA.minDistance))},[t,o,r]);const c=C.useMemo(()=>q?new Q.SpriteMaterial({map:q,sizeAttenuation:!t,depthTest:!1,depthWrite:!1,color:n}):null,[t,q,n]);return C.useEffect(()=>{var _;const u=(_=document.getElementById("map-special-svg-kiosk"))==null?void 0:_.querySelector("svg");if(u){const A=u.cloneNode(!0),v=new XMLSerializer().serializeToString(A),b=new Blob([v],{type:"image/svg+xml"}),h=URL.createObjectURL(b),d=document.createElement("canvas");d.width=256,d.height=256;const y=d.getContext("2d"),f=document.createElement("img");f.src=h,f.onload=()=>{y==null||y.drawImage(f,96,0,64,128);const m=new Q.Texture(d);m.needsUpdate=!0,i(m)}}},[]),c?M.jsxs("group",{children:[M.jsx("sprite",{scale:s,material:c}),l&&M.jsx(S4.Html,{children:M.jsx("div",{className:`mapCenterMarker ${zt.mapCenterMarker}`})})]}):null},u8=e=>{const{type:t,mesh:l,currentFloorIndex:r}=e;C.useEffect(()=>(l.userData.triggerUpdate=()=>{},()=>l.userData.triggerUpdate=void 0),[l.userData]);const{cameraLength:n}=Q1();switch(t){case"storeLogo":return l.userData.kioskConfig&&l.userData.kioskConfig.floorIndex===r?M.jsx("primitive",{object:l,children:M.jsx(c8,{size:l.userData.kioskConfig.size,blink:l.userData.kioskConfig.blink,cameraLength:n,lockSize:l.userData.kioskConfig.lockSize,text_color:l.userData.kioskConfig.text_color})},l.uuid):M.jsx("primitive",{object:l,children:l.userData.htmlContent?M.jsx(S4.Html,{style:{pointerEvents:"none"},distanceFactor:l.userData.distanceFactor,children:l.userData.htmlContent}):null},l.uuid);case"kiosk":return l.userData.kioskConfig&&l.userData.kioskConfig.floorIndex===r?M.jsx(c8,{size:l.userData.kioskConfig.size,blink:l.userData.kioskConfig.blink,cameraLength:n,lockSize:l.userData.kioskConfig.lockSize,text_color:l.userData.kioskConfig.text_color}):null;default:return null}},wt=e=>{const{meshFloors:t,routeTube:l,floorIndex:r,currentFloorIndex:n,activeObjectId:o,hoverObjectId:a,visible:q,handleChangeFloor:i}=e,{mapConfig:s,floorsData:c}=Q1(),{meshParams:u,textParams:_,storeLogos:A}=t,v=c[r],b=e.onPointerMove,h=e.onPointerEnter,d=e.onPointerLeave,y=e.onClick,f=u[r],m=_[r],p=A[r],E=c[r].escalatorMeshes;return M.jsxs("group",{visible:q,children:[f==null?void 0:f.map(S=>{if(!S.mesh)return null;const L=q&&S.mesh.visible&&v.interactiveObjs&&v.interactiveObjs.includes(S.mesh),B=a&&S.mesh.object_id===a,V=o&&S.mesh.object_id===o;if(L&&S.mesh.material instanceof Q.MeshBasicMaterial){const e1=S.mesh.material.colorDefault;if(e1){const X=V?s.ACCENT_COLOR:e1;S.mesh.material.color.copy(B?F7(X):c9(X))}}return M.jsx("group",{...L?{onPointerOver:h,onPointerMove:b,onPointerOut:d,onClick:y}:{},children:M.jsx("primitive",{object:S.mesh})},S.mesh.uuid)}),m==null?void 0:m.map(S=>S.textMesh?M.jsx(C.Fragment,{children:M.jsx("primitive",{object:S.textMesh,children:S.textMesh.userData.kioskConfig?M.jsx(u8,{mesh:S.textMesh,currentFloorIndex:n,type:"kiosk",visible:q},void 0):null})},S.textMesh.uuid):null),p==null?void 0:p.map(S=>S.storeLogo?M.jsx(u8,{mesh:S.storeLogo,currentFloorIndex:n,type:"storeLogo",visible:q},S.storeLogo.uuid):null),E==null?void 0:E.map(S=>{var L,B;return M.jsx("primitive",{object:S,children:M.jsx(S4.Html,{visible:!0,position:(L=S.geometry.boundingSphere)==null?void 0:L.center,children:M.jsx("div",{className:`escalator_elems ${f2.escalator_elems}`,style:{display:q?"block":"none"},onClick:V=>{var e1;return V.stopPropagation(),i(((e1=S.goToFloor)==null?void 0:e1.index)||0),!1},onPointerMove:V=>V.stopPropagation(),children:M.jsxs("div",{className:`element ${f2.element}`,id:S.object_id,children:[M.jsx("div",{className:`svgIcon ${f2.svgIcon}`,dangerouslySetInnerHTML:{__html:u9("escalator")}}),M.jsxs("div",{className:`label ${f2.label}`,children:[(B=S.goToFloor)==null?void 0:B.direction,": ",S.goToFloor?c[S.goToFloor.index].name:""]})]})})})},`escalator-${S.object_id}`)}),M.jsx(It,{mesh:l})]})};function m8(e,t,l,r){if(Array.isArray(e)||(e=[e]),!e.length)return console.warn("get_camera_focus_object: no objects passed"),{position:new Q.Vector3,target:new Q.Vector3};const n=e.reduce((b,h)=>(h.geometry.boundingBox||h.geometry.computeBoundingBox(),h.geometry.boundingBox&&b.union(h.geometry.boundingBox),b),new Q.Box3),o=new Q.Vector3;n.getSize(o);const a=new Q.Vector3;n.getCenter(a),e[0].localToWorld(a);let q=Math.tan(Math.PI*t/360),i=1.1,s=o.x*i/2/(q*l),c=o.y*i/2/q,u=Math.max(s,c),_=Tt(u,r);const A=new Q.Vector3(a.x,0,a.z);return{position:new Q.Vector3(a.x,u,a.z+_),target:A}}function Tt(e,t){let l=60;return t==="2D"&&(l=89.9),e/Math.tan(l*Math.PI/180)}const Nt=C.forwardRef((e,t)=>{const{mapConfig:l,allMapObjects:r,allIndexedMapObjects:n,allNodesFloor:o,mapApiResponse:a,pathFinderGraph:q,setCameraLength:i,floorsData:s}=Q1(),{make_amenity_route:c,create_route:u}=D9(),[_,A]=C.useState(!1),{meshFloors:v,currentFloorIndex:b,currKioskObj:h,currKioskFloorIndex:d,routeTargetId:y,routeTargetFromId:f,selectedAmenityType:m,handleChangeFloor:p,escalatorNodes:E,zoom:S,handleCameraLength:L,handleCameraAndControlsChange:B,activeObjectId:V,isSelectedRetailerSlug:e1,setIsCameraInit:X,handleObjectClick:r1,triggerClick:K,cameraControlsPosition:l1,deviceType:$}=e,[J,j]=C.useState({min:l.CAMERA.minDistance,max:l.CAMERA.maxDistance,initialDistance:0,needsUpdate:!0}),q1=C.useRef(null),[G,P]=C.useState([]),W=C.useRef(null),{camera:H,scene:O}=y4.useThree(),R=C.useRef(null),g=l.STYLE,x=l.ACCENT_COLOR,z=h?h.object_id:f||void 0,Z=l.ROLE==="PORTAL"&&y,k=C.useCallback((D=!1)=>{if(!(H instanceof Q.PerspectiveCamera)){console.error("Camera is not a PerspectiveCamera");return}const w=v.meshParams[d];if(!(w!=null&&w.length)){console.warn("objects not loaded yet");return}let I;I=w.map(_1=>_1.mesh);const o1=m8(I,H.fov,H.aspect,l.ROLE==="PORTAL"?"2D":g);let s1=!0;if(l1){let _1=l1.camera;_1 instanceof Q.Vector3||(_1=new Q.Vector3(_1.x,_1.y,_1.z)),s1=_1.length()===0}!D&&l1&&!s1&&!["PORTAL"].includes(l.ROLE)&&(o1.position.set(l1.camera.x,l1.camera.y,l1.camera.z),o1.target.set(l1.controls.x,l1.controls.y,l1.controls.z));const b1=Math.min(J.max,Math.max(J.min,o1.position.distanceTo(o1.target)));o1.position.sub(o1.target).setLength(b1).add(o1.target),R.current={...o1,fromPosition:W.current.object.position.clone(),fromTarget:W.current.target.clone(),animationStartTime:performance.now(),duration:l.CAMERA.animSpeed},["DISPLAY_APP","WP_SITE"].includes(l.ROLE)&&J.needsUpdate===!1&&J.initialDistance>0&&j(_1=>({..._1,min:l.CAMERA.minDistance<.1?.1:l.CAMERA.minDistance,max:l.CAMERA.maxDistance}))},[H,J.needsUpdate,l.CAMERA.animSpeed,l.CAMERA.maxDistance,l.CAMERA.minDistance,l1,l.ROLE,d,v.meshParams,g]),t1=R.current?R.current.position.distanceTo(R.current.target):0;C.useEffect(()=>{l1&&k()},[l1,k]),C.useEffect(()=>{t1>0&&J.needsUpdate&&(j({min:l.CAMERA.minDistance<.1?.1:l.CAMERA.minDistance,max:l.CAMERA.maxDistance,initialDistance:t1,needsUpdate:!1}),X(!0))},[t1,J.needsUpdate,l.CAMERA,X]),C.useEffect(()=>{j(D=>({...D,needsUpdate:!0}))},[l.CAMERA]),C.useEffect(()=>{v.meshParams.length>0&&k()},[v.meshParams.length,k]),C.useEffect(()=>{if(!m||l.ROLE==="PORTAL"){P([]);return}const{routePaths:D,fromFloor:w}=c(z??"",m,O,E,g);P(D),w!==void 0&&p(w),h&&l.ROLE==="DISPLAY_APP"&&p(d)},[m,O,q,s,E,g,z,l.ROLE,o,n,c,h,p,d]);const T=C.useCallback(()=>{s.flat().forEach(D=>D.escalatorMeshes=[])},[s]);C.useEffect(()=>{if(!z||!y||l.ROLE==="PORTAL"){if(l.ROLE==="PORTAL")if(y){const I=O.getObjectByProperty("object_id",y);I&&P([I])}else T(),P([]);else m||(T(),P([]));return}m||s.forEach(I=>{I.escalatorMeshes=[]});const{routePaths:D,fromFloor:w}=u(o,z,y,O,s,v.escalator_nodes,q,g);P(D),w!==void 0&&p(w)},[z,y,O,H,s,x,q,g,v.escalator_nodes,m,l.ROLE,o,K,u,T,p]);const n1=v.meshParams[b];C.useEffect(()=>{var s1;if(l.ROLE==="PORTAL_RESPONSIVE")return;if(!(H instanceof Q.PerspectiveCamera)){console.error("Camera is not a PerspectiveCamera");return}if(!(n1!=null&&n1.length)){console.warn("objects not loaded yet");return}let D=(s1=s[b])==null?void 0:s1.routeMeshes;if(!V&&!m)return;let w=[];if(G[b]&&(D!=null&&D.length))w=[...D];else if(V&&(l.ROLE==="PORTAL"||e1)){const b1=y&&n1.find(_1=>_1.mesh.object_id===y);b1&&(w=[b1.mesh])}w.length||(w=n1.map(b1=>b1.mesh));const I=m8(w,H.fov,H.aspect,l.ROLE==="PORTAL"||l.ROLE==="WP_SITE"?"2D":g),o1=Math.min(Z?l.CAMERA.maxDistance:J.max,Math.max(Z?l.CAMERA.minDistance:J.min,I.position.distanceTo(I.target)));I.position.sub(I.target).setLength(o1).add(I.target),R.current={...I,fromPosition:W.current.object.position.clone(),fromTarget:W.current.target.clone(),animationStartTime:performance.now(),duration:l.CAMERA.animSpeed}},[G,n1,b,g,H,y,l.ROLE,l.CAMERA.maxDistance,l.CAMERA.minDistance,l.CAMERA.animSpeed,s,V,m,e1,Z,J.max,J.min]),C.useEffect(()=>{if(S!=null&&S.direction&&W.current){if(!(H instanceof Q.PerspectiveCamera)){console.error("Camera is not a PerspectiveCamera");return}if(!n1.length){console.warn("objects not loaded yet");return}let D;if(G[b]){D=[G[b]];const o1=y&&n1.find(s1=>s1.mesh.object_id===y);o1&&D.push(o1.mesh)}else D=n1.map(o1=>o1.mesh);const w={position:W.current.object.position.clone(),target:W.current.target.clone()};let I=parseInt(w.position.distanceTo(w.target));S.direction==="in"?I-=l.ZOOM_STEP:I+=l.ZOOM_STEP,I=Math.min(J.max,Math.max(J.min,I)),w.position.sub(w.target).setLength(I).add(w.target),R.current={...w,fromPosition:W.current.object.position.clone(),fromTarget:W.current.target.clone(),animationStartTime:performance.now(),duration:l.CAMERA.animSpeed}}},[S]);const U=()=>J.initialDistance,Y=C.useCallback(D=>{if(L){const w=new Q.Vector3;w.copy(D.target.object.position),w.sub(W.current.target),L(w.length()),i(w.length()),B&&B({camera:W.current.object.position.clone(),controls:W.current.target.clone()})}},[L,B,i]);y4.useFrame(()=>{var D,w;if((D=R.current)!=null&&D.duration&&((w=R.current)==null?void 0:w.duration)>0){_||(A(!0),R.current.duration=0);const I=R.current,o1=(performance.now()-I.animationStartTime)/1e3,s1=Math.min(1,o1/(I==null?void 0:I.duration));W.current.object.position.lerpVectors(I.fromPosition,I.position,s1),W.current.target.lerpVectors(I==null?void 0:I.fromTarget,I.target,s1),W.current.object.updateProjectionMatrix(),s1>=1&&(R.current=null)}});const N=C.useCallback(D=>{if(D>0){const w=a.retailers.find(I=>I.id===D);if(w){const I=a.map_objs.filter(o1=>o1.retailer_id===w.id);for(let o1=0;o1<I.length;o1++)if(r.includes(I[o1].map_obj_name)){const s1=O.getObjectByProperty("object_id",I[o1].map_obj_name);s1&&r1(s1,I[o1].map_obj_name,!0);break}}}},[r1,a,O]);return C.useImperativeHandle(t,()=>({resetCamera:k,createRouteToStore:N,getInitialDistance:U})),M.jsxs("group",{rotation:[Math.PI/2,0,0],ref:q1,children:[M.jsx(S4.MapControls,{makeDefault:!0,onChange:Y,ref:W,maxPolarAngle:Math.PI/2,minDistance:Z?d4.CAMERA.minDistance:J.min,maxDistance:Z?d4.CAMERA.maxDistance:J.max,enableZoom:l.ROLE==="PORTAL"||l.ROLE==="DISPLAY_APP"||l.ROLE==="WP_SITE"&&["mobile","tablet"].includes($),enableRotate:l.ROLE!=="WP_SITE"&&l.ROLE!=="PORTAL_RESPONSIVE"&&l.ROLE!=="DISPLAY_APP",dampingFactor:.3}),s&&s.map((D,w)=>M.jsx(wt,{visible:b===w,floorIndex:w,currentFloorIndex:b,currKioskObj:e.currKioskObj,activeObjectId:e.activeObjectId,hoverObjectId:e.hoverObjectId,meshFloors:v,routeTube:l.ROLE!=="PORTAL"?G&&G[w]:void 0,onPointerEnter:e.onPointerEnter,onPointerLeave:e.onPointerLeave,onPointerMove:e.onPointerMove,onClick:e.onClick,handleChangeFloor:p},`Map-${w}`))]})}),Mt="_threejsMapWrapper_6jbfd_1",Lt="_threejsMap_6jbfd_1",Pt="_map_controls_6jbfd_18",Ft="_amenities_6jbfd_112",Bt="_amenity_6jbfd_123",Gt="_content_6jbfd_155",kt="_icon_6jbfd_163",Dt="_name_6jbfd_176",u4={threejsMapWrapper:Mt,threejsMap:Lt,map_controls:Pt,amenities:Ft,amenity:Bt,content:Gt,icon:kt,name:Dt},jt=e=>{const{selectedFloorIndex:t,handleFloorChange:l,amenitiesList:r,zoomIn:n,zoomOut:o,reset:a,handleAmenityClick:q,onExtractedAmenities:i}=e,{mapConfig:s,mapApiResponse:c,floorsData:u,allMapObjects:_}=Q1(),A=b=>{b.preventDefault(),a instanceof Function&&(s.ROLE==="PORTAL_RESPONSIVE"||s.ROLE==="PORTAL"?a(!0):a())},v=C.useMemo(()=>c!=null&&c.map_objs?c==null?void 0:c.map_objs.filter(b=>b.layer_type==="amenity"&&_.includes(b.map_obj_name)).map(b=>b.value):[],[c,_]);return C.useEffect(()=>{i&&i(v)},[i,v]),M.jsx("div",{className:u4.threejsMapWrapper,children:M.jsxs("div",{className:u4.threejsMap,children:[u.length>0&&M.jsx("div",{className:`map_controls ${u4.map_controls}`,children:M.jsxs("div",{className:"map_controls_wrapper",children:[M.jsx("div",{className:"floors btn_group",children:u.length>1&&u.map((b,h)=>M.jsx("div",{className:`floor control_btn ${h===t?"active":""}`,onClick:()=>{l(h)},children:b.name},h))}),M.jsxs("div",{className:"reset-zoom",children:[M.jsx("div",{onClick:A,className:"reset_btn control_btn",children:"RESET"}),M.jsxs("div",{className:"zoom_btns",children:[M.jsx("div",{onClick:o,className:"zoom-out control_btn",children:"–"}),M.jsx("div",{onClick:n,className:"zoom-in control_btn",children:"+"})]})]})]})}),M.jsx("div",{className:"loading_map",children:"Map loading, please wait..."}),!["PORTAL","DISPLAY_APP"].includes(s.ROLE)&&M.jsx("div",{className:`amenities ${u4.amenities}`,style:{display:"block"},children:r.map((b,h)=>v.includes(b.type)?M.jsx("div",{className:`amenity ${u4.amenity}`,onClick:()=>q(b.type),children:M.jsxs("div",{className:`content ${u4.content}`,children:[M.jsx("div",{className:`icon ${u4.icon}`,dangerouslySetInnerHTML:{__html:u9(b.type)}}),M.jsx("div",{className:`name ${u4.name}`,children:b.name})]})},`amenity-${b.name}-${h}`):null)})]})})},Vt="_mapBoxSidebar_kftp4_1",Wt="_active_kftp4_6",Ht="_sidebarWrapper_kftp4_10",Xt="_sidebarBox_kftp4_15",Zt="_mapBox_kftp4_1",Yt="_storeNamePlaceholder_kftp4_29",Jt="_stats_kftp4_41",f4={mapBoxSidebar:Vt,active:Wt,sidebarWrapper:Ht,sidebarBox:Xt,mapBox:Zt,storeNamePlaceholder:Yt,stats:Jt};function f6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V9={exports:{}};/*!
75
75
  Copyright (c) 2018 Jed Watson.
76
76
  Licensed under the MIT License (MIT), see
77
77
  http://jedwatson.github.io/classnames
78
- */(function(e){(function(){var t={}.hasOwnProperty;function l(){for(var o="",a=0;a<arguments.length;a++){var q=arguments[a];q&&(o=n(o,r(q)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return l.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var q in o)t.call(o,q)&&o[q]&&(a=n(a,q));return a}function n(o,a){return a?o?o+" "+a:o+a:o}e.exports?(l.default=l,e.exports=l):window.classNames=l})()})(V9);var Jt=V9.exports;const w1=f6(Jt);function h1(){return h1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},h1.apply(null,arguments)}function W9(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;l[r]=e[r]}return l}function F2(e,t){return F2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,r){return l.__proto__=r,l},F2(e,t)}function Ut(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F2(e,t)}const $t=["xxl","xl","lg","md","sm","xs"],Qt="xs",q2=c1.createContext({prefixes:{},breakpoints:$t,minBreakpoint:Qt}),{Consumer:Tq,Provider:Nq}=q2;function G1(e,t){const{prefixes:l}=C.useContext(q2);return e||l[t]||t}function Kt(){const{breakpoints:e}=C.useContext(q2);return e}function el(){const{minBreakpoint:e}=C.useContext(q2);return e}function tl(){const{dir:e}=C.useContext(q2);return e==="rtl"}function Q2(e){return e&&e.ownerDocument||document}function ll(e){var t=Q2(e);return t&&t.defaultView||window}function nl(e,t){return ll(e).getComputedStyle(e,t)}var rl=/([A-Z])/g;function ol(e){return e.replace(rl,"-$1").toLowerCase()}var al=/^ms-/;function x2(e){return ol(e).replace(al,"-ms-")}var il=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function ql(e){return!!(e&&il.test(e))}function C4(e,t){var l="",r="";if(typeof t=="string")return e.style.getPropertyValue(x2(t))||nl(e).getPropertyValue(x2(t));Object.keys(t).forEach(function(n){var o=t[n];!o&&o!==0?e.style.removeProperty(x2(n)):ql(n)?r+=n+"("+o+") ":l+=x2(n)+": "+o+";"}),r&&(l+="transform: "+r+";"),e.style.cssText+=";"+l}var G3={exports:{}},h2={exports:{}},y1={};/** @license React v16.13.1
78
+ */(function(e){(function(){var t={}.hasOwnProperty;function l(){for(var o="",a=0;a<arguments.length;a++){var q=arguments[a];q&&(o=n(o,r(q)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return l.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var q in o)t.call(o,q)&&o[q]&&(a=n(a,q));return a}function n(o,a){return a?o?o+" "+a:o+a:o}e.exports?(l.default=l,e.exports=l):window.classNames=l})()})(V9);var Ut=V9.exports;const w1=f6(Ut);function h1(){return h1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},h1.apply(null,arguments)}function W9(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;l[r]=e[r]}return l}function F2(e,t){return F2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(l,r){return l.__proto__=r,l},F2(e,t)}function $t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,F2(e,t)}const Qt=["xxl","xl","lg","md","sm","xs"],Kt="xs",q2=c1.createContext({prefixes:{},breakpoints:Qt,minBreakpoint:Kt}),{Consumer:Nq,Provider:Mq}=q2;function G1(e,t){const{prefixes:l}=C.useContext(q2);return e||l[t]||t}function el(){const{breakpoints:e}=C.useContext(q2);return e}function tl(){const{minBreakpoint:e}=C.useContext(q2);return e}function ll(){const{dir:e}=C.useContext(q2);return e==="rtl"}function Q2(e){return e&&e.ownerDocument||document}function nl(e){var t=Q2(e);return t&&t.defaultView||window}function rl(e,t){return nl(e).getComputedStyle(e,t)}var ol=/([A-Z])/g;function al(e){return e.replace(ol,"-$1").toLowerCase()}var il=/^ms-/;function x2(e){return al(e).replace(il,"-ms-")}var ql=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function sl(e){return!!(e&&ql.test(e))}function C4(e,t){var l="",r="";if(typeof t=="string")return e.style.getPropertyValue(x2(t))||rl(e).getPropertyValue(x2(t));Object.keys(t).forEach(function(n){var o=t[n];!o&&o!==0?e.style.removeProperty(x2(n)):sl(n)?r+=n+"("+o+") ":l+=x2(n)+": "+o+";"}),r&&(l+="transform: "+r+";"),e.style.cssText+=";"+l}var G3={exports:{}},h2={exports:{}},y1={};/** @license React v16.13.1
79
79
  * react-is.production.min.js
80
80
  *
81
81
  * Copyright (c) Facebook, Inc. and its affiliates.
82
82
  *
83
83
  * This source code is licensed under the MIT license found in the
84
84
  * LICENSE file in the root directory of this source tree.
85
- */var d8;function sl(){if(d8)return y1;d8=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case t:switch(p=p.type,p){case i:case s:case r:case o:case n:case u:return p;default:switch(p=p&&p.$$typeof,p){case q:case c:case v:case A:case a:return p;default:return E}}case l:return E}}}function m(p){return f(p)===s}return y1.AsyncMode=i,y1.ConcurrentMode=s,y1.ContextConsumer=q,y1.ContextProvider=a,y1.Element=t,y1.ForwardRef=c,y1.Fragment=r,y1.Lazy=v,y1.Memo=A,y1.Portal=l,y1.Profiler=o,y1.StrictMode=n,y1.Suspense=u,y1.isAsyncMode=function(p){return m(p)||f(p)===i},y1.isConcurrentMode=m,y1.isContextConsumer=function(p){return f(p)===q},y1.isContextProvider=function(p){return f(p)===a},y1.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},y1.isForwardRef=function(p){return f(p)===c},y1.isFragment=function(p){return f(p)===r},y1.isLazy=function(p){return f(p)===v},y1.isMemo=function(p){return f(p)===A},y1.isPortal=function(p){return f(p)===l},y1.isProfiler=function(p){return f(p)===o},y1.isStrictMode=function(p){return f(p)===n},y1.isSuspense=function(p){return f(p)===u},y1.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===s||p===o||p===n||p===u||p===_||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===A||p.$$typeof===a||p.$$typeof===q||p.$$typeof===c||p.$$typeof===h||p.$$typeof===d||p.$$typeof===y||p.$$typeof===b)},y1.typeOf=f,y1}var I1={};/** @license React v16.13.1
85
+ */var d8;function cl(){if(d8)return y1;d8=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case t:switch(p=p.type,p){case i:case s:case r:case o:case n:case u:return p;default:switch(p=p&&p.$$typeof,p){case q:case c:case v:case A:case a:return p;default:return E}}case l:return E}}}function m(p){return f(p)===s}return y1.AsyncMode=i,y1.ConcurrentMode=s,y1.ContextConsumer=q,y1.ContextProvider=a,y1.Element=t,y1.ForwardRef=c,y1.Fragment=r,y1.Lazy=v,y1.Memo=A,y1.Portal=l,y1.Profiler=o,y1.StrictMode=n,y1.Suspense=u,y1.isAsyncMode=function(p){return m(p)||f(p)===i},y1.isConcurrentMode=m,y1.isContextConsumer=function(p){return f(p)===q},y1.isContextProvider=function(p){return f(p)===a},y1.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},y1.isForwardRef=function(p){return f(p)===c},y1.isFragment=function(p){return f(p)===r},y1.isLazy=function(p){return f(p)===v},y1.isMemo=function(p){return f(p)===A},y1.isPortal=function(p){return f(p)===l},y1.isProfiler=function(p){return f(p)===o},y1.isStrictMode=function(p){return f(p)===n},y1.isSuspense=function(p){return f(p)===u},y1.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===s||p===o||p===n||p===u||p===_||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===A||p.$$typeof===a||p.$$typeof===q||p.$$typeof===c||p.$$typeof===h||p.$$typeof===d||p.$$typeof===y||p.$$typeof===b)},y1.typeOf=f,y1}var I1={};/** @license React v16.13.1
86
86
  * react-is.development.js
87
87
  *
88
88
  * Copyright (c) Facebook, Inc. and its affiliates.
89
89
  *
90
90
  * This source code is licensed under the MIT license found in the
91
91
  * LICENSE file in the root directory of this source tree.
92
- */var f8;function cl(){return f8||(f8=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(T){return typeof T=="string"||typeof T=="function"||T===r||T===s||T===o||T===n||T===u||T===_||typeof T=="object"&&T!==null&&(T.$$typeof===v||T.$$typeof===A||T.$$typeof===a||T.$$typeof===q||T.$$typeof===c||T.$$typeof===h||T.$$typeof===d||T.$$typeof===y||T.$$typeof===b)}function m(T){if(typeof T=="object"&&T!==null){var n1=T.$$typeof;switch(n1){case t:var U=T.type;switch(U){case i:case s:case r:case o:case n:case u:return U;default:var Y=U&&U.$$typeof;switch(Y){case q:case c:case v:case A:case a:return Y;default:return n1}}case l:return n1}}}var p=i,E=s,S=q,L=a,B=t,V=c,e1=r,X=v,r1=A,K=l,l1=o,$=n,J=u,j=!1;function q1(T){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(T)||m(T)===i}function G(T){return m(T)===s}function P(T){return m(T)===q}function W(T){return m(T)===a}function H(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function O(T){return m(T)===c}function R(T){return m(T)===r}function g(T){return m(T)===v}function x(T){return m(T)===A}function z(T){return m(T)===l}function Z(T){return m(T)===o}function k(T){return m(T)===n}function t1(T){return m(T)===u}I1.AsyncMode=p,I1.ConcurrentMode=E,I1.ContextConsumer=S,I1.ContextProvider=L,I1.Element=B,I1.ForwardRef=V,I1.Fragment=e1,I1.Lazy=X,I1.Memo=r1,I1.Portal=K,I1.Profiler=l1,I1.StrictMode=$,I1.Suspense=J,I1.isAsyncMode=q1,I1.isConcurrentMode=G,I1.isContextConsumer=P,I1.isContextProvider=W,I1.isElement=H,I1.isForwardRef=O,I1.isFragment=R,I1.isLazy=g,I1.isMemo=x,I1.isPortal=z,I1.isProfiler=Z,I1.isStrictMode=k,I1.isSuspense=t1,I1.isValidElementType=f,I1.typeOf=m}()),I1}var x8;function H9(){return x8||(x8=1,process.env.NODE_ENV==="production"?h2.exports=sl():h2.exports=cl()),h2.exports}/*
92
+ */var f8;function ul(){return f8||(f8=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(T){return typeof T=="string"||typeof T=="function"||T===r||T===s||T===o||T===n||T===u||T===_||typeof T=="object"&&T!==null&&(T.$$typeof===v||T.$$typeof===A||T.$$typeof===a||T.$$typeof===q||T.$$typeof===c||T.$$typeof===h||T.$$typeof===d||T.$$typeof===y||T.$$typeof===b)}function m(T){if(typeof T=="object"&&T!==null){var n1=T.$$typeof;switch(n1){case t:var U=T.type;switch(U){case i:case s:case r:case o:case n:case u:return U;default:var Y=U&&U.$$typeof;switch(Y){case q:case c:case v:case A:case a:return Y;default:return n1}}case l:return n1}}}var p=i,E=s,S=q,L=a,B=t,V=c,e1=r,X=v,r1=A,K=l,l1=o,$=n,J=u,j=!1;function q1(T){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(T)||m(T)===i}function G(T){return m(T)===s}function P(T){return m(T)===q}function W(T){return m(T)===a}function H(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function O(T){return m(T)===c}function R(T){return m(T)===r}function g(T){return m(T)===v}function x(T){return m(T)===A}function z(T){return m(T)===l}function Z(T){return m(T)===o}function k(T){return m(T)===n}function t1(T){return m(T)===u}I1.AsyncMode=p,I1.ConcurrentMode=E,I1.ContextConsumer=S,I1.ContextProvider=L,I1.Element=B,I1.ForwardRef=V,I1.Fragment=e1,I1.Lazy=X,I1.Memo=r1,I1.Portal=K,I1.Profiler=l1,I1.StrictMode=$,I1.Suspense=J,I1.isAsyncMode=q1,I1.isConcurrentMode=G,I1.isContextConsumer=P,I1.isContextProvider=W,I1.isElement=H,I1.isForwardRef=O,I1.isFragment=R,I1.isLazy=g,I1.isMemo=x,I1.isPortal=z,I1.isProfiler=Z,I1.isStrictMode=k,I1.isSuspense=t1,I1.isValidElementType=f,I1.typeOf=m}()),I1}var x8;function H9(){return x8||(x8=1,process.env.NODE_ENV==="production"?h2.exports=cl():h2.exports=ul()),h2.exports}/*
93
93
  object-assign
94
94
  (c) Sindre Sorhus
95
95
  @license MIT
96
- */var p3,h8;function ul(){if(h8)return p3;h8=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},q=0;q<10;q++)a["_"+String.fromCharCode(q)]=q;var i=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(c){s[c]=c}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return p3=n()?Object.assign:function(o,a){for(var q,i=r(o),s,c=1;c<arguments.length;c++){q=Object(arguments[c]);for(var u in q)t.call(q,u)&&(i[u]=q[u]);if(e){s=e(q);for(var _=0;_<s.length;_++)l.call(q,s[_])&&(i[s[_]]=q[s[_]])}}return i},p3}var g3,p8;function x6(){if(p8)return g3;p8=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return g3=e,g3}var b3,g8;function X9(){return g8||(g8=1,b3=Function.call.bind(Object.prototype.hasOwnProperty)),b3}var _3,b8;function ml(){if(b8)return _3;b8=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=x6(),l={},r=X9();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function n(o,a,q,i,s){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var u;try{if(typeof o[c]!="function"){var _=Error((i||"React class")+": "+q+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}u=o[c](a,c,i,q,null,t)}catch(v){u=v}if(u&&!(u instanceof Error)&&e((i||"React class")+": type specification of "+q+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in l)){l[u.message]=!0;var A=s?s():"";e("Failed "+q+" type: "+u.message+(A??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(l={})},_3=n,_3}var v3,_8;function dl(){if(_8)return v3;_8=1;var e=H9(),t=ul(),l=x6(),r=X9(),n=ml(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(q){var i="Warning: "+q;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}});function a(){return null}return v3=function(q,i){var s=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function u(G){var P=G&&(s&&G[s]||G[c]);if(typeof P=="function")return P}var _="<<anonymous>>",A={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:y(),arrayOf:f,element:m(),elementType:p(),instanceOf:E,node:V(),objectOf:L,oneOf:S,oneOfType:B,shape:X,exact:r1};function v(G,P){return G===P?G!==0||1/G===1/P:G!==G&&P!==P}function b(G,P){this.message=G,this.data=P&&typeof P=="object"?P:{},this.stack=""}b.prototype=Error.prototype;function h(G){if(process.env.NODE_ENV!=="production")var P={},W=0;function H(R,g,x,z,Z,k,t1){if(z=z||_,k=k||x,t1!==l){if(i){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var n1=z+":"+x;!P[n1]&&W<3&&(o("You are manually calling a React.PropTypes validation function for the `"+k+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[n1]=!0,W++)}}return g[x]==null?R?g[x]===null?new b("The "+Z+" `"+k+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new b("The "+Z+" `"+k+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:G(g,x,z,Z,k)}var O=H.bind(null,!1);return O.isRequired=H.bind(null,!0),O}function d(G){function P(W,H,O,R,g,x){var z=W[H],Z=$(z);if(Z!==G){var k=J(z);return new b("Invalid "+R+" `"+g+"` of type "+("`"+k+"` supplied to `"+O+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return h(P)}function y(){return h(a)}function f(G){function P(W,H,O,R,g){if(typeof G!="function")return new b("Property `"+g+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var x=W[H];if(!Array.isArray(x)){var z=$(x);return new b("Invalid "+R+" `"+g+"` of type "+("`"+z+"` supplied to `"+O+"`, expected an array."))}for(var Z=0;Z<x.length;Z++){var k=G(x,Z,O,R,g+"["+Z+"]",l);if(k instanceof Error)return k}return null}return h(P)}function m(){function G(P,W,H,O,R){var g=P[W];if(!q(g)){var x=$(g);return new b("Invalid "+O+" `"+R+"` of type "+("`"+x+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return h(G)}function p(){function G(P,W,H,O,R){var g=P[W];if(!e.isValidElementType(g)){var x=$(g);return new b("Invalid "+O+" `"+R+"` of type "+("`"+x+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return h(G)}function E(G){function P(W,H,O,R,g){if(!(W[H]instanceof G)){var x=G.name||_,z=q1(W[H]);return new b("Invalid "+R+" `"+g+"` of type "+("`"+z+"` supplied to `"+O+"`, expected ")+("instance of `"+x+"`."))}return null}return h(P)}function S(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function P(W,H,O,R,g){for(var x=W[H],z=0;z<G.length;z++)if(v(x,G[z]))return null;var Z=JSON.stringify(G,function(t1,T){var n1=J(T);return n1==="symbol"?String(T):T});return new b("Invalid "+R+" `"+g+"` of value `"+String(x)+"` "+("supplied to `"+O+"`, expected one of "+Z+"."))}return h(P)}function L(G){function P(W,H,O,R,g){if(typeof G!="function")return new b("Property `"+g+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var x=W[H],z=$(x);if(z!=="object")return new b("Invalid "+R+" `"+g+"` of type "+("`"+z+"` supplied to `"+O+"`, expected an object."));for(var Z in x)if(r(x,Z)){var k=G(x,Z,O,R,g+"."+Z,l);if(k instanceof Error)return k}return null}return h(P)}function B(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var P=0;P<G.length;P++){var W=G[P];if(typeof W!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(W)+" at index "+P+"."),a}function H(O,R,g,x,z){for(var Z=[],k=0;k<G.length;k++){var t1=G[k],T=t1(O,R,g,x,z,l);if(T==null)return null;T.data&&r(T.data,"expectedType")&&Z.push(T.data.expectedType)}var n1=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new b("Invalid "+x+" `"+z+"` supplied to "+("`"+g+"`"+n1+"."))}return h(H)}function V(){function G(P,W,H,O,R){return K(P[W])?null:new b("Invalid "+O+" `"+R+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return h(G)}function e1(G,P,W,H,O){return new b((G||"React class")+": "+P+" type `"+W+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function X(G){function P(W,H,O,R,g){var x=W[H],z=$(x);if(z!=="object")return new b("Invalid "+R+" `"+g+"` of type `"+z+"` "+("supplied to `"+O+"`, expected `object`."));for(var Z in G){var k=G[Z];if(typeof k!="function")return e1(O,R,g,Z,J(k));var t1=k(x,Z,O,R,g+"."+Z,l);if(t1)return t1}return null}return h(P)}function r1(G){function P(W,H,O,R,g){var x=W[H],z=$(x);if(z!=="object")return new b("Invalid "+R+" `"+g+"` of type `"+z+"` "+("supplied to `"+O+"`, expected `object`."));var Z=t({},W[H],G);for(var k in Z){var t1=G[k];if(r(G,k)&&typeof t1!="function")return e1(O,R,g,k,J(t1));if(!t1)return new b("Invalid "+R+" `"+g+"` key `"+k+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(W[H],null," ")+`
97
- Valid keys: `+JSON.stringify(Object.keys(G),null," "));var T=t1(x,k,O,R,g+"."+k,l);if(T)return T}return null}return h(P)}function K(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(K);if(G===null||q(G))return!0;var P=u(G);if(P){var W=P.call(G),H;if(P!==G.entries){for(;!(H=W.next()).done;)if(!K(H.value))return!1}else for(;!(H=W.next()).done;){var O=H.value;if(O&&!K(O[1]))return!1}}else return!1;return!0;default:return!1}}function l1(G,P){return G==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function $(G){var P=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":l1(P,G)?"symbol":P}function J(G){if(typeof G>"u"||G===null)return""+G;var P=$(G);if(P==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return P}function j(G){var P=J(G);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function q1(G){return!G.constructor||!G.constructor.name?_:G.constructor.name}return A.checkPropTypes=n,A.resetWarningCache=n.resetWarningCache,A.PropTypes=A,A},v3}var C3,v8;function fl(){if(v8)return C3;v8=1;var e=x6();function t(){}function l(){}return l.resetWarningCache=t,C3=function(){function r(a,q,i,s,c,u){if(u!==e){var _=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 _.name="Invariant Violation",_}}r.isRequired=r;function n(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:t};return o.PropTypes=o,o},C3}if(process.env.NODE_ENV!=="production"){var xl=H9(),hl=!0;G3.exports=dl()(xl.isElement,hl)}else G3.exports=fl()();var pl=G3.exports;const d1=f6(pl),C8={disabled:!1};var gl=process.env.NODE_ENV!=="production"?d1.oneOfType([d1.number,d1.shape({enter:d1.number,exit:d1.number,appear:d1.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&d1.oneOfType([d1.string,d1.shape({enter:d1.string,exit:d1.string,active:d1.string}),d1.shape({enter:d1.string,enterDone:d1.string,enterActive:d1.string,exit:d1.string,exitDone:d1.string,exitActive:d1.string})]);const Z9=C.createContext(null);var bl=function(t){return t.scrollTop},$4="unmounted",x4="exited",m4="entering",p4="entered",k3="exiting",s4=function(e){Ut(t,e);function t(r,n){var o;o=e.call(this,r,n)||this;var a=n,q=a&&!a.isMounting?r.enter:r.appear,i;return o.appearStatus=null,r.in?q?(i=x4,o.appearStatus=m4):i=p4:r.unmountOnExit||r.mountOnEnter?i=$4:i=x4,o.state={status:i},o.nextCallback=null,o}t.getDerivedStateFromProps=function(n,o){var a=n.in;return a&&o.status===$4?{status:x4}:null};var l=t.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(n){var o=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==m4&&a!==p4&&(o=m4):(a===m4||a===p4)&&(o=k3)}this.updateStatus(!1,o)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var n=this.props.timeout,o,a,q;return o=a=q=n,n!=null&&typeof n!="number"&&(o=n.exit,a=n.enter,q=n.appear!==void 0?n.appear:a),{exit:o,enter:a,appear:q}},l.updateStatus=function(n,o){if(n===void 0&&(n=!1),o!==null)if(this.cancelNextCallback(),o===m4){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:b4.findDOMNode(this);a&&bl(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===x4&&this.setState({status:$4})},l.performEnter=function(n){var o=this,a=this.props.enter,q=this.context?this.context.isMounting:n,i=this.props.nodeRef?[q]:[b4.findDOMNode(this),q],s=i[0],c=i[1],u=this.getTimeouts(),_=q?u.appear:u.enter;if(!n&&!a||C8.disabled){this.safeSetState({status:p4},function(){o.props.onEntered(s)});return}this.props.onEnter(s,c),this.safeSetState({status:m4},function(){o.props.onEntering(s,c),o.onTransitionEnd(_,function(){o.safeSetState({status:p4},function(){o.props.onEntered(s,c)})})})},l.performExit=function(){var n=this,o=this.props.exit,a=this.getTimeouts(),q=this.props.nodeRef?void 0:b4.findDOMNode(this);if(!o||C8.disabled){this.safeSetState({status:x4},function(){n.props.onExited(q)});return}this.props.onExit(q),this.safeSetState({status:k3},function(){n.props.onExiting(q),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:x4},function(){n.props.onExited(q)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(n,o){o=this.setNextCallback(o),this.setState(n,o)},l.setNextCallback=function(n){var o=this,a=!0;return this.nextCallback=function(q){a&&(a=!1,o.nextCallback=null,n(q))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},l.onTransitionEnd=function(n,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:b4.findDOMNode(this),q=n==null&&!this.props.addEndListener;if(!a||q){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],s=i[0],c=i[1];this.props.addEndListener(s,c)}n!=null&&setTimeout(this.nextCallback,n)},l.render=function(){var n=this.state.status;if(n===$4)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var q=W9(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Z9.Provider,{value:null},typeof a=="function"?a(n,q):C.cloneElement(C.Children.only(a),q))},t}(C.Component);s4.contextType=Z9;s4.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:d1.shape({current:typeof Element>"u"?d1.any:function(e,t,l,r,n,o){var a=e[t];return d1.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,l,r,n,o)}}),children:d1.oneOfType([d1.func.isRequired,d1.element.isRequired]).isRequired,in:d1.bool,mountOnEnter:d1.bool,unmountOnExit:d1.bool,appear:d1.bool,enter:d1.bool,exit:d1.bool,timeout:function(t){var l=gl;t.addEndListener||(l=l.isRequired);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return l.apply(void 0,[t].concat(n))},addEndListener:d1.func,onEnter:d1.func,onEntering:d1.func,onEntered:d1.func,onExit:d1.func,onExiting:d1.func,onExited:d1.func}:{};function L4(){}s4.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:L4,onEntering:L4,onEntered:L4,onExit:L4,onExiting:L4,onExited:L4};s4.UNMOUNTED=$4;s4.EXITED=x4;s4.ENTERING=m4;s4.ENTERED=p4;s4.EXITING=k3;function _l(e){return e.code==="Escape"||e.keyCode===27}function vl(){const e=c1.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function K2(e){if(!e||typeof e=="function")return null;const{major:t}=vl();return t>=19?e.props.ref:e.ref}const H4=!!(typeof window<"u"&&window.document&&window.document.createElement);var D3=!1,j3=!1;try{var y3={get passive(){return D3=!0},get once(){return j3=D3=!0}};H4&&(window.addEventListener("test",y3,y3),window.removeEventListener("test",y3,!0))}catch{}function Y9(e,t,l,r){if(r&&typeof r!="boolean"&&!j3){var n=r.once,o=r.capture,a=l;!j3&&n&&(a=l.__once||function q(i){this.removeEventListener(t,q,o),l.call(this,i)},l.__once=a),e.addEventListener(t,a,D3?r:o)}e.addEventListener(t,l,r)}function V3(e,t,l,r){var n=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,l,n),l.__once&&e.removeEventListener(t,l.__once,n)}function B2(e,t,l,r){return Y9(e,t,l,r),function(){V3(e,t,l,r)}}function Cl(e,t,l,r){if(r===void 0&&(r=!0),e){var n=document.createEvent("HTMLEvents");n.initEvent(t,l,r),e.dispatchEvent(n)}}function yl(e){var t=C4(e,"transitionDuration")||"",l=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*l}function Il(e,t,l){l===void 0&&(l=5);var r=!1,n=setTimeout(function(){r||Cl(e,"transitionend",!0)},t+l),o=B2(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(n),o()}}function J9(e,t,l,r){l==null&&(l=yl(e)||0);var n=Il(e,l,r),o=B2(e,"transitionend",t);return function(){n(),o()}}function y8(e,t){const l=C4(e,t)||"",r=l.indexOf("ms")===-1?1e3:1;return parseFloat(l)*r}function El(e,t){const l=y8(e,"transitionDuration"),r=y8(e,"transitionDelay"),n=J9(e,o=>{o.target===e&&(n(),t(o))},l+r)}function Al(e){e.offsetHeight}const I8=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Rl(e,t){const l=I8(e),r=I8(t);return n=>{l&&l(n),r&&r(n)}}function U9(e,t){return C.useMemo(()=>Rl(e,t),[e,t])}function Sl(e){return e&&"setState"in e?b4.findDOMNode(e):e??null}const $9=C.forwardRef(({onEnter:e,onEntering:t,onEntered:l,onExit:r,onExiting:n,onExited:o,addEndListener:a,children:q,childRef:i,...s},c)=>{const u=C.useRef(null),_=U9(u,i),A=E=>{_(Sl(E))},v=E=>S=>{E&&u.current&&E(u.current,S)},b=C.useCallback(v(e),[e]),h=C.useCallback(v(t),[t]),d=C.useCallback(v(l),[l]),y=C.useCallback(v(r),[r]),f=C.useCallback(v(n),[n]),m=C.useCallback(v(o),[o]),p=C.useCallback(v(a),[a]);return M.jsx(s4,{ref:c,...s,onEnter:b,onEntered:d,onEntering:h,onExit:y,onExited:m,onExiting:f,addEndListener:p,nodeRef:u,children:typeof q=="function"?(E,S)=>q(E,{...S,ref:A}):C.cloneElement(q,{ref:A})})});$9.displayName="TransitionWrapper";function Ol(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function W3(e){const t=Ol(e);return C.useCallback(function(...l){return t.current&&t.current(...l)},[t])}const zl=e=>c1.forwardRef((t,l)=>M.jsx("div",{...t,ref:l,className:w1(t.className,e)}));function wl(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function g4(e){const t=wl(e);return C.useCallback(function(...l){return t.current&&t.current(...l)},[t])}function Tl(){const e=C.useRef(!0),t=C.useRef(()=>e.current);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Nl(e){const t=C.useRef(null);return C.useEffect(()=>{t.current=e}),t.current}const Ml=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Ll=typeof document<"u",E8=Ll||Ml?C.useLayoutEffect:C.useEffect,Pl={[m4]:"show",[p4]:"show"},h6=c1.forwardRef(({className:e,children:t,transitionClasses:l={},onEnter:r,...n},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...n},q=C.useCallback((i,s)=>{Al(i),r==null||r(i,s)},[r]);return M.jsx($9,{ref:o,addEndListener:El,...a,onEnter:q,childRef:K2(t),children:(i,s)=>c1.cloneElement(t,{...s,className:w1("fade",e,t.props.className,Pl[i],l[i])})})});h6.displayName="Fade";const Fl={"aria-label":d1.string,onClick:d1.func,variant:d1.oneOf(["white"])},p6=c1.forwardRef(({className:e,variant:t,"aria-label":l="Close",...r},n)=>M.jsx("button",{ref:n,type:"button",className:w1("btn-close",t&&`btn-close-${t}`,e),"aria-label":l,...r}));p6.displayName="CloseButton";p6.propTypes=Fl;function Bl(e){const t=C.useRef(e);return t.current=e,t}function Gl(e){const t=Bl(e);C.useEffect(()=>()=>t.current(),[])}function kl(e,t){return c1.Children.toArray(e).some(l=>c1.isValidElement(l)&&l.type===t)}function Dl({as:e,bsPrefix:t,className:l,...r}){t=G1(t,"col");const n=Kt(),o=el(),a=[],q=[];return n.forEach(i=>{const s=r[i];delete r[i];let c,u,_;typeof s=="object"&&s!=null?{span:c,offset:u,order:_}=s:c=s;const A=i!==o?`-${i}`:"";c&&a.push(c===!0?`${t}${A}`:`${t}${A}-${c}`),_!=null&&q.push(`order${A}-${_}`),u!=null&&q.push(`offset${A}-${u}`)}),[{...r,className:w1(l,...a,...q)},{as:e,bsPrefix:t,spans:a}]}const Q9=c1.forwardRef((e,t)=>{const[{className:l,...r},{as:n="div",bsPrefix:o,spans:a}]=Dl(e);return M.jsx(n,{...r,ref:t,className:w1(l,!a.length&&o)})});Q9.displayName="Col";var jl=Function.prototype.bind.call(Function.prototype.call,[].slice);function P4(e,t){return jl(e.querySelectorAll(t))}function A8(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Vl=process.env.NODE_ENV!=="production",K9=function(){};if(Vl){var Wl=function(t,l){var r=arguments.length;l=new Array(r>1?r-1:0);for(var n=1;n<r;n++)l[n-1]=arguments[n];var o=0,a="Warning: "+t.replace(/%s/g,function(){return l[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};K9=function(e,t,l){var r=arguments.length;l=new Array(r>2?r-2:0);for(var n=2;n<r;n++)l[n-2]=arguments[n];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Wl.apply(null,[t].concat(l))}}var Hl=K9;const e5=f6(Hl),Xl="data-rr-ui-";function Zl(e){return`${Xl}${e}`}const t5=C.createContext(H4?window:void 0);t5.Provider;function g6(){return C.useContext(t5)}const Yl={type:d1.string,tooltip:d1.bool,as:d1.elementType},e3=c1.forwardRef(({as:e="div",className:t,type:l="valid",tooltip:r=!1,...n},o)=>M.jsx(e,{...n,ref:o,className:w1(t,`${l}-${r?"tooltip":"feedback"}`)}));e3.displayName="Feedback";e3.propTypes=Yl;const q4=c1.createContext({}),b6=c1.forwardRef(({id:e,bsPrefix:t,className:l,type:r="checkbox",isValid:n=!1,isInvalid:o=!1,as:a="input",...q},i)=>{const{controlId:s}=C.useContext(q4);return t=G1(t,"form-check-input"),M.jsx(a,{...q,ref:i,type:r,id:e||s,className:w1(l,t,n&&"is-valid",o&&"is-invalid")})});b6.displayName="FormCheckInput";const G2=c1.forwardRef(({bsPrefix:e,className:t,htmlFor:l,...r},n)=>{const{controlId:o}=C.useContext(q4);return e=G1(e,"form-check-label"),M.jsx("label",{...r,ref:n,htmlFor:l||o,className:w1(t,e)})});G2.displayName="FormCheckLabel";const l5=c1.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:l,inline:r=!1,reverse:n=!1,disabled:o=!1,isValid:a=!1,isInvalid:q=!1,feedbackTooltip:i=!1,feedback:s,feedbackType:c,className:u,style:_,title:A="",type:v="checkbox",label:b,children:h,as:d="input",...y},f)=>{t=G1(t,"form-check"),l=G1(l,"form-switch");const{controlId:m}=C.useContext(q4),p=C.useMemo(()=>({controlId:e||m}),[m,e]),E=!h&&b!=null&&b!==!1||kl(h,G2),S=M.jsx(b6,{...y,type:v==="switch"?"checkbox":v,ref:f,isValid:a,isInvalid:q,disabled:o,as:d});return M.jsx(q4.Provider,{value:p,children:M.jsx("div",{style:_,className:w1(u,E&&t,r&&`${t}-inline`,n&&`${t}-reverse`,v==="switch"&&l),children:h||M.jsxs(M.Fragment,{children:[S,E&&M.jsx(G2,{title:A,children:b}),s&&M.jsx(e3,{type:c,tooltip:i,children:s})]})})})});l5.displayName="FormCheck";const k2=Object.assign(l5,{Input:b6,Label:G2}),n5=c1.forwardRef(({bsPrefix:e,type:t,size:l,htmlSize:r,id:n,className:o,isValid:a=!1,isInvalid:q=!1,plaintext:i,readOnly:s,as:c="input",...u},_)=>{const{controlId:A}=C.useContext(q4);return e=G1(e,"form-control"),process.env.NODE_ENV!=="production"&&e5(A==null||!n,"`controlId` is ignored on `<FormControl>` when `id` is specified."),M.jsx(c,{...u,type:t,size:r,ref:_,readOnly:s,id:n||A,className:w1(o,i?`${e}-plaintext`:e,l&&`${e}-${l}`,t==="color"&&`${e}-color`,a&&"is-valid",q&&"is-invalid")})});n5.displayName="FormControl";const Jl=Object.assign(n5,{Feedback:e3}),r5=c1.forwardRef(({className:e,bsPrefix:t,as:l="div",...r},n)=>(t=G1(t,"form-floating"),M.jsx(l,{ref:n,className:w1(e,t),...r})));r5.displayName="FormFloating";const _6=c1.forwardRef(({controlId:e,as:t="div",...l},r)=>{const n=C.useMemo(()=>({controlId:e}),[e]);return M.jsx(q4.Provider,{value:n,children:M.jsx(t,{...l,ref:r})})});_6.displayName="FormGroup";const o5=c1.forwardRef(({as:e="label",bsPrefix:t,column:l=!1,visuallyHidden:r=!1,className:n,htmlFor:o,...a},q)=>{const{controlId:i}=C.useContext(q4);t=G1(t,"form-label");let s="col-form-label";typeof l=="string"&&(s=`${s} ${s}-${l}`);const c=w1(n,t,r&&"visually-hidden",l&&s);return process.env.NODE_ENV!=="production"&&e5(i==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||i,l?M.jsx(Q9,{ref:q,as:"label",className:c,htmlFor:o,...a}):M.jsx(e,{ref:q,className:c,htmlFor:o,...a})});o5.displayName="FormLabel";const a5=c1.forwardRef(({bsPrefix:e,className:t,id:l,...r},n)=>{const{controlId:o}=C.useContext(q4);return e=G1(e,"form-range"),M.jsx("input",{...r,type:"range",ref:n,className:w1(t,e),id:l||o})});a5.displayName="FormRange";const i5=c1.forwardRef(({bsPrefix:e,size:t,htmlSize:l,className:r,isValid:n=!1,isInvalid:o=!1,id:a,...q},i)=>{const{controlId:s}=C.useContext(q4);return e=G1(e,"form-select"),M.jsx("select",{...q,size:l,ref:i,className:w1(r,e,t&&`${e}-${t}`,n&&"is-valid",o&&"is-invalid"),id:a||s})});i5.displayName="FormSelect";const q5=c1.forwardRef(({bsPrefix:e,className:t,as:l="small",muted:r,...n},o)=>(e=G1(e,"form-text"),M.jsx(l,{...n,ref:o,className:w1(t,e,r&&"text-muted")})));q5.displayName="FormText";const s5=c1.forwardRef((e,t)=>M.jsx(k2,{...e,ref:t,type:"switch"}));s5.displayName="Switch";const Ul=Object.assign(s5,{Input:k2.Input,Label:k2.Label}),c5=c1.forwardRef(({bsPrefix:e,className:t,children:l,controlId:r,label:n,...o},a)=>(e=G1(e,"form-floating"),M.jsxs(_6,{ref:a,className:w1(t,e),controlId:r,...o,children:[l,M.jsx("label",{htmlFor:r,children:n})]})));c5.displayName="FloatingLabel";const $l={_ref:d1.any,validated:d1.bool,as:d1.elementType},v6=c1.forwardRef(({className:e,validated:t,as:l="form",...r},n)=>M.jsx(l,{...r,ref:n,className:w1(e,t&&"was-validated")}));v6.displayName="Form";v6.propTypes=$l;const Ql=Object.assign(v6,{Group:_6,Control:Jl,Floating:r5,Check:k2,Switch:Ul,Label:o5,Text:q5,Range:a5,Select:i5,FloatingLabel:c5}),R8=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Kl(e,t){const l=R8(e),r=R8(t);return n=>{l&&l(n),r&&r(n)}}function C6(e,t){return C.useMemo(()=>Kl(e,t),[e,t])}var p2;function S8(e){if((!p2&&p2!==0||e)&&H4){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),p2=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return p2}function en(){return C.useState(null)}function I3(e){e===void 0&&(e=Q2());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function tn(e){const t=C.useRef(e);return t.current=e,t}function ln(e){const t=tn(e);C.useEffect(()=>()=>t.current(),[])}function nn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const O8=Zl("modal-open");class y6{constructor({ownerDocument:t,handleContainerOverflow:l=!0,isRTL:r=!1}={}){this.handleContainerOverflow=l,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return nn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const l={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();t.style={overflow:n.style.overflow,[r]:n.style[r]},t.scrollBarWidth&&(l[r]=`${parseInt(C4(n,r)||"0",10)+t.scrollBarWidth}px`),n.setAttribute(O8,""),C4(n,l)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const l=this.getElement();l.removeAttribute(O8),Object.assign(l.style,t.style)}add(t){let l=this.modals.indexOf(t);return l!==-1||(l=this.modals.length,this.modals.push(t),this.setModalAttributes(t),l!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),l}remove(t){const l=this.modals.indexOf(t);l!==-1&&(this.modals.splice(l,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const E3=(e,t)=>H4?e==null?(t||Q2()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function rn(e,t){const l=g6(),[r,n]=C.useState(()=>E3(e,l==null?void 0:l.document));if(!r){const o=E3(e);o&&n(o)}return C.useEffect(()=>{},[t,r]),C.useEffect(()=>{const o=E3(e);o!==r&&n(o)},[e,r]),r}function on({children:e,in:t,onExited:l,mountOnEnter:r,unmountOnExit:n}){const o=C.useRef(null),a=C.useRef(t),q=g4(l);C.useEffect(()=>{t?a.current=!0:q(o.current)},[t,q]);const i=C6(o,K2(e)),s=C.cloneElement(e,{ref:i});return t?s:n||!a.current&&r?null:s}const an=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function qn(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;l[r]=e[r]}return l}function sn(e){let{onEnter:t,onEntering:l,onEntered:r,onExit:n,onExiting:o,onExited:a,addEndListener:q,children:i}=e,s=qn(e,an);const c=C.useRef(null),u=C6(c,K2(i)),_=m=>p=>{m&&c.current&&m(c.current,p)},A=C.useCallback(_(t),[t]),v=C.useCallback(_(l),[l]),b=C.useCallback(_(r),[r]),h=C.useCallback(_(n),[n]),d=C.useCallback(_(o),[o]),y=C.useCallback(_(a),[a]),f=C.useCallback(_(q),[q]);return Object.assign({},s,{nodeRef:c},t&&{onEnter:A},l&&{onEntering:v},r&&{onEntered:b},n&&{onExit:h},o&&{onExiting:d},a&&{onExited:y},q&&{addEndListener:f},{children:typeof i=="function"?(m,p)=>i(m,Object.assign({},p,{ref:u})):C.cloneElement(i,{ref:u})})}const cn=["component"];function un(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;l[r]=e[r]}return l}const mn=c1.forwardRef((e,t)=>{let{component:l}=e,r=un(e,cn);const n=sn(r);return M.jsx(l,Object.assign({ref:t},n))});function dn({in:e,onTransition:t}){const l=C.useRef(null),r=C.useRef(!0),n=g4(t);return E8(()=>{if(!l.current)return;let o=!1;return n({in:e,element:l.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,n]),E8(()=>(r.current=!1,()=>{r.current=!0}),[]),l}function fn({children:e,in:t,onExited:l,onEntered:r,transition:n}){const[o,a]=C.useState(!t);t&&o&&a(!1);const q=dn({in:!!t,onTransition:s=>{const c=()=>{s.isStale()||(s.in?r==null||r(s.element,s.initial):(a(!0),l==null||l(s.element)))};Promise.resolve(n(s)).then(c,u=>{throw s.in||a(!0),u})}}),i=C6(q,K2(e));return o&&!t?null:C.cloneElement(e,{ref:i})}function z8(e,t,l){return e?M.jsx(mn,Object.assign({},l,{component:e})):t?M.jsx(fn,Object.assign({},l,{transition:t})):M.jsx(on,Object.assign({},l))}const xn=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function hn(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;l[r]=e[r]}return l}let A3;function pn(e){return A3||(A3=new y6({ownerDocument:e==null?void 0:e.document})),A3}function gn(e){const t=g6(),l=e||pn(t),r=C.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>l.add(r.current),remove:()=>l.remove(r.current),isTopModal:()=>l.isTopModal(r.current),setDialogRef:C.useCallback(n=>{r.current.dialog=n},[]),setBackdropRef:C.useCallback(n=>{r.current.backdrop=n},[])})}const u5=C.forwardRef((e,t)=>{let{show:l=!1,role:r="dialog",className:n,style:o,children:a,backdrop:q=!0,keyboard:i=!0,onBackdropClick:s,onEscapeKeyDown:c,transition:u,runTransition:_,backdropTransition:A,runBackdropTransition:v,autoFocus:b=!0,enforceFocus:h=!0,restoreFocus:d=!0,restoreFocusOptions:y,renderDialog:f,renderBackdrop:m=Y=>M.jsx("div",Object.assign({},Y)),manager:p,container:E,onShow:S,onHide:L=()=>{},onExit:B,onExited:V,onExiting:e1,onEnter:X,onEntering:r1,onEntered:K}=e,l1=hn(e,xn);const $=g6(),J=rn(E),j=gn(p),q1=Tl(),G=Nl(l),[P,W]=C.useState(!l),H=C.useRef(null);C.useImperativeHandle(t,()=>j,[j]),H4&&!G&&l&&(H.current=I3($==null?void 0:$.document)),l&&P&&W(!1);const O=g4(()=>{if(j.add(),k.current=B2(document,"keydown",z),Z.current=B2(document,"focus",()=>setTimeout(g),!0),S&&S(),b){var Y,N;const D=I3((Y=(N=j.dialog)==null?void 0:N.ownerDocument)!=null?Y:$==null?void 0:$.document);j.dialog&&D&&!A8(j.dialog,D)&&(H.current=D,j.dialog.focus())}}),R=g4(()=>{if(j.remove(),k.current==null||k.current(),Z.current==null||Z.current(),d){var Y;(Y=H.current)==null||Y.focus==null||Y.focus(y),H.current=null}});C.useEffect(()=>{!l||!J||O()},[l,J,O]),C.useEffect(()=>{P&&R()},[P,R]),ln(()=>{R()});const g=g4(()=>{if(!h||!q1()||!j.isTopModal())return;const Y=I3($==null?void 0:$.document);j.dialog&&Y&&!A8(j.dialog,Y)&&j.dialog.focus()}),x=g4(Y=>{Y.target===Y.currentTarget&&(s==null||s(Y),q===!0&&L())}),z=g4(Y=>{i&&_l(Y)&&j.isTopModal()&&(c==null||c(Y),Y.defaultPrevented||L())}),Z=C.useRef(),k=C.useRef(),t1=(...Y)=>{W(!0),V==null||V(...Y)};if(!J)return null;const T=Object.assign({role:r,ref:j.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},l1,{style:o,className:n,tabIndex:-1});let n1=f?f(T):M.jsx("div",Object.assign({},T,{children:c1.cloneElement(a,{role:"document"})}));n1=z8(u,_,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!l,onExit:B,onExiting:e1,onExited:t1,onEnter:X,onEntering:r1,onEntered:K,children:n1});let U=null;return q&&(U=m({ref:j.setBackdropRef,onClick:x}),U=z8(A,v,{in:!!l,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:U})),M.jsx(M.Fragment,{children:b4.createPortal(M.jsxs(M.Fragment,{children:[U,n1]}),J)})});u5.displayName="Modal";const bn=Object.assign(u5,{Manager:y6});function _n(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function vn(e,t){e.classList?e.classList.add(t):_n(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function w8(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=w8(e.className,t):e.setAttribute("class",w8(e.className&&e.className.baseVal||"",t))}const F4={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class yn extends y6{adjustAndStore(t,l,r){const n=l.style[t];l.dataset[t]=n,C4(l,{[t]:`${parseFloat(C4(l,t))+r}px`})}restore(t,l){const r=l.dataset[t];r!==void 0&&(delete l.dataset[t],C4(l,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const l=this.getElement();if(vn(l,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";P4(l,F4.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),P4(l,F4.STICKY_CONTENT).forEach(o=>this.adjustAndStore(n,o,-t.scrollBarWidth)),P4(l,F4.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const l=this.getElement();Cn(l,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";P4(l,F4.FIXED_CONTENT).forEach(o=>this.restore(r,o)),P4(l,F4.STICKY_CONTENT).forEach(o=>this.restore(n,o)),P4(l,F4.NAVBAR_TOGGLER).forEach(o=>this.restore(n,o))}}let R3;function In(e){return R3||(R3=new yn(e)),R3}const m5=c1.forwardRef(({className:e,bsPrefix:t,as:l="div",...r},n)=>(t=G1(t,"modal-body"),M.jsx(l,{ref:n,className:w1(e,t),...r})));m5.displayName="ModalBody";const d5=c1.createContext({onHide(){}}),I6=c1.forwardRef(({bsPrefix:e,className:t,contentClassName:l,centered:r,size:n,fullscreen:o,children:a,scrollable:q,...i},s)=>{e=G1(e,"modal");const c=`${e}-dialog`,u=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return M.jsx("div",{...i,ref:s,className:w1(c,t,n&&`${e}-${n}`,r&&`${c}-centered`,q&&`${c}-scrollable`,o&&u),children:M.jsx("div",{className:w1(`${e}-content`,l),children:a})})});I6.displayName="ModalDialog";const f5=c1.forwardRef(({className:e,bsPrefix:t,as:l="div",...r},n)=>(t=G1(t,"modal-footer"),M.jsx(l,{ref:n,className:w1(e,t),...r})));f5.displayName="ModalFooter";const x5=c1.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:l=!1,onHide:r,children:n,...o},a)=>{const q=C.useContext(d5),i=W3(()=>{q==null||q.onHide(),r==null||r()});return M.jsxs("div",{ref:a,...o,children:[n,l&&M.jsx(p6,{"aria-label":e,variant:t,onClick:i})]})});x5.displayName="AbstractModalHeader";const h5=c1.forwardRef(({bsPrefix:e,className:t,closeLabel:l="Close",closeButton:r=!1,...n},o)=>(e=G1(e,"modal-header"),M.jsx(x5,{ref:o,...n,className:w1(t,e),closeLabel:l,closeButton:r})));h5.displayName="ModalHeader";const En=zl("h4"),p5=c1.forwardRef(({className:e,bsPrefix:t,as:l=En,...r},n)=>(t=G1(t,"modal-title"),M.jsx(l,{ref:n,className:w1(e,t),...r})));p5.displayName="ModalTitle";function An(e){return M.jsx(h6,{...e,timeout:null})}function Rn(e){return M.jsx(h6,{...e,timeout:null})}const g5=c1.forwardRef(({bsPrefix:e,className:t,style:l,dialogClassName:r,contentClassName:n,children:o,dialogAs:a=I6,"data-bs-theme":q,"aria-labelledby":i,"aria-describedby":s,"aria-label":c,show:u=!1,animation:_=!0,backdrop:A=!0,keyboard:v=!0,onEscapeKeyDown:b,onShow:h,onHide:d,container:y,autoFocus:f=!0,enforceFocus:m=!0,restoreFocus:p=!0,restoreFocusOptions:E,onEntered:S,onExit:L,onExiting:B,onEnter:V,onEntering:e1,onExited:X,backdropClassName:r1,manager:K,...l1},$)=>{const[J,j]=C.useState({}),[q1,G]=C.useState(!1),P=C.useRef(!1),W=C.useRef(!1),H=C.useRef(null),[O,R]=en(),g=U9($,R),x=W3(d),z=tl();e=G1(e,"modal");const Z=C.useMemo(()=>({onHide:x}),[x]);function k(){return K||In({isRTL:z})}function t1(p1){if(!H4)return;const B1=k().getScrollbarWidth()>0,Y1=p1.scrollHeight>Q2(p1).documentElement.clientHeight;j({paddingRight:B1&&!Y1?S8():void 0,paddingLeft:!B1&&Y1?S8():void 0})}const T=W3(()=>{O&&t1(O.dialog)});Gl(()=>{V3(window,"resize",T),H.current==null||H.current()});const n1=()=>{P.current=!0},U=p1=>{P.current&&O&&p1.target===O.dialog&&(W.current=!0),P.current=!1},Y=()=>{G(!0),H.current=J9(O.dialog,()=>{G(!1)})},N=p1=>{p1.target===p1.currentTarget&&Y()},D=p1=>{if(A==="static"){N(p1);return}if(W.current||p1.target!==p1.currentTarget){W.current=!1;return}d==null||d()},w=p1=>{v?b==null||b(p1):(p1.preventDefault(),A==="static"&&Y())},I=(p1,B1)=>{p1&&t1(p1),V==null||V(p1,B1)},o1=p1=>{H.current==null||H.current(),L==null||L(p1)},s1=(p1,B1)=>{e1==null||e1(p1,B1),Y9(window,"resize",T)},b1=p1=>{p1&&(p1.style.display=""),X==null||X(p1),V3(window,"resize",T)},_1=C.useCallback(p1=>M.jsx("div",{...p1,className:w1(`${e}-backdrop`,r1,!_&&"show")}),[_,r1,e]),S1={...l,...J};S1.display="block";const F1=p1=>M.jsx("div",{role:"dialog",...p1,style:S1,className:w1(t,e,q1&&`${e}-static`,!_&&"show"),onClick:A?D:void 0,onMouseUp:U,"data-bs-theme":q,"aria-label":c,"aria-labelledby":i,"aria-describedby":s,children:M.jsx(a,{...l1,onMouseDown:n1,className:r,contentClassName:n,children:o})});return M.jsx(d5.Provider,{value:Z,children:M.jsx(bn,{show:u,ref:g,backdrop:A,container:y,keyboard:!0,autoFocus:f,enforceFocus:m,restoreFocus:p,restoreFocusOptions:E,onEscapeKeyDown:w,onShow:h,onHide:d,onEnter:I,onEntering:s1,onEntered:S,onExit:o1,onExiting:B,onExited:b1,manager:k(),transition:_?An:void 0,backdropTransition:_?Rn:void 0,renderBackdrop:_1,renderDialog:F1})})});g5.displayName="Modal";const T8=Object.assign(g5,{Body:m5,Header:h5,Title:p5,Footer:f5,Dialog:I6,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});function H3(){return H3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},H3.apply(this,arguments)}function Sn(e,t){if(e==null)return{};var l=On(e,t),r,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}function On(e,t){if(e==null)return{};var l={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(l[n]=e[n]);return l}var E6=C.forwardRef(function(e,t){var l=e.color,r=l===void 0?"currentColor":l,n=e.size,o=n===void 0?24:n,a=Sn(e,["color","size"]);return C.createElement("svg",H3({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),C.createElement("circle",{cx:"12",cy:"12",r:"10"}),C.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),C.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15"}))});E6.propTypes={color:d1.string,size:d1.oneOfType([d1.string,d1.number])};E6.displayName="XCircle";const zn="_retailerInfoModal_da5av_1",wn="_retailerInfoCloseBtn_da5av_11",Tn="_closeBtn_da5av_21",Nn="_modalBody_da5av_28",Mn="_contentWrapper_da5av_34",Ln="_content_da5av_34",Pn="_retailerLogo_da5av_41",Fn="_img_da5av_46",Bn="_retailerInfoContent_da5av_52",Gn="_getDirectionsFrom_da5av_64",kn="_retailerDropdown_da5av_70",Dn="_btn_da5av_77",t4={retailerInfoModal:zn,retailerInfoCloseBtn:wn,closeBtn:Tn,modalBody:Nn,contentWrapper:Mn,content:Ln,retailerLogo:Pn,img:Fn,retailerInfoContent:Bn,getDirectionsFrom:Gn,retailerDropdown:kn,btn:Dn};function R4(e){"@babel/helpers - typeof";return R4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R4(e)}function jn(e,t){if(R4(e)!="object"||!e)return e;var l=e[Symbol.toPrimitive];if(l!==void 0){var r=l.call(e,t);if(R4(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b5(e){var t=jn(e,"string");return R4(t)=="symbol"?t:t+""}function Q4(e,t,l){return(t=b5(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}function N8(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),l.push.apply(l,r)}return l}function x1(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(l),!0).forEach(function(r){Q4(e,r,l[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):N8(Object(l)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(l,r))})}return e}function Vn(e){if(Array.isArray(e))return e}function Wn(e,t){var l=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(l!=null){var r,n,o,a,q=[],i=!0,s=!1;try{if(o=(l=l.call(e)).next,t===0){if(Object(l)!==l)return;i=!1}else for(;!(i=(r=o.call(l)).done)&&(q.push(r.value),q.length!==t);i=!0);}catch(c){s=!0,n=c}finally{try{if(!i&&l.return!=null&&(a=l.return(),Object(a)!==a))return}finally{if(s)throw n}}return q}}function X3(e,t){(t==null||t>e.length)&&(t=e.length);for(var l=0,r=Array(t);l<t;l++)r[l]=e[l];return r}function _5(e,t){if(e){if(typeof e=="string")return X3(e,t);var l={}.toString.call(e).slice(8,-1);return l==="Object"&&e.constructor&&(l=e.constructor.name),l==="Map"||l==="Set"?Array.from(e):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?X3(e,t):void 0}}function Hn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i4(e,t){return Vn(e)||Wn(e,t)||_5(e,t)||Hn()}function c4(e,t){if(e==null)return{};var l,r,n=W9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)l=o[r],t.indexOf(l)===-1&&{}.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}var Xn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zn(e){var t=e.defaultInputValue,l=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,q=e.inputValue,i=e.menuIsOpen,s=e.onChange,c=e.onInputChange,u=e.onMenuClose,_=e.onMenuOpen,A=e.value,v=c4(e,Xn),b=C.useState(q!==void 0?q:l),h=i4(b,2),d=h[0],y=h[1],f=C.useState(i!==void 0?i:n),m=i4(f,2),p=m[0],E=m[1],S=C.useState(A!==void 0?A:a),L=i4(S,2),B=L[0],V=L[1],e1=C.useCallback(function(j,q1){typeof s=="function"&&s(j,q1),V(j)},[s]),X=C.useCallback(function(j,q1){var G;typeof c=="function"&&(G=c(j,q1)),y(G!==void 0?G:j)},[c]),r1=C.useCallback(function(){typeof _=="function"&&_(),E(!0)},[_]),K=C.useCallback(function(){typeof u=="function"&&u(),E(!1)},[u]),l1=q!==void 0?q:d,$=i!==void 0?i:p,J=A!==void 0?A:B;return x1(x1({},v),{},{inputValue:l1,menuIsOpen:$,onChange:e1,onInputChange:X,onMenuClose:K,onMenuOpen:r1,value:J})}function Yn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M8(e,t){for(var l=0;l<t.length;l++){var r=t[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b5(r.key),r)}}function Jn(e,t,l){return t&&M8(e.prototype,t),l&&M8(e,l),Object.defineProperty(e,"prototype",{writable:!1}),e}function Un(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F2(e,t)}function D2(e){return D2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D2(e)}function v5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v5=function(){return!!e})()}function $n(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qn(e,t){if(t&&(R4(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $n(e)}function Kn(e){var t=v5();return function(){var l,r=D2(e);if(t){var n=D2(this).constructor;l=Reflect.construct(r,arguments,n)}else l=r.apply(this,arguments);return Qn(this,l)}}function er(e){if(Array.isArray(e))return X3(e)}function tr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A6(e){return er(e)||tr(e)||_5(e)||lr()}function nr(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function rr(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var or=function(){function e(l){var r=this;this._insertTag=function(n){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,o),r.tags.push(n)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(rr(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=nr(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),H1="-ms-",j2="-moz-",v1="-webkit-",C5="comm",R6="rule",S6="decl",ar="@import",y5="@keyframes",ir="@layer",qr=Math.abs,t3=String.fromCharCode,sr=Object.assign;function cr(e,t){return D1(e,0)^45?(((t<<2^D1(e,0))<<2^D1(e,1))<<2^D1(e,2))<<2^D1(e,3):0}function I5(e){return e.trim()}function ur(e,t){return(e=t.exec(e))?e[0]:e}function C1(e,t,l){return e.replace(t,l)}function Z3(e,t){return e.indexOf(t)}function D1(e,t){return e.charCodeAt(t)|0}function e2(e,t,l){return e.slice(t,l)}function n4(e){return e.length}function O6(e){return e.length}function g2(e,t){return t.push(e),e}function mr(e,t){return e.map(t).join("")}var l3=1,j4=1,E5=0,$1=0,L1=0,X4="";function n3(e,t,l,r,n,o,a){return{value:e,root:t,parent:l,type:r,props:n,children:o,line:l3,column:j4,length:a,return:""}}function J4(e,t){return sr(n3("",null,null,"",null,null,0),e,{length:-e.length},t)}function dr(){return L1}function fr(){return L1=$1>0?D1(X4,--$1):0,j4--,L1===10&&(j4=1,l3--),L1}function e4(){return L1=$1<E5?D1(X4,$1++):0,j4++,L1===10&&(j4=1,l3++),L1}function o4(){return D1(X4,$1)}function R2(){return $1}function s2(e,t){return e2(X4,e,t)}function t2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A5(e){return l3=j4=1,E5=n4(X4=e),$1=0,[]}function R5(e){return X4="",e}function S2(e){return I5(s2($1-1,Y3(e===91?e+2:e===40?e+1:e)))}function xr(e){for(;(L1=o4())&&L1<33;)e4();return t2(e)>2||t2(L1)>3?"":" "}function hr(e,t){for(;--t&&e4()&&!(L1<48||L1>102||L1>57&&L1<65||L1>70&&L1<97););return s2(e,R2()+(t<6&&o4()==32&&e4()==32))}function Y3(e){for(;e4();)switch(L1){case e:return $1;case 34:case 39:e!==34&&e!==39&&Y3(L1);break;case 40:e===41&&Y3(e);break;case 92:e4();break}return $1}function pr(e,t){for(;e4()&&e+L1!==57;)if(e+L1===84&&o4()===47)break;return"/*"+s2(t,$1-1)+"*"+t3(e===47?e:e4())}function gr(e){for(;!t2(o4());)e4();return s2(e,$1)}function br(e){return R5(O2("",null,null,null,[""],e=A5(e),0,[0],e))}function O2(e,t,l,r,n,o,a,q,i){for(var s=0,c=0,u=a,_=0,A=0,v=0,b=1,h=1,d=1,y=0,f="",m=n,p=o,E=r,S=f;h;)switch(v=y,y=e4()){case 40:if(v!=108&&D1(S,u-1)==58){Z3(S+=C1(S2(y),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:S+=S2(y);break;case 9:case 10:case 13:case 32:S+=xr(v);break;case 92:S+=hr(R2()-1,7);continue;case 47:switch(o4()){case 42:case 47:g2(_r(pr(e4(),R2()),t,l),i);break;default:S+="/"}break;case 123*b:q[s++]=n4(S)*d;case 125*b:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+c:d==-1&&(S=C1(S,/\f/g,"")),A>0&&n4(S)-u&&g2(A>32?P8(S+";",r,l,u-1):P8(C1(S," ","")+";",r,l,u-2),i);break;case 59:S+=";";default:if(g2(E=L8(S,t,l,s,c,n,q,f,m=[],p=[],u),o),y===123)if(c===0)O2(S,t,E,E,m,o,u,q,p);else switch(_===99&&D1(S,3)===110?100:_){case 100:case 108:case 109:case 115:O2(e,E,E,r&&g2(L8(e,E,E,0,0,n,q,f,n,m=[],u),p),n,p,u,q,r?m:p);break;default:O2(S,E,E,E,[""],p,0,q,p)}}s=c=A=0,b=d=1,f=S="",u=a;break;case 58:u=1+n4(S),A=v;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&fr()==125)continue}switch(S+=t3(y),y*b){case 38:d=c>0?1:(S+="\f",-1);break;case 44:q[s++]=(n4(S)-1)*d,d=1;break;case 64:o4()===45&&(S+=S2(e4())),_=o4(),c=u=n4(f=S+=gr(R2())),y++;break;case 45:v===45&&n4(S)==2&&(b=0)}}return o}function L8(e,t,l,r,n,o,a,q,i,s,c){for(var u=n-1,_=n===0?o:[""],A=O6(_),v=0,b=0,h=0;v<r;++v)for(var d=0,y=e2(e,u+1,u=qr(b=a[v])),f=e;d<A;++d)(f=I5(b>0?_[d]+" "+y:C1(y,/&\f/g,_[d])))&&(i[h++]=f);return n3(e,t,l,n===0?R6:q,i,s,c)}function _r(e,t,l){return n3(e,t,l,C5,t3(dr()),e2(e,2,-2),0)}function P8(e,t,l,r){return n3(e,t,l,S6,e2(e,0,r),e2(e,r+1,-1),r)}function G4(e,t){for(var l="",r=O6(e),n=0;n<r;n++)l+=t(e[n],n,e,t)||"";return l}function vr(e,t,l,r){switch(e.type){case ir:if(e.children.length)break;case ar:case S6:return e.return=e.return||e.value;case C5:return"";case y5:return e.return=e.value+"{"+G4(e.children,r)+"}";case R6:e.value=e.props.join(",")}return n4(l=G4(e.children,r))?e.return=e.value+"{"+l+"}":""}function Cr(e){var t=O6(e);return function(l,r,n,o){for(var a="",q=0;q<t;q++)a+=e[q](l,r,n,o)||"";return a}}function yr(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ir(e){var t=Object.create(null);return function(l){return t[l]===void 0&&(t[l]=e(l)),t[l]}}var Er=function(t,l,r){for(var n=0,o=0;n=o,o=o4(),n===38&&o===12&&(l[r]=1),!t2(o);)e4();return s2(t,$1)},Ar=function(t,l){var r=-1,n=44;do switch(t2(n)){case 0:n===38&&o4()===12&&(l[r]=1),t[r]+=Er($1-1,l,r);break;case 2:t[r]+=S2(n);break;case 4:if(n===44){t[++r]=o4()===58?"&\f":"",l[r]=t[r].length;break}default:t[r]+=t3(n)}while(n=e4());return t},Rr=function(t,l){return R5(Ar(A5(t),l))},F8=new WeakMap,Sr=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var l=t.value,r=t.parent,n=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&l.charCodeAt(0)!==58&&!F8.get(r))&&!n){F8.set(t,!0);for(var o=[],a=Rr(l,o),q=r.props,i=0,s=0;i<a.length;i++)for(var c=0;c<q.length;c++,s++)t.props[s]=o[i]?a[i].replace(/&\f/g,q[c]):q[c]+" "+a[i]}}},Or=function(t){if(t.type==="decl"){var l=t.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(t.return="",t.value="")}};function S5(e,t){switch(cr(e,t)){case 5103:return v1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return v1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return v1+e+j2+e+H1+e+e;case 6828:case 4268:return v1+e+H1+e+e;case 6165:return v1+e+H1+"flex-"+e+e;case 5187:return v1+e+C1(e,/(\w+).+(:[^]+)/,v1+"box-$1$2"+H1+"flex-$1$2")+e;case 5443:return v1+e+H1+"flex-item-"+C1(e,/flex-|-self/,"")+e;case 4675:return v1+e+H1+"flex-line-pack"+C1(e,/align-content|flex-|-self/,"")+e;case 5548:return v1+e+H1+C1(e,"shrink","negative")+e;case 5292:return v1+e+H1+C1(e,"basis","preferred-size")+e;case 6060:return v1+"box-"+C1(e,"-grow","")+v1+e+H1+C1(e,"grow","positive")+e;case 4554:return v1+C1(e,/([^-])(transform)/g,"$1"+v1+"$2")+e;case 6187:return C1(C1(C1(e,/(zoom-|grab)/,v1+"$1"),/(image-set)/,v1+"$1"),e,"")+e;case 5495:case 3959:return C1(e,/(image-set\([^]*)/,v1+"$1$`$1");case 4968:return C1(C1(e,/(.+:)(flex-)?(.*)/,v1+"box-pack:$3"+H1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+v1+e+e;case 4095:case 3583:case 4068:case 2532:return C1(e,/(.+)-inline(.+)/,v1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(n4(e)-1-t>6)switch(D1(e,t+1)){case 109:if(D1(e,t+4)!==45)break;case 102:return C1(e,/(.+:)(.+)-([^]+)/,"$1"+v1+"$2-$3$1"+j2+(D1(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Z3(e,"stretch")?S5(C1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D1(e,t+1)!==115)break;case 6444:switch(D1(e,n4(e)-3-(~Z3(e,"!important")&&10))){case 107:return C1(e,":",":"+v1)+e;case 101:return C1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+v1+(D1(e,14)===45?"inline-":"")+"box$3$1"+v1+"$2$3$1"+H1+"$2box$3")+e}break;case 5936:switch(D1(e,t+11)){case 114:return v1+e+H1+C1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return v1+e+H1+C1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return v1+e+H1+C1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return v1+e+H1+e+e}return e}var zr=function(t,l,r,n){if(t.length>-1&&!t.return)switch(t.type){case S6:t.return=S5(t.value,t.length);break;case y5:return G4([J4(t,{value:C1(t.value,"@","@"+v1)})],n);case R6:if(t.length)return mr(t.props,function(o){switch(ur(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return G4([J4(t,{props:[C1(o,/:(read-\w+)/,":"+j2+"$1")]})],n);case"::placeholder":return G4([J4(t,{props:[C1(o,/:(plac\w+)/,":"+v1+"input-$1")]}),J4(t,{props:[C1(o,/:(plac\w+)/,":"+j2+"$1")]}),J4(t,{props:[C1(o,/:(plac\w+)/,H1+"input-$1")]})],n)}return""})}},wr=[zr],Tr=function(t){var l=t.key;if(l==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var h=b.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=t.stylisPlugins||wr,o={},a,q=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(b){for(var h=b.getAttribute("data-emotion").split(" "),d=1;d<h.length;d++)o[h[d]]=!0;q.push(b)});var i,s=[Sr,Or];{var c,u=[vr,yr(function(b){c.insert(b)})],_=Cr(s.concat(n,u)),A=function(h){return G4(br(h),_)};i=function(h,d,y,f){c=y,A(h?h+"{"+d.styles+"}":d.styles),f&&(v.inserted[d.name]=!0)}}var v={key:l,sheet:new or({key:l,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:i};return v.sheet.hydrate(q),v},J3={exports:{}},E1={};/** @license React v16.13.1
96
+ */var p3,h8;function ml(){if(h8)return p3;h8=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function n(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},q=0;q<10;q++)a["_"+String.fromCharCode(q)]=q;var i=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(i.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(c){s[c]=c}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return p3=n()?Object.assign:function(o,a){for(var q,i=r(o),s,c=1;c<arguments.length;c++){q=Object(arguments[c]);for(var u in q)t.call(q,u)&&(i[u]=q[u]);if(e){s=e(q);for(var _=0;_<s.length;_++)l.call(q,s[_])&&(i[s[_]]=q[s[_]])}}return i},p3}var g3,p8;function x6(){if(p8)return g3;p8=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return g3=e,g3}var b3,g8;function X9(){return g8||(g8=1,b3=Function.call.bind(Object.prototype.hasOwnProperty)),b3}var _3,b8;function dl(){if(b8)return _3;b8=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=x6(),l={},r=X9();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function n(o,a,q,i,s){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var u;try{if(typeof o[c]!="function"){var _=Error((i||"React class")+": "+q+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}u=o[c](a,c,i,q,null,t)}catch(v){u=v}if(u&&!(u instanceof Error)&&e((i||"React class")+": type specification of "+q+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in l)){l[u.message]=!0;var A=s?s():"";e("Failed "+q+" type: "+u.message+(A??""))}}}}return n.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(l={})},_3=n,_3}var v3,_8;function fl(){if(_8)return v3;_8=1;var e=H9(),t=ml(),l=x6(),r=X9(),n=dl(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(q){var i="Warning: "+q;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}});function a(){return null}return v3=function(q,i){var s=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function u(G){var P=G&&(s&&G[s]||G[c]);if(typeof P=="function")return P}var _="<<anonymous>>",A={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:y(),arrayOf:f,element:m(),elementType:p(),instanceOf:E,node:V(),objectOf:L,oneOf:S,oneOfType:B,shape:X,exact:r1};function v(G,P){return G===P?G!==0||1/G===1/P:G!==G&&P!==P}function b(G,P){this.message=G,this.data=P&&typeof P=="object"?P:{},this.stack=""}b.prototype=Error.prototype;function h(G){if(process.env.NODE_ENV!=="production")var P={},W=0;function H(R,g,x,z,Z,k,t1){if(z=z||_,k=k||x,t1!==l){if(i){var T=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 T.name="Invariant Violation",T}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var n1=z+":"+x;!P[n1]&&W<3&&(o("You are manually calling a React.PropTypes validation function for the `"+k+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[n1]=!0,W++)}}return g[x]==null?R?g[x]===null?new b("The "+Z+" `"+k+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new b("The "+Z+" `"+k+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:G(g,x,z,Z,k)}var O=H.bind(null,!1);return O.isRequired=H.bind(null,!0),O}function d(G){function P(W,H,O,R,g,x){var z=W[H],Z=$(z);if(Z!==G){var k=J(z);return new b("Invalid "+R+" `"+g+"` of type "+("`"+k+"` supplied to `"+O+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return h(P)}function y(){return h(a)}function f(G){function P(W,H,O,R,g){if(typeof G!="function")return new b("Property `"+g+"` of component `"+O+"` has invalid PropType notation inside arrayOf.");var x=W[H];if(!Array.isArray(x)){var z=$(x);return new b("Invalid "+R+" `"+g+"` of type "+("`"+z+"` supplied to `"+O+"`, expected an array."))}for(var Z=0;Z<x.length;Z++){var k=G(x,Z,O,R,g+"["+Z+"]",l);if(k instanceof Error)return k}return null}return h(P)}function m(){function G(P,W,H,O,R){var g=P[W];if(!q(g)){var x=$(g);return new b("Invalid "+O+" `"+R+"` of type "+("`"+x+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return h(G)}function p(){function G(P,W,H,O,R){var g=P[W];if(!e.isValidElementType(g)){var x=$(g);return new b("Invalid "+O+" `"+R+"` of type "+("`"+x+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return h(G)}function E(G){function P(W,H,O,R,g){if(!(W[H]instanceof G)){var x=G.name||_,z=q1(W[H]);return new b("Invalid "+R+" `"+g+"` of type "+("`"+z+"` supplied to `"+O+"`, expected ")+("instance of `"+x+"`."))}return null}return h(P)}function S(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function P(W,H,O,R,g){for(var x=W[H],z=0;z<G.length;z++)if(v(x,G[z]))return null;var Z=JSON.stringify(G,function(t1,T){var n1=J(T);return n1==="symbol"?String(T):T});return new b("Invalid "+R+" `"+g+"` of value `"+String(x)+"` "+("supplied to `"+O+"`, expected one of "+Z+"."))}return h(P)}function L(G){function P(W,H,O,R,g){if(typeof G!="function")return new b("Property `"+g+"` of component `"+O+"` has invalid PropType notation inside objectOf.");var x=W[H],z=$(x);if(z!=="object")return new b("Invalid "+R+" `"+g+"` of type "+("`"+z+"` supplied to `"+O+"`, expected an object."));for(var Z in x)if(r(x,Z)){var k=G(x,Z,O,R,g+"."+Z,l);if(k instanceof Error)return k}return null}return h(P)}function B(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var P=0;P<G.length;P++){var W=G[P];if(typeof W!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+j(W)+" at index "+P+"."),a}function H(O,R,g,x,z){for(var Z=[],k=0;k<G.length;k++){var t1=G[k],T=t1(O,R,g,x,z,l);if(T==null)return null;T.data&&r(T.data,"expectedType")&&Z.push(T.data.expectedType)}var n1=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new b("Invalid "+x+" `"+z+"` supplied to "+("`"+g+"`"+n1+"."))}return h(H)}function V(){function G(P,W,H,O,R){return K(P[W])?null:new b("Invalid "+O+" `"+R+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return h(G)}function e1(G,P,W,H,O){return new b((G||"React class")+": "+P+" type `"+W+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+O+"`.")}function X(G){function P(W,H,O,R,g){var x=W[H],z=$(x);if(z!=="object")return new b("Invalid "+R+" `"+g+"` of type `"+z+"` "+("supplied to `"+O+"`, expected `object`."));for(var Z in G){var k=G[Z];if(typeof k!="function")return e1(O,R,g,Z,J(k));var t1=k(x,Z,O,R,g+"."+Z,l);if(t1)return t1}return null}return h(P)}function r1(G){function P(W,H,O,R,g){var x=W[H],z=$(x);if(z!=="object")return new b("Invalid "+R+" `"+g+"` of type `"+z+"` "+("supplied to `"+O+"`, expected `object`."));var Z=t({},W[H],G);for(var k in Z){var t1=G[k];if(r(G,k)&&typeof t1!="function")return e1(O,R,g,k,J(t1));if(!t1)return new b("Invalid "+R+" `"+g+"` key `"+k+"` supplied to `"+O+"`.\nBad object: "+JSON.stringify(W[H],null," ")+`
97
+ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var T=t1(x,k,O,R,g+"."+k,l);if(T)return T}return null}return h(P)}function K(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(K);if(G===null||q(G))return!0;var P=u(G);if(P){var W=P.call(G),H;if(P!==G.entries){for(;!(H=W.next()).done;)if(!K(H.value))return!1}else for(;!(H=W.next()).done;){var O=H.value;if(O&&!K(O[1]))return!1}}else return!1;return!0;default:return!1}}function l1(G,P){return G==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function $(G){var P=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":l1(P,G)?"symbol":P}function J(G){if(typeof G>"u"||G===null)return""+G;var P=$(G);if(P==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return P}function j(G){var P=J(G);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function q1(G){return!G.constructor||!G.constructor.name?_:G.constructor.name}return A.checkPropTypes=n,A.resetWarningCache=n.resetWarningCache,A.PropTypes=A,A},v3}var C3,v8;function xl(){if(v8)return C3;v8=1;var e=x6();function t(){}function l(){}return l.resetWarningCache=t,C3=function(){function r(a,q,i,s,c,u){if(u!==e){var _=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 _.name="Invariant Violation",_}}r.isRequired=r;function n(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:l,resetWarningCache:t};return o.PropTypes=o,o},C3}if(process.env.NODE_ENV!=="production"){var hl=H9(),pl=!0;G3.exports=fl()(hl.isElement,pl)}else G3.exports=xl()();var gl=G3.exports;const d1=f6(gl),C8={disabled:!1};var bl=process.env.NODE_ENV!=="production"?d1.oneOfType([d1.number,d1.shape({enter:d1.number,exit:d1.number,appear:d1.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&d1.oneOfType([d1.string,d1.shape({enter:d1.string,exit:d1.string,active:d1.string}),d1.shape({enter:d1.string,enterDone:d1.string,enterActive:d1.string,exit:d1.string,exitDone:d1.string,exitActive:d1.string})]);const Z9=C.createContext(null);var _l=function(t){return t.scrollTop},$4="unmounted",x4="exited",m4="entering",p4="entered",k3="exiting",s4=function(e){$t(t,e);function t(r,n){var o;o=e.call(this,r,n)||this;var a=n,q=a&&!a.isMounting?r.enter:r.appear,i;return o.appearStatus=null,r.in?q?(i=x4,o.appearStatus=m4):i=p4:r.unmountOnExit||r.mountOnEnter?i=$4:i=x4,o.state={status:i},o.nextCallback=null,o}t.getDerivedStateFromProps=function(n,o){var a=n.in;return a&&o.status===$4?{status:x4}:null};var l=t.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(n){var o=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==m4&&a!==p4&&(o=m4):(a===m4||a===p4)&&(o=k3)}this.updateStatus(!1,o)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var n=this.props.timeout,o,a,q;return o=a=q=n,n!=null&&typeof n!="number"&&(o=n.exit,a=n.enter,q=n.appear!==void 0?n.appear:a),{exit:o,enter:a,appear:q}},l.updateStatus=function(n,o){if(n===void 0&&(n=!1),o!==null)if(this.cancelNextCallback(),o===m4){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:b4.findDOMNode(this);a&&_l(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===x4&&this.setState({status:$4})},l.performEnter=function(n){var o=this,a=this.props.enter,q=this.context?this.context.isMounting:n,i=this.props.nodeRef?[q]:[b4.findDOMNode(this),q],s=i[0],c=i[1],u=this.getTimeouts(),_=q?u.appear:u.enter;if(!n&&!a||C8.disabled){this.safeSetState({status:p4},function(){o.props.onEntered(s)});return}this.props.onEnter(s,c),this.safeSetState({status:m4},function(){o.props.onEntering(s,c),o.onTransitionEnd(_,function(){o.safeSetState({status:p4},function(){o.props.onEntered(s,c)})})})},l.performExit=function(){var n=this,o=this.props.exit,a=this.getTimeouts(),q=this.props.nodeRef?void 0:b4.findDOMNode(this);if(!o||C8.disabled){this.safeSetState({status:x4},function(){n.props.onExited(q)});return}this.props.onExit(q),this.safeSetState({status:k3},function(){n.props.onExiting(q),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:x4},function(){n.props.onExited(q)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(n,o){o=this.setNextCallback(o),this.setState(n,o)},l.setNextCallback=function(n){var o=this,a=!0;return this.nextCallback=function(q){a&&(a=!1,o.nextCallback=null,n(q))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},l.onTransitionEnd=function(n,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:b4.findDOMNode(this),q=n==null&&!this.props.addEndListener;if(!a||q){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],s=i[0],c=i[1];this.props.addEndListener(s,c)}n!=null&&setTimeout(this.nextCallback,n)},l.render=function(){var n=this.state.status;if(n===$4)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var q=W9(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return C.createElement(Z9.Provider,{value:null},typeof a=="function"?a(n,q):C.cloneElement(C.Children.only(a),q))},t}(C.Component);s4.contextType=Z9;s4.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:d1.shape({current:typeof Element>"u"?d1.any:function(e,t,l,r,n,o){var a=e[t];return d1.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,l,r,n,o)}}),children:d1.oneOfType([d1.func.isRequired,d1.element.isRequired]).isRequired,in:d1.bool,mountOnEnter:d1.bool,unmountOnExit:d1.bool,appear:d1.bool,enter:d1.bool,exit:d1.bool,timeout:function(t){var l=bl;t.addEndListener||(l=l.isRequired);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return l.apply(void 0,[t].concat(n))},addEndListener:d1.func,onEnter:d1.func,onEntering:d1.func,onEntered:d1.func,onExit:d1.func,onExiting:d1.func,onExited:d1.func}:{};function L4(){}s4.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:L4,onEntering:L4,onEntered:L4,onExit:L4,onExiting:L4,onExited:L4};s4.UNMOUNTED=$4;s4.EXITED=x4;s4.ENTERING=m4;s4.ENTERED=p4;s4.EXITING=k3;function vl(e){return e.code==="Escape"||e.keyCode===27}function Cl(){const e=c1.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function K2(e){if(!e||typeof e=="function")return null;const{major:t}=Cl();return t>=19?e.props.ref:e.ref}const H4=!!(typeof window<"u"&&window.document&&window.document.createElement);var D3=!1,j3=!1;try{var y3={get passive(){return D3=!0},get once(){return j3=D3=!0}};H4&&(window.addEventListener("test",y3,y3),window.removeEventListener("test",y3,!0))}catch{}function Y9(e,t,l,r){if(r&&typeof r!="boolean"&&!j3){var n=r.once,o=r.capture,a=l;!j3&&n&&(a=l.__once||function q(i){this.removeEventListener(t,q,o),l.call(this,i)},l.__once=a),e.addEventListener(t,a,D3?r:o)}e.addEventListener(t,l,r)}function V3(e,t,l,r){var n=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,l,n),l.__once&&e.removeEventListener(t,l.__once,n)}function B2(e,t,l,r){return Y9(e,t,l,r),function(){V3(e,t,l,r)}}function yl(e,t,l,r){if(r===void 0&&(r=!0),e){var n=document.createEvent("HTMLEvents");n.initEvent(t,l,r),e.dispatchEvent(n)}}function Il(e){var t=C4(e,"transitionDuration")||"",l=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*l}function El(e,t,l){l===void 0&&(l=5);var r=!1,n=setTimeout(function(){r||yl(e,"transitionend",!0)},t+l),o=B2(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(n),o()}}function J9(e,t,l,r){l==null&&(l=Il(e)||0);var n=El(e,l,r),o=B2(e,"transitionend",t);return function(){n(),o()}}function y8(e,t){const l=C4(e,t)||"",r=l.indexOf("ms")===-1?1e3:1;return parseFloat(l)*r}function Al(e,t){const l=y8(e,"transitionDuration"),r=y8(e,"transitionDelay"),n=J9(e,o=>{o.target===e&&(n(),t(o))},l+r)}function Rl(e){e.offsetHeight}const I8=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Sl(e,t){const l=I8(e),r=I8(t);return n=>{l&&l(n),r&&r(n)}}function U9(e,t){return C.useMemo(()=>Sl(e,t),[e,t])}function Ol(e){return e&&"setState"in e?b4.findDOMNode(e):e??null}const $9=C.forwardRef(({onEnter:e,onEntering:t,onEntered:l,onExit:r,onExiting:n,onExited:o,addEndListener:a,children:q,childRef:i,...s},c)=>{const u=C.useRef(null),_=U9(u,i),A=E=>{_(Ol(E))},v=E=>S=>{E&&u.current&&E(u.current,S)},b=C.useCallback(v(e),[e]),h=C.useCallback(v(t),[t]),d=C.useCallback(v(l),[l]),y=C.useCallback(v(r),[r]),f=C.useCallback(v(n),[n]),m=C.useCallback(v(o),[o]),p=C.useCallback(v(a),[a]);return M.jsx(s4,{ref:c,...s,onEnter:b,onEntered:d,onEntering:h,onExit:y,onExited:m,onExiting:f,addEndListener:p,nodeRef:u,children:typeof q=="function"?(E,S)=>q(E,{...S,ref:A}):C.cloneElement(q,{ref:A})})});$9.displayName="TransitionWrapper";function zl(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function W3(e){const t=zl(e);return C.useCallback(function(...l){return t.current&&t.current(...l)},[t])}const wl=e=>c1.forwardRef((t,l)=>M.jsx("div",{...t,ref:l,className:w1(t.className,e)}));function Tl(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e},[e]),t}function g4(e){const t=Tl(e);return C.useCallback(function(...l){return t.current&&t.current(...l)},[t])}function Nl(){const e=C.useRef(!0),t=C.useRef(()=>e.current);return C.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Ml(e){const t=C.useRef(null);return C.useEffect(()=>{t.current=e}),t.current}const Ll=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Pl=typeof document<"u",E8=Pl||Ll?C.useLayoutEffect:C.useEffect,Fl={[m4]:"show",[p4]:"show"},h6=c1.forwardRef(({className:e,children:t,transitionClasses:l={},onEnter:r,...n},o)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...n},q=C.useCallback((i,s)=>{Rl(i),r==null||r(i,s)},[r]);return M.jsx($9,{ref:o,addEndListener:Al,...a,onEnter:q,childRef:K2(t),children:(i,s)=>c1.cloneElement(t,{...s,className:w1("fade",e,t.props.className,Fl[i],l[i])})})});h6.displayName="Fade";const Bl={"aria-label":d1.string,onClick:d1.func,variant:d1.oneOf(["white"])},p6=c1.forwardRef(({className:e,variant:t,"aria-label":l="Close",...r},n)=>M.jsx("button",{ref:n,type:"button",className:w1("btn-close",t&&`btn-close-${t}`,e),"aria-label":l,...r}));p6.displayName="CloseButton";p6.propTypes=Bl;function Gl(e){const t=C.useRef(e);return t.current=e,t}function kl(e){const t=Gl(e);C.useEffect(()=>()=>t.current(),[])}function Dl(e,t){return c1.Children.toArray(e).some(l=>c1.isValidElement(l)&&l.type===t)}function jl({as:e,bsPrefix:t,className:l,...r}){t=G1(t,"col");const n=el(),o=tl(),a=[],q=[];return n.forEach(i=>{const s=r[i];delete r[i];let c,u,_;typeof s=="object"&&s!=null?{span:c,offset:u,order:_}=s:c=s;const A=i!==o?`-${i}`:"";c&&a.push(c===!0?`${t}${A}`:`${t}${A}-${c}`),_!=null&&q.push(`order${A}-${_}`),u!=null&&q.push(`offset${A}-${u}`)}),[{...r,className:w1(l,...a,...q)},{as:e,bsPrefix:t,spans:a}]}const Q9=c1.forwardRef((e,t)=>{const[{className:l,...r},{as:n="div",bsPrefix:o,spans:a}]=jl(e);return M.jsx(n,{...r,ref:t,className:w1(l,!a.length&&o)})});Q9.displayName="Col";var Vl=Function.prototype.bind.call(Function.prototype.call,[].slice);function P4(e,t){return Vl(e.querySelectorAll(t))}function A8(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Wl=process.env.NODE_ENV!=="production",K9=function(){};if(Wl){var Hl=function(t,l){var r=arguments.length;l=new Array(r>1?r-1:0);for(var n=1;n<r;n++)l[n-1]=arguments[n];var o=0,a="Warning: "+t.replace(/%s/g,function(){return l[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}};K9=function(e,t,l){var r=arguments.length;l=new Array(r>2?r-2:0);for(var n=2;n<r;n++)l[n-2]=arguments[n];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Hl.apply(null,[t].concat(l))}}var Xl=K9;const e5=f6(Xl),Zl="data-rr-ui-";function Yl(e){return`${Zl}${e}`}const t5=C.createContext(H4?window:void 0);t5.Provider;function g6(){return C.useContext(t5)}const Jl={type:d1.string,tooltip:d1.bool,as:d1.elementType},e3=c1.forwardRef(({as:e="div",className:t,type:l="valid",tooltip:r=!1,...n},o)=>M.jsx(e,{...n,ref:o,className:w1(t,`${l}-${r?"tooltip":"feedback"}`)}));e3.displayName="Feedback";e3.propTypes=Jl;const q4=c1.createContext({}),b6=c1.forwardRef(({id:e,bsPrefix:t,className:l,type:r="checkbox",isValid:n=!1,isInvalid:o=!1,as:a="input",...q},i)=>{const{controlId:s}=C.useContext(q4);return t=G1(t,"form-check-input"),M.jsx(a,{...q,ref:i,type:r,id:e||s,className:w1(l,t,n&&"is-valid",o&&"is-invalid")})});b6.displayName="FormCheckInput";const G2=c1.forwardRef(({bsPrefix:e,className:t,htmlFor:l,...r},n)=>{const{controlId:o}=C.useContext(q4);return e=G1(e,"form-check-label"),M.jsx("label",{...r,ref:n,htmlFor:l||o,className:w1(t,e)})});G2.displayName="FormCheckLabel";const l5=c1.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:l,inline:r=!1,reverse:n=!1,disabled:o=!1,isValid:a=!1,isInvalid:q=!1,feedbackTooltip:i=!1,feedback:s,feedbackType:c,className:u,style:_,title:A="",type:v="checkbox",label:b,children:h,as:d="input",...y},f)=>{t=G1(t,"form-check"),l=G1(l,"form-switch");const{controlId:m}=C.useContext(q4),p=C.useMemo(()=>({controlId:e||m}),[m,e]),E=!h&&b!=null&&b!==!1||Dl(h,G2),S=M.jsx(b6,{...y,type:v==="switch"?"checkbox":v,ref:f,isValid:a,isInvalid:q,disabled:o,as:d});return M.jsx(q4.Provider,{value:p,children:M.jsx("div",{style:_,className:w1(u,E&&t,r&&`${t}-inline`,n&&`${t}-reverse`,v==="switch"&&l),children:h||M.jsxs(M.Fragment,{children:[S,E&&M.jsx(G2,{title:A,children:b}),s&&M.jsx(e3,{type:c,tooltip:i,children:s})]})})})});l5.displayName="FormCheck";const k2=Object.assign(l5,{Input:b6,Label:G2}),n5=c1.forwardRef(({bsPrefix:e,type:t,size:l,htmlSize:r,id:n,className:o,isValid:a=!1,isInvalid:q=!1,plaintext:i,readOnly:s,as:c="input",...u},_)=>{const{controlId:A}=C.useContext(q4);return e=G1(e,"form-control"),process.env.NODE_ENV!=="production"&&e5(A==null||!n,"`controlId` is ignored on `<FormControl>` when `id` is specified."),M.jsx(c,{...u,type:t,size:r,ref:_,readOnly:s,id:n||A,className:w1(o,i?`${e}-plaintext`:e,l&&`${e}-${l}`,t==="color"&&`${e}-color`,a&&"is-valid",q&&"is-invalid")})});n5.displayName="FormControl";const Ul=Object.assign(n5,{Feedback:e3}),r5=c1.forwardRef(({className:e,bsPrefix:t,as:l="div",...r},n)=>(t=G1(t,"form-floating"),M.jsx(l,{ref:n,className:w1(e,t),...r})));r5.displayName="FormFloating";const _6=c1.forwardRef(({controlId:e,as:t="div",...l},r)=>{const n=C.useMemo(()=>({controlId:e}),[e]);return M.jsx(q4.Provider,{value:n,children:M.jsx(t,{...l,ref:r})})});_6.displayName="FormGroup";const o5=c1.forwardRef(({as:e="label",bsPrefix:t,column:l=!1,visuallyHidden:r=!1,className:n,htmlFor:o,...a},q)=>{const{controlId:i}=C.useContext(q4);t=G1(t,"form-label");let s="col-form-label";typeof l=="string"&&(s=`${s} ${s}-${l}`);const c=w1(n,t,r&&"visually-hidden",l&&s);return process.env.NODE_ENV!=="production"&&e5(i==null||!o,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),o=o||i,l?M.jsx(Q9,{ref:q,as:"label",className:c,htmlFor:o,...a}):M.jsx(e,{ref:q,className:c,htmlFor:o,...a})});o5.displayName="FormLabel";const a5=c1.forwardRef(({bsPrefix:e,className:t,id:l,...r},n)=>{const{controlId:o}=C.useContext(q4);return e=G1(e,"form-range"),M.jsx("input",{...r,type:"range",ref:n,className:w1(t,e),id:l||o})});a5.displayName="FormRange";const i5=c1.forwardRef(({bsPrefix:e,size:t,htmlSize:l,className:r,isValid:n=!1,isInvalid:o=!1,id:a,...q},i)=>{const{controlId:s}=C.useContext(q4);return e=G1(e,"form-select"),M.jsx("select",{...q,size:l,ref:i,className:w1(r,e,t&&`${e}-${t}`,n&&"is-valid",o&&"is-invalid"),id:a||s})});i5.displayName="FormSelect";const q5=c1.forwardRef(({bsPrefix:e,className:t,as:l="small",muted:r,...n},o)=>(e=G1(e,"form-text"),M.jsx(l,{...n,ref:o,className:w1(t,e,r&&"text-muted")})));q5.displayName="FormText";const s5=c1.forwardRef((e,t)=>M.jsx(k2,{...e,ref:t,type:"switch"}));s5.displayName="Switch";const $l=Object.assign(s5,{Input:k2.Input,Label:k2.Label}),c5=c1.forwardRef(({bsPrefix:e,className:t,children:l,controlId:r,label:n,...o},a)=>(e=G1(e,"form-floating"),M.jsxs(_6,{ref:a,className:w1(t,e),controlId:r,...o,children:[l,M.jsx("label",{htmlFor:r,children:n})]})));c5.displayName="FloatingLabel";const Ql={_ref:d1.any,validated:d1.bool,as:d1.elementType},v6=c1.forwardRef(({className:e,validated:t,as:l="form",...r},n)=>M.jsx(l,{...r,ref:n,className:w1(e,t&&"was-validated")}));v6.displayName="Form";v6.propTypes=Ql;const Kl=Object.assign(v6,{Group:_6,Control:Ul,Floating:r5,Check:k2,Switch:$l,Label:o5,Text:q5,Range:a5,Select:i5,FloatingLabel:c5}),R8=e=>!e||typeof e=="function"?e:t=>{e.current=t};function en(e,t){const l=R8(e),r=R8(t);return n=>{l&&l(n),r&&r(n)}}function C6(e,t){return C.useMemo(()=>en(e,t),[e,t])}var p2;function S8(e){if((!p2&&p2!==0||e)&&H4){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),p2=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return p2}function tn(){return C.useState(null)}function I3(e){e===void 0&&(e=Q2());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function ln(e){const t=C.useRef(e);return t.current=e,t}function nn(e){const t=ln(e);C.useEffect(()=>()=>t.current(),[])}function rn(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const O8=Yl("modal-open");class y6{constructor({ownerDocument:t,handleContainerOverflow:l=!0,isRTL:r=!1}={}){this.handleContainerOverflow=l,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return rn(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const l={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",n=this.getElement();t.style={overflow:n.style.overflow,[r]:n.style[r]},t.scrollBarWidth&&(l[r]=`${parseInt(C4(n,r)||"0",10)+t.scrollBarWidth}px`),n.setAttribute(O8,""),C4(n,l)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const l=this.getElement();l.removeAttribute(O8),Object.assign(l.style,t.style)}add(t){let l=this.modals.indexOf(t);return l!==-1||(l=this.modals.length,this.modals.push(t),this.setModalAttributes(t),l!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),l}remove(t){const l=this.modals.indexOf(t);l!==-1&&(this.modals.splice(l,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const E3=(e,t)=>H4?e==null?(t||Q2()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function on(e,t){const l=g6(),[r,n]=C.useState(()=>E3(e,l==null?void 0:l.document));if(!r){const o=E3(e);o&&n(o)}return C.useEffect(()=>{},[t,r]),C.useEffect(()=>{const o=E3(e);o!==r&&n(o)},[e,r]),r}function an({children:e,in:t,onExited:l,mountOnEnter:r,unmountOnExit:n}){const o=C.useRef(null),a=C.useRef(t),q=g4(l);C.useEffect(()=>{t?a.current=!0:q(o.current)},[t,q]);const i=C6(o,K2(e)),s=C.cloneElement(e,{ref:i});return t?s:n||!a.current&&r?null:s}const qn=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function sn(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;l[r]=e[r]}return l}function cn(e){let{onEnter:t,onEntering:l,onEntered:r,onExit:n,onExiting:o,onExited:a,addEndListener:q,children:i}=e,s=sn(e,qn);const c=C.useRef(null),u=C6(c,K2(i)),_=m=>p=>{m&&c.current&&m(c.current,p)},A=C.useCallback(_(t),[t]),v=C.useCallback(_(l),[l]),b=C.useCallback(_(r),[r]),h=C.useCallback(_(n),[n]),d=C.useCallback(_(o),[o]),y=C.useCallback(_(a),[a]),f=C.useCallback(_(q),[q]);return Object.assign({},s,{nodeRef:c},t&&{onEnter:A},l&&{onEntering:v},r&&{onEntered:b},n&&{onExit:h},o&&{onExiting:d},a&&{onExited:y},q&&{addEndListener:f},{children:typeof i=="function"?(m,p)=>i(m,Object.assign({},p,{ref:u})):C.cloneElement(i,{ref:u})})}const un=["component"];function mn(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;l[r]=e[r]}return l}const dn=c1.forwardRef((e,t)=>{let{component:l}=e,r=mn(e,un);const n=cn(r);return M.jsx(l,Object.assign({ref:t},n))});function fn({in:e,onTransition:t}){const l=C.useRef(null),r=C.useRef(!0),n=g4(t);return E8(()=>{if(!l.current)return;let o=!1;return n({in:e,element:l.current,initial:r.current,isStale:()=>o}),()=>{o=!0}},[e,n]),E8(()=>(r.current=!1,()=>{r.current=!0}),[]),l}function xn({children:e,in:t,onExited:l,onEntered:r,transition:n}){const[o,a]=C.useState(!t);t&&o&&a(!1);const q=fn({in:!!t,onTransition:s=>{const c=()=>{s.isStale()||(s.in?r==null||r(s.element,s.initial):(a(!0),l==null||l(s.element)))};Promise.resolve(n(s)).then(c,u=>{throw s.in||a(!0),u})}}),i=C6(q,K2(e));return o&&!t?null:C.cloneElement(e,{ref:i})}function z8(e,t,l){return e?M.jsx(dn,Object.assign({},l,{component:e})):t?M.jsx(xn,Object.assign({},l,{transition:t})):M.jsx(an,Object.assign({},l))}const hn=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function pn(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;l[r]=e[r]}return l}let A3;function gn(e){return A3||(A3=new y6({ownerDocument:e==null?void 0:e.document})),A3}function bn(e){const t=g6(),l=e||gn(t),r=C.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>l.add(r.current),remove:()=>l.remove(r.current),isTopModal:()=>l.isTopModal(r.current),setDialogRef:C.useCallback(n=>{r.current.dialog=n},[]),setBackdropRef:C.useCallback(n=>{r.current.backdrop=n},[])})}const u5=C.forwardRef((e,t)=>{let{show:l=!1,role:r="dialog",className:n,style:o,children:a,backdrop:q=!0,keyboard:i=!0,onBackdropClick:s,onEscapeKeyDown:c,transition:u,runTransition:_,backdropTransition:A,runBackdropTransition:v,autoFocus:b=!0,enforceFocus:h=!0,restoreFocus:d=!0,restoreFocusOptions:y,renderDialog:f,renderBackdrop:m=Y=>M.jsx("div",Object.assign({},Y)),manager:p,container:E,onShow:S,onHide:L=()=>{},onExit:B,onExited:V,onExiting:e1,onEnter:X,onEntering:r1,onEntered:K}=e,l1=pn(e,hn);const $=g6(),J=on(E),j=bn(p),q1=Nl(),G=Ml(l),[P,W]=C.useState(!l),H=C.useRef(null);C.useImperativeHandle(t,()=>j,[j]),H4&&!G&&l&&(H.current=I3($==null?void 0:$.document)),l&&P&&W(!1);const O=g4(()=>{if(j.add(),k.current=B2(document,"keydown",z),Z.current=B2(document,"focus",()=>setTimeout(g),!0),S&&S(),b){var Y,N;const D=I3((Y=(N=j.dialog)==null?void 0:N.ownerDocument)!=null?Y:$==null?void 0:$.document);j.dialog&&D&&!A8(j.dialog,D)&&(H.current=D,j.dialog.focus())}}),R=g4(()=>{if(j.remove(),k.current==null||k.current(),Z.current==null||Z.current(),d){var Y;(Y=H.current)==null||Y.focus==null||Y.focus(y),H.current=null}});C.useEffect(()=>{!l||!J||O()},[l,J,O]),C.useEffect(()=>{P&&R()},[P,R]),nn(()=>{R()});const g=g4(()=>{if(!h||!q1()||!j.isTopModal())return;const Y=I3($==null?void 0:$.document);j.dialog&&Y&&!A8(j.dialog,Y)&&j.dialog.focus()}),x=g4(Y=>{Y.target===Y.currentTarget&&(s==null||s(Y),q===!0&&L())}),z=g4(Y=>{i&&vl(Y)&&j.isTopModal()&&(c==null||c(Y),Y.defaultPrevented||L())}),Z=C.useRef(),k=C.useRef(),t1=(...Y)=>{W(!0),V==null||V(...Y)};if(!J)return null;const T=Object.assign({role:r,ref:j.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},l1,{style:o,className:n,tabIndex:-1});let n1=f?f(T):M.jsx("div",Object.assign({},T,{children:c1.cloneElement(a,{role:"document"})}));n1=z8(u,_,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!l,onExit:B,onExiting:e1,onExited:t1,onEnter:X,onEntering:r1,onEntered:K,children:n1});let U=null;return q&&(U=m({ref:j.setBackdropRef,onClick:x}),U=z8(A,v,{in:!!l,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:U})),M.jsx(M.Fragment,{children:b4.createPortal(M.jsxs(M.Fragment,{children:[U,n1]}),J)})});u5.displayName="Modal";const _n=Object.assign(u5,{Manager:y6});function vn(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Cn(e,t){e.classList?e.classList.add(t):vn(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function w8(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yn(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=w8(e.className,t):e.setAttribute("class",w8(e.className&&e.className.baseVal||"",t))}const F4={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class In extends y6{adjustAndStore(t,l,r){const n=l.style[t];l.dataset[t]=n,C4(l,{[t]:`${parseFloat(C4(l,t))+r}px`})}restore(t,l){const r=l.dataset[t];r!==void 0&&(delete l.dataset[t],C4(l,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const l=this.getElement();if(Cn(l,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";P4(l,F4.FIXED_CONTENT).forEach(o=>this.adjustAndStore(r,o,t.scrollBarWidth)),P4(l,F4.STICKY_CONTENT).forEach(o=>this.adjustAndStore(n,o,-t.scrollBarWidth)),P4(l,F4.NAVBAR_TOGGLER).forEach(o=>this.adjustAndStore(n,o,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const l=this.getElement();yn(l,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",n=this.isRTL?"marginLeft":"marginRight";P4(l,F4.FIXED_CONTENT).forEach(o=>this.restore(r,o)),P4(l,F4.STICKY_CONTENT).forEach(o=>this.restore(n,o)),P4(l,F4.NAVBAR_TOGGLER).forEach(o=>this.restore(n,o))}}let R3;function En(e){return R3||(R3=new In(e)),R3}const m5=c1.forwardRef(({className:e,bsPrefix:t,as:l="div",...r},n)=>(t=G1(t,"modal-body"),M.jsx(l,{ref:n,className:w1(e,t),...r})));m5.displayName="ModalBody";const d5=c1.createContext({onHide(){}}),I6=c1.forwardRef(({bsPrefix:e,className:t,contentClassName:l,centered:r,size:n,fullscreen:o,children:a,scrollable:q,...i},s)=>{e=G1(e,"modal");const c=`${e}-dialog`,u=typeof o=="string"?`${e}-fullscreen-${o}`:`${e}-fullscreen`;return M.jsx("div",{...i,ref:s,className:w1(c,t,n&&`${e}-${n}`,r&&`${c}-centered`,q&&`${c}-scrollable`,o&&u),children:M.jsx("div",{className:w1(`${e}-content`,l),children:a})})});I6.displayName="ModalDialog";const f5=c1.forwardRef(({className:e,bsPrefix:t,as:l="div",...r},n)=>(t=G1(t,"modal-footer"),M.jsx(l,{ref:n,className:w1(e,t),...r})));f5.displayName="ModalFooter";const x5=c1.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:l=!1,onHide:r,children:n,...o},a)=>{const q=C.useContext(d5),i=W3(()=>{q==null||q.onHide(),r==null||r()});return M.jsxs("div",{ref:a,...o,children:[n,l&&M.jsx(p6,{"aria-label":e,variant:t,onClick:i})]})});x5.displayName="AbstractModalHeader";const h5=c1.forwardRef(({bsPrefix:e,className:t,closeLabel:l="Close",closeButton:r=!1,...n},o)=>(e=G1(e,"modal-header"),M.jsx(x5,{ref:o,...n,className:w1(t,e),closeLabel:l,closeButton:r})));h5.displayName="ModalHeader";const An=wl("h4"),p5=c1.forwardRef(({className:e,bsPrefix:t,as:l=An,...r},n)=>(t=G1(t,"modal-title"),M.jsx(l,{ref:n,className:w1(e,t),...r})));p5.displayName="ModalTitle";function Rn(e){return M.jsx(h6,{...e,timeout:null})}function Sn(e){return M.jsx(h6,{...e,timeout:null})}const g5=c1.forwardRef(({bsPrefix:e,className:t,style:l,dialogClassName:r,contentClassName:n,children:o,dialogAs:a=I6,"data-bs-theme":q,"aria-labelledby":i,"aria-describedby":s,"aria-label":c,show:u=!1,animation:_=!0,backdrop:A=!0,keyboard:v=!0,onEscapeKeyDown:b,onShow:h,onHide:d,container:y,autoFocus:f=!0,enforceFocus:m=!0,restoreFocus:p=!0,restoreFocusOptions:E,onEntered:S,onExit:L,onExiting:B,onEnter:V,onEntering:e1,onExited:X,backdropClassName:r1,manager:K,...l1},$)=>{const[J,j]=C.useState({}),[q1,G]=C.useState(!1),P=C.useRef(!1),W=C.useRef(!1),H=C.useRef(null),[O,R]=tn(),g=U9($,R),x=W3(d),z=ll();e=G1(e,"modal");const Z=C.useMemo(()=>({onHide:x}),[x]);function k(){return K||En({isRTL:z})}function t1(p1){if(!H4)return;const B1=k().getScrollbarWidth()>0,Y1=p1.scrollHeight>Q2(p1).documentElement.clientHeight;j({paddingRight:B1&&!Y1?S8():void 0,paddingLeft:!B1&&Y1?S8():void 0})}const T=W3(()=>{O&&t1(O.dialog)});kl(()=>{V3(window,"resize",T),H.current==null||H.current()});const n1=()=>{P.current=!0},U=p1=>{P.current&&O&&p1.target===O.dialog&&(W.current=!0),P.current=!1},Y=()=>{G(!0),H.current=J9(O.dialog,()=>{G(!1)})},N=p1=>{p1.target===p1.currentTarget&&Y()},D=p1=>{if(A==="static"){N(p1);return}if(W.current||p1.target!==p1.currentTarget){W.current=!1;return}d==null||d()},w=p1=>{v?b==null||b(p1):(p1.preventDefault(),A==="static"&&Y())},I=(p1,B1)=>{p1&&t1(p1),V==null||V(p1,B1)},o1=p1=>{H.current==null||H.current(),L==null||L(p1)},s1=(p1,B1)=>{e1==null||e1(p1,B1),Y9(window,"resize",T)},b1=p1=>{p1&&(p1.style.display=""),X==null||X(p1),V3(window,"resize",T)},_1=C.useCallback(p1=>M.jsx("div",{...p1,className:w1(`${e}-backdrop`,r1,!_&&"show")}),[_,r1,e]),S1={...l,...J};S1.display="block";const F1=p1=>M.jsx("div",{role:"dialog",...p1,style:S1,className:w1(t,e,q1&&`${e}-static`,!_&&"show"),onClick:A?D:void 0,onMouseUp:U,"data-bs-theme":q,"aria-label":c,"aria-labelledby":i,"aria-describedby":s,children:M.jsx(a,{...l1,onMouseDown:n1,className:r,contentClassName:n,children:o})});return M.jsx(d5.Provider,{value:Z,children:M.jsx(_n,{show:u,ref:g,backdrop:A,container:y,keyboard:!0,autoFocus:f,enforceFocus:m,restoreFocus:p,restoreFocusOptions:E,onEscapeKeyDown:w,onShow:h,onHide:d,onEnter:I,onEntering:s1,onEntered:S,onExit:o1,onExiting:B,onExited:b1,manager:k(),transition:_?Rn:void 0,backdropTransition:_?Sn:void 0,renderBackdrop:_1,renderDialog:F1})})});g5.displayName="Modal";const T8=Object.assign(g5,{Body:m5,Header:h5,Title:p5,Footer:f5,Dialog:I6,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});function H3(){return H3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},H3.apply(this,arguments)}function On(e,t){if(e==null)return{};var l=zn(e,t),r,n;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}function zn(e,t){if(e==null)return{};var l={},r=Object.keys(e),n,o;for(o=0;o<r.length;o++)n=r[o],!(t.indexOf(n)>=0)&&(l[n]=e[n]);return l}var E6=C.forwardRef(function(e,t){var l=e.color,r=l===void 0?"currentColor":l,n=e.size,o=n===void 0?24:n,a=On(e,["color","size"]);return C.createElement("svg",H3({ref:t,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),C.createElement("circle",{cx:"12",cy:"12",r:"10"}),C.createElement("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),C.createElement("line",{x1:"9",y1:"9",x2:"15",y2:"15"}))});E6.propTypes={color:d1.string,size:d1.oneOfType([d1.string,d1.number])};E6.displayName="XCircle";const wn="_retailerInfoModal_da5av_1",Tn="_retailerInfoCloseBtn_da5av_11",Nn="_closeBtn_da5av_21",Mn="_modalBody_da5av_28",Ln="_contentWrapper_da5av_34",Pn="_content_da5av_34",Fn="_retailerLogo_da5av_41",Bn="_img_da5av_46",Gn="_retailerInfoContent_da5av_52",kn="_getDirectionsFrom_da5av_64",Dn="_retailerDropdown_da5av_70",jn="_btn_da5av_77",t4={retailerInfoModal:wn,retailerInfoCloseBtn:Tn,closeBtn:Nn,modalBody:Mn,contentWrapper:Ln,content:Pn,retailerLogo:Fn,img:Bn,retailerInfoContent:Gn,getDirectionsFrom:kn,retailerDropdown:Dn,btn:jn};function R4(e){"@babel/helpers - typeof";return R4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R4(e)}function Vn(e,t){if(R4(e)!="object"||!e)return e;var l=e[Symbol.toPrimitive];if(l!==void 0){var r=l.call(e,t);if(R4(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b5(e){var t=Vn(e,"string");return R4(t)=="symbol"?t:t+""}function Q4(e,t,l){return(t=b5(t))in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}function N8(e,t){var l=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),l.push.apply(l,r)}return l}function x1(e){for(var t=1;t<arguments.length;t++){var l=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(l),!0).forEach(function(r){Q4(e,r,l[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):N8(Object(l)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(l,r))})}return e}function Wn(e){if(Array.isArray(e))return e}function Hn(e,t){var l=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(l!=null){var r,n,o,a,q=[],i=!0,s=!1;try{if(o=(l=l.call(e)).next,t===0){if(Object(l)!==l)return;i=!1}else for(;!(i=(r=o.call(l)).done)&&(q.push(r.value),q.length!==t);i=!0);}catch(c){s=!0,n=c}finally{try{if(!i&&l.return!=null&&(a=l.return(),Object(a)!==a))return}finally{if(s)throw n}}return q}}function X3(e,t){(t==null||t>e.length)&&(t=e.length);for(var l=0,r=Array(t);l<t;l++)r[l]=e[l];return r}function _5(e,t){if(e){if(typeof e=="string")return X3(e,t);var l={}.toString.call(e).slice(8,-1);return l==="Object"&&e.constructor&&(l=e.constructor.name),l==="Map"||l==="Set"?Array.from(e):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?X3(e,t):void 0}}function Xn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i4(e,t){return Wn(e)||Hn(e,t)||_5(e,t)||Xn()}function c4(e,t){if(e==null)return{};var l,r,n=W9(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)l=o[r],t.indexOf(l)===-1&&{}.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}var Zn=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Yn(e){var t=e.defaultInputValue,l=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,q=e.inputValue,i=e.menuIsOpen,s=e.onChange,c=e.onInputChange,u=e.onMenuClose,_=e.onMenuOpen,A=e.value,v=c4(e,Zn),b=C.useState(q!==void 0?q:l),h=i4(b,2),d=h[0],y=h[1],f=C.useState(i!==void 0?i:n),m=i4(f,2),p=m[0],E=m[1],S=C.useState(A!==void 0?A:a),L=i4(S,2),B=L[0],V=L[1],e1=C.useCallback(function(j,q1){typeof s=="function"&&s(j,q1),V(j)},[s]),X=C.useCallback(function(j,q1){var G;typeof c=="function"&&(G=c(j,q1)),y(G!==void 0?G:j)},[c]),r1=C.useCallback(function(){typeof _=="function"&&_(),E(!0)},[_]),K=C.useCallback(function(){typeof u=="function"&&u(),E(!1)},[u]),l1=q!==void 0?q:d,$=i!==void 0?i:p,J=A!==void 0?A:B;return x1(x1({},v),{},{inputValue:l1,menuIsOpen:$,onChange:e1,onInputChange:X,onMenuClose:K,onMenuOpen:r1,value:J})}function Jn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M8(e,t){for(var l=0;l<t.length;l++){var r=t[l];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b5(r.key),r)}}function Un(e,t,l){return t&&M8(e.prototype,t),l&&M8(e,l),Object.defineProperty(e,"prototype",{writable:!1}),e}function $n(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F2(e,t)}function D2(e){return D2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D2(e)}function v5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v5=function(){return!!e})()}function Qn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){if(t&&(R4(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qn(e)}function er(e){var t=v5();return function(){var l,r=D2(e);if(t){var n=D2(this).constructor;l=Reflect.construct(r,arguments,n)}else l=r.apply(this,arguments);return Kn(this,l)}}function tr(e){if(Array.isArray(e))return X3(e)}function lr(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A6(e){return tr(e)||lr(e)||_5(e)||nr()}function rr(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function or(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ar=function(){function e(l){var r=this;this._insertTag=function(n){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,o),r.tags.push(n)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(or(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=rr(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),H1="-ms-",j2="-moz-",v1="-webkit-",C5="comm",R6="rule",S6="decl",ir="@import",y5="@keyframes",qr="@layer",sr=Math.abs,t3=String.fromCharCode,cr=Object.assign;function ur(e,t){return D1(e,0)^45?(((t<<2^D1(e,0))<<2^D1(e,1))<<2^D1(e,2))<<2^D1(e,3):0}function I5(e){return e.trim()}function mr(e,t){return(e=t.exec(e))?e[0]:e}function C1(e,t,l){return e.replace(t,l)}function Z3(e,t){return e.indexOf(t)}function D1(e,t){return e.charCodeAt(t)|0}function e2(e,t,l){return e.slice(t,l)}function n4(e){return e.length}function O6(e){return e.length}function g2(e,t){return t.push(e),e}function dr(e,t){return e.map(t).join("")}var l3=1,j4=1,E5=0,$1=0,L1=0,X4="";function n3(e,t,l,r,n,o,a){return{value:e,root:t,parent:l,type:r,props:n,children:o,line:l3,column:j4,length:a,return:""}}function J4(e,t){return cr(n3("",null,null,"",null,null,0),e,{length:-e.length},t)}function fr(){return L1}function xr(){return L1=$1>0?D1(X4,--$1):0,j4--,L1===10&&(j4=1,l3--),L1}function e4(){return L1=$1<E5?D1(X4,$1++):0,j4++,L1===10&&(j4=1,l3++),L1}function o4(){return D1(X4,$1)}function R2(){return $1}function s2(e,t){return e2(X4,e,t)}function t2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A5(e){return l3=j4=1,E5=n4(X4=e),$1=0,[]}function R5(e){return X4="",e}function S2(e){return I5(s2($1-1,Y3(e===91?e+2:e===40?e+1:e)))}function hr(e){for(;(L1=o4())&&L1<33;)e4();return t2(e)>2||t2(L1)>3?"":" "}function pr(e,t){for(;--t&&e4()&&!(L1<48||L1>102||L1>57&&L1<65||L1>70&&L1<97););return s2(e,R2()+(t<6&&o4()==32&&e4()==32))}function Y3(e){for(;e4();)switch(L1){case e:return $1;case 34:case 39:e!==34&&e!==39&&Y3(L1);break;case 40:e===41&&Y3(e);break;case 92:e4();break}return $1}function gr(e,t){for(;e4()&&e+L1!==57;)if(e+L1===84&&o4()===47)break;return"/*"+s2(t,$1-1)+"*"+t3(e===47?e:e4())}function br(e){for(;!t2(o4());)e4();return s2(e,$1)}function _r(e){return R5(O2("",null,null,null,[""],e=A5(e),0,[0],e))}function O2(e,t,l,r,n,o,a,q,i){for(var s=0,c=0,u=a,_=0,A=0,v=0,b=1,h=1,d=1,y=0,f="",m=n,p=o,E=r,S=f;h;)switch(v=y,y=e4()){case 40:if(v!=108&&D1(S,u-1)==58){Z3(S+=C1(S2(y),"&","&\f"),"&\f")!=-1&&(d=-1);break}case 34:case 39:case 91:S+=S2(y);break;case 9:case 10:case 13:case 32:S+=hr(v);break;case 92:S+=pr(R2()-1,7);continue;case 47:switch(o4()){case 42:case 47:g2(vr(gr(e4(),R2()),t,l),i);break;default:S+="/"}break;case 123*b:q[s++]=n4(S)*d;case 125*b:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+c:d==-1&&(S=C1(S,/\f/g,"")),A>0&&n4(S)-u&&g2(A>32?P8(S+";",r,l,u-1):P8(C1(S," ","")+";",r,l,u-2),i);break;case 59:S+=";";default:if(g2(E=L8(S,t,l,s,c,n,q,f,m=[],p=[],u),o),y===123)if(c===0)O2(S,t,E,E,m,o,u,q,p);else switch(_===99&&D1(S,3)===110?100:_){case 100:case 108:case 109:case 115:O2(e,E,E,r&&g2(L8(e,E,E,0,0,n,q,f,n,m=[],u),p),n,p,u,q,r?m:p);break;default:O2(S,E,E,E,[""],p,0,q,p)}}s=c=A=0,b=d=1,f=S="",u=a;break;case 58:u=1+n4(S),A=v;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&xr()==125)continue}switch(S+=t3(y),y*b){case 38:d=c>0?1:(S+="\f",-1);break;case 44:q[s++]=(n4(S)-1)*d,d=1;break;case 64:o4()===45&&(S+=S2(e4())),_=o4(),c=u=n4(f=S+=br(R2())),y++;break;case 45:v===45&&n4(S)==2&&(b=0)}}return o}function L8(e,t,l,r,n,o,a,q,i,s,c){for(var u=n-1,_=n===0?o:[""],A=O6(_),v=0,b=0,h=0;v<r;++v)for(var d=0,y=e2(e,u+1,u=sr(b=a[v])),f=e;d<A;++d)(f=I5(b>0?_[d]+" "+y:C1(y,/&\f/g,_[d])))&&(i[h++]=f);return n3(e,t,l,n===0?R6:q,i,s,c)}function vr(e,t,l){return n3(e,t,l,C5,t3(fr()),e2(e,2,-2),0)}function P8(e,t,l,r){return n3(e,t,l,S6,e2(e,0,r),e2(e,r+1,-1),r)}function G4(e,t){for(var l="",r=O6(e),n=0;n<r;n++)l+=t(e[n],n,e,t)||"";return l}function Cr(e,t,l,r){switch(e.type){case qr:if(e.children.length)break;case ir:case S6:return e.return=e.return||e.value;case C5:return"";case y5:return e.return=e.value+"{"+G4(e.children,r)+"}";case R6:e.value=e.props.join(",")}return n4(l=G4(e.children,r))?e.return=e.value+"{"+l+"}":""}function yr(e){var t=O6(e);return function(l,r,n,o){for(var a="",q=0;q<t;q++)a+=e[q](l,r,n,o)||"";return a}}function Ir(e){return function(t){t.root||(t=t.return)&&e(t)}}function Er(e){var t=Object.create(null);return function(l){return t[l]===void 0&&(t[l]=e(l)),t[l]}}var Ar=function(t,l,r){for(var n=0,o=0;n=o,o=o4(),n===38&&o===12&&(l[r]=1),!t2(o);)e4();return s2(t,$1)},Rr=function(t,l){var r=-1,n=44;do switch(t2(n)){case 0:n===38&&o4()===12&&(l[r]=1),t[r]+=Ar($1-1,l,r);break;case 2:t[r]+=S2(n);break;case 4:if(n===44){t[++r]=o4()===58?"&\f":"",l[r]=t[r].length;break}default:t[r]+=t3(n)}while(n=e4());return t},Sr=function(t,l){return R5(Rr(A5(t),l))},F8=new WeakMap,Or=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var l=t.value,r=t.parent,n=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&l.charCodeAt(0)!==58&&!F8.get(r))&&!n){F8.set(t,!0);for(var o=[],a=Sr(l,o),q=r.props,i=0,s=0;i<a.length;i++)for(var c=0;c<q.length;c++,s++)t.props[s]=o[i]?a[i].replace(/&\f/g,q[c]):q[c]+" "+a[i]}}},zr=function(t){if(t.type==="decl"){var l=t.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(t.return="",t.value="")}};function S5(e,t){switch(ur(e,t)){case 5103:return v1+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return v1+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return v1+e+j2+e+H1+e+e;case 6828:case 4268:return v1+e+H1+e+e;case 6165:return v1+e+H1+"flex-"+e+e;case 5187:return v1+e+C1(e,/(\w+).+(:[^]+)/,v1+"box-$1$2"+H1+"flex-$1$2")+e;case 5443:return v1+e+H1+"flex-item-"+C1(e,/flex-|-self/,"")+e;case 4675:return v1+e+H1+"flex-line-pack"+C1(e,/align-content|flex-|-self/,"")+e;case 5548:return v1+e+H1+C1(e,"shrink","negative")+e;case 5292:return v1+e+H1+C1(e,"basis","preferred-size")+e;case 6060:return v1+"box-"+C1(e,"-grow","")+v1+e+H1+C1(e,"grow","positive")+e;case 4554:return v1+C1(e,/([^-])(transform)/g,"$1"+v1+"$2")+e;case 6187:return C1(C1(C1(e,/(zoom-|grab)/,v1+"$1"),/(image-set)/,v1+"$1"),e,"")+e;case 5495:case 3959:return C1(e,/(image-set\([^]*)/,v1+"$1$`$1");case 4968:return C1(C1(e,/(.+:)(flex-)?(.*)/,v1+"box-pack:$3"+H1+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+v1+e+e;case 4095:case 3583:case 4068:case 2532:return C1(e,/(.+)-inline(.+)/,v1+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(n4(e)-1-t>6)switch(D1(e,t+1)){case 109:if(D1(e,t+4)!==45)break;case 102:return C1(e,/(.+:)(.+)-([^]+)/,"$1"+v1+"$2-$3$1"+j2+(D1(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Z3(e,"stretch")?S5(C1(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(D1(e,t+1)!==115)break;case 6444:switch(D1(e,n4(e)-3-(~Z3(e,"!important")&&10))){case 107:return C1(e,":",":"+v1)+e;case 101:return C1(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+v1+(D1(e,14)===45?"inline-":"")+"box$3$1"+v1+"$2$3$1"+H1+"$2box$3")+e}break;case 5936:switch(D1(e,t+11)){case 114:return v1+e+H1+C1(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return v1+e+H1+C1(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return v1+e+H1+C1(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return v1+e+H1+e+e}return e}var wr=function(t,l,r,n){if(t.length>-1&&!t.return)switch(t.type){case S6:t.return=S5(t.value,t.length);break;case y5:return G4([J4(t,{value:C1(t.value,"@","@"+v1)})],n);case R6:if(t.length)return dr(t.props,function(o){switch(mr(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return G4([J4(t,{props:[C1(o,/:(read-\w+)/,":"+j2+"$1")]})],n);case"::placeholder":return G4([J4(t,{props:[C1(o,/:(plac\w+)/,":"+v1+"input-$1")]}),J4(t,{props:[C1(o,/:(plac\w+)/,":"+j2+"$1")]}),J4(t,{props:[C1(o,/:(plac\w+)/,H1+"input-$1")]})],n)}return""})}},Tr=[wr],Nr=function(t){var l=t.key;if(l==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var h=b.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var n=t.stylisPlugins||Tr,o={},a,q=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(b){for(var h=b.getAttribute("data-emotion").split(" "),d=1;d<h.length;d++)o[h[d]]=!0;q.push(b)});var i,s=[Or,zr];{var c,u=[Cr,Ir(function(b){c.insert(b)})],_=yr(s.concat(n,u)),A=function(h){return G4(_r(h),_)};i=function(h,d,y,f){c=y,A(h?h+"{"+d.styles+"}":d.styles),f&&(v.inserted[d.name]=!0)}}var v={key:l,sheet:new ar({key:l,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:i};return v.sheet.hydrate(q),v},J3={exports:{}},E1={};/** @license React v16.13.1
100
100
  * react-is.production.min.js
101
101
  *
102
102
  * Copyright (c) Facebook, Inc. and its affiliates.
103
103
  *
104
104
  * This source code is licensed under the MIT license found in the
105
105
  * LICENSE file in the root directory of this source tree.
106
- */var B8;function Nr(){if(B8)return E1;B8=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case t:switch(p=p.type,p){case i:case s:case r:case o:case n:case u:return p;default:switch(p=p&&p.$$typeof,p){case q:case c:case v:case A:case a:return p;default:return E}}case l:return E}}}function m(p){return f(p)===s}return E1.AsyncMode=i,E1.ConcurrentMode=s,E1.ContextConsumer=q,E1.ContextProvider=a,E1.Element=t,E1.ForwardRef=c,E1.Fragment=r,E1.Lazy=v,E1.Memo=A,E1.Portal=l,E1.Profiler=o,E1.StrictMode=n,E1.Suspense=u,E1.isAsyncMode=function(p){return m(p)||f(p)===i},E1.isConcurrentMode=m,E1.isContextConsumer=function(p){return f(p)===q},E1.isContextProvider=function(p){return f(p)===a},E1.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},E1.isForwardRef=function(p){return f(p)===c},E1.isFragment=function(p){return f(p)===r},E1.isLazy=function(p){return f(p)===v},E1.isMemo=function(p){return f(p)===A},E1.isPortal=function(p){return f(p)===l},E1.isProfiler=function(p){return f(p)===o},E1.isStrictMode=function(p){return f(p)===n},E1.isSuspense=function(p){return f(p)===u},E1.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===s||p===o||p===n||p===u||p===_||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===A||p.$$typeof===a||p.$$typeof===q||p.$$typeof===c||p.$$typeof===h||p.$$typeof===d||p.$$typeof===y||p.$$typeof===b)},E1.typeOf=f,E1}var A1={};/** @license React v16.13.1
106
+ */var B8;function Mr(){if(B8)return E1;B8=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(p){if(typeof p=="object"&&p!==null){var E=p.$$typeof;switch(E){case t:switch(p=p.type,p){case i:case s:case r:case o:case n:case u:return p;default:switch(p=p&&p.$$typeof,p){case q:case c:case v:case A:case a:return p;default:return E}}case l:return E}}}function m(p){return f(p)===s}return E1.AsyncMode=i,E1.ConcurrentMode=s,E1.ContextConsumer=q,E1.ContextProvider=a,E1.Element=t,E1.ForwardRef=c,E1.Fragment=r,E1.Lazy=v,E1.Memo=A,E1.Portal=l,E1.Profiler=o,E1.StrictMode=n,E1.Suspense=u,E1.isAsyncMode=function(p){return m(p)||f(p)===i},E1.isConcurrentMode=m,E1.isContextConsumer=function(p){return f(p)===q},E1.isContextProvider=function(p){return f(p)===a},E1.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},E1.isForwardRef=function(p){return f(p)===c},E1.isFragment=function(p){return f(p)===r},E1.isLazy=function(p){return f(p)===v},E1.isMemo=function(p){return f(p)===A},E1.isPortal=function(p){return f(p)===l},E1.isProfiler=function(p){return f(p)===o},E1.isStrictMode=function(p){return f(p)===n},E1.isSuspense=function(p){return f(p)===u},E1.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===s||p===o||p===n||p===u||p===_||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===A||p.$$typeof===a||p.$$typeof===q||p.$$typeof===c||p.$$typeof===h||p.$$typeof===d||p.$$typeof===y||p.$$typeof===b)},E1.typeOf=f,E1}var A1={};/** @license React v16.13.1
107
107
  * react-is.development.js
108
108
  *
109
109
  * Copyright (c) Facebook, Inc. and its affiliates.
110
110
  *
111
111
  * This source code is licensed under the MIT license found in the
112
112
  * LICENSE file in the root directory of this source tree.
113
- */var G8;function Mr(){return G8||(G8=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(T){return typeof T=="string"||typeof T=="function"||T===r||T===s||T===o||T===n||T===u||T===_||typeof T=="object"&&T!==null&&(T.$$typeof===v||T.$$typeof===A||T.$$typeof===a||T.$$typeof===q||T.$$typeof===c||T.$$typeof===h||T.$$typeof===d||T.$$typeof===y||T.$$typeof===b)}function m(T){if(typeof T=="object"&&T!==null){var n1=T.$$typeof;switch(n1){case t:var U=T.type;switch(U){case i:case s:case r:case o:case n:case u:return U;default:var Y=U&&U.$$typeof;switch(Y){case q:case c:case v:case A:case a:return Y;default:return n1}}case l:return n1}}}var p=i,E=s,S=q,L=a,B=t,V=c,e1=r,X=v,r1=A,K=l,l1=o,$=n,J=u,j=!1;function q1(T){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(T)||m(T)===i}function G(T){return m(T)===s}function P(T){return m(T)===q}function W(T){return m(T)===a}function H(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function O(T){return m(T)===c}function R(T){return m(T)===r}function g(T){return m(T)===v}function x(T){return m(T)===A}function z(T){return m(T)===l}function Z(T){return m(T)===o}function k(T){return m(T)===n}function t1(T){return m(T)===u}A1.AsyncMode=p,A1.ConcurrentMode=E,A1.ContextConsumer=S,A1.ContextProvider=L,A1.Element=B,A1.ForwardRef=V,A1.Fragment=e1,A1.Lazy=X,A1.Memo=r1,A1.Portal=K,A1.Profiler=l1,A1.StrictMode=$,A1.Suspense=J,A1.isAsyncMode=q1,A1.isConcurrentMode=G,A1.isContextConsumer=P,A1.isContextProvider=W,A1.isElement=H,A1.isForwardRef=O,A1.isFragment=R,A1.isLazy=g,A1.isMemo=x,A1.isPortal=z,A1.isProfiler=Z,A1.isStrictMode=k,A1.isSuspense=t1,A1.isValidElementType=f,A1.typeOf=m}()),A1}process.env.NODE_ENV==="production"?J3.exports=Nr():J3.exports=Mr();var Lr=J3.exports,O5=Lr,Pr={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z5={};z5[O5.ForwardRef]=Pr;z5[O5.Memo]=Fr;var Br=!0;function Gr(e,t,l){var r="";return l.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var w5=function(t,l,r){var n=t.key+"-"+l.name;(r===!1||Br===!1)&&t.registered[n]===void 0&&(t.registered[n]=l.styles)},kr=function(t,l,r){w5(t,l,r);var n=t.key+"-"+l.name;if(t.inserted[l.name]===void 0){var o=l;do t.insert(l===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Dr(e){for(var t=0,l,r=0,n=e.length;n>=4;++r,n-=4)l=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,t=(l&65535)*1540483477+((l>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vr=/[A-Z]|^ms/g,Wr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T5=function(t){return t.charCodeAt(1)===45},k8=function(t){return t!=null&&typeof t!="boolean"},S3=Ir(function(e){return T5(e)?e:e.replace(Vr,"-$&").toLowerCase()}),D8=function(t,l){switch(t){case"animation":case"animationName":if(typeof l=="string")return l.replace(Wr,function(r,n,o){return r4={name:n,styles:o,next:r4},n})}return jr[t]!==1&&!T5(t)&&typeof l=="number"&&l!==0?l+"px":l};function l2(e,t,l){if(l==null)return"";var r=l;if(r.__emotion_styles!==void 0)return r;switch(typeof l){case"boolean":return"";case"object":{var n=l;if(n.anim===1)return r4={name:n.name,styles:n.styles,next:r4},n.name;var o=l;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)r4={name:a.name,styles:a.styles,next:r4},a=a.next;var q=o.styles+";";return q}return Hr(e,t,l)}case"function":{if(e!==void 0){var i=r4,s=l(e);return r4=i,l2(e,t,s)}break}}var c=l;return c}function Hr(e,t,l){var r="";if(Array.isArray(l))for(var n=0;n<l.length;n++)r+=l2(e,t,l[n])+";";else for(var o in l){var a=l[o];if(typeof a!="object"){var q=a;k8(q)&&(r+=S3(o)+":"+D8(o,q)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var i=0;i<a.length;i++)k8(a[i])&&(r+=S3(o)+":"+D8(o,a[i])+";");else{var s=l2(e,t,a);switch(o){case"animation":case"animationName":{r+=S3(o)+":"+s+";";break}default:r+=o+"{"+s+"}"}}}return r}var j8=/label:\s*([^\s;{]+)\s*(;|$)/g,r4;function N5(e,t,l){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";r4=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,n+=l2(l,t,o);else{var a=o;n+=a[0]}for(var q=1;q<e.length;q++)if(n+=l2(l,t,e[q]),r){var i=o;n+=i[q]}j8.lastIndex=0;for(var s="",c;(c=j8.exec(n))!==null;)s+="-"+c[1];var u=Dr(n)+s;return{name:u,styles:n,next:r4}}var Xr=function(t){return t()},Zr=c1.useInsertionEffect?c1.useInsertionEffect:!1,Yr=Zr||Xr,M5=c1.createContext(typeof HTMLElement<"u"?Tr({key:"css"}):null);M5.Provider;var Jr=function(t){return C.forwardRef(function(l,r){var n=C.useContext(M5);return t(l,n,r)})},Ur=c1.createContext({}),z6={}.hasOwnProperty,U3="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",$r=function(t,l){var r={};for(var n in l)z6.call(l,n)&&(r[n]=l[n]);return r[U3]=t,r},Qr=function(t){var l=t.cache,r=t.serialized,n=t.isStringTag;return w5(l,r,n),Yr(function(){return kr(l,r,n)}),null},Kr=Jr(function(e,t,l){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[U3],o=[r],a="";typeof e.className=="string"?a=Gr(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var q=N5(o,void 0,c1.useContext(Ur));a+=t.key+"-"+q.name;var i={};for(var s in e)z6.call(e,s)&&s!=="css"&&s!==U3&&(i[s]=e[s]);return i.className=a,l&&(i.ref=l),c1.createElement(c1.Fragment,null,c1.createElement(Qr,{cache:t,serialized:q,isStringTag:typeof n=="string"}),c1.createElement(n,i))}),eo=Kr,f1=function(t,l){var r=arguments;if(l==null||!z6.call(l,"css"))return c1.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=eo,o[1]=$r(t,l);for(var a=2;a<n;a++)o[a]=r[a];return c1.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(f1||(f1={}));function w6(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];return N5(t)}function to(){var e=w6.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function lo(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const no=Math.min,ro=Math.max,V2=Math.round,b2=Math.floor,$3=e=>({x:e,y:e});function oo(e){const{x:t,y:l,width:r,height:n}=e;return{width:r,height:n,top:l,left:t,right:t+r,bottom:l+n,x:t,y:l}}function r3(){return typeof window<"u"}function L5(e){return F5(e)?(e.nodeName||"").toLowerCase():"#document"}function O4(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function P5(e){var t;return(t=(F5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function F5(e){return r3()?e instanceof Node||e instanceof O4(e).Node:!1}function ao(e){return r3()?e instanceof Element||e instanceof O4(e).Element:!1}function T6(e){return r3()?e instanceof HTMLElement||e instanceof O4(e).HTMLElement:!1}function V8(e){return!r3()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O4(e).ShadowRoot}function B5(e){const{overflow:t,overflowX:l,overflowY:r,display:n}=G5(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+l)&&n!=="inline"&&n!=="contents"}function io(e){return/^(html|body|#document)$/.test(L5(e))}function G5(e){return O4(e).getComputedStyle(e)}function qo(e){if(L5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||V8(e)&&e.host||P5(e);return V8(t)?t.host:t}function k5(e){const t=qo(e);return io(t)?(e.ownerDocument||e).body:T6(t)&&B5(t)?t:k5(t)}function W2(e,t,l){var r;t===void 0&&(t=[]),l===void 0&&(l=!0);const n=k5(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=O4(n);if(o){const q=so(a);return t.concat(a,a.visualViewport||[],B5(n)?n:[],q&&l?W2(q):[])}else return t.concat(n,W2(n,[],l))}function so(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function co(e){const t=G5(e);let l=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=T6(e),o=n?e.offsetWidth:l,a=n?e.offsetHeight:r,q=V2(l)!==o||V2(r)!==a;return q&&(l=o,r=a),{width:l,height:r,$:q}}function N6(e){return ao(e)?e:e.contextElement}function uo(e){const t=N6(e);if(!T6(t))return $3(1);const l=t.getBoundingClientRect(),{width:r,height:n,$:o}=co(t);let a=(o?V2(l.width):l.width)/r,q=(o?V2(l.height):l.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!q||!Number.isFinite(q))&&(q=1),{x:a,y:q}}function W8(e,t,l,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect();N6(e);let o=$3(1);t&&(o=uo(e));const a=$3(0);let q=(n.left+a.x)/o.x,i=(n.top+a.y)/o.y,s=n.width/o.x,c=n.height/o.y;return oo({width:s,height:c,x:q,y:i})}function D5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mo(e,t,l){let r=null,n;const o=P5(e);function a(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function q(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),a();const _=e.getBoundingClientRect(),{left:A,top:v,width:b,height:h}=_;if(c||t(),!b||!h)return;const d=b2(v),y=b2(o.clientWidth-(A+b)),f=b2(o.clientHeight-(v+h)),m=b2(A),E={rootMargin:-d+"px "+-y+"px "+-f+"px "+-m+"px",threshold:ro(0,no(1,u))||1};let S=!0;function L(B){const V=B[0].intersectionRatio;if(!D5(_,e.getBoundingClientRect()))return q();if(V!==u){if(!S)return q();V?q(!1,V):n=setTimeout(()=>{q(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(L,{...E,root:o.ownerDocument})}catch{r=new IntersectionObserver(L,E)}r.observe(e)}const i=O4(e),s=()=>q(l);return i.addEventListener("resize",s),q(!0),()=>{i.removeEventListener("resize",s),a()}}function fo(e,t,l,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:q=typeof IntersectionObserver=="function",animationFrame:i=!1}=r,s=N6(e),c=n||o?[...s?W2(s):[],...t?W2(t):[]]:[];c.forEach(d=>{n&&d.addEventListener("scroll",l),o&&d.addEventListener("resize",l)});const u=s&&q?mo(s,l,o):null;let _=-1,A=null;a&&(A=new ResizeObserver(d=>{let[y]=d;y&&y.target===s&&A&&t&&(A.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var f;(f=A)==null||f.observe(t)})),l()}),s&&!i&&A.observe(s),t&&A.observe(t));let v,b=i?W8(e):null;i&&h();function h(){const d=W8(e);b&&!D5(b,d)&&l(),b=d,v=requestAnimationFrame(h)}return l(),()=>{var d;c.forEach(y=>{n&&y.removeEventListener("scroll",l),o&&y.removeEventListener("resize",l)}),u==null||u(),(d=A)==null||d.disconnect(),A=null,i&&cancelAnimationFrame(v)}}var Q3=C.useLayoutEffect,xo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],H2=function(){};function ho(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function po(e,t){for(var l=arguments.length,r=new Array(l>2?l-2:0),n=2;n<l;n++)r[n-2]=arguments[n];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(ho(e,a)));return o.filter(function(q){return q}).map(function(q){return String(q).trim()}).join(" ")}var H8=function(t){return Ao(t)?t.filter(Boolean):R4(t)==="object"&&t!==null?[t]:[]},j5=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var l=c4(t,xo);return x1({},l)},N1=function(t,l,r){var n=t.cx,o=t.getStyles,a=t.getClassNames,q=t.className;return{css:o(l,t),className:n(r??{},a(l,t),q)}};function o3(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function go(e){return o3(e)?window.innerHeight:e.clientHeight}function V5(e){return o3(e)?window.pageYOffset:e.scrollTop}function X2(e,t){if(o3(e)){window.scrollTo(0,t);return}e.scrollTop=t}function bo(e){var t=getComputedStyle(e),l=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(l&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function _o(e,t,l,r){return l*((e=e/r-1)*e*e+1)+t}function _2(e,t){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H2,n=V5(e),o=t-n,a=10,q=0;function i(){q+=a;var s=_o(q,n,o,l);X2(e,s),q<l?window.requestAnimationFrame(i):r(e)}i()}function X8(e,t){var l=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>l.bottom?X2(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<l.top&&X2(e,Math.max(t.offsetTop-n,0))}function vo(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Z8(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Co(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var W5=!1,yo={get passive(){return W5=!0}},v2=typeof window<"u"?window:{};v2.addEventListener&&v2.removeEventListener&&(v2.addEventListener("p",H2,yo),v2.removeEventListener("p",H2,!1));var Io=W5;function Eo(e){return e!=null}function Ao(e){return Array.isArray(e)}function C2(e,t,l){return e?t:l}var Ro=function(t){for(var l=arguments.length,r=new Array(l>1?l-1:0),n=1;n<l;n++)r[n-1]=arguments[n];var o=Object.entries(t).filter(function(a){var q=i4(a,1),i=q[0];return!r.includes(i)});return o.reduce(function(a,q){var i=i4(q,2),s=i[0],c=i[1];return a[s]=c,a},{})},So=["children","innerProps"],Oo=["children","innerProps"];function zo(e){var t=e.maxHeight,l=e.menuEl,r=e.minHeight,n=e.placement,o=e.shouldScroll,a=e.isFixedPosition,q=e.controlHeight,i=bo(l),s={placement:"bottom",maxHeight:t};if(!l||!l.offsetParent)return s;var c=i.getBoundingClientRect(),u=c.height,_=l.getBoundingClientRect(),A=_.bottom,v=_.height,b=_.top,h=l.offsetParent.getBoundingClientRect(),d=h.top,y=a?window.innerHeight:go(i),f=V5(i),m=parseInt(getComputedStyle(l).marginBottom,10),p=parseInt(getComputedStyle(l).marginTop,10),E=d-p,S=y-b,L=E+f,B=u-f-b,V=A-y+f+m,e1=f+b-p,X=160;switch(n){case"auto":case"bottom":if(S>=v)return{placement:"bottom",maxHeight:t};if(B>=v&&!a)return o&&_2(i,V,X),{placement:"bottom",maxHeight:t};if(!a&&B>=r||a&&S>=r){o&&_2(i,V,X);var r1=a?S-m:B-m;return{placement:"bottom",maxHeight:r1}}if(n==="auto"||a){var K=t,l1=a?E:L;return l1>=r&&(K=Math.min(l1-m-q,t)),{placement:"top",maxHeight:K}}if(n==="bottom")return o&&X2(i,V),{placement:"bottom",maxHeight:t};break;case"top":if(E>=v)return{placement:"top",maxHeight:t};if(L>=v&&!a)return o&&_2(i,e1,X),{placement:"top",maxHeight:t};if(!a&&L>=r||a&&E>=r){var $=t;return(!a&&L>=r||a&&E>=r)&&($=a?E-p:L-p),o&&_2(i,e1,X),{placement:"top",maxHeight:$}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return s}function wo(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var H5=function(t){return t==="auto"?"bottom":t},To=function(t,l){var r,n=t.placement,o=t.theme,a=o.borderRadius,q=o.spacing,i=o.colors;return x1((r={label:"menu"},Q4(r,wo(n),"100%"),Q4(r,"position","absolute"),Q4(r,"width","100%"),Q4(r,"zIndex",1),r),l?{}:{backgroundColor:i.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:q.menuGutter,marginTop:q.menuGutter})},X5=C.createContext(null),No=function(t){var l=t.children,r=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,q=t.menuShouldScrollIntoView,i=t.theme,s=C.useContext(X5)||{},c=s.setPortalPlacement,u=C.useRef(null),_=C.useState(n),A=i4(_,2),v=A[0],b=A[1],h=C.useState(null),d=i4(h,2),y=d[0],f=d[1],m=i.spacing.controlHeight;return Q3(function(){var p=u.current;if(p){var E=a==="fixed",S=q&&!E,L=zo({maxHeight:n,menuEl:p,minHeight:r,placement:o,shouldScroll:S,isFixedPosition:E,controlHeight:m});b(L.maxHeight),f(L.placement),c==null||c(L.placement)}},[n,o,a,q,r,c,m]),l({ref:u,placerProps:x1(x1({},t),{},{placement:y||H5(o),maxHeight:v})})},Mo=function(t){var l=t.children,r=t.innerRef,n=t.innerProps;return f1("div",h1({},N1(t,"menu",{menu:!0}),{ref:r},n),l)},Lo=Mo,Po=function(t,l){var r=t.maxHeight,n=t.theme.spacing.baseUnit;return x1({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},l?{}:{paddingBottom:n,paddingTop:n})},Fo=function(t){var l=t.children,r=t.innerProps,n=t.innerRef,o=t.isMulti;return f1("div",h1({},N1(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},r),l)},Z5=function(t,l){var r=t.theme,n=r.spacing.baseUnit,o=r.colors;return x1({textAlign:"center"},l?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Bo=Z5,Go=Z5,ko=function(t){var l=t.children,r=l===void 0?"No options":l,n=t.innerProps,o=c4(t,So);return f1("div",h1({},N1(x1(x1({},o),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},Do=function(t){var l=t.children,r=l===void 0?"Loading...":l,n=t.innerProps,o=c4(t,Oo);return f1("div",h1({},N1(x1(x1({},o),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},jo=function(t){var l=t.rect,r=t.offset,n=t.position;return{left:l.left,position:n,top:r,width:l.width,zIndex:1}},Vo=function(t){var l=t.appendTo,r=t.children,n=t.controlElement,o=t.innerProps,a=t.menuPlacement,q=t.menuPosition,i=C.useRef(null),s=C.useRef(null),c=C.useState(H5(a)),u=i4(c,2),_=u[0],A=u[1],v=C.useMemo(function(){return{setPortalPlacement:A}},[]),b=C.useState(null),h=i4(b,2),d=h[0],y=h[1],f=C.useCallback(function(){if(n){var S=vo(n),L=q==="fixed"?0:window.pageYOffset,B=S[_]+L;(B!==(d==null?void 0:d.offset)||S.left!==(d==null?void 0:d.rect.left)||S.width!==(d==null?void 0:d.rect.width))&&y({offset:B,rect:S})}},[n,q,_,d==null?void 0:d.offset,d==null?void 0:d.rect.left,d==null?void 0:d.rect.width]);Q3(function(){f()},[f]);var m=C.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),n&&i.current&&(s.current=fo(n,i.current,f,{elementResize:"ResizeObserver"in window}))},[n,f]);Q3(function(){m()},[m]);var p=C.useCallback(function(S){i.current=S,m()},[m]);if(!l&&q!=="fixed"||!d)return null;var E=f1("div",h1({ref:p},N1(x1(x1({},t),{},{offset:d.offset,position:q,rect:d.rect}),"menuPortal",{"menu-portal":!0}),o),r);return f1(X5.Provider,{value:v},l?b4.createPortal(E,l):E)},Wo=function(t){var l=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:l?"none":void 0,position:"relative"}},Ho=function(t){var l=t.children,r=t.innerProps,n=t.isDisabled,o=t.isRtl;return f1("div",h1({},N1(t,"container",{"--is-disabled":n,"--is-rtl":o}),r),l)},Xo=function(t,l){var r=t.theme.spacing,n=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return x1({alignItems:"center",display:n&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},l?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Zo=function(t){var l=t.children,r=t.innerProps,n=t.isMulti,o=t.hasValue;return f1("div",h1({},N1(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),r),l)},Yo=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Jo=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"indicatorsContainer",{indicators:!0}),r),l)},Y8,Uo=["size"],$o=["innerProps","isRtl","size"];function Qo(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ko=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09P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KiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Qo},Y5=function(t){var l=t.size,r=c4(t,Uo);return f1("svg",h1({height:l,width:l,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Ko},r))},M6=function(t){return f1(Y5,h1({size:20},t),f1("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},J5=function(t){return f1(Y5,h1({size:20},t),f1("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},U5=function(t,l){var r=t.isFocused,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return x1({label:"indicatorContainer",display:"flex",transition:"color 150ms"},l?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},ea=U5,ta=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),l||f1(J5,null))},la=U5,na=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),l||f1(M6,null))},ra=function(t,l){var r=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return x1({label:"indicatorSeparator",alignSelf:"stretch",width:1},l?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},oa=function(t){var l=t.innerProps;return f1("span",h1({},l,N1(t,"indicatorSeparator",{"indicator-separator":!0})))},aa=to(Y8||(Y8=lo([`
113
+ */var G8;function Lr(){return G8||(G8=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,l=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,q=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,_=e?Symbol.for("react.suspense_list"):60120,A=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function f(T){return typeof T=="string"||typeof T=="function"||T===r||T===s||T===o||T===n||T===u||T===_||typeof T=="object"&&T!==null&&(T.$$typeof===v||T.$$typeof===A||T.$$typeof===a||T.$$typeof===q||T.$$typeof===c||T.$$typeof===h||T.$$typeof===d||T.$$typeof===y||T.$$typeof===b)}function m(T){if(typeof T=="object"&&T!==null){var n1=T.$$typeof;switch(n1){case t:var U=T.type;switch(U){case i:case s:case r:case o:case n:case u:return U;default:var Y=U&&U.$$typeof;switch(Y){case q:case c:case v:case A:case a:return Y;default:return n1}}case l:return n1}}}var p=i,E=s,S=q,L=a,B=t,V=c,e1=r,X=v,r1=A,K=l,l1=o,$=n,J=u,j=!1;function q1(T){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(T)||m(T)===i}function G(T){return m(T)===s}function P(T){return m(T)===q}function W(T){return m(T)===a}function H(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function O(T){return m(T)===c}function R(T){return m(T)===r}function g(T){return m(T)===v}function x(T){return m(T)===A}function z(T){return m(T)===l}function Z(T){return m(T)===o}function k(T){return m(T)===n}function t1(T){return m(T)===u}A1.AsyncMode=p,A1.ConcurrentMode=E,A1.ContextConsumer=S,A1.ContextProvider=L,A1.Element=B,A1.ForwardRef=V,A1.Fragment=e1,A1.Lazy=X,A1.Memo=r1,A1.Portal=K,A1.Profiler=l1,A1.StrictMode=$,A1.Suspense=J,A1.isAsyncMode=q1,A1.isConcurrentMode=G,A1.isContextConsumer=P,A1.isContextProvider=W,A1.isElement=H,A1.isForwardRef=O,A1.isFragment=R,A1.isLazy=g,A1.isMemo=x,A1.isPortal=z,A1.isProfiler=Z,A1.isStrictMode=k,A1.isSuspense=t1,A1.isValidElementType=f,A1.typeOf=m}()),A1}process.env.NODE_ENV==="production"?J3.exports=Mr():J3.exports=Lr();var Pr=J3.exports,O5=Pr,Fr={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Br={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z5={};z5[O5.ForwardRef]=Fr;z5[O5.Memo]=Br;var Gr=!0;function kr(e,t,l){var r="";return l.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var w5=function(t,l,r){var n=t.key+"-"+l.name;(r===!1||Gr===!1)&&t.registered[n]===void 0&&(t.registered[n]=l.styles)},Dr=function(t,l,r){w5(t,l,r);var n=t.key+"-"+l.name;if(t.inserted[l.name]===void 0){var o=l;do t.insert(l===o?"."+n:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function jr(e){for(var t=0,l,r=0,n=e.length;n>=4;++r,n-=4)l=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,t=(l&65535)*1540483477+((l>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Vr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wr=/[A-Z]|^ms/g,Hr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T5=function(t){return t.charCodeAt(1)===45},k8=function(t){return t!=null&&typeof t!="boolean"},S3=Er(function(e){return T5(e)?e:e.replace(Wr,"-$&").toLowerCase()}),D8=function(t,l){switch(t){case"animation":case"animationName":if(typeof l=="string")return l.replace(Hr,function(r,n,o){return r4={name:n,styles:o,next:r4},n})}return Vr[t]!==1&&!T5(t)&&typeof l=="number"&&l!==0?l+"px":l};function l2(e,t,l){if(l==null)return"";var r=l;if(r.__emotion_styles!==void 0)return r;switch(typeof l){case"boolean":return"";case"object":{var n=l;if(n.anim===1)return r4={name:n.name,styles:n.styles,next:r4},n.name;var o=l;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)r4={name:a.name,styles:a.styles,next:r4},a=a.next;var q=o.styles+";";return q}return Xr(e,t,l)}case"function":{if(e!==void 0){var i=r4,s=l(e);return r4=i,l2(e,t,s)}break}}var c=l;return c}function Xr(e,t,l){var r="";if(Array.isArray(l))for(var n=0;n<l.length;n++)r+=l2(e,t,l[n])+";";else for(var o in l){var a=l[o];if(typeof a!="object"){var q=a;k8(q)&&(r+=S3(o)+":"+D8(o,q)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var i=0;i<a.length;i++)k8(a[i])&&(r+=S3(o)+":"+D8(o,a[i])+";");else{var s=l2(e,t,a);switch(o){case"animation":case"animationName":{r+=S3(o)+":"+s+";";break}default:r+=o+"{"+s+"}"}}}return r}var j8=/label:\s*([^\s;{]+)\s*(;|$)/g,r4;function N5(e,t,l){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";r4=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,n+=l2(l,t,o);else{var a=o;n+=a[0]}for(var q=1;q<e.length;q++)if(n+=l2(l,t,e[q]),r){var i=o;n+=i[q]}j8.lastIndex=0;for(var s="",c;(c=j8.exec(n))!==null;)s+="-"+c[1];var u=jr(n)+s;return{name:u,styles:n,next:r4}}var Zr=function(t){return t()},Yr=c1.useInsertionEffect?c1.useInsertionEffect:!1,Jr=Yr||Zr,M5=c1.createContext(typeof HTMLElement<"u"?Nr({key:"css"}):null);M5.Provider;var Ur=function(t){return C.forwardRef(function(l,r){var n=C.useContext(M5);return t(l,n,r)})},$r=c1.createContext({}),z6={}.hasOwnProperty,U3="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qr=function(t,l){var r={};for(var n in l)z6.call(l,n)&&(r[n]=l[n]);return r[U3]=t,r},Kr=function(t){var l=t.cache,r=t.serialized,n=t.isStringTag;return w5(l,r,n),Jr(function(){return Dr(l,r,n)}),null},eo=Ur(function(e,t,l){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[U3],o=[r],a="";typeof e.className=="string"?a=kr(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var q=N5(o,void 0,c1.useContext($r));a+=t.key+"-"+q.name;var i={};for(var s in e)z6.call(e,s)&&s!=="css"&&s!==U3&&(i[s]=e[s]);return i.className=a,l&&(i.ref=l),c1.createElement(c1.Fragment,null,c1.createElement(Kr,{cache:t,serialized:q,isStringTag:typeof n=="string"}),c1.createElement(n,i))}),to=eo,f1=function(t,l){var r=arguments;if(l==null||!z6.call(l,"css"))return c1.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=to,o[1]=Qr(t,l);for(var a=2;a<n;a++)o[a]=r[a];return c1.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(f1||(f1={}));function w6(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];return N5(t)}function lo(){var e=w6.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function no(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const ro=Math.min,oo=Math.max,V2=Math.round,b2=Math.floor,$3=e=>({x:e,y:e});function ao(e){const{x:t,y:l,width:r,height:n}=e;return{width:r,height:n,top:l,left:t,right:t+r,bottom:l+n,x:t,y:l}}function r3(){return typeof window<"u"}function L5(e){return F5(e)?(e.nodeName||"").toLowerCase():"#document"}function O4(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function P5(e){var t;return(t=(F5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function F5(e){return r3()?e instanceof Node||e instanceof O4(e).Node:!1}function io(e){return r3()?e instanceof Element||e instanceof O4(e).Element:!1}function T6(e){return r3()?e instanceof HTMLElement||e instanceof O4(e).HTMLElement:!1}function V8(e){return!r3()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof O4(e).ShadowRoot}function B5(e){const{overflow:t,overflowX:l,overflowY:r,display:n}=G5(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+l)&&n!=="inline"&&n!=="contents"}function qo(e){return/^(html|body|#document)$/.test(L5(e))}function G5(e){return O4(e).getComputedStyle(e)}function so(e){if(L5(e)==="html")return e;const t=e.assignedSlot||e.parentNode||V8(e)&&e.host||P5(e);return V8(t)?t.host:t}function k5(e){const t=so(e);return qo(t)?(e.ownerDocument||e).body:T6(t)&&B5(t)?t:k5(t)}function W2(e,t,l){var r;t===void 0&&(t=[]),l===void 0&&(l=!0);const n=k5(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=O4(n);if(o){const q=co(a);return t.concat(a,a.visualViewport||[],B5(n)?n:[],q&&l?W2(q):[])}else return t.concat(n,W2(n,[],l))}function co(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uo(e){const t=G5(e);let l=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=T6(e),o=n?e.offsetWidth:l,a=n?e.offsetHeight:r,q=V2(l)!==o||V2(r)!==a;return q&&(l=o,r=a),{width:l,height:r,$:q}}function N6(e){return io(e)?e:e.contextElement}function mo(e){const t=N6(e);if(!T6(t))return $3(1);const l=t.getBoundingClientRect(),{width:r,height:n,$:o}=uo(t);let a=(o?V2(l.width):l.width)/r,q=(o?V2(l.height):l.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!q||!Number.isFinite(q))&&(q=1),{x:a,y:q}}function W8(e,t,l,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect();N6(e);let o=$3(1);t&&(o=mo(e));const a=$3(0);let q=(n.left+a.x)/o.x,i=(n.top+a.y)/o.y,s=n.width/o.x,c=n.height/o.y;return ao({width:s,height:c,x:q,y:i})}function D5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fo(e,t,l){let r=null,n;const o=P5(e);function a(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function q(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),a();const _=e.getBoundingClientRect(),{left:A,top:v,width:b,height:h}=_;if(c||t(),!b||!h)return;const d=b2(v),y=b2(o.clientWidth-(A+b)),f=b2(o.clientHeight-(v+h)),m=b2(A),E={rootMargin:-d+"px "+-y+"px "+-f+"px "+-m+"px",threshold:oo(0,ro(1,u))||1};let S=!0;function L(B){const V=B[0].intersectionRatio;if(!D5(_,e.getBoundingClientRect()))return q();if(V!==u){if(!S)return q();V?q(!1,V):n=setTimeout(()=>{q(!1,1e-7)},1e3)}S=!1}try{r=new IntersectionObserver(L,{...E,root:o.ownerDocument})}catch{r=new IntersectionObserver(L,E)}r.observe(e)}const i=O4(e),s=()=>q(l);return i.addEventListener("resize",s),q(!0),()=>{i.removeEventListener("resize",s),a()}}function xo(e,t,l,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:q=typeof IntersectionObserver=="function",animationFrame:i=!1}=r,s=N6(e),c=n||o?[...s?W2(s):[],...t?W2(t):[]]:[];c.forEach(d=>{n&&d.addEventListener("scroll",l),o&&d.addEventListener("resize",l)});const u=s&&q?fo(s,l,o):null;let _=-1,A=null;a&&(A=new ResizeObserver(d=>{let[y]=d;y&&y.target===s&&A&&t&&(A.unobserve(t),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var f;(f=A)==null||f.observe(t)})),l()}),s&&!i&&A.observe(s),t&&A.observe(t));let v,b=i?W8(e):null;i&&h();function h(){const d=W8(e);b&&!D5(b,d)&&l(),b=d,v=requestAnimationFrame(h)}return l(),()=>{var d;c.forEach(y=>{n&&y.removeEventListener("scroll",l),o&&y.removeEventListener("resize",l)}),u==null||u(),(d=A)==null||d.disconnect(),A=null,i&&cancelAnimationFrame(v)}}var Q3=C.useLayoutEffect,ho=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],H2=function(){};function po(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function go(e,t){for(var l=arguments.length,r=new Array(l>2?l-2:0),n=2;n<l;n++)r[n-2]=arguments[n];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(po(e,a)));return o.filter(function(q){return q}).map(function(q){return String(q).trim()}).join(" ")}var H8=function(t){return Ro(t)?t.filter(Boolean):R4(t)==="object"&&t!==null?[t]:[]},j5=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var l=c4(t,ho);return x1({},l)},N1=function(t,l,r){var n=t.cx,o=t.getStyles,a=t.getClassNames,q=t.className;return{css:o(l,t),className:n(r??{},a(l,t),q)}};function o3(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function bo(e){return o3(e)?window.innerHeight:e.clientHeight}function V5(e){return o3(e)?window.pageYOffset:e.scrollTop}function X2(e,t){if(o3(e)){window.scrollTo(0,t);return}e.scrollTop=t}function _o(e){var t=getComputedStyle(e),l=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(l&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function vo(e,t,l,r){return l*((e=e/r-1)*e*e+1)+t}function _2(e,t){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H2,n=V5(e),o=t-n,a=10,q=0;function i(){q+=a;var s=vo(q,n,o,l);X2(e,s),q<l?window.requestAnimationFrame(i):r(e)}i()}function X8(e,t){var l=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>l.bottom?X2(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<l.top&&X2(e,Math.max(t.offsetTop-n,0))}function Co(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Z8(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function yo(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var W5=!1,Io={get passive(){return W5=!0}},v2=typeof window<"u"?window:{};v2.addEventListener&&v2.removeEventListener&&(v2.addEventListener("p",H2,Io),v2.removeEventListener("p",H2,!1));var Eo=W5;function Ao(e){return e!=null}function Ro(e){return Array.isArray(e)}function C2(e,t,l){return e?t:l}var So=function(t){for(var l=arguments.length,r=new Array(l>1?l-1:0),n=1;n<l;n++)r[n-1]=arguments[n];var o=Object.entries(t).filter(function(a){var q=i4(a,1),i=q[0];return!r.includes(i)});return o.reduce(function(a,q){var i=i4(q,2),s=i[0],c=i[1];return a[s]=c,a},{})},Oo=["children","innerProps"],zo=["children","innerProps"];function wo(e){var t=e.maxHeight,l=e.menuEl,r=e.minHeight,n=e.placement,o=e.shouldScroll,a=e.isFixedPosition,q=e.controlHeight,i=_o(l),s={placement:"bottom",maxHeight:t};if(!l||!l.offsetParent)return s;var c=i.getBoundingClientRect(),u=c.height,_=l.getBoundingClientRect(),A=_.bottom,v=_.height,b=_.top,h=l.offsetParent.getBoundingClientRect(),d=h.top,y=a?window.innerHeight:bo(i),f=V5(i),m=parseInt(getComputedStyle(l).marginBottom,10),p=parseInt(getComputedStyle(l).marginTop,10),E=d-p,S=y-b,L=E+f,B=u-f-b,V=A-y+f+m,e1=f+b-p,X=160;switch(n){case"auto":case"bottom":if(S>=v)return{placement:"bottom",maxHeight:t};if(B>=v&&!a)return o&&_2(i,V,X),{placement:"bottom",maxHeight:t};if(!a&&B>=r||a&&S>=r){o&&_2(i,V,X);var r1=a?S-m:B-m;return{placement:"bottom",maxHeight:r1}}if(n==="auto"||a){var K=t,l1=a?E:L;return l1>=r&&(K=Math.min(l1-m-q,t)),{placement:"top",maxHeight:K}}if(n==="bottom")return o&&X2(i,V),{placement:"bottom",maxHeight:t};break;case"top":if(E>=v)return{placement:"top",maxHeight:t};if(L>=v&&!a)return o&&_2(i,e1,X),{placement:"top",maxHeight:t};if(!a&&L>=r||a&&E>=r){var $=t;return(!a&&L>=r||a&&E>=r)&&($=a?E-p:L-p),o&&_2(i,e1,X),{placement:"top",maxHeight:$}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return s}function To(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var H5=function(t){return t==="auto"?"bottom":t},No=function(t,l){var r,n=t.placement,o=t.theme,a=o.borderRadius,q=o.spacing,i=o.colors;return x1((r={label:"menu"},Q4(r,To(n),"100%"),Q4(r,"position","absolute"),Q4(r,"width","100%"),Q4(r,"zIndex",1),r),l?{}:{backgroundColor:i.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:q.menuGutter,marginTop:q.menuGutter})},X5=C.createContext(null),Mo=function(t){var l=t.children,r=t.minMenuHeight,n=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,q=t.menuShouldScrollIntoView,i=t.theme,s=C.useContext(X5)||{},c=s.setPortalPlacement,u=C.useRef(null),_=C.useState(n),A=i4(_,2),v=A[0],b=A[1],h=C.useState(null),d=i4(h,2),y=d[0],f=d[1],m=i.spacing.controlHeight;return Q3(function(){var p=u.current;if(p){var E=a==="fixed",S=q&&!E,L=wo({maxHeight:n,menuEl:p,minHeight:r,placement:o,shouldScroll:S,isFixedPosition:E,controlHeight:m});b(L.maxHeight),f(L.placement),c==null||c(L.placement)}},[n,o,a,q,r,c,m]),l({ref:u,placerProps:x1(x1({},t),{},{placement:y||H5(o),maxHeight:v})})},Lo=function(t){var l=t.children,r=t.innerRef,n=t.innerProps;return f1("div",h1({},N1(t,"menu",{menu:!0}),{ref:r},n),l)},Po=Lo,Fo=function(t,l){var r=t.maxHeight,n=t.theme.spacing.baseUnit;return x1({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},l?{}:{paddingBottom:n,paddingTop:n})},Bo=function(t){var l=t.children,r=t.innerProps,n=t.innerRef,o=t.isMulti;return f1("div",h1({},N1(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:n},r),l)},Z5=function(t,l){var r=t.theme,n=r.spacing.baseUnit,o=r.colors;return x1({textAlign:"center"},l?{}:{color:o.neutral40,padding:"".concat(n*2,"px ").concat(n*3,"px")})},Go=Z5,ko=Z5,Do=function(t){var l=t.children,r=l===void 0?"No options":l,n=t.innerProps,o=c4(t,Oo);return f1("div",h1({},N1(x1(x1({},o),{},{children:r,innerProps:n}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),r)},jo=function(t){var l=t.children,r=l===void 0?"Loading...":l,n=t.innerProps,o=c4(t,zo);return f1("div",h1({},N1(x1(x1({},o),{},{children:r,innerProps:n}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),r)},Vo=function(t){var l=t.rect,r=t.offset,n=t.position;return{left:l.left,position:n,top:r,width:l.width,zIndex:1}},Wo=function(t){var l=t.appendTo,r=t.children,n=t.controlElement,o=t.innerProps,a=t.menuPlacement,q=t.menuPosition,i=C.useRef(null),s=C.useRef(null),c=C.useState(H5(a)),u=i4(c,2),_=u[0],A=u[1],v=C.useMemo(function(){return{setPortalPlacement:A}},[]),b=C.useState(null),h=i4(b,2),d=h[0],y=h[1],f=C.useCallback(function(){if(n){var S=Co(n),L=q==="fixed"?0:window.pageYOffset,B=S[_]+L;(B!==(d==null?void 0:d.offset)||S.left!==(d==null?void 0:d.rect.left)||S.width!==(d==null?void 0:d.rect.width))&&y({offset:B,rect:S})}},[n,q,_,d==null?void 0:d.offset,d==null?void 0:d.rect.left,d==null?void 0:d.rect.width]);Q3(function(){f()},[f]);var m=C.useCallback(function(){typeof s.current=="function"&&(s.current(),s.current=null),n&&i.current&&(s.current=xo(n,i.current,f,{elementResize:"ResizeObserver"in window}))},[n,f]);Q3(function(){m()},[m]);var p=C.useCallback(function(S){i.current=S,m()},[m]);if(!l&&q!=="fixed"||!d)return null;var E=f1("div",h1({ref:p},N1(x1(x1({},t),{},{offset:d.offset,position:q,rect:d.rect}),"menuPortal",{"menu-portal":!0}),o),r);return f1(X5.Provider,{value:v},l?b4.createPortal(E,l):E)},Ho=function(t){var l=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:l?"none":void 0,position:"relative"}},Xo=function(t){var l=t.children,r=t.innerProps,n=t.isDisabled,o=t.isRtl;return f1("div",h1({},N1(t,"container",{"--is-disabled":n,"--is-rtl":o}),r),l)},Zo=function(t,l){var r=t.theme.spacing,n=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return x1({alignItems:"center",display:n&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},l?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Yo=function(t){var l=t.children,r=t.innerProps,n=t.isMulti,o=t.hasValue;return f1("div",h1({},N1(t,"valueContainer",{"value-container":!0,"value-container--is-multi":n,"value-container--has-value":o}),r),l)},Jo=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Uo=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"indicatorsContainer",{indicators:!0}),r),l)},Y8,$o=["size"],Qo=["innerProps","isRtl","size"];function Ko(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var ea=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudH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RpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:Ko},Y5=function(t){var l=t.size,r=c4(t,$o);return f1("svg",h1({height:l,width:l,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ea},r))},M6=function(t){return f1(Y5,h1({size:20},t),f1("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},J5=function(t){return f1(Y5,h1({size:20},t),f1("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},U5=function(t,l){var r=t.isFocused,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return x1({label:"indicatorContainer",display:"flex",transition:"color 150ms"},l?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},ta=U5,la=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),l||f1(J5,null))},na=U5,ra=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),l||f1(M6,null))},oa=function(t,l){var r=t.isDisabled,n=t.theme,o=n.spacing.baseUnit,a=n.colors;return x1({label:"indicatorSeparator",alignSelf:"stretch",width:1},l?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},aa=function(t){var l=t.innerProps;return f1("span",h1({},l,N1(t,"indicatorSeparator",{"indicator-separator":!0})))},ia=lo(Y8||(Y8=no([`
114
114
  0%, 80%, 100% { opacity: 0; }
115
115
  40% { opacity: 1; }
116
- `]))),ia=function(t,l){var r=t.isFocused,n=t.size,o=t.theme,a=o.colors,q=o.spacing.baseUnit;return x1({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},l?{}:{color:r?a.neutral60:a.neutral20,padding:q*2})},O3=function(t){var l=t.delay,r=t.offset;return f1("span",{css:w6({animation:"".concat(aa," 1s ease-in-out ").concat(l,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tIC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WRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},qa=function(t){var l=t.innerProps,r=t.isRtl,n=t.size,o=n===void 0?4:n,a=c4(t,$o);return f1("div",h1({},N1(x1(x1({},a),{},{innerProps:l,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),l),f1(O3,{delay:0,offset:r}),f1(O3,{delay:160,offset:!0}),f1(O3,{delay:320,offset:!r}))},sa=function(t,l){var r=t.isDisabled,n=t.isFocused,o=t.theme,a=o.colors,q=o.borderRadius,i=o.spacing;return x1({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},l?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:n?a.primary:a.neutral20,borderRadius:q,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:n?a.primary:a.neutral30}})},ca=function(t){var l=t.children,r=t.isDisabled,n=t.isFocused,o=t.innerRef,a=t.innerProps,q=t.menuIsOpen;return f1("div",h1({ref:o},N1(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":q}),a,{"aria-disabled":r||void 0}),l)},ua=ca,ma=["data"],da=function(t,l){var r=t.theme.spacing;return l?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},fa=function(t){var l=t.children,r=t.cx,n=t.getStyles,o=t.getClassNames,a=t.Heading,q=t.headingProps,i=t.innerProps,s=t.label,c=t.theme,u=t.selectProps;return f1("div",h1({},N1(t,"group",{group:!0}),i),f1(a,h1({},q,{selectProps:u,theme:c,getStyles:n,getClassNames:o,cx:r}),s),f1("div",null,l))},xa=function(t,l){var r=t.theme,n=r.colors,o=r.spacing;return x1({label:"group",cursor:"default",display:"block"},l?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},ha=function(t){var l=j5(t);l.data;var r=c4(l,ma);return f1("div",h1({},N1(t,"groupHeading",{"group-heading":!0}),r))},pa=fa,ga=["innerRef","isDisabled","isHidden","inputClassName"],ba=function(t,l){var r=t.isDisabled,n=t.value,o=t.theme,a=o.spacing,q=o.colors;return x1(x1({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},_a),l?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:q.neutral80})},$5={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},_a={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":x1({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$5)},va=function(t){return x1({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},$5)},Ca=function(t){var l=t.cx,r=t.value,n=j5(t),o=n.innerRef,a=n.isDisabled,q=n.isHidden,i=n.inputClassName,s=c4(n,ga);return f1("div",h1({},N1(t,"input",{"input-container":!0}),{"data-value":r||""}),f1("input",h1({className:l({input:!0},i),ref:o,style:va(q),disabled:a},s)))},ya=Ca,Ia=function(t,l){var r=t.theme,n=r.spacing,o=r.borderRadius,a=r.colors;return x1({label:"multiValue",display:"flex",minWidth:0},l?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Ea=function(t,l){var r=t.theme,n=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return x1({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},l?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Aa=function(t,l){var r=t.theme,n=r.spacing,o=r.borderRadius,a=r.colors,q=t.isFocused;return x1({alignItems:"center",display:"flex"},l?{}:{borderRadius:o/2,backgroundColor:q?a.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Q5=function(t){var l=t.children,r=t.innerProps;return f1("div",r,l)},Ra=Q5,Sa=Q5;function Oa(e){var t=e.children,l=e.innerProps;return f1("div",h1({role:"button"},l),t||f1(M6,{size:14}))}var za=function(t){var l=t.children,r=t.components,n=t.data,o=t.innerProps,a=t.isDisabled,q=t.removeProps,i=t.selectProps,s=r.Container,c=r.Label,u=r.Remove;return f1(s,{data:n,innerProps:x1(x1({},N1(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:i},f1(c,{data:n,innerProps:x1({},N1(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:i},l),f1(u,{data:n,innerProps:x1(x1({},N1(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(l||"option")},q),selectProps:i}))},wa=za,Ta=function(t,l){var r=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.theme,q=a.spacing,i=a.colors;return x1({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},l?{}:{backgroundColor:o?i.primary:n?i.primary25:"transparent",color:r?i.neutral20:o?i.neutral0:"inherit",padding:"".concat(q.baseUnit*2,"px ").concat(q.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?i.primary:i.primary50}})},Na=function(t){var l=t.children,r=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.innerRef,q=t.innerProps;return f1("div",h1({},N1(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":o}),{ref:a,"aria-disabled":r},q),l)},Ma=Na,La=function(t,l){var r=t.theme,n=r.spacing,o=r.colors;return x1({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},l?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Pa=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"placeholder",{placeholder:!0}),r),l)},Fa=Pa,Ba=function(t,l){var r=t.isDisabled,n=t.theme,o=n.spacing,a=n.colors;return x1({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},Ga=function(t){var l=t.children,r=t.isDisabled,n=t.innerProps;return f1("div",h1({},N1(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),l)},ka=Ga,Da={ClearIndicator:na,Control:ua,DropdownIndicator:ta,DownChevron:J5,CrossIcon:M6,Group:pa,GroupHeading:ha,IndicatorsContainer:Jo,IndicatorSeparator:oa,Input:ya,LoadingIndicator:qa,Menu:Lo,MenuList:Fo,MenuPortal:Vo,LoadingMessage:Do,NoOptionsMessage:ko,MultiValue:wa,MultiValueContainer:Ra,MultiValueLabel:Sa,MultiValueRemove:Oa,Option:Ma,Placeholder:Fa,SelectContainer:Ho,SingleValue:ka,ValueContainer:Zo},ja=function(t){return x1(x1({},Da),t.components)},J8=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Va(e,t){return!!(e===t||J8(e)&&J8(t))}function Wa(e,t){if(e.length!==t.length)return!1;for(var l=0;l<e.length;l++)if(!Va(e[l],t[l]))return!1;return!0}function Ha(e,t){t===void 0&&(t=Wa);var l=null;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(l&&l.lastThis===this&&t(n,l.lastArgs))return l.lastResult;var a=e.apply(this,n);return l={lastResult:a,lastArgs:n,lastThis:this},a}return r.clear=function(){l=null},r}function Xa(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Za=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Xa},Ya=function(t){return f1("span",h1({css:Za},t))},U8=Ya,Ja={guidance:function(t){var l=t.isSearchable,r=t.isMulti,n=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(l?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var l=t.action,r=t.label,n=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(l){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var l=t.context,r=t.focused,n=t.options,o=t.label,a=o===void 0?"":o,q=t.selectValue,i=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,u=function(b,h){return b&&b.length?"".concat(b.indexOf(h)+1," of ").concat(b.length):""};if(l==="value"&&q)return"value ".concat(a," focused, ").concat(u(q,r),".");if(l==="menu"&&c){var _=i?" disabled":"",A="".concat(s?" selected":"").concat(_);return"".concat(a).concat(A,", ").concat(u(n,r),".")}return""},onFilter:function(t){var l=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(l?" for search term "+l:"",".")}},Ua=function(t){var l=t.ariaSelection,r=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,a=t.isFocused,q=t.selectValue,i=t.selectProps,s=t.id,c=t.isAppleDevice,u=i.ariaLiveMessages,_=i.getOptionLabel,A=i.inputValue,v=i.isMulti,b=i.isOptionDisabled,h=i.isSearchable,d=i.menuIsOpen,y=i.options,f=i.screenReaderStatus,m=i.tabSelectsValue,p=i.isLoading,E=i["aria-label"],S=i["aria-live"],L=C.useMemo(function(){return x1(x1({},Ja),u||{})},[u]),B=C.useMemo(function(){var l1="";if(l&&L.onChange){var $=l.option,J=l.options,j=l.removedValue,q1=l.removedValues,G=l.value,P=function(z){return Array.isArray(z)?null:z},W=j||$||P(G),H=W?_(W):"",O=J||q1||void 0,R=O?O.map(_):[],g=x1({isDisabled:W&&b(W,q),label:H,labels:R},l);l1=L.onChange(g)}return l1},[l,L,b,q,_]),V=C.useMemo(function(){var l1="",$=r||n,J=!!(r&&q&&q.includes(r));if($&&L.onFocus){var j={focused:$,label:_($),isDisabled:b($,q),isSelected:J,options:o,context:$===r?"menu":"value",selectValue:q,isAppleDevice:c};l1=L.onFocus(j)}return l1},[r,n,_,b,L,o,q,c]),e1=C.useMemo(function(){var l1="";if(d&&y.length&&!p&&L.onFilter){var $=f({count:o.length});l1=L.onFilter({inputValue:A,resultsMessage:$})}return l1},[o,A,d,L,y,f,p]),X=(l==null?void 0:l.action)==="initial-input-focus",r1=C.useMemo(function(){var l1="";if(L.guidance){var $=n?"value":d?"menu":"input";l1=L.guidance({"aria-label":E,context:$,isDisabled:r&&b(r,q),isMulti:v,isSearchable:h,tabSelectsValue:m,isInitialFocus:X})}return l1},[E,r,n,v,b,h,d,L,q,m,X]),K=f1(C.Fragment,null,f1("span",{id:"aria-selection"},B),f1("span",{id:"aria-focused"},V),f1("span",{id:"aria-results"},e1),f1("span",{id:"aria-guidance"},r1));return f1(C.Fragment,null,f1(U8,{id:s},X&&K),f1(U8,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!X&&K))},$a=Ua,K3=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Qa=new RegExp("["+K3.map(function(e){return e.letters}).join("")+"]","g"),K5={};for(var z3=0;z3<K3.length;z3++)for(var w3=K3[z3],T3=0;T3<w3.letters.length;T3++)K5[w3.letters[T3]]=w3.base;var e7=function(t){return t.replace(Qa,function(l){return K5[l]})},Ka=Ha(e7),$8=function(t){return t.replace(/^\s+|\s+$/g,"")},ei=function(t){return"".concat(t.label," ").concat(t.value)},ti=function(t){return function(l,r){if(l.data.__isNew__)return!0;var n=x1({ignoreCase:!0,ignoreAccents:!0,stringify:ei,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,a=n.ignoreAccents,q=n.stringify,i=n.trim,s=n.matchFrom,c=i?$8(r):r,u=i?$8(q(l)):q(l);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=Ka(c),u=e7(u)),s==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},li=["innerRef"];function ni(e){var t=e.innerRef,l=c4(e,li),r=Ro(l,"onExited","in","enter","exit","appear");return f1("input",h1({ref:t},r,{css:w6({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVk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iAgKTtcbn1cbiJdfQ== */")}))}var ri=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function oi(e){var t=e.isEnabled,l=e.onBottomArrive,r=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,a=C.useRef(!1),q=C.useRef(!1),i=C.useRef(0),s=C.useRef(null),c=C.useCallback(function(h,d){if(s.current!==null){var y=s.current,f=y.scrollTop,m=y.scrollHeight,p=y.clientHeight,E=s.current,S=d>0,L=m-p-f,B=!1;L>d&&a.current&&(r&&r(h),a.current=!1),S&&q.current&&(o&&o(h),q.current=!1),S&&d>L?(l&&!a.current&&l(h),E.scrollTop=m,B=!0,a.current=!0):!S&&-d>f&&(n&&!q.current&&n(h),E.scrollTop=0,B=!0,q.current=!0),B&&ri(h)}},[l,r,n,o]),u=C.useCallback(function(h){c(h,h.deltaY)},[c]),_=C.useCallback(function(h){i.current=h.changedTouches[0].clientY},[]),A=C.useCallback(function(h){var d=i.current-h.changedTouches[0].clientY;c(h,d)},[c]),v=C.useCallback(function(h){if(h){var d=Io?{passive:!1}:!1;h.addEventListener("wheel",u,d),h.addEventListener("touchstart",_,d),h.addEventListener("touchmove",A,d)}},[A,_,u]),b=C.useCallback(function(h){h&&(h.removeEventListener("wheel",u,!1),h.removeEventListener("touchstart",_,!1),h.removeEventListener("touchmove",A,!1))},[A,_,u]);return C.useEffect(function(){if(t){var h=s.current;return v(h),function(){b(h)}}},[t,v,b]),function(h){s.current=h}}var Q8=["boxSizing","height","overflow","paddingRight","position"],K8={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function e9(e){e.cancelable&&e.preventDefault()}function t9(e){e.stopPropagation()}function l9(){var e=this.scrollTop,t=this.scrollHeight,l=e+this.offsetHeight;e===0?this.scrollTop=1:l===t&&(this.scrollTop=e-1)}function n9(){return"ontouchstart"in window||navigator.maxTouchPoints}var r9=!!(typeof window<"u"&&window.document&&window.document.createElement),U4=0,B4={capture:!1,passive:!1};function ai(e){var t=e.isEnabled,l=e.accountForScrollbars,r=l===void 0?!0:l,n=C.useRef({}),o=C.useRef(null),a=C.useCallback(function(i){if(r9){var s=document.body,c=s&&s.style;if(r&&Q8.forEach(function(v){var b=c&&c[v];n.current[v]=b}),r&&U4<1){var u=parseInt(n.current.paddingRight,10)||0,_=document.body?document.body.clientWidth:0,A=window.innerWidth-_+u||0;Object.keys(K8).forEach(function(v){var b=K8[v];c&&(c[v]=b)}),c&&(c.paddingRight="".concat(A,"px"))}s&&n9()&&(s.addEventListener("touchmove",e9,B4),i&&(i.addEventListener("touchstart",l9,B4),i.addEventListener("touchmove",t9,B4))),U4+=1}},[r]),q=C.useCallback(function(i){if(r9){var s=document.body,c=s&&s.style;U4=Math.max(U4-1,0),r&&U4<1&&Q8.forEach(function(u){var _=n.current[u];c&&(c[u]=_)}),s&&n9()&&(s.removeEventListener("touchmove",e9,B4),i&&(i.removeEventListener("touchstart",l9,B4),i.removeEventListener("touchmove",t9,B4)))}},[r]);return C.useEffect(function(){if(t){var i=o.current;return a(i),function(){q(i)}}},[t,a,q]),function(i){o.current=i}}function ii(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var qi=function(t){var l=t.target;return l.ownerDocument.activeElement&&l.ownerDocument.activeElement.blur()},si=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0g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mlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:ii};function ci(e){var t=e.children,l=e.lockEnabled,r=e.captureEnabled,n=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,q=e.onTopArrive,i=e.onTopLeave,s=oi({isEnabled:n,onBottomArrive:o,onBottomLeave:a,onTopArrive:q,onTopLeave:i}),c=ai({isEnabled:l}),u=function(A){s(A),c(A)};return f1(C.Fragment,null,l&&f1("div",{onClick:qi,css:si}),t(u))}function ui(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var mi=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:ui},di=function(t){var l=t.name,r=t.onFocus;return f1("input",{required:!0,name:l,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:mi,value:"",onChange:function(){}})},fi=di;function L6(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xi(){return L6(/^iPhone/i)}function t7(){return L6(/^Mac/i)}function hi(){return L6(/^iPad/i)||t7()&&navigator.maxTouchPoints>1}function pi(){return xi()||hi()}function gi(){return t7()||pi()}var bi=function(t){return t.label},_i=function(t){return t.label},vi=function(t){return t.value},Ci=function(t){return!!t.isDisabled},yi={clearIndicator:la,container:Wo,control:sa,dropdownIndicator:ea,group:da,groupHeading:xa,indicatorsContainer:Yo,indicatorSeparator:ra,input:ba,loadingIndicator:ia,loadingMessage:Go,menu:To,menuList:Po,menuPortal:jo,multiValue:Ia,multiValueLabel:Ea,multiValueRemove:Aa,noOptionsMessage:Bo,option:Ta,placeholder:La,singleValue:Ba,valueContainer:Xo},Ii={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ei=4,l7=4,Ai=38,Ri=l7*2,Si={baseUnit:l7,controlHeight:Ai,menuGutter:Ri},N3={borderRadius:Ei,colors:Ii,spacing:Si},Oi={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Z8(),captureMenuScroll:!Z8(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:ti(),formatGroupLabel:bi,getOptionLabel:_i,getOptionValue:vi,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Ci,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Co(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var l=t.count;return"".concat(l," result").concat(l!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function o9(e,t,l,r){var n=o7(e,t,l),o=a7(e,t,l),a=r7(e,t),q=Z2(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:a,value:q,index:r}}function z2(e,t){return e.options.map(function(l,r){if("options"in l){var n=l.options.map(function(a,q){return o9(e,a,t,q)}).filter(function(a){return i9(e,a)});return n.length>0?{type:"group",data:l,options:n,index:r}:void 0}var o=o9(e,l,t,r);return i9(e,o)?o:void 0}).filter(Eo)}function n7(e){return e.reduce(function(t,l){return l.type==="group"?t.push.apply(t,A6(l.options.map(function(r){return r.data}))):t.push(l.data),t},[])}function a9(e,t){return e.reduce(function(l,r){return r.type==="group"?l.push.apply(l,A6(r.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(r.index,"-").concat(n.index)}}))):l.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),l},[])}function zi(e,t){return n7(z2(e,t))}function i9(e,t){var l=e.inputValue,r=l===void 0?"":l,n=t.data,o=t.isSelected,a=t.label,q=t.value;return(!q7(e)||!o)&&i7(e,{label:a,value:q,data:n},r)}function wi(e,t){var l=e.focusedValue,r=e.selectValue,n=r.indexOf(l);if(n>-1){var o=t.indexOf(l);if(o>-1)return l;if(n<t.length)return t[n]}return null}function Ti(e,t){var l=e.focusedOption;return l&&t.indexOf(l)>-1?l:t[0]}var M3=function(t,l){var r,n=(r=t.find(function(o){return o.data===l}))===null||r===void 0?void 0:r.id;return n||null},r7=function(t,l){return t.getOptionLabel(l)},Z2=function(t,l){return t.getOptionValue(l)};function o7(e,t,l){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,l):!1}function a7(e,t,l){if(l.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,l);var r=Z2(e,t);return l.some(function(n){return Z2(e,n)===r})}function i7(e,t,l){return e.filterOption?e.filterOption(t,l):!0}var q7=function(t){var l=t.hideSelectedOptions,r=t.isMulti;return l===void 0?r:l},Ni=1,s7=function(e){Un(l,e);var t=Kn(l);function l(r){var n;if(Yn(this,l),n=t.call(this,r),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(i){n.controlRef=i},n.focusedOptionRef=null,n.getFocusedOptionRef=function(i){n.focusedOptionRef=i},n.menuListRef=null,n.getMenuListRef=function(i){n.menuListRef=i},n.inputRef=null,n.getInputRef=function(i){n.inputRef=i},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(i,s){var c=n.props,u=c.onChange,_=c.name;s.name=_,n.ariaOnChange(i,s),u(i,s)},n.setValue=function(i,s,c){var u=n.props,_=u.closeMenuOnSelect,A=u.isMulti,v=u.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:v}),_&&(n.setState({inputIsHiddenAfterUpdate:!A}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(i,{action:s,option:c})},n.selectOption=function(i){var s=n.props,c=s.blurInputOnSelect,u=s.isMulti,_=s.name,A=n.state.selectValue,v=u&&n.isOptionSelected(i,A),b=n.isOptionDisabled(i,A);if(v){var h=n.getOptionValue(i);n.setValue(A.filter(function(d){return n.getOptionValue(d)!==h}),"deselect-option",i)}else if(!b)u?n.setValue([].concat(A6(A),[i]),"select-option",i):n.setValue(i,"select-option");else{n.ariaOnChange(i,{action:"select-option",option:i,name:_});return}c&&n.blurInput()},n.removeValue=function(i){var s=n.props.isMulti,c=n.state.selectValue,u=n.getOptionValue(i),_=c.filter(function(v){return n.getOptionValue(v)!==u}),A=C2(s,_,_[0]||null);n.onChange(A,{action:"remove-value",removedValue:i}),n.focusInput()},n.clearValue=function(){var i=n.state.selectValue;n.onChange(C2(n.props.isMulti,[],null),{action:"clear",removedValues:i})},n.popValue=function(){var i=n.props.isMulti,s=n.state.selectValue,c=s[s.length-1],u=s.slice(0,s.length-1),_=C2(i,u,u[0]||null);c&&n.onChange(_,{action:"pop-value",removedValue:c})},n.getFocusedOptionId=function(i){return M3(n.state.focusableOptionsWithIds,i)},n.getFocusableOptionsWithIds=function(){return a9(z2(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return po.apply(void 0,[n.props.classNamePrefix].concat(s))},n.getOptionLabel=function(i){return r7(n.props,i)},n.getOptionValue=function(i){return Z2(n.props,i)},n.getStyles=function(i,s){var c=n.props.unstyled,u=yi[i](s,c);u.boxSizing="border-box";var _=n.props.styles[i];return _?_(u,s):u},n.getClassNames=function(i,s){var c,u;return(c=(u=n.props.classNames)[i])===null||c===void 0?void 0:c.call(u,s)},n.getElementId=function(i){return"".concat(n.state.instancePrefix,"-").concat(i)},n.getComponents=function(){return ja(n.props)},n.buildCategorizedOptions=function(){return z2(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return n7(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(i,s){n.setState({ariaSelection:x1({value:i},s)})},n.onMenuMouseDown=function(i){i.button===0&&(i.stopPropagation(),i.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(i){n.blockOptionHover=!1},n.onControlMouseDown=function(i){if(!i.defaultPrevented){var s=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&n.onMenuClose():s&&n.openMenu("first"):(s&&(n.openAfterFocus=!0),n.focusInput()),i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&i.preventDefault()}},n.onDropdownIndicatorMouseDown=function(i){if(!(i&&i.type==="mousedown"&&i.button!==0)&&!n.props.isDisabled){var s=n.props,c=s.isMulti,u=s.menuIsOpen;n.focusInput(),u?(n.setState({inputIsHiddenAfterUpdate:!c}),n.onMenuClose()):n.openMenu("first"),i.preventDefault()}},n.onClearIndicatorMouseDown=function(i){i&&i.type==="mousedown"&&i.button!==0||(n.clearValue(),i.preventDefault(),n.openAfterFocus=!1,i.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(i){typeof n.props.closeMenuOnScroll=="boolean"?i.target instanceof HTMLElement&&o3(i.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(i)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(i){var s=i.touches,c=s&&s.item(0);c&&(n.initialTouchX=c.clientX,n.initialTouchY=c.clientY,n.userIsDragging=!1)},n.onTouchMove=function(i){var s=i.touches,c=s&&s.item(0);if(c){var u=Math.abs(c.clientX-n.initialTouchX),_=Math.abs(c.clientY-n.initialTouchY),A=5;n.userIsDragging=u>A||_>A}},n.onTouchEnd=function(i){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(i.target)&&n.menuListRef&&!n.menuListRef.contains(i.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(i){n.userIsDragging||n.onControlMouseDown(i)},n.onClearIndicatorTouchEnd=function(i){n.userIsDragging||n.onClearIndicatorMouseDown(i)},n.onDropdownIndicatorTouchEnd=function(i){n.userIsDragging||n.onDropdownIndicatorMouseDown(i)},n.handleInputChange=function(i){var s=n.props.inputValue,c=i.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(c,{action:"input-change",prevInputValue:s}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(i){n.props.onFocus&&n.props.onFocus(i),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(i){var s=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(i),n.onInputChange("",{action:"input-blur",prevInputValue:s}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(i){if(!(n.blockOptionHover||n.state.focusedOption===i)){var s=n.getFocusableOptions(),c=s.indexOf(i);n.setState({focusedOption:i,focusedOptionId:c>-1?n.getFocusedOptionId(i):null})}},n.shouldHideSelectedOptions=function(){return q7(n.props)},n.onValueInputFocus=function(i){i.preventDefault(),i.stopPropagation(),n.focus()},n.onKeyDown=function(i){var s=n.props,c=s.isMulti,u=s.backspaceRemovesValue,_=s.escapeClearsValue,A=s.inputValue,v=s.isClearable,b=s.isDisabled,h=s.menuIsOpen,d=s.onKeyDown,y=s.tabSelectsValue,f=s.openMenuOnFocus,m=n.state,p=m.focusedOption,E=m.focusedValue,S=m.selectValue;if(!b&&!(typeof d=="function"&&(d(i),i.defaultPrevented))){switch(n.blockOptionHover=!0,i.key){case"ArrowLeft":if(!c||A)return;n.focusValue("previous");break;case"ArrowRight":if(!c||A)return;n.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(E)n.removeValue(E);else{if(!u)return;c?n.popValue():v&&n.clearValue()}break;case"Tab":if(n.isComposing||i.shiftKey||!h||!y||!p||f&&n.isOptionSelected(p,S))return;n.selectOption(p);break;case"Enter":if(i.keyCode===229)break;if(h){if(!p||n.isComposing)return;n.selectOption(p);break}return;case"Escape":h?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:A}),n.onMenuClose()):v&&_&&n.clearValue();break;case" ":if(A)return;if(!h){n.openMenu("first");break}if(!p)return;n.selectOption(p);break;case"ArrowUp":h?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":h?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!h)return;n.focusOption("pageup");break;case"PageDown":if(!h)return;n.focusOption("pagedown");break;case"Home":if(!h)return;n.focusOption("first");break;case"End":if(!h)return;n.focusOption("last");break;default:return}i.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Ni),n.state.selectValue=H8(r.value),r.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),a=n.buildFocusableOptions(),q=a.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=a[q],n.state.focusedOptionId=M3(o,a[q])}return n}return Jn(l,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&X8(this.menuListRef,this.focusedOptionRef),gi()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var o=this.props,a=o.isDisabled,q=o.menuIsOpen,i=this.state.isFocused;(i&&!a&&n.isDisabled||i&&q&&!n.menuIsOpen)&&this.focusInput(),i&&a&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!a&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(X8(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,a=this.state,q=a.selectValue,i=a.isFocused,s=this.buildFocusableOptions(),c=n==="first"?0:s.length-1;if(!this.props.isMulti){var u=s.indexOf(q[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,a=o.selectValue,q=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=a.indexOf(q);q||(i=-1);var s=a.length-1,c=-1;if(a.length){switch(n){case"previous":i===0?c=0:i===-1?c=s:c=i-1;break;case"next":i>-1&&i<s&&(c=i+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,q=this.getFocusableOptions();if(q.length){var i=0,s=q.indexOf(a);a||(s=-1),n==="up"?i=s>0?s-1:q.length-1:n==="down"?i=(s+1)%q.length:n==="pageup"?(i=s-o,i<0&&(i=0)):n==="pagedown"?(i=s+o,i>q.length-1&&(i=q.length-1)):n==="last"&&(i=q.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:q[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(q[i])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(N3):x1(x1({},N3),this.props.theme):N3}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,a=this.getStyles,q=this.getClassNames,i=this.getValue,s=this.selectOption,c=this.setValue,u=this.props,_=u.isMulti,A=u.isRtl,v=u.options,b=this.hasValue();return{clearValue:n,cx:o,getStyles:a,getClassNames:q,getValue:i,hasValue:b,isMulti:_,isRtl:A,options:v,selectOption:s,selectProps:u,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,a=n.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(n,o){return o7(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return a7(this.props,n,o)}},{key:"filterOption",value:function(n,o){return i7(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,q=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:a,selectValue:q})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,a=n.isSearchable,q=n.inputId,i=n.inputValue,s=n.tabIndex,c=n.form,u=n.menuIsOpen,_=n.required,A=this.getComponents(),v=A.Input,b=this.state,h=b.inputIsHidden,d=b.ariaSelection,y=this.commonProps,f=q||this.getElementId("input"),m=x1(x1(x1({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":_,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(d==null?void 0:d.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?c1.createElement(v,h1({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:o,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:i},m)):c1.createElement(ni,h1({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:H2,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),a=o.MultiValue,q=o.MultiValueContainer,i=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,u=o.Placeholder,_=this.commonProps,A=this.props,v=A.controlShouldRenderValue,b=A.isDisabled,h=A.isMulti,d=A.inputValue,y=A.placeholder,f=this.state,m=f.selectValue,p=f.focusedValue,E=f.isFocused;if(!this.hasValue()||!v)return d?null:c1.createElement(u,h1({},_,{key:"placeholder",isDisabled:b,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),y);if(h)return m.map(function(L,B){var V=L===p,e1="".concat(n.getOptionLabel(L),"-").concat(n.getOptionValue(L));return c1.createElement(a,h1({},_,{components:{Container:q,Label:i,Remove:s},isFocused:V,isDisabled:b,key:e1,index:B,removeProps:{onClick:function(){return n.removeValue(L)},onTouchEnd:function(){return n.removeValue(L)},onMouseDown:function(r1){r1.preventDefault()}},data:L}),n.formatOptionLabel(L,"value"))});if(d)return null;var S=m[0];return c1.createElement(c,h1({},_,{data:S,isDisabled:b}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,a=this.commonProps,q=this.props,i=q.isDisabled,s=q.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||i||!this.hasValue()||s)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c1.createElement(o,h1({},a,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,a=this.commonProps,q=this.props,i=q.isDisabled,s=q.isLoading,c=this.state.isFocused;if(!o||!s)return null;var u={"aria-hidden":"true"};return c1.createElement(o,h1({},a,{innerProps:u,isDisabled:i,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,a=n.IndicatorSeparator;if(!o||!a)return null;var q=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return c1.createElement(a,h1({},q,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var a=this.commonProps,q=this.props.isDisabled,i=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c1.createElement(o,h1({},a,{innerProps:s,isDisabled:q,isFocused:i}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),a=o.Group,q=o.GroupHeading,i=o.Menu,s=o.MenuList,c=o.MenuPortal,u=o.LoadingMessage,_=o.NoOptionsMessage,A=o.Option,v=this.commonProps,b=this.state.focusedOption,h=this.props,d=h.captureMenuScroll,y=h.inputValue,f=h.isLoading,m=h.loadingMessage,p=h.minMenuHeight,E=h.maxMenuHeight,S=h.menuIsOpen,L=h.menuPlacement,B=h.menuPosition,V=h.menuPortalTarget,e1=h.menuShouldBlockScroll,X=h.menuShouldScrollIntoView,r1=h.noOptionsMessage,K=h.onMenuScrollToTop,l1=h.onMenuScrollToBottom;if(!S)return null;var $=function(H,O){var R=H.type,g=H.data,x=H.isDisabled,z=H.isSelected,Z=H.label,k=H.value,t1=b===g,T=x?void 0:function(){return n.onOptionHover(g)},n1=x?void 0:function(){return n.selectOption(g)},U="".concat(n.getElementId("option"),"-").concat(O),Y={id:U,onClick:n1,onMouseMove:T,onMouseOver:T,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:z};return c1.createElement(A,h1({},v,{innerProps:Y,data:g,isDisabled:x,isSelected:z,key:U,label:Z,type:R,value:k,isFocused:t1,innerRef:t1?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(H.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(W){if(W.type==="group"){var H=W.data,O=W.options,R=W.index,g="".concat(n.getElementId("group"),"-").concat(R),x="".concat(g,"-heading");return c1.createElement(a,h1({},v,{key:g,data:H,options:O,Heading:q,headingProps:{id:x,data:W.data},label:n.formatGroupLabel(W.data)}),W.options.map(function(z){return $(z,"".concat(R,"-").concat(z.index))}))}else if(W.type==="option")return $(W,"".concat(W.index))});else if(f){var j=m({inputValue:y});if(j===null)return null;J=c1.createElement(u,v,j)}else{var q1=r1({inputValue:y});if(q1===null)return null;J=c1.createElement(_,v,q1)}var G={minMenuHeight:p,maxMenuHeight:E,menuPlacement:L,menuPosition:B,menuShouldScrollIntoView:X},P=c1.createElement(No,h1({},v,G),function(W){var H=W.ref,O=W.placerProps,R=O.placement,g=O.maxHeight;return c1.createElement(i,h1({},v,G,{innerRef:H,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:f,placement:R}),c1.createElement(ci,{captureEnabled:d,onTopArrive:K,onBottomArrive:l1,lockEnabled:e1},function(x){return c1.createElement(s,h1({},v,{innerRef:function(Z){n.getMenuListRef(Z),x(Z)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:n.getElementId("listbox")},isLoading:f,maxHeight:g,focusedOption:b}),J)}))});return V||B==="fixed"?c1.createElement(c,h1({},v,{appendTo:V,controlElement:this.controlRef,menuPlacement:L,menuPosition:B}),P):P}},{key:"renderFormField",value:function(){var n=this,o=this.props,a=o.delimiter,q=o.isDisabled,i=o.isMulti,s=o.name,c=o.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!q)return c1.createElement(fi,{name:s,onFocus:this.onValueInputFocus});if(!(!s||q))if(i)if(a){var _=u.map(function(b){return n.getOptionValue(b)}).join(a);return c1.createElement("input",{name:s,type:"hidden",value:_})}else{var A=u.length>0?u.map(function(b,h){return c1.createElement("input",{key:"i-".concat(h),name:s,type:"hidden",value:n.getOptionValue(b)})}):c1.createElement("input",{name:s,type:"hidden",value:""});return c1.createElement("div",null,A)}else{var v=u[0]?this.getOptionValue(u[0]):"";return c1.createElement("input",{name:s,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,a=o.ariaSelection,q=o.focusedOption,i=o.focusedValue,s=o.isFocused,c=o.selectValue,u=this.getFocusableOptions();return c1.createElement($a,h1({},n,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:q,focusedValue:i,isFocused:s,selectValue:c,focusableOptions:u,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,a=n.IndicatorsContainer,q=n.SelectContainer,i=n.ValueContainer,s=this.props,c=s.className,u=s.id,_=s.isDisabled,A=s.menuIsOpen,v=this.state.isFocused,b=this.commonProps=this.getCommonProps();return c1.createElement(q,h1({},b,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:_,isFocused:v}),this.renderLiveRegion(),c1.createElement(o,h1({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:_,isFocused:v,menuIsOpen:A}),c1.createElement(i,h1({},b,{isDisabled:_}),this.renderPlaceholderOrValue(),this.renderInput()),c1.createElement(a,h1({},b,{isDisabled:_}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var a=o.prevProps,q=o.clearFocusValueOnUpdate,i=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,u=o.prevWasFocused,_=o.instancePrefix,A=n.options,v=n.value,b=n.menuIsOpen,h=n.inputValue,d=n.isMulti,y=H8(v),f={};if(a&&(v!==a.value||A!==a.options||b!==a.menuIsOpen||h!==a.inputValue)){var m=b?zi(n,y):[],p=b?a9(z2(n,y),"".concat(_,"-option")):[],E=q?wi(o,y):null,S=Ti(o,m),L=M3(p,S);f={selectValue:y,focusedOption:S,focusedOptionId:L,focusableOptionsWithIds:p,focusedValue:E,clearFocusValueOnUpdate:!1}}var B=i!=null&&n!==a?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},V=s,e1=c&&u;return c&&!e1&&(V={value:C2(d,y,y[0]||null),options:y,action:"initial-input-focus"},e1=!u),(s==null?void 0:s.action)==="initial-input-focus"&&(V=null),x1(x1(x1({},f),B),{},{prevProps:n,ariaSelection:V,prevWasFocused:e1})}}]),l}(C.Component);s7.defaultProps=Oi;var Mi=C.forwardRef(function(e,t){var l=Zn(e);return c1.createElement(s7,h1({ref:t},l))}),w2=Mi;const Li=({show:e,onHide:t,amenity:l,selectedAmenityMapObjName:r,mapObjectName:n,onClickMapObj:o,allSvgObjectIds:a})=>{const{mapConfig:q,allIndexedMapObjects:i,allIndexedRetailers:s}=Q1(),[c,u]=C.useState(),[_,A]=C.useState([]),[v,b]=C.useState([]),[h,d]=C.useState(-1);C.useEffect(()=>{if(n){const E=i[n];if(E&&E.retailer_id){const S=s[E.retailer_id];S&&u(S)}}else u(void 0)},[i,s,n]);const y=E=>{E.preventDefault(),E.stopPropagation();let S;if(q.KIOSK_ID?S=Object.values(i).filter(B=>B.kiosk_id===q.KIOSK_ID&&a.has(B.map_obj_name))[0]:S=Object.values(i).filter(B=>B.retailer_id===h&&a.has(B.map_obj_name))[0],!S){console.error("Map object not found");return}l?o(S.map_obj_name,r):o(S.map_obj_name)};C.useEffect(()=>{const E=new Set(Object.values(i).filter(L=>L.retailer_id!==null).filter(L=>a.has(L.map_obj_name)).map(L=>L.retailer_id)),S=Array.from(E).map(L=>s[L]).filter(Boolean).sort((L,B)=>L.retail_name.localeCompare(B.retail_name));b(S.map(L=>L.global_retailer_id)),A(S)},[i,s,a]);const f=C.useMemo(()=>_.filter(S=>!(c&&S.id===c.id)).map(S=>{const B=v.filter(V=>V===S.global_retailer_id).length>1&&S.location?`${S.retail_name} (${S.location})`:S.retail_name;return{value:S.id,label:B}}),[_,v,c]),m=C.useMemo(()=>f.find(E=>E.value===h)||null,[f,h]),p=E=>{d((E==null?void 0:E.value)??-1)};return e?M.jsxs(T8,{show:e,dialogClassName:t4.retailerInfoModal,className:"px-2",onHide:t,centered:!0,scrollable:!0,unmountOnClose:!0,onExited:()=>d(-1),children:[M.jsx("div",{className:t4.retailerInfoCloseBtn,children:M.jsx(E6,{onClick:t,size:24,color:"white",className:t4.closeBtn})}),M.jsxs(T8.Body,{className:t4.modalBody,children:[M.jsx("div",{className:t4.contentWrapper,children:c?M.jsxs("div",{className:t4.content,children:[M.jsx("div",{className:t4.retailerLogo,children:M.jsx("img",{className:t4.img,src:c.logo,alt:c.retail_name})}),M.jsxs("div",{className:t4.retailerInfoContent,children:[M.jsxs("div",{children:[M.jsx("b",{children:"Retailer:"})," ",c.retail_name]}),c.location&&M.jsxs("div",{children:[M.jsx("b",{children:"Location:"})," ",c.location]}),c.retailer_phone&&M.jsxs("div",{children:[M.jsx("b",{children:"Phone:"})," ",M.jsx("a",{href:`tel:${c.retailer_phone}`,children:B7(c.retailer_phone)})]}),c.retailer_description&&M.jsx("div",{dangerouslySetInnerHTML:{__html:c.retailer_description}})]})]}):null}),M.jsxs(Ql,{className:t4.getDirectionsFrom,children:[M.jsx(w2,{name:"retailer",className:t4.retailerDropdown,classNamePrefix:"react-select",menuPortalTarget:typeof document<"u"?document.body:void 0,"aria-label":"Choose a Retailer",options:f,isLoading:!1,noOptionsMessage:()=>"Retailer not found",placeholder:"Get direction from ...",value:m,onChange:p,styles:{menuPortal:E=>({...E,zIndex:2e3}),menu:E=>({...E,zIndex:2e3})},isClearable:!0}),M.jsx("button",{type:"button",disabled:h===-1,onClick:y,className:t4.btn,children:"Map IT"})]})]})]}):null};var Pi=["color","size","title","className"];function e6(){return e6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},e6.apply(null,arguments)}function Fi(e,t){if(e==null)return{};var l,r,n=Bi(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)l=o[r],t.indexOf(l)===-1&&{}.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}function Bi(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;l[r]=e[r]}return l}var c7=C.forwardRef(function(e,t){var l=e.color,r=l===void 0?"currentColor":l,n=e.size,o=n===void 0?"1em":n,a=e.title,q=a===void 0?null:a,i=e.className,s=i===void 0?"":i,c=Fi(e,Pi);return C.createElement("svg",e6({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:r,className:["bi","bi-arrow-clockwise",s].filter(Boolean).join(" ")},c),q?C.createElement("title",null,q):null,C.createElement("path",{fillRule:"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"}),C.createElement("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"}))});c7.propTypes={color:d1.string,size:d1.oneOfType([d1.string,d1.number]),title:d1.string,className:d1.string};const Gi="_sidebarComp_1b6ud_1",ki="_sidebarFields_1b6ud_2",Di="_tabOptions_1b6ud_7",ji="_mainBtnsGroup_1b6ud_12",Vi="_deleteBtn_1b6ud_17",Wi="_btnsGroup_1b6ud_27",Hi="_active_1b6ud_38",Xi="_sidebarField_1b6ud_2",Zi="_label_1b6ud_50",Yi="_fieldWrapper_1b6ud_56",Ji="_numberFieldGroup_1b6ud_62",Ui="_button_1b6ud_68",$i="_decrement_1b6ud_78",Qi="_increment_1b6ud_84",Ki="_input_1b6ud_95",eq="_colorFieldGroup_1b6ud_104",tq="_colorField_1b6ud_104",lq="_inputField_1b6ud_118",nq="_rotateButton_1b6ud_130",rq="_selectField_1b6ud_148",oq="_textareaField_1b6ud_179",aq="_textField_1b6ud_187",i1={sidebarComp:Gi,sidebarFields:ki,tabOptions:Di,mainBtnsGroup:ji,deleteBtn:Vi,btnsGroup:Wi,active:Hi,sidebarField:Xi,label:Zi,fieldWrapper:Yi,numberFieldGroup:Ji,button:Ui,decrement:$i,increment:Qi,input:Ki,colorFieldGroup:eq,colorField:tq,inputField:lq,rotateButton:nq,selectField:rq,textareaField:oq,textField:aq},iq=e=>{const{setData:t,selectedId:l,floorIndex:r,onObjectResetData:n,onObjectChangeData:o,onObjectNewData:a,triggerSceneUpdate:q}=e,{mapApiResponse:i,meshObject:s,allIndexedRetailers:c}=Q1(),{getImage:u,processImage:_,layer_text_logo_position_by_id:A}=j9(),{getMaterial:v}=$2(),b=S4.useFont(s9),[h,d]=C.useState("retailer"),[y,f]=C.useState("retail_name"),[m,p]=C.useState(y2),[E,S]=C.useState(null),[,L]=C.useTransition(),B=C.useRef({}),[V,e1]=C.useState([]),X=C.useCallback(N=>{if(N){const D=N.reduce((w,I)=>I.kiosk_id!==null?[...w,I.kiosk_id]:w,[]);e1([...D])}},[]);C.useEffect(()=>{X(i.map_objs)},[i,X]);const r1=(N,D,w)=>{const I=N.userData.kioskConfig;I?(N.userData.distanceFactor=D!=null&&D.lock_size?1500:void 0,N.userData.kioskConfig={...I,lockSize:D.lock_size,blink:I.blink,size:Number(D.size),floorIndex:w,text_color:D.text_color}):N.userData.kioskConfig={lockSize:D.lock_size,blink:!1,size:Number(D.size),floorIndex:w,text_color:D.text_color}},K=C.useCallback(async(N,D)=>{if(E!==(N==null?void 0:N.map_obj_name))return;let w="";N.layer_type==="retail_logo"?w=await u(N,c[N.retailer_id||0]):w=await u(N),w&&_(w,N,(I,o1)=>{D.geometry=I,D.material=o1;const s1=I.boundingBox,b1=new Q.Vector3;if(s1){s1.getCenter(b1);const _1=new Q.Vector3;s1.getSize(_1),D.object_id&&A(D.object_id,b1,_1,D,{[D.object_id]:{...N}})}})},[u,A,E,_,c]),l1=C.useCallback((N,D)=>{e.meshFloors.meshParams.flat().filter(w=>w!==void 0).forEach(w=>{w.mesh.object_id===D&&(w.mesh.userData.storeName=N)})},[e.meshFloors.meshParams]),$=C.useCallback((N,D,w)=>{if(!N||E!==(m==null?void 0:m.map_obj_name))return;let I=new k9(D,{font:N.userData&&N.userData.font?N.userData.font:b,size:w,height:.01,curveSegments:4});I.center(),N.geometry&&N.geometry.dispose(),N.geometry=I,l1(D,m.map_obj_name)},[m==null?void 0:m.map_obj_name,b,E,l1]),J=C.useCallback((N,D=!1)=>{const w=i.map_objs.findIndex(I=>I.map_obj_name===N.map_obj_name);w!==-1?(N.id=i.map_objs[w].id,i.map_objs[w]={...N},t(w,{...N}),X(i.map_objs),D&&(o==null||o(N))):D&&(a==null||a(N))},[i,t,X,a,o]),j=()=>{if(s){const N=s.textImageMeshObject;N&&N.userData&&N.userData.kioskConfig&&(N.userData.kioskConfig=null,e.meshFloors.storeLogos.flat().filter(D=>D!==void 0).forEach(D=>{D.storeLogo.object_id===N.object_id&&D.storeLogo.userData.kioskConfig!==void 0&&(D.storeLogo.userData.kioskConfig=null)}))}},q1=N=>{if(d(N),m.obj_type=N,j(),N==="retailer"&&(["retail_name","retail_logo","retail_text"].includes(y)||G("retail_name"),m.kiosk_id=null),N==="special"&&(["kiosk","amenity"].includes(y)||G("kiosk"),m.retailer_id=null,s)){const D=s.textImageMeshObject;$(D,"",m.size)}N==="custom"&&(["custom_text","custom_image"].includes(y)||G("custom_text"),m.retailer_id=null,m.kiosk_id=null),R("size",m.size.toString()),R("text_color",m.text_color||i.mapSettings.apiResponse.STORE_TEXT_COLOR),p({...m}),J({...m})},G=N=>{m&&(f(N),m.layer_type=N,j(),N==="retail_name"||N==="retail_logo"||N==="retail_text"||(N==="kiosk"?(m.value="",s&&K(m,s.textImageMeshObject)):N==="amenity"&&(m.kiosk_id=null)),R("size",m.size.toString()),p({...m}),J({...m}))},P=()=>{m&&(Object.assign(m,y2,{id:m.id,map_obj_name:m.map_obj_name}),q1("retailer"),G("retail_name"),l1("",m.map_obj_name),n&&n({...m}))},W=(N,D)=>{N&&m&&(m.retailer_id=N.value,G(m.layer_type),p({...m}),J({...m},!0))},H=(N,D)=>{N&&m&&(m.kiosk_id=N.value,p({...m}),J({...m},!0),s&&(r1(s.textImageMeshObject,m,r),q()))},O=(N,D)=>{N&&m&&(m.value=N.value,p({...m}),J({...m},!0),s&&K(m,s.textImageMeshObject))},R=C.useCallback((N,D)=>{var w,I,o1;if(m&&s){const s1=s.textImageMeshObject,b1=new Q.Vector3,_1=s.svgShapeMeshObject.geometry.boundingBox;switch(_1&&_1.getCenter(b1),N){case"custom_text":m.custom_text=D,["retail_text","custom_text"].includes(m.layer_type)&&$(s1,m.custom_text,m.size);break;case"custom_image":m.custom_image=D,K(m,s1),J({...m},!0);break;case"size":if(m.size=parseInt(D),["retail_logo","kiosk","amenity","custom_image"].includes(m.layer_type))m.layer_type==="retail_logo"||m.layer_type==="custom_image"?(K(m,s1),setTimeout(()=>{J({...m},!0)},300)):m.layer_type==="amenity"?(K(m,s1),L(()=>{p({...m}),J({...m},!0)})):m.kiosk_id&&m.layer_type==="kiosk"&&(r1(s1,m,r),q());else{let S1="";m.layer_type==="retail_name"&&((w=c[m.retailer_id||0])!=null&&w.retail_name)?S1=(I=c[m.retailer_id||0])==null?void 0:I.retail_name:["retail_text","custom_text"].includes(m.layer_type)&&(S1=m.custom_text),$(s1,S1||"",m.size)}break;case"lock_size":m.lock_size=!1,m.value=D,m.layer_type==="kiosk"&&(r1(s1,m,r),q());break;case"rotate":m.rotate=parseInt(D),s1.rotation.set(s1.rotation.x,s1.rotation.y,m.rotate*Math.PI/180);break;case"offset_x":b1.x+=parseFloat(D),s1.position.setX(b1.x),m.offset_x=parseInt(D);break;case"offset_y":b1.y+=parseFloat(D),s1.position.setY(b1.y),m.offset_y=parseInt(D);break;case"bg_color":m.bg_color=D,(o1=s1.object_id)!=null&&o1.startsWith("big-store"),s.svgShapeMeshObject.material.colorDefault=O1(m.bg_color);break;case"text_color":if(m.text_color=D,["retail_name","retail_text","custom_text"].includes(m.layer_type)){const S1={color:m.text_color,transparent:!0,side:Q.DoubleSide,depthWrite:!1,depthTest:!1};let F1=new Q.MeshPhongMaterial(S1);s1.material=F1}else(m.layer_type==="retail_logo"||m.layer_type==="custom_image"||m.obj_type==="special"&&m.layer_type==="kiosk"&&m.kiosk_id!=null||m.obj_type==="special"&&m.layer_type==="amenity"&&m.value!==null)&&(K(m,s1),m.layer_type==="kiosk"&&r1(s1,m,r),L(()=>{J({...m,text_color:m.text_color&&m.text_color.replace("#","")},!0)}));break}L(()=>{p({...m}),J({...m},!0)})}},[r,m,v,K,$,i.retailers,s,q,J]),g=C.useCallback(N=>{const D=N.target;R(D.name,D.value)},[R]);C.useEffect(()=>{if(l){const N=i.map_objs.findIndex(D=>D.map_obj_name===l);if(N!==-1){const D={...i.map_objs[N]};p(D),d(D.obj_type),f(D.layer_type)}else p({...y2,map_obj_name:l,id:new Date().getTime()})}},[i,l]),C.useEffect(()=>{m&&S(m.map_obj_name)},[m]);const x=N=>{m&&Object.hasOwn(m,N)&&R(N,(m[N]-1).toString())},z=N=>{m&&Object.hasOwn(m,N)&&R(N,(m[N]+1).toString())},Z=(N,D=45)=>{if(m&&Object.hasOwn(m,N)){let w=m[N];const I=w%D;I!==0&&(w-=I),w+=D,w>360?w=D:w===360&&(w=0),R(N,w.toString())}},k=N=>{const D=window.setInterval(()=>{x(N)},200);B.current[N]=D},t1=N=>{const D=window.setInterval(()=>{z(N)},200);B.current[N]=D},T=N=>{B.current[N]&&(clearInterval(B.current[N]),B.current[N]=null)},n1=(i==null?void 0:i.retailers.map(N=>({value:N.id,label:(i==null?void 0:i.globalRetailerIds.filter(D=>D===N.global_retailer_id).length)>1?`${N.retail_name} (${N.location})`:N.retail_name})))||[],U=(i==null?void 0:i.kiosks.map(N=>({value:N.id,label:N.name,isDisabled:V.includes(N.id)})))||[],Y=i2.map(N=>({value:N.type,label:N.name}))||[];return m?M.jsx("div",{className:`sidebarComp ${i1.sidebarComp}`,children:M.jsxs("div",{className:i1.sidebarFields,children:[M.jsxs("div",{className:i1.tabOptions,children:[M.jsxs("div",{className:i1.mainBtnsGroup,children:[M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>q1("retailer"),className:h==="retailer"?i1.active:"",children:"Retailer"}),M.jsx("button",{onClick:()=>q1("special"),className:h==="special"?i1.active:"",children:"Special"}),M.jsx("button",{onClick:()=>q1("custom"),className:h==="custom"?i1.active:"",children:"Custom"})]}),M.jsx("button",{className:i1.deleteBtn,onClick:P,children:"Delete"})]}),h==="retailer"&&M.jsxs(M.Fragment,{children:[M.jsx(w2,{className:i1.selectField,classNamePrefix:"custom",menuPortalTarget:document.body,"aria-label":"Choose a Retailer",options:n1,isLoading:!1,noOptionsMessage:()=>"Retailers not found",placeholder:"Choose a Retailer...",value:n1.find(N=>N.value===m.retailer_id)||null,onChange:W}),m.retailer_id>0&&M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>G("retail_name"),className:y==="retail_name"?i1.active:"",children:"Retail Name"}),M.jsx("button",{onClick:()=>G("retail_logo"),className:y==="retail_logo"?i1.active:"",children:"Retail Logo"}),M.jsx("button",{onClick:()=>G("retail_text"),className:y==="retail_text"?i1.active:"",children:"Custom Text"})]})]}),h==="special"&&M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>G("kiosk"),className:y==="kiosk"?i1.active:"",children:"Kiosk"}),M.jsx("button",{onClick:()=>G("amenity"),className:y==="amenity"?i1.active:"",children:"Amenity"})]}),y==="kiosk"&&M.jsx(w2,{className:i1.selectField,classNamePrefix:"custom","aria-label":"Choose a Kiosk",options:U,noOptionsMessage:()=>"Kiosks not found",placeholder:"Choose a Kiosk...",value:U.find(N=>N.value===m.kiosk_id)||null,onChange:H}),y==="amenity"&&M.jsx(w2,{className:i1.selectField,classNamePrefix:"custom","aria-label":"Choose Amenity",options:Y,noOptionsMessage:()=>"Amenity not found",placeholder:"Choose Amenity...",value:Y.find(N=>N.value===m.value)||null,onChange:O})]}),h==="custom"&&M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>G("custom_text"),className:y==="custom_text"?i1.active:"",children:"Text"}),M.jsx("button",{onClick:()=>G("custom_image"),className:y==="custom_image"?i1.active:"",children:"Image"})]}),y==="custom_image"&&M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Image URL"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsx("input",{name:"custom_image",type:"text",className:i1.textField,value:m.custom_image,onChange:g})})]})]}),(h==="retailer"&&y==="retail_text"||h==="custom"&&y==="custom_text")&&M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Text"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsx("textarea",{name:"custom_text",rows:3,className:i1.textareaField,value:m.custom_text,onChange:g})})]})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Size"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("size"),onMouseDown:()=>k("size"),onMouseUp:()=>T("size"),onMouseLeave:()=>T("size"),children:"-"}),M.jsx("input",{type:"number",value:m.size,onChange:N=>R("size",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("size"),onMouseDown:()=>t1("size"),onMouseUp:()=>T("size"),onMouseLeave:()=>T("size"),children:"+"})]})})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Rotate"}),M.jsxs("div",{className:i1.fieldWrapper,children:[M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("rotate"),onMouseDown:()=>k("rotate"),onMouseUp:()=>T("rotate"),onMouseLeave:()=>T("rotate"),children:"-"}),M.jsx("input",{type:"number",value:m.rotate,onChange:N=>R("rotate",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("rotate"),onMouseDown:()=>t1("rotate"),onMouseUp:()=>T("rotate"),onMouseLeave:()=>T("rotate"),children:"+"})]}),M.jsx("button",{className:i1.rotateButton,onClick:()=>Z("rotate"),children:M.jsx(c7,{size:24})})]})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Offset X"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("offset_x"),onMouseDown:()=>k("offset_x"),onMouseUp:()=>T("offset_x"),onMouseLeave:()=>T("offset_x"),children:"-"}),M.jsx("input",{type:"number",value:m.offset_x,onChange:N=>R("offset_x",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("offset_x"),onMouseDown:()=>t1("offset_x"),onMouseUp:()=>T("offset_x"),onMouseLeave:()=>T("offset_x"),children:"+"})]})})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Offset Y"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("offset_y"),onMouseDown:()=>k("offset_y"),onMouseUp:()=>T("offset_y"),onMouseLeave:()=>T("offset_y"),children:"-"}),M.jsx("input",{type:"number",value:m.offset_y,onChange:N=>R("offset_y",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("offset_y"),onMouseDown:()=>t1("offset_y"),onMouseUp:()=>T("offset_y"),onMouseLeave:()=>T("offset_y"),children:"+"})]})})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"BG Color"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.colorFieldGroup,children:[M.jsx("input",{type:"color",name:"bg_color",className:i1.colorField,value:m.bg_color,onChange:g}),M.jsx("input",{type:"text",name:"bg_color",className:i1.inputField,value:m.bg_color,onChange:g})]})})]}),["retail_name","custom_text","retail_text","kiosk","amenity"].includes(m.layer_type)&&M.jsxs("div",{className:i1.sidebarField,children:[M.jsxs("label",{className:i1.label,children:[["kiosk","amenity"].includes(m.layer_type)?"Icon":"Text"," Color"]}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.colorFieldGroup,children:[M.jsx("input",{name:"text_color",type:"color",className:i1.colorField,value:m.text_color,onChange:g}),M.jsx("input",{type:"text",name:"text_color",className:i1.inputField,value:m.text_color,onChange:g})]})})]})]})}):null},qq=C.forwardRef((e,t)=>{const{selectedActiveObjectId:l,setSelectedActiveObjectId:r,onMapDataUpdate:n,onChangeCameraControlPosition:o,handleClickOnRetailer:a}=e,[q,i]=C.useState(!1),[s,c]=C.useState(""),[u,_]=C.useState(!1),[A,v]=C.useState(-1),[b,h]=C.useState([]),[d,y]=C.useState(a4),[f,m]=C.useState(0),[p,E]=C.useState("desktop"),[S,L]=C.useState(!1),[B,V]=C.useState(!1),[,e1]=C.useTransition(),[X,r1]=C.useState(0),[K,l1]=C.useState(""),[$,J]=C.useState(""),[j,q1]=C.useState(null),[,G]=C.useState(0),P=C.useRef(null),W=C.useRef(null);W.current=f;const H=C.useRef(null),O=C.useCallback(a1=>{G(a1)},[]),{setMapConfig:R,refetchMapData:g,mapApiResponse:x,mapConfig:z,floorsData:Z,setMeshObject:k,indexedKiosks:t1,initialFloorsDataIsLoaded:T}=Q1(),n1=C.useCallback(a1=>{v(a1)},[v]),U=_t(),{meshParams:Y,storeLogos:N,textParams:D,allSvgObjectIds:w}=U,I=C.useRef(null),[o1,s1]=C.useState(null),[,b1]=C.useState(0),_1=C.useCallback(()=>{b1(a1=>a1+1)},[]),[S1,F1]=C.useState(!1);C.useImperativeHandle(t,()=>{var a1,m1;return{refetchMapData:g,createRouteToAmenity:u2,createRouteToStore:(a1=H.current)==null?void 0:a1.createRouteToStore,getInitialDistance:(m1=H.current)==null?void 0:m1.getInitialDistance,resetMap:P6,setMapConfig:R,refreshState:V}});const p1=C.useCallback(a1=>{z.ROLE==="DISPLAY_APP"?E("display_app"):z.ROLE==="PORTAL_RESPONSIVE"?E(z.DEVICE):a1>1024?E("desktop"):a1>767?E("tablet"):E("mobile")},[z]);C.useEffect(()=>{if(P.current){const a1=P.current.offsetWidth;m(a1),p1(a1);const m1=()=>{if(P.current){const g1=P.current.offsetWidth;m(g1),p1(g1)}};return window.addEventListener("resize",m1),m1(),()=>{window.removeEventListener("resize",m1)}}},[P.current,B,p1]);const[B1,Y1,z4]=C.useMemo(()=>{let a1="",m1=null,g1=Z.length?Z.length-1:0;if(t1[z.KIOSK_ID]){const R1=t1[z.KIOSK_ID].map_obj_name,z1=Y==null?void 0:Y.flat().find(V1=>V1.object_id===R1);z1&&(m1=z1.mesh,g1=z1.floor_index)}else z.ROLE==="DEMO"&&console.error("Kiosk not found in config");return[m1,g1,a1]},[z,Y,Z,t1]),k1=A>-1&&A<Z.length?A:Y1;C.useEffect(()=>{var g1;let a1;const m1=((g1=Z[k1])==null?void 0:g1.id)||null;m1&&z.CAMERA_CONTROLS_STATES.perFloor&&z.CAMERA_CONTROLS_STATES.perFloor[m1]?a1=z.CAMERA_CONTROLS_STATES.perFloor[m1]:a1=z.CAMERA_CONTROLS_STATES,z.ROLE==="DISPLAY_APP"?y(JSON.parse(JSON.stringify(a1.display_app))):z.ROLE==="WP_SITE"?y(JSON.parse(JSON.stringify(p==="desktop"?a1.desktop:p==="tablet"?a1.tablet:a1.mobile))):z.ROLE==="PORTAL_RESPONSIVE"&&(z.DEVICE==="desktop"?y(JSON.parse(JSON.stringify(a1.desktop))):z.DEVICE==="display_app"?y(JSON.parse(JSON.stringify(a1.display_app))):z.DEVICE==="mobile"?y(JSON.parse(JSON.stringify(a1.mobile))):z.DEVICE==="tablet"&&y(JSON.parse(JSON.stringify(a1.tablet))))},[p,z,k1,Z]);const c2=C.useCallback(a1=>{var g1;const m1=((g1=Z[k1])==null?void 0:g1.id)||null;o&&o(z.CAMERA_CONTROLS_STATES,a1,m1)},[o,k1,Z,z.CAMERA_CONTROLS_STATES]);let w4="",T4=z.DEFAULT_SELECTED_STORE??"";l?(T4=l,w4=s):K&&(T4="",w4=s);const a3=C.useCallback((a1,m1)=>{h(g1=>{const R1=g1.findIndex(z1=>z1.data.map_obj_name===m1.map_obj_name);return R1!==-1?g1[R1]={index:a1,data:{...m1}}:g1.push({index:a1,data:{...m1}}),[...g1]})},[]),u7=C.useCallback(a1=>{e.onObjectSaveData&&e.onObjectSaveData(a1,g)},[e,g]);C.useEffect(()=>{document.body.style.cursor=o1?"pointer":"default"},[o1]);const P6=C.useCallback((a1=!1)=>{var m1,g1;r(""),c(""),l1(""),r1(0),n1(Y1),H.current&&(z.ROLE==="PORTAL_RESPONSIVE"?(m1=H==null?void 0:H.current)==null||m1.resetCamera(a1):(g1=H==null?void 0:H.current)==null||g1.resetCamera(a1))},[Y1,n1,z.ROLE,r]);C.useEffect(()=>{const a1=[];Y.forEach(R1=>{R1.forEach(z1=>{(z1==null?void 0:z1.mesh_type)==="kiosk"&&a1.push(z1)})});const m1=new Map;N.filter(R1=>R1!==void 0).forEach(R1=>{R1.forEach(z1=>{m1.set(z1.storeLogo.object_id,z1.storeLogo)})});const g1=B1==null?void 0:B1.object_id;a1.forEach(R1=>{const z1=R1.mesh,V1=m1.get("custom-layer-"+R1.object_id),J1=x.map_objs.find(g7=>g7.map_obj_name===z1.object_id);z1&&V1&&V1.userData.kioskConfig!==null&&(V1.userData.kioskConfig={lockSize:J1==null?void 0:J1.lock_size,blink:R1.object_id===g1,size:J1?J1.size:z.KIOSK_SIZE,floorIndex:z1.floor_index},V1.userData.distanceFactor=J1!=null&&J1.lock_size?1500:void 0,V1.visible=!0)})},[N,Y,B1,z,x.map_objs]),C.useEffect(()=>{if(n){const a1=[];b.forEach(m1=>{a1.push({...m1.data})})}},[b,n]),C.useEffect(()=>{document.body.style.cursor=u?"pointer":"auto"},[u]),C.useEffect(()=>{z!=null&&z.SELECTED_RETAILER_ID&&S&&r1(z.SELECTED_RETAILER_ID)},[z,S]),C.useEffect(()=>{if(z&&X>0){const a1=x.retailers.find(m1=>m1.id===X);if(a1){const m1=x.map_objs.find(R1=>R1.retailer_id===a1.id),g1=Y==null?void 0:Y.flat().find(R1=>R1.object_id===(m1==null?void 0:m1.map_obj_name));g1&&v(g1.floor_index),m1&&r(m1.map_obj_name)}}},[z,r,X,Y,x.map_objs,x.retailers]);const N4=C.useCallback(a1=>{var z1,V1;const m1=(z1=D[k1])==null?void 0:z1.find(J1=>J1.textMesh.object_id===`${N2}${a1.object_id}`),g1=(V1=N[k1])==null?void 0:V1.find(J1=>J1.storeLogo.object_id===`${N2}${a1.object_id}`);let R1=null;m1&&(R1={svgShapeMeshObject:a1,textImageMeshObject:m1.textMesh}),g1&&(R1={svgShapeMeshObject:a1,textImageMeshObject:g1.storeLogo}),k(R1)},[N,D,k,k1]);C.useEffect(()=>{var a1,m1;if(Y&&Y.length&&l){const g1=(m1=(a1=Y[k1])==null?void 0:a1.find(R1=>R1.object_id===l))==null?void 0:m1.mesh;g1&&N4(g1)}},[Y,N4,l,k1]);const u2=C.useCallback((a1,m1)=>{r(""),c(""),l1(a1),m1&&(J(m1),z.ROLE==="DISPLAY_APP"&&r(m1)),z.ROLE==="WP_SITE"&&F1(!0)},[z.ROLE,r]),i3=C.useCallback((a1,m1,g1)=>{var R1;if(!g1&&z.ROLE==="DISPLAY_APP"&&a&&((R1=a1.mesh_type)!=null&&R1.startsWith("store"))){const z1=x.map_objs.find(V1=>V1.map_obj_name===a1.object_id&&V1.obj_type==="retailer");if(z1){const V1=x.retailers.find(J1=>J1.id===z1.retailer_id);V1&&a(V1.id)}return!1}z.ROLE==="DISPLAY_APP"&&B1&&n1(Y1),e1(()=>{N4(a1),r(m1??""),i(z1=>!z1),r1(0),l1(""),c("")})},[Y1,B1,a,n1,N4,x.map_objs,x.retailers,z.ROLE,r]),m7=C.useCallback(a1=>{if(a1.stopPropagation(),a1.delta>15)return;const m1=a1.object.object_id,g1=x.map_objs.find(R1=>R1.map_obj_name===m1);g1&&g1.layer_type==="amenity"?(u2(g1.value,m1),z.ROLE==="PORTAL"&&(N4(a1.object),r(m1??""))):(i3(a1.object,m1??""),z.ROLE!=="PORTAL"&&!z.KIOSK_ID&&(g1!=null&&g1.retailer_id)&&F1(!0))},[z,u2,r,N4,i3,x.map_objs]),d7=C.useCallback(a1=>{a1.stopPropagation(),_(!0),a1.object.userData.storeName!==""&&s1(a1.object)},[]),f7=C.useCallback(a1=>{a1.stopPropagation(),s1(null),_(!1),I&&I.current&&(I.current.style.display="none")},[]),K1=C.useRef({x:null,y:null,distance:-1/0}),x7=C.useCallback(a1=>{if(a1.stopPropagation(),a1.buttons>0){if(K1.current.x===null&&(K1.current.x=a1.clientX),K1.current.y===null&&(K1.current.y=a1.clientY),K1.current.x!==null&&K1.current.y!==null){let m1=Math.sqrt(Math.pow(K1.current.x-a1.clientX,2)+Math.pow(K1.current.y-a1.clientY,2));m1>K1.current.distance&&(K1.current.distance=m1)}}else K1.current.x=K1.current.y=null,K1.current.distance=-1/0;I&&I.current&&a1.object.userData.storeName&&a1.object.userData.storeName!==""?(I.current.style.top=`${a1.offsetY-65}px`,I.current.style.left=`${a1.offsetX}px`,I.current.style.display="block"):I.current&&(I.current.style.display="none")},[]),h7=C.useCallback((a1,m1)=>{c(a1),m1&&r(m1||""),F1(!1)},[c,F1,r]);if(z4)return M.jsx("div",{className:"messageStyle",children:z4});!B1&&z.ROLE==="DEMO"&&console.error("NO KIOSK OBJECT FOUND");const p7=U;let q3=o1,F6="";return q3&&q3.object_id&&(F6=q3.object_id),M.jsxs(M.Fragment,{children:[z.ROLE==="PORTAL"&&M.jsx("div",{className:`mapBoxSidebar ${f4.mapBoxSidebar} ${l?f4.active:""}`,children:M.jsx("div",{className:`sidebarWrapper ${f4.sidebarWrapper}`,children:M.jsx("div",{className:`sidebarBox ${f4.sidebarBox}`,children:l?M.jsx(iq,{floorIndex:k1,meshFloors:U,setData:a3,selectedId:l,onObjectSaveData:u7,onObjectResetData:e.onObjectResetData,onObjectChangeData:e.onObjectChangeData,onObjectNewData:e.onObjectNewData,triggerSceneUpdate:_1}):null})})}),M.jsxs("div",{ref:P,className:`mapBox ${f4.mapBox}`,children:[M.jsx(Dt,{selectedFloorIndex:k1,handleFloorChange:n1,reset:P6,zoomIn:()=>q1({direction:"in"}),zoomOut:()=>q1({direction:"out"}),amenitiesList:i2,handleAmenityClick:u2,onExtractedAmenities:e.onExtractedAmenities}),M.jsxs(y4.Canvas,{style:{position:"absolute",top:0,left:0},flat:!0,children:[Number(z.STATS)?M.jsx(S4.Stats,{className:f4.stats}):null,M.jsx(vt,{background:z.MAP_BACKGROUND_COLOR}),M.jsx(Ct,{near:1,far:z.CAMERA.far,fov:z.CAMERA.fov}),M.jsx("ambientLight",{intensity:4,color:"#c4c4c4"}),M.jsx("directionalLight",{position:[0,400,0],color:"#ffffff",intensity:.3}),M.jsx("directionalLight",{position:[0,0,400],color:"#c4c4c4",intensity:.2}),M.jsx("directionalLight",{position:[0,0,-400],color:"#c4c4c4",intensity:.2}),M.jsx(Tt,{meshFloors:p7,activeObjectId:T4,hoverObjectId:F6,currKioskObj:B1,currKioskFloorIndex:Y1,routeTargetId:T4,routeTargetFromId:w4,currentFloorIndex:k1,onPointerEnter:d7,onPointerLeave:f7,onPointerMove:x7,onClick:m7,handleChangeFloor:n1,selectedAmenityType:K,escalatorNodes:U.escalator_nodes,zoom:j,handleCameraLength:O,ref:H,cameraControlsPosition:d,handleCameraAndControlsChange:c2,isSelectedRetailerSlug:!0,setIsCameraInit:L,handleObjectClick:i3,triggerClick:q,deviceType:p})]}),z.ROLE!=="DISPLAY_APP"&&(z.ROLE!=="WP_SITE"||!["mobile","tablet"].includes(p))&&M.jsx("div",{ref:I,className:`store-name-placeholder ${f4.storeNamePlaceholder}`,style:{display:o1?"block":"none"},children:o1&&o1.userData.storeName})]}),z.ROLE==="WP_SITE"&&M.jsx(Li,{show:S1,onHide:()=>F1(!1),amenity:K,selectedAmenityMapObjName:$,mapObjectName:l,onClickMapObj:h7,allSvgObjectIds:w})]})}),sq="_mapBoxComponent_18958_1",cq="_tempImageRendering_18958_13",q9={mapBoxComponent:sq,tempImageRendering:cq},uq=e=>{const{config:t,webApiURI:l,cachedMapApiResponse:r,onNewMapApiResponse:n,rerenderMapOnNewMapApiResponse:o,mapBoxRefObj:a,onObjectSaveData:q,onObjectResetData:i,onObjectChangeData:s,onObjectNewData:c,mapApiResponseRef:u,onChangeCameraControlPosition:_,onExtractedAmenities:A,handleClickOnRetailer:v}=e,[b,h]=C.useState(""),d={webApiBaseUrl:l,config:t};return M.jsx(mt,{mapApiResponseRef:u,initialData:d,cachedMapApiResponse:r,onNewMapApiResponse:n,rerenderMapOnNewMapApiResponse:o,children:M.jsxs("div",{className:`mapBoxComponent ${q9.mapBoxComponent} MAP_ROLE_${t.ROLE}`,children:[M.jsx(qq,{ref:a,setSelectedActiveObjectId:h,selectedActiveObjectId:b,onObjectSaveData:q,onObjectResetData:i,onObjectChangeData:s,onObjectNewData:c,onChangeCameraControlPosition:_,onExtractedAmenities:A,handleClickOnRetailer:v}),M.jsxs("div",{className:"hide",children:[M.jsx("div",{id:"map-special-svg-kiosk",dangerouslySetInnerHTML:{__html:Z1.Kiosk}}),M.jsx("div",{id:"map-special-svg-escalator",dangerouslySetInnerHTML:{__html:Z1.Escalator}}),i2.map((y,f)=>M.jsx("div",{id:`map-special-svg-${y.type}`,dangerouslySetInnerHTML:{__html:y.svgCode}},f))]}),M.jsx("div",{id:"temp-image-rendering",className:q9.tempImageRendering})]})})};exports.AllAmenities=i2;exports.MapBox=uq;
116
+ `]))),qa=function(t,l){var r=t.isFocused,n=t.size,o=t.theme,a=o.colors,q=o.spacing.baseUnit;return x1({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"},l?{}:{color:r?a.neutral60:a.neutral20,padding:q*2})},O3=function(t){var l=t.delay,r=t.offset;return f1("span",{css:w6({animation:"".concat(ia," 1s ease-in-out ").concat(l,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZW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mdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},sa=function(t){var l=t.innerProps,r=t.isRtl,n=t.size,o=n===void 0?4:n,a=c4(t,Qo);return f1("div",h1({},N1(x1(x1({},a),{},{innerProps:l,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),l),f1(O3,{delay:0,offset:r}),f1(O3,{delay:160,offset:!0}),f1(O3,{delay:320,offset:!r}))},ca=function(t,l){var r=t.isDisabled,n=t.isFocused,o=t.theme,a=o.colors,q=o.borderRadius,i=o.spacing;return x1({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},l?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:n?a.primary:a.neutral20,borderRadius:q,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:n?a.primary:a.neutral30}})},ua=function(t){var l=t.children,r=t.isDisabled,n=t.isFocused,o=t.innerRef,a=t.innerProps,q=t.menuIsOpen;return f1("div",h1({ref:o},N1(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":n,"control--menu-is-open":q}),a,{"aria-disabled":r||void 0}),l)},ma=ua,da=["data"],fa=function(t,l){var r=t.theme.spacing;return l?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},xa=function(t){var l=t.children,r=t.cx,n=t.getStyles,o=t.getClassNames,a=t.Heading,q=t.headingProps,i=t.innerProps,s=t.label,c=t.theme,u=t.selectProps;return f1("div",h1({},N1(t,"group",{group:!0}),i),f1(a,h1({},q,{selectProps:u,theme:c,getStyles:n,getClassNames:o,cx:r}),s),f1("div",null,l))},ha=function(t,l){var r=t.theme,n=r.colors,o=r.spacing;return x1({label:"group",cursor:"default",display:"block"},l?{}:{color:n.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},pa=function(t){var l=j5(t);l.data;var r=c4(l,da);return f1("div",h1({},N1(t,"groupHeading",{"group-heading":!0}),r))},ga=xa,ba=["innerRef","isDisabled","isHidden","inputClassName"],_a=function(t,l){var r=t.isDisabled,n=t.value,o=t.theme,a=o.spacing,q=o.colors;return x1(x1({visibility:r?"hidden":"visible",transform:n?"translateZ(0)":""},va),l?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:q.neutral80})},$5={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},va={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":x1({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},$5)},Ca=function(t){return x1({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},$5)},ya=function(t){var l=t.cx,r=t.value,n=j5(t),o=n.innerRef,a=n.isDisabled,q=n.isHidden,i=n.inputClassName,s=c4(n,ba);return f1("div",h1({},N1(t,"input",{"input-container":!0}),{"data-value":r||""}),f1("input",h1({className:l({input:!0},i),ref:o,style:Ca(q),disabled:a},s)))},Ia=ya,Ea=function(t,l){var r=t.theme,n=r.spacing,o=r.borderRadius,a=r.colors;return x1({label:"multiValue",display:"flex",minWidth:0},l?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:n.baseUnit/2})},Aa=function(t,l){var r=t.theme,n=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return x1({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},l?{}:{borderRadius:n/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Ra=function(t,l){var r=t.theme,n=r.spacing,o=r.borderRadius,a=r.colors,q=t.isFocused;return x1({alignItems:"center",display:"flex"},l?{}:{borderRadius:o/2,backgroundColor:q?a.dangerLight:void 0,paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},Q5=function(t){var l=t.children,r=t.innerProps;return f1("div",r,l)},Sa=Q5,Oa=Q5;function za(e){var t=e.children,l=e.innerProps;return f1("div",h1({role:"button"},l),t||f1(M6,{size:14}))}var wa=function(t){var l=t.children,r=t.components,n=t.data,o=t.innerProps,a=t.isDisabled,q=t.removeProps,i=t.selectProps,s=r.Container,c=r.Label,u=r.Remove;return f1(s,{data:n,innerProps:x1(x1({},N1(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:i},f1(c,{data:n,innerProps:x1({},N1(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:i},l),f1(u,{data:n,innerProps:x1(x1({},N1(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(l||"option")},q),selectProps:i}))},Ta=wa,Na=function(t,l){var r=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.theme,q=a.spacing,i=a.colors;return x1({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},l?{}:{backgroundColor:o?i.primary:n?i.primary25:"transparent",color:r?i.neutral20:o?i.neutral0:"inherit",padding:"".concat(q.baseUnit*2,"px ").concat(q.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?i.primary:i.primary50}})},Ma=function(t){var l=t.children,r=t.isDisabled,n=t.isFocused,o=t.isSelected,a=t.innerRef,q=t.innerProps;return f1("div",h1({},N1(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":n,"option--is-selected":o}),{ref:a,"aria-disabled":r},q),l)},La=Ma,Pa=function(t,l){var r=t.theme,n=r.spacing,o=r.colors;return x1({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},l?{}:{color:o.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},Fa=function(t){var l=t.children,r=t.innerProps;return f1("div",h1({},N1(t,"placeholder",{placeholder:!0}),r),l)},Ba=Fa,Ga=function(t,l){var r=t.isDisabled,n=t.theme,o=n.spacing,a=n.colors;return x1({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},l?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},ka=function(t){var l=t.children,r=t.isDisabled,n=t.innerProps;return f1("div",h1({},N1(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),n),l)},Da=ka,ja={ClearIndicator:ra,Control:ma,DropdownIndicator:la,DownChevron:J5,CrossIcon:M6,Group:ga,GroupHeading:pa,IndicatorsContainer:Uo,IndicatorSeparator:aa,Input:Ia,LoadingIndicator:sa,Menu:Po,MenuList:Bo,MenuPortal:Wo,LoadingMessage:jo,NoOptionsMessage:Do,MultiValue:Ta,MultiValueContainer:Sa,MultiValueLabel:Oa,MultiValueRemove:za,Option:La,Placeholder:Ba,SelectContainer:Xo,SingleValue:Da,ValueContainer:Yo},Va=function(t){return x1(x1({},ja),t.components)},J8=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Wa(e,t){return!!(e===t||J8(e)&&J8(t))}function Ha(e,t){if(e.length!==t.length)return!1;for(var l=0;l<e.length;l++)if(!Wa(e[l],t[l]))return!1;return!0}function Xa(e,t){t===void 0&&(t=Ha);var l=null;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];if(l&&l.lastThis===this&&t(n,l.lastArgs))return l.lastResult;var a=e.apply(this,n);return l={lastResult:a,lastArgs:n,lastThis:this},a}return r.clear=function(){l=null},r}function Za(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Ya=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:Za},Ja=function(t){return f1("span",h1({css:Ya},t))},U8=Ja,Ua={guidance:function(t){var l=t.isSearchable,r=t.isMulti,n=t.tabSelectsValue,o=t.context,a=t.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(n?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(t["aria-label"]||"Select"," is focused ").concat(l?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var l=t.action,r=t.label,n=r===void 0?"":r,o=t.labels,a=t.isDisabled;switch(l){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(n," is disabled. Select another option."):"option ".concat(n,", selected.");default:return""}},onFocus:function(t){var l=t.context,r=t.focused,n=t.options,o=t.label,a=o===void 0?"":o,q=t.selectValue,i=t.isDisabled,s=t.isSelected,c=t.isAppleDevice,u=function(b,h){return b&&b.length?"".concat(b.indexOf(h)+1," of ").concat(b.length):""};if(l==="value"&&q)return"value ".concat(a," focused, ").concat(u(q,r),".");if(l==="menu"&&c){var _=i?" disabled":"",A="".concat(s?" selected":"").concat(_);return"".concat(a).concat(A,", ").concat(u(n,r),".")}return""},onFilter:function(t){var l=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(l?" for search term "+l:"",".")}},$a=function(t){var l=t.ariaSelection,r=t.focusedOption,n=t.focusedValue,o=t.focusableOptions,a=t.isFocused,q=t.selectValue,i=t.selectProps,s=t.id,c=t.isAppleDevice,u=i.ariaLiveMessages,_=i.getOptionLabel,A=i.inputValue,v=i.isMulti,b=i.isOptionDisabled,h=i.isSearchable,d=i.menuIsOpen,y=i.options,f=i.screenReaderStatus,m=i.tabSelectsValue,p=i.isLoading,E=i["aria-label"],S=i["aria-live"],L=C.useMemo(function(){return x1(x1({},Ua),u||{})},[u]),B=C.useMemo(function(){var l1="";if(l&&L.onChange){var $=l.option,J=l.options,j=l.removedValue,q1=l.removedValues,G=l.value,P=function(z){return Array.isArray(z)?null:z},W=j||$||P(G),H=W?_(W):"",O=J||q1||void 0,R=O?O.map(_):[],g=x1({isDisabled:W&&b(W,q),label:H,labels:R},l);l1=L.onChange(g)}return l1},[l,L,b,q,_]),V=C.useMemo(function(){var l1="",$=r||n,J=!!(r&&q&&q.includes(r));if($&&L.onFocus){var j={focused:$,label:_($),isDisabled:b($,q),isSelected:J,options:o,context:$===r?"menu":"value",selectValue:q,isAppleDevice:c};l1=L.onFocus(j)}return l1},[r,n,_,b,L,o,q,c]),e1=C.useMemo(function(){var l1="";if(d&&y.length&&!p&&L.onFilter){var $=f({count:o.length});l1=L.onFilter({inputValue:A,resultsMessage:$})}return l1},[o,A,d,L,y,f,p]),X=(l==null?void 0:l.action)==="initial-input-focus",r1=C.useMemo(function(){var l1="";if(L.guidance){var $=n?"value":d?"menu":"input";l1=L.guidance({"aria-label":E,context:$,isDisabled:r&&b(r,q),isMulti:v,isSearchable:h,tabSelectsValue:m,isInitialFocus:X})}return l1},[E,r,n,v,b,h,d,L,q,m,X]),K=f1(C.Fragment,null,f1("span",{id:"aria-selection"},B),f1("span",{id:"aria-focused"},V),f1("span",{id:"aria-results"},e1),f1("span",{id:"aria-guidance"},r1));return f1(C.Fragment,null,f1(U8,{id:s},X&&K),f1(U8,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!X&&K))},Qa=$a,K3=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ka=new RegExp("["+K3.map(function(e){return e.letters}).join("")+"]","g"),K5={};for(var z3=0;z3<K3.length;z3++)for(var w3=K3[z3],T3=0;T3<w3.letters.length;T3++)K5[w3.letters[T3]]=w3.base;var e7=function(t){return t.replace(Ka,function(l){return K5[l]})},ei=Xa(e7),$8=function(t){return t.replace(/^\s+|\s+$/g,"")},ti=function(t){return"".concat(t.label," ").concat(t.value)},li=function(t){return function(l,r){if(l.data.__isNew__)return!0;var n=x1({ignoreCase:!0,ignoreAccents:!0,stringify:ti,trim:!0,matchFrom:"any"},t),o=n.ignoreCase,a=n.ignoreAccents,q=n.stringify,i=n.trim,s=n.matchFrom,c=i?$8(r):r,u=i?$8(q(l)):q(l);return o&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=ei(c),u=e7(u)),s==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},ni=["innerRef"];function ri(e){var t=e.innerRef,l=c4(e,ni),r=So(l,"onExited","in","enter","exit","appear");return f1("input",h1({ref:t},r,{css:w6({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAg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n1cbiJdfQ== */")}))}var oi=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function ai(e){var t=e.isEnabled,l=e.onBottomArrive,r=e.onBottomLeave,n=e.onTopArrive,o=e.onTopLeave,a=C.useRef(!1),q=C.useRef(!1),i=C.useRef(0),s=C.useRef(null),c=C.useCallback(function(h,d){if(s.current!==null){var y=s.current,f=y.scrollTop,m=y.scrollHeight,p=y.clientHeight,E=s.current,S=d>0,L=m-p-f,B=!1;L>d&&a.current&&(r&&r(h),a.current=!1),S&&q.current&&(o&&o(h),q.current=!1),S&&d>L?(l&&!a.current&&l(h),E.scrollTop=m,B=!0,a.current=!0):!S&&-d>f&&(n&&!q.current&&n(h),E.scrollTop=0,B=!0,q.current=!0),B&&oi(h)}},[l,r,n,o]),u=C.useCallback(function(h){c(h,h.deltaY)},[c]),_=C.useCallback(function(h){i.current=h.changedTouches[0].clientY},[]),A=C.useCallback(function(h){var d=i.current-h.changedTouches[0].clientY;c(h,d)},[c]),v=C.useCallback(function(h){if(h){var d=Eo?{passive:!1}:!1;h.addEventListener("wheel",u,d),h.addEventListener("touchstart",_,d),h.addEventListener("touchmove",A,d)}},[A,_,u]),b=C.useCallback(function(h){h&&(h.removeEventListener("wheel",u,!1),h.removeEventListener("touchstart",_,!1),h.removeEventListener("touchmove",A,!1))},[A,_,u]);return C.useEffect(function(){if(t){var h=s.current;return v(h),function(){b(h)}}},[t,v,b]),function(h){s.current=h}}var Q8=["boxSizing","height","overflow","paddingRight","position"],K8={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function e9(e){e.cancelable&&e.preventDefault()}function t9(e){e.stopPropagation()}function l9(){var e=this.scrollTop,t=this.scrollHeight,l=e+this.offsetHeight;e===0?this.scrollTop=1:l===t&&(this.scrollTop=e-1)}function n9(){return"ontouchstart"in window||navigator.maxTouchPoints}var r9=!!(typeof window<"u"&&window.document&&window.document.createElement),U4=0,B4={capture:!1,passive:!1};function ii(e){var t=e.isEnabled,l=e.accountForScrollbars,r=l===void 0?!0:l,n=C.useRef({}),o=C.useRef(null),a=C.useCallback(function(i){if(r9){var s=document.body,c=s&&s.style;if(r&&Q8.forEach(function(v){var b=c&&c[v];n.current[v]=b}),r&&U4<1){var u=parseInt(n.current.paddingRight,10)||0,_=document.body?document.body.clientWidth:0,A=window.innerWidth-_+u||0;Object.keys(K8).forEach(function(v){var b=K8[v];c&&(c[v]=b)}),c&&(c.paddingRight="".concat(A,"px"))}s&&n9()&&(s.addEventListener("touchmove",e9,B4),i&&(i.addEventListener("touchstart",l9,B4),i.addEventListener("touchmove",t9,B4))),U4+=1}},[r]),q=C.useCallback(function(i){if(r9){var s=document.body,c=s&&s.style;U4=Math.max(U4-1,0),r&&U4<1&&Q8.forEach(function(u){var _=n.current[u];c&&(c[u]=_)}),s&&n9()&&(s.removeEventListener("touchmove",e9,B4),i&&(i.removeEventListener("touchstart",l9,B4),i.removeEventListener("touchmove",t9,B4)))}},[r]);return C.useEffect(function(){if(t){var i=o.current;return a(i),function(){q(i)}}},[t,a,q]),function(i){o.current=i}}function qi(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var si=function(t){var l=t.target;return l.ownerDocument.activeElement&&l.ownerDocument.activeElement.blur()},ci=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSA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6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:qi};function ui(e){var t=e.children,l=e.lockEnabled,r=e.captureEnabled,n=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,q=e.onTopArrive,i=e.onTopLeave,s=ai({isEnabled:n,onBottomArrive:o,onBottomLeave:a,onTopArrive:q,onTopLeave:i}),c=ii({isEnabled:l}),u=function(A){s(A),c(A)};return f1(C.Fragment,null,l&&f1("div",{onClick:si,css:ci}),t(u))}function mi(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var di=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:mi},fi=function(t){var l=t.name,r=t.onFocus;return f1("input",{required:!0,name:l,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:di,value:"",onChange:function(){}})},xi=fi;function L6(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function hi(){return L6(/^iPhone/i)}function t7(){return L6(/^Mac/i)}function pi(){return L6(/^iPad/i)||t7()&&navigator.maxTouchPoints>1}function gi(){return hi()||pi()}function bi(){return t7()||gi()}var _i=function(t){return t.label},vi=function(t){return t.label},Ci=function(t){return t.value},yi=function(t){return!!t.isDisabled},Ii={clearIndicator:na,container:Ho,control:ca,dropdownIndicator:ta,group:fa,groupHeading:ha,indicatorsContainer:Jo,indicatorSeparator:oa,input:_a,loadingIndicator:qa,loadingMessage:ko,menu:No,menuList:Fo,menuPortal:Vo,multiValue:Ea,multiValueLabel:Aa,multiValueRemove:Ra,noOptionsMessage:Go,option:Na,placeholder:Pa,singleValue:Ga,valueContainer:Zo},Ei={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ai=4,l7=4,Ri=38,Si=l7*2,Oi={baseUnit:l7,controlHeight:Ri,menuGutter:Si},N3={borderRadius:Ai,colors:Ei,spacing:Oi},zi={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Z8(),captureMenuScroll:!Z8(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:li(),formatGroupLabel:_i,getOptionLabel:vi,getOptionValue:Ci,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:yi,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!yo(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var l=t.count;return"".concat(l," result").concat(l!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function o9(e,t,l,r){var n=o7(e,t,l),o=a7(e,t,l),a=r7(e,t),q=Z2(e,t);return{type:"option",data:t,isDisabled:n,isSelected:o,label:a,value:q,index:r}}function z2(e,t){return e.options.map(function(l,r){if("options"in l){var n=l.options.map(function(a,q){return o9(e,a,t,q)}).filter(function(a){return i9(e,a)});return n.length>0?{type:"group",data:l,options:n,index:r}:void 0}var o=o9(e,l,t,r);return i9(e,o)?o:void 0}).filter(Ao)}function n7(e){return e.reduce(function(t,l){return l.type==="group"?t.push.apply(t,A6(l.options.map(function(r){return r.data}))):t.push(l.data),t},[])}function a9(e,t){return e.reduce(function(l,r){return r.type==="group"?l.push.apply(l,A6(r.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(r.index,"-").concat(n.index)}}))):l.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),l},[])}function wi(e,t){return n7(z2(e,t))}function i9(e,t){var l=e.inputValue,r=l===void 0?"":l,n=t.data,o=t.isSelected,a=t.label,q=t.value;return(!q7(e)||!o)&&i7(e,{label:a,value:q,data:n},r)}function Ti(e,t){var l=e.focusedValue,r=e.selectValue,n=r.indexOf(l);if(n>-1){var o=t.indexOf(l);if(o>-1)return l;if(n<t.length)return t[n]}return null}function Ni(e,t){var l=e.focusedOption;return l&&t.indexOf(l)>-1?l:t[0]}var M3=function(t,l){var r,n=(r=t.find(function(o){return o.data===l}))===null||r===void 0?void 0:r.id;return n||null},r7=function(t,l){return t.getOptionLabel(l)},Z2=function(t,l){return t.getOptionValue(l)};function o7(e,t,l){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,l):!1}function a7(e,t,l){if(l.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,l);var r=Z2(e,t);return l.some(function(n){return Z2(e,n)===r})}function i7(e,t,l){return e.filterOption?e.filterOption(t,l):!0}var q7=function(t){var l=t.hideSelectedOptions,r=t.isMulti;return l===void 0?r:l},Mi=1,s7=function(e){$n(l,e);var t=er(l);function l(r){var n;if(Jn(this,l),n=t.call(this,r),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.controlRef=null,n.getControlRef=function(i){n.controlRef=i},n.focusedOptionRef=null,n.getFocusedOptionRef=function(i){n.focusedOptionRef=i},n.menuListRef=null,n.getMenuListRef=function(i){n.menuListRef=i},n.inputRef=null,n.getInputRef=function(i){n.inputRef=i},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(i,s){var c=n.props,u=c.onChange,_=c.name;s.name=_,n.ariaOnChange(i,s),u(i,s)},n.setValue=function(i,s,c){var u=n.props,_=u.closeMenuOnSelect,A=u.isMulti,v=u.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:v}),_&&(n.setState({inputIsHiddenAfterUpdate:!A}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(i,{action:s,option:c})},n.selectOption=function(i){var s=n.props,c=s.blurInputOnSelect,u=s.isMulti,_=s.name,A=n.state.selectValue,v=u&&n.isOptionSelected(i,A),b=n.isOptionDisabled(i,A);if(v){var h=n.getOptionValue(i);n.setValue(A.filter(function(d){return n.getOptionValue(d)!==h}),"deselect-option",i)}else if(!b)u?n.setValue([].concat(A6(A),[i]),"select-option",i):n.setValue(i,"select-option");else{n.ariaOnChange(i,{action:"select-option",option:i,name:_});return}c&&n.blurInput()},n.removeValue=function(i){var s=n.props.isMulti,c=n.state.selectValue,u=n.getOptionValue(i),_=c.filter(function(v){return n.getOptionValue(v)!==u}),A=C2(s,_,_[0]||null);n.onChange(A,{action:"remove-value",removedValue:i}),n.focusInput()},n.clearValue=function(){var i=n.state.selectValue;n.onChange(C2(n.props.isMulti,[],null),{action:"clear",removedValues:i})},n.popValue=function(){var i=n.props.isMulti,s=n.state.selectValue,c=s[s.length-1],u=s.slice(0,s.length-1),_=C2(i,u,u[0]||null);c&&n.onChange(_,{action:"pop-value",removedValue:c})},n.getFocusedOptionId=function(i){return M3(n.state.focusableOptionsWithIds,i)},n.getFocusableOptionsWithIds=function(){return a9(z2(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return go.apply(void 0,[n.props.classNamePrefix].concat(s))},n.getOptionLabel=function(i){return r7(n.props,i)},n.getOptionValue=function(i){return Z2(n.props,i)},n.getStyles=function(i,s){var c=n.props.unstyled,u=Ii[i](s,c);u.boxSizing="border-box";var _=n.props.styles[i];return _?_(u,s):u},n.getClassNames=function(i,s){var c,u;return(c=(u=n.props.classNames)[i])===null||c===void 0?void 0:c.call(u,s)},n.getElementId=function(i){return"".concat(n.state.instancePrefix,"-").concat(i)},n.getComponents=function(){return Va(n.props)},n.buildCategorizedOptions=function(){return z2(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return n7(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(i,s){n.setState({ariaSelection:x1({value:i},s)})},n.onMenuMouseDown=function(i){i.button===0&&(i.stopPropagation(),i.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(i){n.blockOptionHover=!1},n.onControlMouseDown=function(i){if(!i.defaultPrevented){var s=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&n.onMenuClose():s&&n.openMenu("first"):(s&&(n.openAfterFocus=!0),n.focusInput()),i.target.tagName!=="INPUT"&&i.target.tagName!=="TEXTAREA"&&i.preventDefault()}},n.onDropdownIndicatorMouseDown=function(i){if(!(i&&i.type==="mousedown"&&i.button!==0)&&!n.props.isDisabled){var s=n.props,c=s.isMulti,u=s.menuIsOpen;n.focusInput(),u?(n.setState({inputIsHiddenAfterUpdate:!c}),n.onMenuClose()):n.openMenu("first"),i.preventDefault()}},n.onClearIndicatorMouseDown=function(i){i&&i.type==="mousedown"&&i.button!==0||(n.clearValue(),i.preventDefault(),n.openAfterFocus=!1,i.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(i){typeof n.props.closeMenuOnScroll=="boolean"?i.target instanceof HTMLElement&&o3(i.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(i)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(i){var s=i.touches,c=s&&s.item(0);c&&(n.initialTouchX=c.clientX,n.initialTouchY=c.clientY,n.userIsDragging=!1)},n.onTouchMove=function(i){var s=i.touches,c=s&&s.item(0);if(c){var u=Math.abs(c.clientX-n.initialTouchX),_=Math.abs(c.clientY-n.initialTouchY),A=5;n.userIsDragging=u>A||_>A}},n.onTouchEnd=function(i){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(i.target)&&n.menuListRef&&!n.menuListRef.contains(i.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(i){n.userIsDragging||n.onControlMouseDown(i)},n.onClearIndicatorTouchEnd=function(i){n.userIsDragging||n.onClearIndicatorMouseDown(i)},n.onDropdownIndicatorTouchEnd=function(i){n.userIsDragging||n.onDropdownIndicatorMouseDown(i)},n.handleInputChange=function(i){var s=n.props.inputValue,c=i.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(c,{action:"input-change",prevInputValue:s}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(i){n.props.onFocus&&n.props.onFocus(i),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(i){var s=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(i),n.onInputChange("",{action:"input-blur",prevInputValue:s}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(i){if(!(n.blockOptionHover||n.state.focusedOption===i)){var s=n.getFocusableOptions(),c=s.indexOf(i);n.setState({focusedOption:i,focusedOptionId:c>-1?n.getFocusedOptionId(i):null})}},n.shouldHideSelectedOptions=function(){return q7(n.props)},n.onValueInputFocus=function(i){i.preventDefault(),i.stopPropagation(),n.focus()},n.onKeyDown=function(i){var s=n.props,c=s.isMulti,u=s.backspaceRemovesValue,_=s.escapeClearsValue,A=s.inputValue,v=s.isClearable,b=s.isDisabled,h=s.menuIsOpen,d=s.onKeyDown,y=s.tabSelectsValue,f=s.openMenuOnFocus,m=n.state,p=m.focusedOption,E=m.focusedValue,S=m.selectValue;if(!b&&!(typeof d=="function"&&(d(i),i.defaultPrevented))){switch(n.blockOptionHover=!0,i.key){case"ArrowLeft":if(!c||A)return;n.focusValue("previous");break;case"ArrowRight":if(!c||A)return;n.focusValue("next");break;case"Delete":case"Backspace":if(A)return;if(E)n.removeValue(E);else{if(!u)return;c?n.popValue():v&&n.clearValue()}break;case"Tab":if(n.isComposing||i.shiftKey||!h||!y||!p||f&&n.isOptionSelected(p,S))return;n.selectOption(p);break;case"Enter":if(i.keyCode===229)break;if(h){if(!p||n.isComposing)return;n.selectOption(p);break}return;case"Escape":h?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:A}),n.onMenuClose()):v&&_&&n.clearValue();break;case" ":if(A)return;if(!h){n.openMenu("first");break}if(!p)return;n.selectOption(p);break;case"ArrowUp":h?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":h?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!h)return;n.focusOption("pageup");break;case"PageDown":if(!h)return;n.focusOption("pagedown");break;case"Home":if(!h)return;n.focusOption("first");break;case"End":if(!h)return;n.focusOption("last");break;default:return}i.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++Mi),n.state.selectValue=H8(r.value),r.menuIsOpen&&n.state.selectValue.length){var o=n.getFocusableOptionsWithIds(),a=n.buildFocusableOptions(),q=a.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=o,n.state.focusedOption=a[q],n.state.focusedOptionId=M3(o,a[q])}return n}return Un(l,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&X8(this.menuListRef,this.focusedOptionRef),bi()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(n){var o=this.props,a=o.isDisabled,q=o.menuIsOpen,i=this.state.isFocused;(i&&!a&&n.isDisabled||i&&q&&!n.menuIsOpen)&&this.focusInput(),i&&a&&!n.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!a&&n.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(X8(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(n,o){this.props.onInputChange(n,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(n){var o=this,a=this.state,q=a.selectValue,i=a.isFocused,s=this.buildFocusableOptions(),c=n==="first"?0:s.length-1;if(!this.props.isMulti){var u=s.indexOf(q[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[c],focusedOptionId:this.getFocusedOptionId(s[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(n){var o=this.state,a=o.selectValue,q=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=a.indexOf(q);q||(i=-1);var s=a.length-1,c=-1;if(a.length){switch(n){case"previous":i===0?c=0:i===-1?c=s:c=i-1;break;case"next":i>-1&&i<s&&(c=i+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:a[c]})}}}},{key:"focusOption",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,q=this.getFocusableOptions();if(q.length){var i=0,s=q.indexOf(a);a||(s=-1),n==="up"?i=s>0?s-1:q.length-1:n==="down"?i=(s+1)%q.length:n==="pageup"?(i=s-o,i<0&&(i=0)):n==="pagedown"?(i=s+o,i>q.length-1&&(i=q.length-1)):n==="last"&&(i=q.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:q[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(q[i])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(N3):x1(x1({},N3),this.props.theme):N3}},{key:"getCommonProps",value:function(){var n=this.clearValue,o=this.cx,a=this.getStyles,q=this.getClassNames,i=this.getValue,s=this.selectOption,c=this.setValue,u=this.props,_=u.isMulti,A=u.isRtl,v=u.options,b=this.hasValue();return{clearValue:n,cx:o,getStyles:a,getClassNames:q,getValue:i,hasValue:b,isMulti:_,isRtl:A,options:v,selectOption:s,selectProps:u,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var n=this.state.selectValue;return n.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var n=this.props,o=n.isClearable,a=n.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(n,o){return o7(this.props,n,o)}},{key:"isOptionSelected",value:function(n,o){return a7(this.props,n,o)}},{key:"filterOption",value:function(n,o){return i7(this.props,n,o)}},{key:"formatOptionLabel",value:function(n,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,q=this.state.selectValue;return this.props.formatOptionLabel(n,{context:o,inputValue:a,selectValue:q})}else return this.getOptionLabel(n)}},{key:"formatGroupLabel",value:function(n){return this.props.formatGroupLabel(n)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var n=this.props,o=n.isDisabled,a=n.isSearchable,q=n.inputId,i=n.inputValue,s=n.tabIndex,c=n.form,u=n.menuIsOpen,_=n.required,A=this.getComponents(),v=A.Input,b=this.state,h=b.inputIsHidden,d=b.ariaSelection,y=this.commonProps,f=q||this.getElementId("input"),m=x1(x1(x1({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":_,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(d==null?void 0:d.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?c1.createElement(v,h1({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:o,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:c,type:"text",value:i},m)):c1.createElement(ri,h1({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:H2,onFocus:this.onInputFocus,disabled:o,tabIndex:s,inputMode:"none",form:c,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var n=this,o=this.getComponents(),a=o.MultiValue,q=o.MultiValueContainer,i=o.MultiValueLabel,s=o.MultiValueRemove,c=o.SingleValue,u=o.Placeholder,_=this.commonProps,A=this.props,v=A.controlShouldRenderValue,b=A.isDisabled,h=A.isMulti,d=A.inputValue,y=A.placeholder,f=this.state,m=f.selectValue,p=f.focusedValue,E=f.isFocused;if(!this.hasValue()||!v)return d?null:c1.createElement(u,h1({},_,{key:"placeholder",isDisabled:b,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),y);if(h)return m.map(function(L,B){var V=L===p,e1="".concat(n.getOptionLabel(L),"-").concat(n.getOptionValue(L));return c1.createElement(a,h1({},_,{components:{Container:q,Label:i,Remove:s},isFocused:V,isDisabled:b,key:e1,index:B,removeProps:{onClick:function(){return n.removeValue(L)},onTouchEnd:function(){return n.removeValue(L)},onMouseDown:function(r1){r1.preventDefault()}},data:L}),n.formatOptionLabel(L,"value"))});if(d)return null;var S=m[0];return c1.createElement(c,h1({},_,{data:S,isDisabled:b}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var n=this.getComponents(),o=n.ClearIndicator,a=this.commonProps,q=this.props,i=q.isDisabled,s=q.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||i||!this.hasValue()||s)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c1.createElement(o,h1({},a,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var n=this.getComponents(),o=n.LoadingIndicator,a=this.commonProps,q=this.props,i=q.isDisabled,s=q.isLoading,c=this.state.isFocused;if(!o||!s)return null;var u={"aria-hidden":"true"};return c1.createElement(o,h1({},a,{innerProps:u,isDisabled:i,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator,a=n.IndicatorSeparator;if(!o||!a)return null;var q=this.commonProps,i=this.props.isDisabled,s=this.state.isFocused;return c1.createElement(a,h1({},q,{isDisabled:i,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var n=this.getComponents(),o=n.DropdownIndicator;if(!o)return null;var a=this.commonProps,q=this.props.isDisabled,i=this.state.isFocused,s={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c1.createElement(o,h1({},a,{innerProps:s,isDisabled:q,isFocused:i}))}},{key:"renderMenu",value:function(){var n=this,o=this.getComponents(),a=o.Group,q=o.GroupHeading,i=o.Menu,s=o.MenuList,c=o.MenuPortal,u=o.LoadingMessage,_=o.NoOptionsMessage,A=o.Option,v=this.commonProps,b=this.state.focusedOption,h=this.props,d=h.captureMenuScroll,y=h.inputValue,f=h.isLoading,m=h.loadingMessage,p=h.minMenuHeight,E=h.maxMenuHeight,S=h.menuIsOpen,L=h.menuPlacement,B=h.menuPosition,V=h.menuPortalTarget,e1=h.menuShouldBlockScroll,X=h.menuShouldScrollIntoView,r1=h.noOptionsMessage,K=h.onMenuScrollToTop,l1=h.onMenuScrollToBottom;if(!S)return null;var $=function(H,O){var R=H.type,g=H.data,x=H.isDisabled,z=H.isSelected,Z=H.label,k=H.value,t1=b===g,T=x?void 0:function(){return n.onOptionHover(g)},n1=x?void 0:function(){return n.selectOption(g)},U="".concat(n.getElementId("option"),"-").concat(O),Y={id:U,onClick:n1,onMouseMove:T,onMouseOver:T,tabIndex:-1,role:"option","aria-selected":n.state.isAppleDevice?void 0:z};return c1.createElement(A,h1({},v,{innerProps:Y,data:g,isDisabled:x,isSelected:z,key:U,label:Z,type:R,value:k,isFocused:t1,innerRef:t1?n.getFocusedOptionRef:void 0}),n.formatOptionLabel(H.data,"menu"))},J;if(this.hasOptions())J=this.getCategorizedOptions().map(function(W){if(W.type==="group"){var H=W.data,O=W.options,R=W.index,g="".concat(n.getElementId("group"),"-").concat(R),x="".concat(g,"-heading");return c1.createElement(a,h1({},v,{key:g,data:H,options:O,Heading:q,headingProps:{id:x,data:W.data},label:n.formatGroupLabel(W.data)}),W.options.map(function(z){return $(z,"".concat(R,"-").concat(z.index))}))}else if(W.type==="option")return $(W,"".concat(W.index))});else if(f){var j=m({inputValue:y});if(j===null)return null;J=c1.createElement(u,v,j)}else{var q1=r1({inputValue:y});if(q1===null)return null;J=c1.createElement(_,v,q1)}var G={minMenuHeight:p,maxMenuHeight:E,menuPlacement:L,menuPosition:B,menuShouldScrollIntoView:X},P=c1.createElement(Mo,h1({},v,G),function(W){var H=W.ref,O=W.placerProps,R=O.placement,g=O.maxHeight;return c1.createElement(i,h1({},v,G,{innerRef:H,innerProps:{onMouseDown:n.onMenuMouseDown,onMouseMove:n.onMenuMouseMove},isLoading:f,placement:R}),c1.createElement(ui,{captureEnabled:d,onTopArrive:K,onBottomArrive:l1,lockEnabled:e1},function(x){return c1.createElement(s,h1({},v,{innerRef:function(Z){n.getMenuListRef(Z),x(Z)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:n.getElementId("listbox")},isLoading:f,maxHeight:g,focusedOption:b}),J)}))});return V||B==="fixed"?c1.createElement(c,h1({},v,{appendTo:V,controlElement:this.controlRef,menuPlacement:L,menuPosition:B}),P):P}},{key:"renderFormField",value:function(){var n=this,o=this.props,a=o.delimiter,q=o.isDisabled,i=o.isMulti,s=o.name,c=o.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!q)return c1.createElement(xi,{name:s,onFocus:this.onValueInputFocus});if(!(!s||q))if(i)if(a){var _=u.map(function(b){return n.getOptionValue(b)}).join(a);return c1.createElement("input",{name:s,type:"hidden",value:_})}else{var A=u.length>0?u.map(function(b,h){return c1.createElement("input",{key:"i-".concat(h),name:s,type:"hidden",value:n.getOptionValue(b)})}):c1.createElement("input",{name:s,type:"hidden",value:""});return c1.createElement("div",null,A)}else{var v=u[0]?this.getOptionValue(u[0]):"";return c1.createElement("input",{name:s,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var n=this.commonProps,o=this.state,a=o.ariaSelection,q=o.focusedOption,i=o.focusedValue,s=o.isFocused,c=o.selectValue,u=this.getFocusableOptions();return c1.createElement(Qa,h1({},n,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:q,focusedValue:i,isFocused:s,selectValue:c,focusableOptions:u,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var n=this.getComponents(),o=n.Control,a=n.IndicatorsContainer,q=n.SelectContainer,i=n.ValueContainer,s=this.props,c=s.className,u=s.id,_=s.isDisabled,A=s.menuIsOpen,v=this.state.isFocused,b=this.commonProps=this.getCommonProps();return c1.createElement(q,h1({},b,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:_,isFocused:v}),this.renderLiveRegion(),c1.createElement(o,h1({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:_,isFocused:v,menuIsOpen:A}),c1.createElement(i,h1({},b,{isDisabled:_}),this.renderPlaceholderOrValue(),this.renderInput()),c1.createElement(a,h1({},b,{isDisabled:_}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(n,o){var a=o.prevProps,q=o.clearFocusValueOnUpdate,i=o.inputIsHiddenAfterUpdate,s=o.ariaSelection,c=o.isFocused,u=o.prevWasFocused,_=o.instancePrefix,A=n.options,v=n.value,b=n.menuIsOpen,h=n.inputValue,d=n.isMulti,y=H8(v),f={};if(a&&(v!==a.value||A!==a.options||b!==a.menuIsOpen||h!==a.inputValue)){var m=b?wi(n,y):[],p=b?a9(z2(n,y),"".concat(_,"-option")):[],E=q?Ti(o,y):null,S=Ni(o,m),L=M3(p,S);f={selectValue:y,focusedOption:S,focusedOptionId:L,focusableOptionsWithIds:p,focusedValue:E,clearFocusValueOnUpdate:!1}}var B=i!=null&&n!==a?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},V=s,e1=c&&u;return c&&!e1&&(V={value:C2(d,y,y[0]||null),options:y,action:"initial-input-focus"},e1=!u),(s==null?void 0:s.action)==="initial-input-focus"&&(V=null),x1(x1(x1({},f),B),{},{prevProps:n,ariaSelection:V,prevWasFocused:e1})}}]),l}(C.Component);s7.defaultProps=zi;var Li=C.forwardRef(function(e,t){var l=Yn(e);return c1.createElement(s7,h1({ref:t},l))}),w2=Li;const Pi=({show:e,onHide:t,amenity:l,selectedAmenityMapObjName:r,mapObjectName:n,onClickMapObj:o,allSvgObjectIds:a})=>{const{mapConfig:q,allIndexedMapObjects:i,allIndexedRetailers:s}=Q1(),[c,u]=C.useState(),[_,A]=C.useState([]),[v,b]=C.useState([]),[h,d]=C.useState(-1);C.useEffect(()=>{if(n){const E=i[n];if(E&&E.retailer_id){const S=s[E.retailer_id];S&&u(S)}}else u(void 0)},[i,s,n]);const y=E=>{E.preventDefault(),E.stopPropagation();let S;if(q.KIOSK_ID?S=Object.values(i).filter(B=>B.kiosk_id===q.KIOSK_ID&&a.has(B.map_obj_name))[0]:S=Object.values(i).filter(B=>B.retailer_id===h&&a.has(B.map_obj_name))[0],!S){console.error("Map object not found");return}l?o(S.map_obj_name,r):o(S.map_obj_name)};C.useEffect(()=>{const E=new Set(Object.values(i).filter(L=>L.retailer_id!==null).filter(L=>a.has(L.map_obj_name)).map(L=>L.retailer_id)),S=Array.from(E).map(L=>s[L]).filter(Boolean).sort((L,B)=>L.retail_name.localeCompare(B.retail_name));b(S.map(L=>L.global_retailer_id)),A(S)},[i,s,a]);const f=C.useMemo(()=>_.filter(S=>!(c&&S.id===c.id)).map(S=>{const B=v.filter(V=>V===S.global_retailer_id).length>1&&S.location?`${S.retail_name} (${S.location})`:S.retail_name;return{value:S.id,label:B}}),[_,v,c]),m=C.useMemo(()=>f.find(E=>E.value===h)||null,[f,h]),p=E=>{d((E==null?void 0:E.value)??-1)};return e?M.jsxs(T8,{show:e,dialogClassName:t4.retailerInfoModal,className:"px-2",onHide:t,centered:!0,scrollable:!0,unmountOnClose:!0,onExited:()=>d(-1),children:[M.jsx("div",{className:t4.retailerInfoCloseBtn,children:M.jsx(E6,{onClick:t,size:24,color:"white",className:t4.closeBtn})}),M.jsxs(T8.Body,{className:t4.modalBody,children:[M.jsx("div",{className:t4.contentWrapper,children:c?M.jsxs("div",{className:t4.content,children:[M.jsx("div",{className:t4.retailerLogo,children:M.jsx("img",{className:t4.img,src:c.logo,alt:c.retail_name})}),M.jsxs("div",{className:t4.retailerInfoContent,children:[M.jsxs("div",{children:[M.jsx("b",{children:"Retailer:"})," ",c.retail_name]}),c.location&&M.jsxs("div",{children:[M.jsx("b",{children:"Location:"})," ",c.location]}),c.retailer_phone&&M.jsxs("div",{children:[M.jsx("b",{children:"Phone:"})," ",M.jsx("a",{href:`tel:${c.retailer_phone}`,children:B7(c.retailer_phone)})]}),c.retailer_description&&M.jsx("div",{dangerouslySetInnerHTML:{__html:c.retailer_description}})]})]}):null}),M.jsxs(Kl,{className:t4.getDirectionsFrom,children:[M.jsx(w2,{name:"retailer",className:t4.retailerDropdown,classNamePrefix:"react-select",menuPortalTarget:typeof document<"u"?document.body:void 0,"aria-label":"Choose a Retailer",options:f,isLoading:!1,noOptionsMessage:()=>"Retailer not found",placeholder:"Get direction from ...",value:m,onChange:p,styles:{menuPortal:E=>({...E,zIndex:2e3}),menu:E=>({...E,zIndex:2e3})},isClearable:!0}),M.jsx("button",{type:"button",disabled:h===-1,onClick:y,className:t4.btn,children:"Map IT"})]})]})]}):null};var Fi=["color","size","title","className"];function e6(){return e6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var r in l)({}).hasOwnProperty.call(l,r)&&(e[r]=l[r])}return e},e6.apply(null,arguments)}function Bi(e,t){if(e==null)return{};var l,r,n=Gi(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)l=o[r],t.indexOf(l)===-1&&{}.propertyIsEnumerable.call(e,l)&&(n[l]=e[l])}return n}function Gi(e,t){if(e==null)return{};var l={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;l[r]=e[r]}return l}var c7=C.forwardRef(function(e,t){var l=e.color,r=l===void 0?"currentColor":l,n=e.size,o=n===void 0?"1em":n,a=e.title,q=a===void 0?null:a,i=e.className,s=i===void 0?"":i,c=Bi(e,Fi);return C.createElement("svg",e6({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:o,height:o,fill:r,className:["bi","bi-arrow-clockwise",s].filter(Boolean).join(" ")},c),q?C.createElement("title",null,q):null,C.createElement("path",{fillRule:"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"}),C.createElement("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"}))});c7.propTypes={color:d1.string,size:d1.oneOfType([d1.string,d1.number]),title:d1.string,className:d1.string};const ki="_sidebarComp_1b6ud_1",Di="_sidebarFields_1b6ud_2",ji="_tabOptions_1b6ud_7",Vi="_mainBtnsGroup_1b6ud_12",Wi="_deleteBtn_1b6ud_17",Hi="_btnsGroup_1b6ud_27",Xi="_active_1b6ud_38",Zi="_sidebarField_1b6ud_2",Yi="_label_1b6ud_50",Ji="_fieldWrapper_1b6ud_56",Ui="_numberFieldGroup_1b6ud_62",$i="_button_1b6ud_68",Qi="_decrement_1b6ud_78",Ki="_increment_1b6ud_84",eq="_input_1b6ud_95",tq="_colorFieldGroup_1b6ud_104",lq="_colorField_1b6ud_104",nq="_inputField_1b6ud_118",rq="_rotateButton_1b6ud_130",oq="_selectField_1b6ud_148",aq="_textareaField_1b6ud_179",iq="_textField_1b6ud_187",i1={sidebarComp:ki,sidebarFields:Di,tabOptions:ji,mainBtnsGroup:Vi,deleteBtn:Wi,btnsGroup:Hi,active:Xi,sidebarField:Zi,label:Yi,fieldWrapper:Ji,numberFieldGroup:Ui,button:$i,decrement:Qi,increment:Ki,input:eq,colorFieldGroup:tq,colorField:lq,inputField:nq,rotateButton:rq,selectField:oq,textareaField:aq,textField:iq},qq=e=>{const{setData:t,selectedId:l,floorIndex:r,onObjectResetData:n,onObjectChangeData:o,onObjectNewData:a,triggerSceneUpdate:q}=e,{mapApiResponse:i,meshObject:s,allIndexedRetailers:c}=Q1(),{getImage:u,processImage:_,layer_text_logo_position_by_id:A}=j9(),{getMaterial:v}=$2(),b=S4.useFont(s9),[h,d]=C.useState("retailer"),[y,f]=C.useState("retail_name"),[m,p]=C.useState(y2),[E,S]=C.useState(null),[,L]=C.useTransition(),B=C.useRef({}),[V,e1]=C.useState([]),X=C.useCallback(N=>{if(N){const D=N.reduce((w,I)=>I.kiosk_id!==null?[...w,I.kiosk_id]:w,[]);e1([...D])}},[]);C.useEffect(()=>{X(i.map_objs)},[i,X]);const r1=(N,D,w)=>{const I=N.userData.kioskConfig;I?(N.userData.distanceFactor=D!=null&&D.lock_size?1500:void 0,N.userData.kioskConfig={...I,lockSize:D.lock_size,blink:I.blink,size:Number(D.size),floorIndex:w,text_color:D.text_color}):N.userData.kioskConfig={lockSize:D.lock_size,blink:!1,size:Number(D.size),floorIndex:w,text_color:D.text_color}},K=C.useCallback(async(N,D)=>{if(E!==(N==null?void 0:N.map_obj_name))return;let w="";N.layer_type==="retail_logo"?w=await u(N,c[N.retailer_id||0]):w=await u(N),w&&_(w,N,(I,o1)=>{D.geometry=I,D.material=o1;const s1=I.boundingBox,b1=new Q.Vector3;if(s1){s1.getCenter(b1);const _1=new Q.Vector3;s1.getSize(_1),D.object_id&&A(D.object_id,b1,_1,D,{[D.object_id]:{...N}})}})},[u,A,E,_,c]),l1=C.useCallback((N,D)=>{e.meshFloors.meshParams.flat().filter(w=>w!==void 0).forEach(w=>{w.mesh.object_id===D&&(w.mesh.userData.storeName=N)})},[e.meshFloors.meshParams]),$=C.useCallback((N,D,w)=>{if(!N||E!==(m==null?void 0:m.map_obj_name))return;let I=new k9(D,{font:N.userData&&N.userData.font?N.userData.font:b,size:w,height:.01,curveSegments:4});I.center(),N.geometry&&N.geometry.dispose(),N.geometry=I,l1(D,m.map_obj_name)},[m==null?void 0:m.map_obj_name,b,E,l1]),J=C.useCallback((N,D=!1)=>{const w=i.map_objs.findIndex(I=>I.map_obj_name===N.map_obj_name);w!==-1?(N.id=i.map_objs[w].id,i.map_objs[w]={...N},t(w,{...N}),X(i.map_objs),D&&(o==null||o(N))):D&&(a==null||a(N))},[i,t,X,a,o]),j=()=>{if(s){const N=s.textImageMeshObject;N&&N.userData&&N.userData.kioskConfig&&(N.userData.kioskConfig=null,e.meshFloors.storeLogos.flat().filter(D=>D!==void 0).forEach(D=>{D.storeLogo.object_id===N.object_id&&D.storeLogo.userData.kioskConfig!==void 0&&(D.storeLogo.userData.kioskConfig=null)}))}},q1=N=>{if(d(N),m.obj_type=N,j(),N==="retailer"&&(["retail_name","retail_logo","retail_text"].includes(y)||G("retail_name"),m.kiosk_id=null),N==="special"&&(["kiosk","amenity"].includes(y)||G("kiosk"),m.retailer_id=null,s)){const D=s.textImageMeshObject;$(D,"",m.size)}N==="custom"&&(["custom_text","custom_image"].includes(y)||G("custom_text"),m.retailer_id=null,m.kiosk_id=null),R("size",m.size.toString()),R("text_color",m.text_color||i.mapSettings.apiResponse.STORE_TEXT_COLOR),p({...m}),J({...m})},G=N=>{m&&(f(N),m.layer_type=N,j(),N==="retail_name"||N==="retail_logo"||N==="retail_text"||(N==="kiosk"?(m.value="",s&&K(m,s.textImageMeshObject)):N==="amenity"&&(m.kiosk_id=null)),R("size",m.size.toString()),p({...m}),J({...m}))},P=()=>{m&&(Object.assign(m,y2,{id:m.id,map_obj_name:m.map_obj_name}),q1("retailer"),G("retail_name"),l1("",m.map_obj_name),n&&n({...m}))},W=(N,D)=>{N&&m&&(m.retailer_id=N.value,G(m.layer_type),p({...m}),J({...m},!0))},H=(N,D)=>{N&&m&&(m.kiosk_id=N.value,p({...m}),J({...m},!0),s&&(r1(s.textImageMeshObject,m,r),q()))},O=(N,D)=>{N&&m&&(m.value=N.value,p({...m}),J({...m},!0),s&&K(m,s.textImageMeshObject))},R=C.useCallback((N,D)=>{var w,I,o1;if(m&&s){const s1=s.textImageMeshObject,b1=new Q.Vector3,_1=s.svgShapeMeshObject.geometry.boundingBox;switch(_1&&_1.getCenter(b1),N){case"custom_text":m.custom_text=D,["retail_text","custom_text"].includes(m.layer_type)&&$(s1,m.custom_text,m.size);break;case"custom_image":m.custom_image=D,K(m,s1),J({...m},!0);break;case"size":if(m.size=parseInt(D),["retail_logo","kiosk","amenity","custom_image"].includes(m.layer_type))m.layer_type==="retail_logo"||m.layer_type==="custom_image"?(K(m,s1),setTimeout(()=>{J({...m},!0)},300)):m.layer_type==="amenity"?(K(m,s1),L(()=>{p({...m}),J({...m},!0)})):m.kiosk_id&&m.layer_type==="kiosk"&&(r1(s1,m,r),q());else{let S1="";m.layer_type==="retail_name"&&((w=c[m.retailer_id||0])!=null&&w.retail_name)?S1=(I=c[m.retailer_id||0])==null?void 0:I.retail_name:["retail_text","custom_text"].includes(m.layer_type)&&(S1=m.custom_text),$(s1,S1||"",m.size)}break;case"lock_size":m.lock_size=!1,m.value=D,m.layer_type==="kiosk"&&(r1(s1,m,r),q());break;case"rotate":m.rotate=parseInt(D),s1.rotation.set(s1.rotation.x,s1.rotation.y,m.rotate*Math.PI/180);break;case"offset_x":b1.x+=parseFloat(D),s1.position.setX(b1.x),m.offset_x=parseInt(D);break;case"offset_y":b1.y+=parseFloat(D),s1.position.setY(b1.y),m.offset_y=parseInt(D);break;case"bg_color":m.bg_color=D,(o1=s1.object_id)!=null&&o1.startsWith("big-store"),s.svgShapeMeshObject.material.colorDefault=O1(m.bg_color);break;case"text_color":if(m.text_color=D,["retail_name","retail_text","custom_text"].includes(m.layer_type)){const S1={color:m.text_color,transparent:!0,side:Q.DoubleSide,depthWrite:!1,depthTest:!1};let F1=new Q.MeshPhongMaterial(S1);s1.material=F1}else(m.layer_type==="retail_logo"||m.layer_type==="custom_image"||m.obj_type==="special"&&m.layer_type==="kiosk"&&m.kiosk_id!=null||m.obj_type==="special"&&m.layer_type==="amenity"&&m.value!==null)&&(K(m,s1),m.layer_type==="kiosk"&&r1(s1,m,r),L(()=>{J({...m,text_color:m.text_color&&m.text_color.replace("#","")},!0)}));break}L(()=>{p({...m}),J({...m},!0)})}},[r,m,v,K,$,i.retailers,s,q,J]),g=C.useCallback(N=>{const D=N.target;R(D.name,D.value)},[R]);C.useEffect(()=>{if(l){const N=i.map_objs.findIndex(D=>D.map_obj_name===l);if(N!==-1){const D={...i.map_objs[N]};p(D),d(D.obj_type),f(D.layer_type)}else p({...y2,map_obj_name:l,id:new Date().getTime()})}},[i,l]),C.useEffect(()=>{m&&S(m.map_obj_name)},[m]);const x=N=>{m&&Object.hasOwn(m,N)&&R(N,(m[N]-1).toString())},z=N=>{m&&Object.hasOwn(m,N)&&R(N,(m[N]+1).toString())},Z=(N,D=45)=>{if(m&&Object.hasOwn(m,N)){let w=m[N];const I=w%D;I!==0&&(w-=I),w+=D,w>360?w=D:w===360&&(w=0),R(N,w.toString())}},k=N=>{const D=window.setInterval(()=>{x(N)},200);B.current[N]=D},t1=N=>{const D=window.setInterval(()=>{z(N)},200);B.current[N]=D},T=N=>{B.current[N]&&(clearInterval(B.current[N]),B.current[N]=null)},n1=(i==null?void 0:i.retailers.map(N=>({value:N.id,label:(i==null?void 0:i.globalRetailerIds.filter(D=>D===N.global_retailer_id).length)>1?`${N.retail_name} (${N.location})`:N.retail_name})))||[],U=(i==null?void 0:i.kiosks.map(N=>({value:N.id,label:N.name,isDisabled:V.includes(N.id)})))||[],Y=i2.map(N=>({value:N.type,label:N.name}))||[];return m?M.jsx("div",{className:`sidebarComp ${i1.sidebarComp}`,children:M.jsxs("div",{className:i1.sidebarFields,children:[M.jsxs("div",{className:i1.tabOptions,children:[M.jsxs("div",{className:i1.mainBtnsGroup,children:[M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>q1("retailer"),className:h==="retailer"?i1.active:"",children:"Retailer"}),M.jsx("button",{onClick:()=>q1("special"),className:h==="special"?i1.active:"",children:"Special"}),M.jsx("button",{onClick:()=>q1("custom"),className:h==="custom"?i1.active:"",children:"Custom"})]}),M.jsx("button",{className:i1.deleteBtn,onClick:P,children:"Delete"})]}),h==="retailer"&&M.jsxs(M.Fragment,{children:[M.jsx(w2,{className:i1.selectField,classNamePrefix:"custom",menuPortalTarget:document.body,"aria-label":"Choose a Retailer",options:n1,isLoading:!1,noOptionsMessage:()=>"Retailers not found",placeholder:"Choose a Retailer...",value:n1.find(N=>N.value===m.retailer_id)||null,onChange:W}),m.retailer_id>0&&M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>G("retail_name"),className:y==="retail_name"?i1.active:"",children:"Retail Name"}),M.jsx("button",{onClick:()=>G("retail_logo"),className:y==="retail_logo"?i1.active:"",children:"Retail Logo"}),M.jsx("button",{onClick:()=>G("retail_text"),className:y==="retail_text"?i1.active:"",children:"Custom Text"})]})]}),h==="special"&&M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>G("kiosk"),className:y==="kiosk"?i1.active:"",children:"Kiosk"}),M.jsx("button",{onClick:()=>G("amenity"),className:y==="amenity"?i1.active:"",children:"Amenity"})]}),y==="kiosk"&&M.jsx(w2,{className:i1.selectField,classNamePrefix:"custom","aria-label":"Choose a Kiosk",options:U,noOptionsMessage:()=>"Kiosks not found",placeholder:"Choose a Kiosk...",value:U.find(N=>N.value===m.kiosk_id)||null,onChange:H}),y==="amenity"&&M.jsx(w2,{className:i1.selectField,classNamePrefix:"custom","aria-label":"Choose Amenity",options:Y,noOptionsMessage:()=>"Amenity not found",placeholder:"Choose Amenity...",value:Y.find(N=>N.value===m.value)||null,onChange:O})]}),h==="custom"&&M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:i1.btnsGroup,children:[M.jsx("button",{onClick:()=>G("custom_text"),className:y==="custom_text"?i1.active:"",children:"Text"}),M.jsx("button",{onClick:()=>G("custom_image"),className:y==="custom_image"?i1.active:"",children:"Image"})]}),y==="custom_image"&&M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Image URL"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsx("input",{name:"custom_image",type:"text",className:i1.textField,value:m.custom_image,onChange:g})})]})]}),(h==="retailer"&&y==="retail_text"||h==="custom"&&y==="custom_text")&&M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Text"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsx("textarea",{name:"custom_text",rows:3,className:i1.textareaField,value:m.custom_text,onChange:g})})]})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Size"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("size"),onMouseDown:()=>k("size"),onMouseUp:()=>T("size"),onMouseLeave:()=>T("size"),children:"-"}),M.jsx("input",{type:"number",value:m.size,onChange:N=>R("size",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("size"),onMouseDown:()=>t1("size"),onMouseUp:()=>T("size"),onMouseLeave:()=>T("size"),children:"+"})]})})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Rotate"}),M.jsxs("div",{className:i1.fieldWrapper,children:[M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("rotate"),onMouseDown:()=>k("rotate"),onMouseUp:()=>T("rotate"),onMouseLeave:()=>T("rotate"),children:"-"}),M.jsx("input",{type:"number",value:m.rotate,onChange:N=>R("rotate",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("rotate"),onMouseDown:()=>t1("rotate"),onMouseUp:()=>T("rotate"),onMouseLeave:()=>T("rotate"),children:"+"})]}),M.jsx("button",{className:i1.rotateButton,onClick:()=>Z("rotate"),children:M.jsx(c7,{size:24})})]})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Offset X"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("offset_x"),onMouseDown:()=>k("offset_x"),onMouseUp:()=>T("offset_x"),onMouseLeave:()=>T("offset_x"),children:"-"}),M.jsx("input",{type:"number",value:m.offset_x,onChange:N=>R("offset_x",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("offset_x"),onMouseDown:()=>t1("offset_x"),onMouseUp:()=>T("offset_x"),onMouseLeave:()=>T("offset_x"),children:"+"})]})})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"Offset Y"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.numberFieldGroup,children:[M.jsx("button",{className:`${i1.button} ${i1.decrement}`,onClick:()=>x("offset_y"),onMouseDown:()=>k("offset_y"),onMouseUp:()=>T("offset_y"),onMouseLeave:()=>T("offset_y"),children:"-"}),M.jsx("input",{type:"number",value:m.offset_y,onChange:N=>R("offset_y",N.target.value),className:i1.input}),M.jsx("button",{className:`${i1.button} ${i1.increment}`,onClick:()=>z("offset_y"),onMouseDown:()=>t1("offset_y"),onMouseUp:()=>T("offset_y"),onMouseLeave:()=>T("offset_y"),children:"+"})]})})]}),M.jsxs("div",{className:i1.sidebarField,children:[M.jsx("label",{className:i1.label,children:"BG Color"}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.colorFieldGroup,children:[M.jsx("input",{type:"color",name:"bg_color",className:i1.colorField,value:m.bg_color,onChange:g}),M.jsx("input",{type:"text",name:"bg_color",className:i1.inputField,value:m.bg_color,onChange:g})]})})]}),["retail_name","custom_text","retail_text","kiosk","amenity"].includes(m.layer_type)&&M.jsxs("div",{className:i1.sidebarField,children:[M.jsxs("label",{className:i1.label,children:[["kiosk","amenity"].includes(m.layer_type)?"Icon":"Text"," Color"]}),M.jsx("div",{className:i1.fieldWrapper,children:M.jsxs("div",{className:i1.colorFieldGroup,children:[M.jsx("input",{name:"text_color",type:"color",className:i1.colorField,value:m.text_color,onChange:g}),M.jsx("input",{type:"text",name:"text_color",className:i1.inputField,value:m.text_color,onChange:g})]})})]})]})}):null},sq=C.forwardRef((e,t)=>{const{selectedActiveObjectId:l,setSelectedActiveObjectId:r,onMapDataUpdate:n,onChangeCameraControlPosition:o,handleClickOnRetailer:a}=e,[q,i]=C.useState(!1),[s,c]=C.useState(""),[u,_]=C.useState(!1),[A,v]=C.useState(-1),[b,h]=C.useState([]),[d,y]=C.useState(a4),[f,m]=C.useState(0),[p,E]=C.useState("desktop"),[S,L]=C.useState(!1),[B,V]=C.useState(!1),[,e1]=C.useTransition(),[X,r1]=C.useState(0),[K,l1]=C.useState(""),[$,J]=C.useState(""),[j,q1]=C.useState(null),[,G]=C.useState(0),P=C.useRef(null),W=C.useRef(null);W.current=f;const H=C.useRef(null),O=C.useCallback(a1=>{G(a1)},[]),{setMapConfig:R,refetchMapData:g,mapApiResponse:x,mapConfig:z,floorsData:Z,setMeshObject:k,indexedKiosks:t1,initialFloorsDataIsLoaded:T}=Q1(),n1=C.useCallback(a1=>{v(a1)},[v]),U=vt(),{meshParams:Y,storeLogos:N,textParams:D,allSvgObjectIds:w}=U,I=C.useRef(null),[o1,s1]=C.useState(null),[,b1]=C.useState(0),_1=C.useCallback(()=>{b1(a1=>a1+1)},[]),[S1,F1]=C.useState(!1);C.useImperativeHandle(t,()=>{var a1,m1;return{refetchMapData:g,createRouteToAmenity:u2,createRouteToStore:(a1=H.current)==null?void 0:a1.createRouteToStore,getInitialDistance:(m1=H.current)==null?void 0:m1.getInitialDistance,resetMap:P6,setMapConfig:R,refreshState:V}});const p1=C.useCallback(a1=>{z.ROLE==="DISPLAY_APP"?E("display_app"):z.ROLE==="PORTAL_RESPONSIVE"?E(z.DEVICE):a1>1024?E("desktop"):a1>767?E("tablet"):E("mobile")},[z]);C.useEffect(()=>{if(P.current){const a1=P.current.offsetWidth;m(a1),p1(a1);const m1=()=>{if(P.current){const g1=P.current.offsetWidth;m(g1),p1(g1)}};return window.addEventListener("resize",m1),m1(),()=>{window.removeEventListener("resize",m1)}}},[P.current,B,p1]);const[B1,Y1,z4]=C.useMemo(()=>{let a1="",m1=null,g1=Z.length?Z.length-1:0;if(t1[z.KIOSK_ID]){const R1=t1[z.KIOSK_ID].map_obj_name,z1=Y==null?void 0:Y.flat().find(V1=>V1.object_id===R1);z1&&(m1=z1.mesh,g1=z1.floor_index)}else z.ROLE==="DEMO"&&console.error("Kiosk not found in config");return[m1,g1,a1]},[z,Y,Z,t1]),k1=A>-1&&A<Z.length?A:Y1;C.useEffect(()=>{var g1;let a1;const m1=((g1=Z[k1])==null?void 0:g1.id)||null;m1&&z.CAMERA_CONTROLS_STATES.perFloor&&z.CAMERA_CONTROLS_STATES.perFloor[m1]?a1=z.CAMERA_CONTROLS_STATES.perFloor[m1]:a1=z.CAMERA_CONTROLS_STATES,z.ROLE==="DISPLAY_APP"?y(JSON.parse(JSON.stringify(a1.display_app))):z.ROLE==="WP_SITE"?y(JSON.parse(JSON.stringify(p==="desktop"?a1.desktop:p==="tablet"?a1.tablet:a1.mobile))):z.ROLE==="PORTAL_RESPONSIVE"&&(z.DEVICE==="desktop"?y(JSON.parse(JSON.stringify(a1.desktop))):z.DEVICE==="display_app"?y(JSON.parse(JSON.stringify(a1.display_app))):z.DEVICE==="mobile"?y(JSON.parse(JSON.stringify(a1.mobile))):z.DEVICE==="tablet"&&y(JSON.parse(JSON.stringify(a1.tablet))))},[p,z,k1,Z]);const c2=C.useCallback(a1=>{var g1;const m1=((g1=Z[k1])==null?void 0:g1.id)||null;o&&o(z.CAMERA_CONTROLS_STATES,a1,m1)},[o,k1,Z,z.CAMERA_CONTROLS_STATES]);let w4="",T4=z.DEFAULT_SELECTED_STORE??"";l?(T4=l,w4=s):K&&(T4="",w4=s);const a3=C.useCallback((a1,m1)=>{h(g1=>{const R1=g1.findIndex(z1=>z1.data.map_obj_name===m1.map_obj_name);return R1!==-1?g1[R1]={index:a1,data:{...m1}}:g1.push({index:a1,data:{...m1}}),[...g1]})},[]),u7=C.useCallback(a1=>{e.onObjectSaveData&&e.onObjectSaveData(a1,g)},[e,g]);C.useEffect(()=>{document.body.style.cursor=o1?"pointer":"default"},[o1]);const P6=C.useCallback((a1=!1)=>{var m1,g1;r(""),c(""),l1(""),r1(0),n1(Y1),H.current&&(z.ROLE==="PORTAL_RESPONSIVE"?(m1=H==null?void 0:H.current)==null||m1.resetCamera(a1):(g1=H==null?void 0:H.current)==null||g1.resetCamera(a1))},[Y1,n1,z.ROLE,r]);C.useEffect(()=>{const a1=[];Y.forEach(R1=>{R1.forEach(z1=>{(z1==null?void 0:z1.mesh_type)==="kiosk"&&a1.push(z1)})});const m1=new Map;N.filter(R1=>R1!==void 0).forEach(R1=>{R1.forEach(z1=>{m1.set(z1.storeLogo.object_id,z1.storeLogo)})});const g1=B1==null?void 0:B1.object_id;a1.forEach(R1=>{const z1=R1.mesh,V1=m1.get("custom-layer-"+R1.object_id),J1=x.map_objs.find(g7=>g7.map_obj_name===z1.object_id);z1&&V1&&V1.userData.kioskConfig!==null&&(V1.userData.kioskConfig={lockSize:J1==null?void 0:J1.lock_size,blink:R1.object_id===g1,size:J1?J1.size:z.KIOSK_SIZE,floorIndex:z1.floor_index},V1.userData.distanceFactor=J1!=null&&J1.lock_size?1500:void 0,V1.visible=!0)})},[N,Y,B1,z,x.map_objs]),C.useEffect(()=>{if(n){const a1=[];b.forEach(m1=>{a1.push({...m1.data})})}},[b,n]),C.useEffect(()=>{document.body.style.cursor=u?"pointer":"auto"},[u]),C.useEffect(()=>{z!=null&&z.SELECTED_RETAILER_ID&&S&&r1(z.SELECTED_RETAILER_ID)},[z,S]),C.useEffect(()=>{if(z&&X>0){const a1=x.retailers.find(m1=>m1.id===X);if(a1){const m1=x.map_objs.find(R1=>R1.retailer_id===a1.id),g1=Y==null?void 0:Y.flat().find(R1=>R1.object_id===(m1==null?void 0:m1.map_obj_name));g1&&v(g1.floor_index),m1&&r(m1.map_obj_name)}}},[z,r,X,Y,x.map_objs,x.retailers]);const N4=C.useCallback(a1=>{var z1,V1;const m1=(z1=D[k1])==null?void 0:z1.find(J1=>J1.textMesh.object_id===`${N2}${a1.object_id}`),g1=(V1=N[k1])==null?void 0:V1.find(J1=>J1.storeLogo.object_id===`${N2}${a1.object_id}`);let R1=null;m1&&(R1={svgShapeMeshObject:a1,textImageMeshObject:m1.textMesh}),g1&&(R1={svgShapeMeshObject:a1,textImageMeshObject:g1.storeLogo}),k(R1)},[N,D,k,k1]);C.useEffect(()=>{var a1,m1;if(Y&&Y.length&&l){const g1=(m1=(a1=Y[k1])==null?void 0:a1.find(R1=>R1.object_id===l))==null?void 0:m1.mesh;g1&&N4(g1)}},[Y,N4,l,k1]);const u2=C.useCallback((a1,m1)=>{r(""),c(""),l1(a1),m1&&(J(m1),z.ROLE==="DISPLAY_APP"&&r(m1)),z.ROLE==="WP_SITE"&&F1(!0)},[z.ROLE,r]),i3=C.useCallback((a1,m1,g1)=>{var R1;if(!g1&&z.ROLE==="DISPLAY_APP"&&a&&((R1=a1.mesh_type)!=null&&R1.startsWith("store"))){const z1=x.map_objs.find(V1=>V1.map_obj_name===a1.object_id&&V1.obj_type==="retailer");if(z1){const V1=x.retailers.find(J1=>J1.id===z1.retailer_id);V1&&a(V1.id)}return!1}z.ROLE==="DISPLAY_APP"&&B1&&n1(Y1),e1(()=>{N4(a1),r(m1??""),i(z1=>!z1),r1(0),l1(""),c("")})},[Y1,B1,a,n1,N4,x.map_objs,x.retailers,z.ROLE,r]),m7=C.useCallback(a1=>{if(a1.stopPropagation(),a1.delta>15)return;const m1=a1.object.object_id,g1=x.map_objs.find(R1=>R1.map_obj_name===m1);g1&&g1.layer_type==="amenity"?(u2(g1.value,m1),z.ROLE==="PORTAL"&&(N4(a1.object),r(m1??""))):(i3(a1.object,m1??""),z.ROLE!=="PORTAL"&&!z.KIOSK_ID&&(g1!=null&&g1.retailer_id)&&F1(!0))},[z,u2,r,N4,i3,x.map_objs]),d7=C.useCallback(a1=>{a1.stopPropagation(),_(!0),a1.object.userData.storeName!==""&&s1(a1.object)},[]),f7=C.useCallback(a1=>{a1.stopPropagation(),s1(null),_(!1),I&&I.current&&(I.current.style.display="none")},[]),K1=C.useRef({x:null,y:null,distance:-1/0}),x7=C.useCallback(a1=>{if(a1.stopPropagation(),a1.buttons>0){if(K1.current.x===null&&(K1.current.x=a1.clientX),K1.current.y===null&&(K1.current.y=a1.clientY),K1.current.x!==null&&K1.current.y!==null){let m1=Math.sqrt(Math.pow(K1.current.x-a1.clientX,2)+Math.pow(K1.current.y-a1.clientY,2));m1>K1.current.distance&&(K1.current.distance=m1)}}else K1.current.x=K1.current.y=null,K1.current.distance=-1/0;I&&I.current&&a1.object.userData.storeName&&a1.object.userData.storeName!==""?(I.current.style.top=`${a1.offsetY-65}px`,I.current.style.left=`${a1.offsetX}px`,I.current.style.display="block"):I.current&&(I.current.style.display="none")},[]),h7=C.useCallback((a1,m1)=>{c(a1),m1&&r(m1||""),F1(!1)},[c,F1,r]);if(z4)return M.jsx("div",{className:"messageStyle",children:z4});!B1&&z.ROLE==="DEMO"&&console.error("NO KIOSK OBJECT FOUND");const p7=U;let q3=o1,F6="";return q3&&q3.object_id&&(F6=q3.object_id),M.jsxs(M.Fragment,{children:[z.ROLE==="PORTAL"&&M.jsx("div",{className:`mapBoxSidebar ${f4.mapBoxSidebar} ${l?f4.active:""}`,children:M.jsx("div",{className:`sidebarWrapper ${f4.sidebarWrapper}`,children:M.jsx("div",{className:`sidebarBox ${f4.sidebarBox}`,children:l?M.jsx(qq,{floorIndex:k1,meshFloors:U,setData:a3,selectedId:l,onObjectSaveData:u7,onObjectResetData:e.onObjectResetData,onObjectChangeData:e.onObjectChangeData,onObjectNewData:e.onObjectNewData,triggerSceneUpdate:_1}):null})})}),M.jsxs("div",{ref:P,className:`mapBox ${f4.mapBox}`,children:[M.jsx(jt,{selectedFloorIndex:k1,handleFloorChange:n1,reset:P6,zoomIn:()=>q1({direction:"in"}),zoomOut:()=>q1({direction:"out"}),amenitiesList:i2,handleAmenityClick:u2,onExtractedAmenities:e.onExtractedAmenities}),M.jsxs(y4.Canvas,{style:{position:"absolute",top:0,left:0},flat:!0,children:[Number(z.STATS)?M.jsx(S4.Stats,{className:f4.stats}):null,M.jsx(Ct,{background:z.MAP_BACKGROUND_COLOR}),M.jsx(yt,{near:1,far:z.CAMERA.far,fov:z.CAMERA.fov}),M.jsx("ambientLight",{intensity:4,color:"#c4c4c4"}),M.jsx("directionalLight",{position:[0,400,0],color:"#ffffff",intensity:.3}),M.jsx("directionalLight",{position:[0,0,400],color:"#c4c4c4",intensity:.2}),M.jsx("directionalLight",{position:[0,0,-400],color:"#c4c4c4",intensity:.2}),M.jsx(Nt,{meshFloors:p7,activeObjectId:T4,hoverObjectId:F6,currKioskObj:B1,currKioskFloorIndex:Y1,routeTargetId:T4,routeTargetFromId:w4,currentFloorIndex:k1,onPointerEnter:d7,onPointerLeave:f7,onPointerMove:x7,onClick:m7,handleChangeFloor:n1,selectedAmenityType:K,escalatorNodes:U.escalator_nodes,zoom:j,handleCameraLength:O,ref:H,cameraControlsPosition:d,handleCameraAndControlsChange:c2,isSelectedRetailerSlug:!0,setIsCameraInit:L,handleObjectClick:i3,triggerClick:q,deviceType:p})]}),z.ROLE!=="DISPLAY_APP"&&(z.ROLE!=="WP_SITE"||!["mobile","tablet"].includes(p))&&M.jsx("div",{ref:I,className:`store-name-placeholder ${f4.storeNamePlaceholder}`,style:{display:o1?"block":"none"},children:o1&&o1.userData.storeName})]}),z.ROLE==="WP_SITE"&&M.jsx(Pi,{show:S1,onHide:()=>F1(!1),amenity:K,selectedAmenityMapObjName:$,mapObjectName:l,onClickMapObj:h7,allSvgObjectIds:w})]})}),cq="_mapBoxComponent_18958_1",uq="_tempImageRendering_18958_13",q9={mapBoxComponent:cq,tempImageRendering:uq},mq=e=>{const{config:t,webApiURI:l,cachedMapApiResponse:r,onNewMapApiResponse:n,rerenderMapOnNewMapApiResponse:o,mapBoxRefObj:a,onObjectSaveData:q,onObjectResetData:i,onObjectChangeData:s,onObjectNewData:c,mapApiResponseRef:u,onChangeCameraControlPosition:_,onExtractedAmenities:A,handleClickOnRetailer:v}=e,[b,h]=C.useState(""),d={webApiBaseUrl:l,config:t};return M.jsx(mt,{mapApiResponseRef:u,initialData:d,cachedMapApiResponse:r,onNewMapApiResponse:n,rerenderMapOnNewMapApiResponse:o,children:M.jsxs("div",{className:`mapBoxComponent ${q9.mapBoxComponent} MAP_ROLE_${t.ROLE}`,children:[M.jsx(sq,{ref:a,setSelectedActiveObjectId:h,selectedActiveObjectId:b,onObjectSaveData:q,onObjectResetData:i,onObjectChangeData:s,onObjectNewData:c,onChangeCameraControlPosition:_,onExtractedAmenities:A,handleClickOnRetailer:v}),M.jsxs("div",{className:"hide",children:[M.jsx("div",{id:"map-special-svg-kiosk",dangerouslySetInnerHTML:{__html:Z1.Kiosk}}),M.jsx("div",{id:"map-special-svg-escalator",dangerouslySetInnerHTML:{__html:Z1.Escalator}}),i2.map((y,f)=>M.jsx("div",{id:`map-special-svg-${y.type}`,dangerouslySetInnerHTML:{__html:y.svgCode}},f))]}),M.jsx("div",{id:"temp-image-rendering",className:q9.tempImageRendering})]})})};exports.AllAmenities=i2;exports.MapBox=mq;
117
117
  //# sourceMappingURL=index.js.map