-
Notifications
You must be signed in to change notification settings - Fork 0
/
720.8a864fc1.iframe.bundle.js
1 lines (1 loc) · 48 KB
/
720.8a864fc1.iframe.bundle.js
1
"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[720],{"../../node_modules/@radix-ui/number/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value,[min,max]){return Math.min(max,Math.max(min,value))}__webpack_require__.d(__webpack_exports__,{u:()=>$ae6933e535247d3d$export$7d15b64cf5a3a4c4})},"../../node_modules/@radix-ui/react-collection/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{B:()=>$e02a7d9cb1dc128c$export$c74125a8e3af6bb2});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),_radix_ui_react_context__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@radix-ui/react-context/dist/index.mjs"),_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/@radix-ui/react-slot/dist/index.mjs");function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name){const PROVIDER_NAME=name+"CollectionProvider",[createCollectionContext,createCollectionScope]=(0,_radix_ui_react_context__WEBPACK_IMPORTED_MODULE_1__.b)(PROVIDER_NAME),[CollectionProviderImpl,useCollectionContext]=createCollectionContext(PROVIDER_NAME,{collectionRef:{current:null},itemMap:new Map}),CollectionProvider=props=>{const{scope,children}=props,ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),itemMap=react__WEBPACK_IMPORTED_MODULE_0__.useRef(new Map).current;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(CollectionProviderImpl,{scope,itemMap,collectionRef:ref},children)},COLLECTION_SLOT_NAME=name+"CollectionSlot",CollectionSlot=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((props,forwardedRef)=>{const{scope,children}=props,context=useCollectionContext(COLLECTION_SLOT_NAME,scope),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__.e)(forwardedRef,context.collectionRef);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__.g7,{ref:composedRefs},children)})),ITEM_SLOT_NAME=name+"CollectionItemSlot",CollectionItemSlot=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((props,forwardedRef)=>{const{scope,children,...itemData}=props,ref=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__.e)(forwardedRef,ref),context=useCollectionContext(ITEM_SLOT_NAME,scope);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>(context.itemMap.set(ref,{ref,...itemData}),()=>{context.itemMap.delete(ref)}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__.g7,{"data-radix-collection-item":"",ref:composedRefs},children)}));return[{Provider:CollectionProvider,Slot:CollectionSlot,ItemSlot:CollectionItemSlot},function useCollection(scope){const context=useCollectionContext(name+"CollectionConsumer",scope);return react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{const collectionNode=context.collectionRef.current;if(!collectionNode)return[];const orderedNodes=Array.from(collectionNode.querySelectorAll("[data-radix-collection-item]"));return Array.from(context.itemMap.values()).sort(((a,b)=>orderedNodes.indexOf(a.ref.current)-orderedNodes.indexOf(b.ref.current)))}),[context.collectionRef,context.itemMap])},createCollectionScope]}},"../../node_modules/@radix-ui/react-direction/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{gm:()=>$f631663db3294ace$export$b39126d51d94e6f3});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js");const $f631663db3294ace$var$DirectionContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(localDir){const globalDir=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)($f631663db3294ace$var$DirectionContext);return localDir||globalDir||"ltr"}},"../../node_modules/@radix-ui/react-select/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{B4:()=>$cc7e05a45900e73f$export$4c8d1a57a761ef94,JO:()=>$cc7e05a45900e73f$export$f04a61298a47a40f,VY:()=>$cc7e05a45900e73f$export$7c6e2c02157bb7d2,Z0:()=>$cc7e05a45900e73f$export$1ff3c3f08ae963c0,ZA:()=>$cc7e05a45900e73f$export$eb2fcfdbd7ba97d4,__:()=>$cc7e05a45900e73f$export$b04be29aa201d4f5,ck:()=>$cc7e05a45900e73f$export$6d08773d2e66f8f2,eT:()=>$cc7e05a45900e73f$export$d6e5bf9c43ea9319,fC:()=>$cc7e05a45900e73f$export$be92b6f5f03c0fe9,h_:()=>$cc7e05a45900e73f$export$602eac185826482c,l_:()=>$cc7e05a45900e73f$export$d5c6c08dc2d3ca7,wU:()=>$cc7e05a45900e73f$export$c3468e2714d175fa,xz:()=>$cc7e05a45900e73f$export$41fb9f06171c75f4});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("../../node_modules/@babel/runtime/helpers/esm/extends.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),react_dom__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/react-dom/index.js"),_radix_ui_number__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("../../node_modules/@radix-ui/number/dist/index.mjs"),_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("../../node_modules/@radix-ui/primitive/dist/index.mjs"),_radix_ui_react_collection__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../node_modules/@radix-ui/react-collection/dist/index.mjs"),_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("../../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"),_radix_ui_react_context__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("../../node_modules/@radix-ui/react-context/dist/index.mjs"),_radix_ui_react_direction__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("../../node_modules/@radix-ui/react-direction/dist/index.mjs"),_radix_ui_react_dismissable_layer__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"),_radix_ui_react_focus_guards__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs"),_radix_ui_react_focus_scope__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"),_radix_ui_react_id__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("../../node_modules/@radix-ui/react-id/dist/index.mjs"),_radix_ui_react_popper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("../../node_modules/@radix-ui/react-popper/dist/index.mjs"),_radix_ui_react_portal__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("../../node_modules/@radix-ui/react-portal/dist/index.mjs"),_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("../../node_modules/@radix-ui/react-primitive/dist/index.mjs"),_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("../../node_modules/@radix-ui/react-slot/dist/index.mjs"),_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__("../../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"),_radix_ui_react_use_controllable_state__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("../../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"),_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"),_radix_ui_react_use_previous__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("../../node_modules/@radix-ui/react-use-previous/dist/index.mjs"),_radix_ui_react_visually_hidden__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__("../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs"),aria_hidden__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("../../node_modules/aria-hidden/dist/es2015/index.js"),react_remove_scroll__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("../../node_modules/react-remove-scroll/dist/es2015/Combination.js");const $cc7e05a45900e73f$var$OPEN_KEYS=[" ","Enter","ArrowUp","ArrowDown"],$cc7e05a45900e73f$var$SELECTION_KEYS=[" ","Enter"],[$cc7e05a45900e73f$var$Collection,$cc7e05a45900e73f$var$useCollection,$cc7e05a45900e73f$var$createCollectionScope]=(0,_radix_ui_react_collection__WEBPACK_IMPORTED_MODULE_2__.B)("Select"),[$cc7e05a45900e73f$var$createSelectContext,$cc7e05a45900e73f$export$286727a75dc039bd]=(0,_radix_ui_react_context__WEBPACK_IMPORTED_MODULE_3__.b)("Select",[$cc7e05a45900e73f$var$createCollectionScope,_radix_ui_react_popper__WEBPACK_IMPORTED_MODULE_4__.D7]),$cc7e05a45900e73f$var$usePopperScope=(0,_radix_ui_react_popper__WEBPACK_IMPORTED_MODULE_4__.D7)(),[$cc7e05a45900e73f$var$SelectProvider,$cc7e05a45900e73f$var$useSelectContext]=$cc7e05a45900e73f$var$createSelectContext("Select"),[$cc7e05a45900e73f$var$SelectNativeOptionsProvider,$cc7e05a45900e73f$var$useSelectNativeOptionsContext]=$cc7e05a45900e73f$var$createSelectContext("Select"),$cc7e05a45900e73f$export$ef9b1a59e592288f=props=>{const{__scopeSelect,children,open:openProp,defaultOpen,onOpenChange,value:valueProp,defaultValue,onValueChange,dir,name,autoComplete,disabled,required}=props,popperScope=$cc7e05a45900e73f$var$usePopperScope(__scopeSelect),[trigger,setTrigger]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[valueNode,setValueNode]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[valueNodeHasChildren,setValueNodeHasChildren]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),direction=(0,_radix_ui_react_direction__WEBPACK_IMPORTED_MODULE_5__.gm)(dir),[open=!1,setOpen]=(0,_radix_ui_react_use_controllable_state__WEBPACK_IMPORTED_MODULE_6__.T)({prop:openProp,defaultProp:defaultOpen,onChange:onOpenChange}),[value,setValue]=(0,_radix_ui_react_use_controllable_state__WEBPACK_IMPORTED_MODULE_6__.T)({prop:valueProp,defaultProp:defaultValue,onChange:onValueChange}),triggerPointerDownPosRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),isFormControl=!trigger||Boolean(trigger.closest("form")),[nativeOptionsSet,setNativeOptionsSet]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(new Set),nativeSelectKey=Array.from(nativeOptionsSet).map((option=>option.props.value)).join(";");return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_popper__WEBPACK_IMPORTED_MODULE_4__.fC,popperScope,(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectProvider,{required,scope:__scopeSelect,trigger,onTriggerChange:setTrigger,valueNode,onValueNodeChange:setValueNode,valueNodeHasChildren,onValueNodeHasChildrenChange:setValueNodeHasChildren,contentId:(0,_radix_ui_react_id__WEBPACK_IMPORTED_MODULE_7__.M)(),value,onValueChange:setValue,open,onOpenChange:setOpen,dir:direction,triggerPointerDownPosRef,disabled},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$Collection.Provider,{scope:__scopeSelect},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectNativeOptionsProvider,{scope:props.__scopeSelect,onNativeOptionAdd:(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((option=>{setNativeOptionsSet((prev=>new Set(prev).add(option)))}),[]),onNativeOptionRemove:(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((option=>{setNativeOptionsSet((prev=>{const optionsSet=new Set(prev);return optionsSet.delete(option),optionsSet}))}),[])},children)),isFormControl?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$BubbleSelect,{key:nativeSelectKey,"aria-hidden":!0,required,tabIndex:-1,name,autoComplete,value,onChange:event=>setValue(event.target.value),disabled},void 0===value?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("option",{value:""}):null,Array.from(nativeOptionsSet)):null))},$cc7e05a45900e73f$export$3ac1e88a1c0b9f1=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,disabled=!1,...triggerProps}=props,popperScope=$cc7e05a45900e73f$var$usePopperScope(__scopeSelect),context=$cc7e05a45900e73f$var$useSelectContext("SelectTrigger",__scopeSelect),isDisabled=context.disabled||disabled,composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,context.onTriggerChange),getItems=$cc7e05a45900e73f$var$useCollection(__scopeSelect),[searchRef,handleTypeaheadSearch,resetTypeahead]=$cc7e05a45900e73f$var$useTypeaheadSearch((search=>{const enabledItems=getItems().filter((item=>!item.disabled)),currentItem=enabledItems.find((item=>item.value===context.value)),nextItem=$cc7e05a45900e73f$var$findNextItem(enabledItems,search,currentItem);void 0!==nextItem&&context.onValueChange(nextItem.value)})),handleOpen=()=>{isDisabled||(context.onOpenChange(!0),resetTypeahead())};return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_popper__WEBPACK_IMPORTED_MODULE_4__.ee,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({asChild:!0},popperScope),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.button,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({type:"button",role:"combobox","aria-controls":context.contentId,"aria-expanded":context.open,"aria-required":context.required,"aria-autocomplete":"none",dir:context.dir,"data-state":context.open?"open":"closed",disabled:isDisabled,"data-disabled":isDisabled?"":void 0,"data-placeholder":void 0===context.value?"":void 0},triggerProps,{ref:composedRefs,onClick:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(triggerProps.onClick,(event=>{event.currentTarget.focus()})),onPointerDown:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(triggerProps.onPointerDown,(event=>{const target=event.target;target.hasPointerCapture(event.pointerId)&&target.releasePointerCapture(event.pointerId),0===event.button&&!1===event.ctrlKey&&(handleOpen(),context.triggerPointerDownPosRef.current={x:Math.round(event.pageX),y:Math.round(event.pageY)},event.preventDefault())})),onKeyDown:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(triggerProps.onKeyDown,(event=>{const isTypingAhead=""!==searchRef.current;event.ctrlKey||event.altKey||event.metaKey||1!==event.key.length||handleTypeaheadSearch(event.key),isTypingAhead&&" "===event.key||$cc7e05a45900e73f$var$OPEN_KEYS.includes(event.key)&&(handleOpen(),event.preventDefault())}))})))})),$cc7e05a45900e73f$export$e288731fd71264f0=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,className,style,children,placeholder,...valueProps}=props,context=$cc7e05a45900e73f$var$useSelectContext("SelectValue",__scopeSelect),{onValueNodeHasChildrenChange}=context,hasChildren=void 0!==children,composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,context.onValueNodeChange);return(0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_12__.b)((()=>{onValueNodeHasChildrenChange(hasChildren)}),[onValueNodeHasChildrenChange,hasChildren]),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.span,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({},valueProps,{ref:composedRefs,style:{pointerEvents:"none"}}),void 0===context.value&&void 0!==placeholder?placeholder:children)})),$cc7e05a45900e73f$export$99b400cabb58c515=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,children,...iconProps}=props;return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.span,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({"aria-hidden":!0},iconProps,{ref:forwardedRef}),children||"▼")})),$cc7e05a45900e73f$export$b2af6c9944296213=props=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_portal__WEBPACK_IMPORTED_MODULE_13__.h,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({asChild:!0},props)),$cc7e05a45900e73f$export$c973a4b3cb86a03d=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const context=$cc7e05a45900e73f$var$useSelectContext("SelectContent",props.__scopeSelect),[fragment,setFragment]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();if((0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_12__.b)((()=>{setFragment(new DocumentFragment)}),[]),!context.open){const frag=fragment;return frag?(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)((0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectContentProvider,{scope:props.__scopeSelect},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$Collection.Slot,{scope:props.__scopeSelect},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div",null,props.children))),frag):null}return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectContentImpl,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({},props,{ref:forwardedRef}))})),$cc7e05a45900e73f$var$CONTENT_MARGIN=10,[$cc7e05a45900e73f$var$SelectContentProvider,$cc7e05a45900e73f$var$useSelectContentContext]=$cc7e05a45900e73f$var$createSelectContext("SelectContent"),$cc7e05a45900e73f$var$SelectContentImpl=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,position="item-aligned",onCloseAutoFocus,onEscapeKeyDown,onPointerDownOutside,side,sideOffset,align,alignOffset,arrowPadding,collisionBoundary,collisionPadding,sticky,hideWhenDetached,avoidCollisions,...contentProps}=props,context=$cc7e05a45900e73f$var$useSelectContext("SelectContent",__scopeSelect),[content,setContent]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[viewport,setViewport]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,(node=>setContent(node))),[selectedItem,setSelectedItem]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[selectedItemText,setSelectedItemText]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),getItems=$cc7e05a45900e73f$var$useCollection(__scopeSelect),[isPositioned,setIsPositioned]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),firstValidItemFoundRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(content)return(0,aria_hidden__WEBPACK_IMPORTED_MODULE_14__.Ry)(content)}),[content]),(0,_radix_ui_react_focus_guards__WEBPACK_IMPORTED_MODULE_15__.EW)();const focusFirst=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((candidates=>{const[firstItem,...restItems]=getItems().map((item=>item.ref.current)),[lastItem]=restItems.slice(-1),PREVIOUSLY_FOCUSED_ELEMENT=document.activeElement;for(const candidate of candidates){if(candidate===PREVIOUSLY_FOCUSED_ELEMENT)return;if(null==candidate||candidate.scrollIntoView({block:"nearest"}),candidate===firstItem&&viewport&&(viewport.scrollTop=0),candidate===lastItem&&viewport&&(viewport.scrollTop=viewport.scrollHeight),null==candidate||candidate.focus(),document.activeElement!==PREVIOUSLY_FOCUSED_ELEMENT)return}}),[getItems,viewport]),focusSelectedItem=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>focusFirst([selectedItem,content])),[focusFirst,selectedItem,content]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{isPositioned&&focusSelectedItem()}),[isPositioned,focusSelectedItem]);const{onOpenChange,triggerPointerDownPosRef}=context;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(content){let pointerMoveDelta={x:0,y:0};const handlePointerMove=event=>{var _triggerPointerDownPo,_triggerPointerDownPo2,_triggerPointerDownPo3,_triggerPointerDownPo4;pointerMoveDelta={x:Math.abs(Math.round(event.pageX)-(null!==(_triggerPointerDownPo=null===(_triggerPointerDownPo2=triggerPointerDownPosRef.current)||void 0===_triggerPointerDownPo2?void 0:_triggerPointerDownPo2.x)&&void 0!==_triggerPointerDownPo?_triggerPointerDownPo:0)),y:Math.abs(Math.round(event.pageY)-(null!==(_triggerPointerDownPo3=null===(_triggerPointerDownPo4=triggerPointerDownPosRef.current)||void 0===_triggerPointerDownPo4?void 0:_triggerPointerDownPo4.y)&&void 0!==_triggerPointerDownPo3?_triggerPointerDownPo3:0))}},handlePointerUp=event=>{pointerMoveDelta.x<=10&&pointerMoveDelta.y<=10?event.preventDefault():content.contains(event.target)||onOpenChange(!1),document.removeEventListener("pointermove",handlePointerMove),triggerPointerDownPosRef.current=null};return null!==triggerPointerDownPosRef.current&&(document.addEventListener("pointermove",handlePointerMove),document.addEventListener("pointerup",handlePointerUp,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",handlePointerMove),document.removeEventListener("pointerup",handlePointerUp,{capture:!0})}}}),[content,onOpenChange,triggerPointerDownPosRef]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const close=()=>onOpenChange(!1);return window.addEventListener("blur",close),window.addEventListener("resize",close),()=>{window.removeEventListener("blur",close),window.removeEventListener("resize",close)}}),[onOpenChange]);const[searchRef,handleTypeaheadSearch]=$cc7e05a45900e73f$var$useTypeaheadSearch((search=>{const enabledItems=getItems().filter((item=>!item.disabled)),currentItem=enabledItems.find((item=>item.ref.current===document.activeElement)),nextItem=$cc7e05a45900e73f$var$findNextItem(enabledItems,search,currentItem);nextItem&&setTimeout((()=>nextItem.ref.current.focus()))})),itemRefCallback=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(((node,value,disabled)=>{const isFirstValidItem=!firstValidItemFoundRef.current&&!disabled;(void 0!==context.value&&context.value===value||isFirstValidItem)&&(setSelectedItem(node),isFirstValidItem&&(firstValidItemFoundRef.current=!0))}),[context.value]),handleItemLeave=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>null==content?void 0:content.focus()),[content]),itemTextRefCallback=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(((node,value,disabled)=>{const isFirstValidItem=!firstValidItemFoundRef.current&&!disabled;(void 0!==context.value&&context.value===value||isFirstValidItem)&&setSelectedItemText(node)}),[context.value]),SelectPosition="popper"===position?$cc7e05a45900e73f$var$SelectPopperPosition:$cc7e05a45900e73f$var$SelectItemAlignedPosition,popperContentProps=SelectPosition===$cc7e05a45900e73f$var$SelectPopperPosition?{side,sideOffset,align,alignOffset,arrowPadding,collisionBoundary,collisionPadding,sticky,hideWhenDetached,avoidCollisions}:{};return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectContentProvider,{scope:__scopeSelect,content,viewport,onViewportChange:setViewport,itemRefCallback,selectedItem,onItemLeave:handleItemLeave,itemTextRefCallback,focusSelectedItem,selectedItemText,position,isPositioned,searchRef},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_remove_scroll__WEBPACK_IMPORTED_MODULE_16__.Z,{as:_radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_17__.g7,allowPinchZoom:!0},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_focus_scope__WEBPACK_IMPORTED_MODULE_18__.M,{asChild:!0,trapped:context.open,onMountAutoFocus:event=>{event.preventDefault()},onUnmountAutoFocus:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(onCloseAutoFocus,(event=>{var _context$trigger;null===(_context$trigger=context.trigger)||void 0===_context$trigger||_context$trigger.focus({preventScroll:!0}),event.preventDefault()}))},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_dismissable_layer__WEBPACK_IMPORTED_MODULE_19__.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown,onPointerDownOutside,onFocusOutside:event=>event.preventDefault(),onDismiss:()=>context.onOpenChange(!1)},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(SelectPosition,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({role:"listbox",id:context.contentId,"data-state":context.open?"open":"closed",dir:context.dir,onContextMenu:event=>event.preventDefault()},contentProps,popperContentProps,{onPlaced:()=>setIsPositioned(!0),ref:composedRefs,style:{display:"flex",flexDirection:"column",outline:"none",...contentProps.style},onKeyDown:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(contentProps.onKeyDown,(event=>{const isModifierKey=event.ctrlKey||event.altKey||event.metaKey;if("Tab"===event.key&&event.preventDefault(),isModifierKey||1!==event.key.length||handleTypeaheadSearch(event.key),["ArrowUp","ArrowDown","Home","End"].includes(event.key)){let candidateNodes=getItems().filter((item=>!item.disabled)).map((item=>item.ref.current));if(["ArrowUp","End"].includes(event.key)&&(candidateNodes=candidateNodes.slice().reverse()),["ArrowUp","ArrowDown"].includes(event.key)){const currentElement=event.target,currentIndex=candidateNodes.indexOf(currentElement);candidateNodes=candidateNodes.slice(currentIndex+1)}setTimeout((()=>focusFirst(candidateNodes))),event.preventDefault()}}))}))))))})),$cc7e05a45900e73f$var$SelectItemAlignedPosition=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,onPlaced,...popperProps}=props,context=$cc7e05a45900e73f$var$useSelectContext("SelectContent",__scopeSelect),contentContext=$cc7e05a45900e73f$var$useSelectContentContext("SelectContent",__scopeSelect),[contentWrapper,setContentWrapper]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),[content,setContent]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,(node=>setContent(node))),getItems=$cc7e05a45900e73f$var$useCollection(__scopeSelect),shouldExpandOnScrollRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1),shouldRepositionRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!0),{viewport,selectedItem,selectedItemText,focusSelectedItem}=contentContext,position=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{if(context.trigger&&context.valueNode&&contentWrapper&&content&&viewport&&selectedItem&&selectedItemText){const triggerRect=context.trigger.getBoundingClientRect(),contentRect=content.getBoundingClientRect(),valueNodeRect=context.valueNode.getBoundingClientRect(),itemTextRect=selectedItemText.getBoundingClientRect();if("rtl"!==context.dir){const itemTextOffset=itemTextRect.left-contentRect.left,left=valueNodeRect.left-itemTextOffset,leftDelta=triggerRect.left-left,minContentWidth=triggerRect.width+leftDelta,contentWidth=Math.max(minContentWidth,contentRect.width),rightEdge=window.innerWidth-$cc7e05a45900e73f$var$CONTENT_MARGIN,clampedLeft=(0,_radix_ui_number__WEBPACK_IMPORTED_MODULE_20__.u)(left,[$cc7e05a45900e73f$var$CONTENT_MARGIN,rightEdge-contentWidth]);contentWrapper.style.minWidth=minContentWidth+"px",contentWrapper.style.left=clampedLeft+"px"}else{const itemTextOffset=contentRect.right-itemTextRect.right,right=window.innerWidth-valueNodeRect.right-itemTextOffset,rightDelta=window.innerWidth-triggerRect.right-right,minContentWidth=triggerRect.width+rightDelta,contentWidth=Math.max(minContentWidth,contentRect.width),leftEdge=window.innerWidth-$cc7e05a45900e73f$var$CONTENT_MARGIN,clampedRight=(0,_radix_ui_number__WEBPACK_IMPORTED_MODULE_20__.u)(right,[$cc7e05a45900e73f$var$CONTENT_MARGIN,leftEdge-contentWidth]);contentWrapper.style.minWidth=minContentWidth+"px",contentWrapper.style.right=clampedRight+"px"}const items=getItems(),availableHeight=window.innerHeight-2*$cc7e05a45900e73f$var$CONTENT_MARGIN,itemsHeight=viewport.scrollHeight,contentStyles=window.getComputedStyle(content),contentBorderTopWidth=parseInt(contentStyles.borderTopWidth,10),contentPaddingTop=parseInt(contentStyles.paddingTop,10),contentBorderBottomWidth=parseInt(contentStyles.borderBottomWidth,10),fullContentHeight=contentBorderTopWidth+contentPaddingTop+itemsHeight+parseInt(contentStyles.paddingBottom,10)+contentBorderBottomWidth,minContentHeight=Math.min(5*selectedItem.offsetHeight,fullContentHeight),viewportStyles=window.getComputedStyle(viewport),viewportPaddingTop=parseInt(viewportStyles.paddingTop,10),viewportPaddingBottom=parseInt(viewportStyles.paddingBottom,10),topEdgeToTriggerMiddle=triggerRect.top+triggerRect.height/2-$cc7e05a45900e73f$var$CONTENT_MARGIN,triggerMiddleToBottomEdge=availableHeight-topEdgeToTriggerMiddle,selectedItemHalfHeight=selectedItem.offsetHeight/2,contentTopToItemMiddle=contentBorderTopWidth+contentPaddingTop+(selectedItem.offsetTop+selectedItemHalfHeight),itemMiddleToContentBottom=fullContentHeight-contentTopToItemMiddle;if(contentTopToItemMiddle<=topEdgeToTriggerMiddle){const isLastItem=selectedItem===items[items.length-1].ref.current;contentWrapper.style.bottom="0px";const viewportOffsetBottom=content.clientHeight-viewport.offsetTop-viewport.offsetHeight,height=contentTopToItemMiddle+Math.max(triggerMiddleToBottomEdge,selectedItemHalfHeight+(isLastItem?viewportPaddingBottom:0)+viewportOffsetBottom+contentBorderBottomWidth);contentWrapper.style.height=height+"px"}else{const isFirstItem=selectedItem===items[0].ref.current;contentWrapper.style.top="0px";const height=Math.max(topEdgeToTriggerMiddle,contentBorderTopWidth+viewport.offsetTop+(isFirstItem?viewportPaddingTop:0)+selectedItemHalfHeight)+itemMiddleToContentBottom;contentWrapper.style.height=height+"px",viewport.scrollTop=contentTopToItemMiddle-topEdgeToTriggerMiddle+viewport.offsetTop}contentWrapper.style.margin=`${$cc7e05a45900e73f$var$CONTENT_MARGIN}px 0`,contentWrapper.style.minHeight=minContentHeight+"px",contentWrapper.style.maxHeight=availableHeight+"px",null==onPlaced||onPlaced(),requestAnimationFrame((()=>shouldExpandOnScrollRef.current=!0))}}),[getItems,context.trigger,context.valueNode,contentWrapper,content,viewport,selectedItem,selectedItemText,context.dir,onPlaced]);(0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_12__.b)((()=>position()),[position]);const[contentZIndex,setContentZIndex]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)();(0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_12__.b)((()=>{content&&setContentZIndex(window.getComputedStyle(content).zIndex)}),[content]);const handleScrollButtonChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node=>{node&&!0===shouldRepositionRef.current&&(position(),null==focusSelectedItem||focusSelectedItem(),shouldRepositionRef.current=!1)}),[position,focusSelectedItem]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectViewportProvider,{scope:__scopeSelect,contentWrapper,shouldExpandOnScrollRef,onScrollButtonChange:handleScrollButtonChange},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div",{ref:setContentWrapper,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:contentZIndex}},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.div,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({},popperProps,{ref:composedRefs,style:{boxSizing:"border-box",maxHeight:"100%",...popperProps.style}}))))})),$cc7e05a45900e73f$var$SelectPopperPosition=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,align="start",collisionPadding=$cc7e05a45900e73f$var$CONTENT_MARGIN,...popperProps}=props,popperScope=$cc7e05a45900e73f$var$usePopperScope(__scopeSelect);return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_popper__WEBPACK_IMPORTED_MODULE_4__.VY,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({},popperScope,popperProps,{ref:forwardedRef,align,collisionPadding,style:{boxSizing:"border-box",...popperProps.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[$cc7e05a45900e73f$var$SelectViewportProvider,$cc7e05a45900e73f$var$useSelectViewportContext]=$cc7e05a45900e73f$var$createSelectContext("SelectContent",{}),$cc7e05a45900e73f$export$9ed6e7b40248d36d=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,...viewportProps}=props,contentContext=$cc7e05a45900e73f$var$useSelectContentContext("SelectViewport",__scopeSelect),viewportContext=$cc7e05a45900e73f$var$useSelectViewportContext("SelectViewport",__scopeSelect),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,contentContext.onViewportChange),prevScrollTopRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0);return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$Collection.Slot,{scope:__scopeSelect},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.div,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({"data-radix-select-viewport":"",role:"presentation"},viewportProps,{ref:composedRefs,style:{position:"relative",flex:1,overflow:"auto",...viewportProps.style},onScroll:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(viewportProps.onScroll,(event=>{const viewport=event.currentTarget,{contentWrapper,shouldExpandOnScrollRef}=viewportContext;if(null!=shouldExpandOnScrollRef&&shouldExpandOnScrollRef.current&&contentWrapper){const scrolledBy=Math.abs(prevScrollTopRef.current-viewport.scrollTop);if(scrolledBy>0){const availableHeight=window.innerHeight-2*$cc7e05a45900e73f$var$CONTENT_MARGIN,cssMinHeight=parseFloat(contentWrapper.style.minHeight),cssHeight=parseFloat(contentWrapper.style.height),prevHeight=Math.max(cssMinHeight,cssHeight);if(prevHeight<availableHeight){const nextHeight=prevHeight+scrolledBy,clampedNextHeight=Math.min(availableHeight,nextHeight),heightDiff=nextHeight-clampedNextHeight;contentWrapper.style.height=clampedNextHeight+"px","0px"===contentWrapper.style.bottom&&(viewport.scrollTop=heightDiff>0?heightDiff:0,contentWrapper.style.justifyContent="flex-end")}}}prevScrollTopRef.current=viewport.scrollTop}))}))))})),[$cc7e05a45900e73f$var$SelectGroupContextProvider,$cc7e05a45900e73f$var$useSelectGroupContext]=$cc7e05a45900e73f$var$createSelectContext("SelectGroup"),$cc7e05a45900e73f$export$ee25a334c55de1f4=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,...groupProps}=props,groupId=(0,_radix_ui_react_id__WEBPACK_IMPORTED_MODULE_7__.M)();return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectGroupContextProvider,{scope:__scopeSelect,id:groupId},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.div,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({role:"group","aria-labelledby":groupId},groupProps,{ref:forwardedRef})))})),$cc7e05a45900e73f$export$f67338d29bd972f8=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,...labelProps}=props,groupContext=$cc7e05a45900e73f$var$useSelectGroupContext("SelectLabel",__scopeSelect);return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.div,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({id:groupContext.id},labelProps,{ref:forwardedRef}))})),[$cc7e05a45900e73f$var$SelectItemContextProvider,$cc7e05a45900e73f$var$useSelectItemContext]=$cc7e05a45900e73f$var$createSelectContext("SelectItem"),$cc7e05a45900e73f$export$13ef48a934230896=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,value,disabled=!1,textValue:textValueProp,...itemProps}=props,context=$cc7e05a45900e73f$var$useSelectContext("SelectItem",__scopeSelect),contentContext=$cc7e05a45900e73f$var$useSelectContentContext("SelectItem",__scopeSelect),isSelected=context.value===value,[textValue,setTextValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null!=textValueProp?textValueProp:""),[isFocused,setIsFocused]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,(node=>{var _contentContext$itemR;return null===(_contentContext$itemR=contentContext.itemRefCallback)||void 0===_contentContext$itemR?void 0:_contentContext$itemR.call(contentContext,node,value,disabled)})),textId=(0,_radix_ui_react_id__WEBPACK_IMPORTED_MODULE_7__.M)(),handleSelect=()=>{disabled||(context.onValueChange(value),context.onOpenChange(!1))};return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$SelectItemContextProvider,{scope:__scopeSelect,value,disabled,textId,isSelected,onItemTextChange:(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node=>{setTextValue((prevTextValue=>{var _node$textContent;return prevTextValue||(null!==(_node$textContent=null==node?void 0:node.textContent)&&void 0!==_node$textContent?_node$textContent:"").trim()}))}),[])},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($cc7e05a45900e73f$var$Collection.ItemSlot,{scope:__scopeSelect,value,disabled,textValue},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.div,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({role:"option","aria-labelledby":textId,"data-highlighted":isFocused?"":void 0,"aria-selected":isSelected&&isFocused,"data-state":isSelected?"checked":"unchecked","aria-disabled":disabled||void 0,"data-disabled":disabled?"":void 0,tabIndex:disabled?void 0:-1},itemProps,{ref:composedRefs,onFocus:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(itemProps.onFocus,(()=>setIsFocused(!0))),onBlur:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(itemProps.onBlur,(()=>setIsFocused(!1))),onPointerUp:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(itemProps.onPointerUp,handleSelect),onPointerMove:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(itemProps.onPointerMove,(event=>{var _contentContext$onIte;disabled?null===(_contentContext$onIte=contentContext.onItemLeave)||void 0===_contentContext$onIte||_contentContext$onIte.call(contentContext):event.currentTarget.focus({preventScroll:!0})})),onPointerLeave:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(itemProps.onPointerLeave,(event=>{var _contentContext$onIte2;event.currentTarget===document.activeElement&&(null===(_contentContext$onIte2=contentContext.onItemLeave)||void 0===_contentContext$onIte2||_contentContext$onIte2.call(contentContext))})),onKeyDown:(0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_11__.M)(itemProps.onKeyDown,(event=>{var _contentContext$searc;""!==(null===(_contentContext$searc=contentContext.searchRef)||void 0===_contentContext$searc?void 0:_contentContext$searc.current)&&" "===event.key||($cc7e05a45900e73f$var$SELECTION_KEYS.includes(event.key)&&handleSelect()," "===event.key&&event.preventDefault())}))}))))})),$cc7e05a45900e73f$export$3572fb0fb821ff49=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,className,style,...itemTextProps}=props,context=$cc7e05a45900e73f$var$useSelectContext("SelectItemText",__scopeSelect),contentContext=$cc7e05a45900e73f$var$useSelectContentContext("SelectItemText",__scopeSelect),itemContext=$cc7e05a45900e73f$var$useSelectItemContext("SelectItemText",__scopeSelect),nativeOptionsContext=$cc7e05a45900e73f$var$useSelectNativeOptionsContext("SelectItemText",__scopeSelect),[itemTextNode,setItemTextNode]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,(node=>setItemTextNode(node)),itemContext.onItemTextChange,(node=>{var _contentContext$itemT;return null===(_contentContext$itemT=contentContext.itemTextRefCallback)||void 0===_contentContext$itemT?void 0:_contentContext$itemT.call(contentContext,node,itemContext.value,itemContext.disabled)})),textContent=null==itemTextNode?void 0:itemTextNode.textContent,nativeOption=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("option",{key:itemContext.value,value:itemContext.value,disabled:itemContext.disabled},textContent)),[itemContext.disabled,itemContext.value,textContent]),{onNativeOptionAdd,onNativeOptionRemove}=nativeOptionsContext;return(0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_12__.b)((()=>(onNativeOptionAdd(nativeOption),()=>onNativeOptionRemove(nativeOption))),[onNativeOptionAdd,onNativeOptionRemove,nativeOption]),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.span,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({id:itemContext.textId},itemTextProps,{ref:composedRefs})),itemContext.isSelected&&context.valueNode&&!context.valueNodeHasChildren?(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(itemTextProps.children,context.valueNode):null)})),$cc7e05a45900e73f$export$6b9198de19accfe6=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,...itemIndicatorProps}=props;return $cc7e05a45900e73f$var$useSelectItemContext("SelectItemIndicator",__scopeSelect).isSelected?(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.span,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({"aria-hidden":!0},itemIndicatorProps,{ref:forwardedRef})):null})),$cc7e05a45900e73f$export$eba4b1df07cb1d3=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{__scopeSelect,...separatorProps}=props;return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_10__.WV.div,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({"aria-hidden":!0},separatorProps,{ref:forwardedRef}))})),$cc7e05a45900e73f$var$BubbleSelect=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>{const{value,...selectProps}=props,ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),composedRefs=(0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_8__.e)(forwardedRef,ref),prevValue=(0,_radix_ui_react_use_previous__WEBPACK_IMPORTED_MODULE_21__.D)(value);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{const select=ref.current,selectProto=window.HTMLSelectElement.prototype,setValue=Object.getOwnPropertyDescriptor(selectProto,"value").set;if(prevValue!==value&&setValue){const event=new Event("change",{bubbles:!0});setValue.call(select,value),select.dispatchEvent(event)}}),[prevValue,value]),(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_visually_hidden__WEBPACK_IMPORTED_MODULE_22__.T,{asChild:!0},(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("select",(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_9__.Z)({},selectProps,{ref:composedRefs,defaultValue:value})))}));function $cc7e05a45900e73f$var$useTypeaheadSearch(onSearchChange){const handleSearchChange=(0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_23__.W)(onSearchChange),searchRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(""),timerRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0),handleTypeaheadSearch=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((key=>{const search=searchRef.current+key;handleSearchChange(search),function updateSearch(value){searchRef.current=value,window.clearTimeout(timerRef.current),""!==value&&(timerRef.current=window.setTimeout((()=>updateSearch("")),1e3))}(search)}),[handleSearchChange]),resetTypeahead=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{searchRef.current="",window.clearTimeout(timerRef.current)}),[]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>()=>window.clearTimeout(timerRef.current)),[]),[searchRef,handleTypeaheadSearch,resetTypeahead]}function $cc7e05a45900e73f$var$findNextItem(items,search,currentItem){const normalizedSearch=search.length>1&&Array.from(search).every((char=>char===search[0]))?search[0]:search,currentItemIndex=currentItem?items.indexOf(currentItem):-1;let wrappedItems=function $cc7e05a45900e73f$var$wrapArray(array,startIndex){return array.map(((_,index)=>array[(startIndex+index)%array.length]))}(items,Math.max(currentItemIndex,0));1===normalizedSearch.length&&(wrappedItems=wrappedItems.filter((v=>v!==currentItem)));const nextItem=wrappedItems.find((item=>item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())));return nextItem!==currentItem?nextItem:void 0}$cc7e05a45900e73f$var$BubbleSelect.displayName="BubbleSelect";const $cc7e05a45900e73f$export$be92b6f5f03c0fe9=$cc7e05a45900e73f$export$ef9b1a59e592288f,$cc7e05a45900e73f$export$41fb9f06171c75f4=$cc7e05a45900e73f$export$3ac1e88a1c0b9f1,$cc7e05a45900e73f$export$4c8d1a57a761ef94=$cc7e05a45900e73f$export$e288731fd71264f0,$cc7e05a45900e73f$export$f04a61298a47a40f=$cc7e05a45900e73f$export$99b400cabb58c515,$cc7e05a45900e73f$export$602eac185826482c=$cc7e05a45900e73f$export$b2af6c9944296213,$cc7e05a45900e73f$export$7c6e2c02157bb7d2=$cc7e05a45900e73f$export$c973a4b3cb86a03d,$cc7e05a45900e73f$export$d5c6c08dc2d3ca7=$cc7e05a45900e73f$export$9ed6e7b40248d36d,$cc7e05a45900e73f$export$eb2fcfdbd7ba97d4=$cc7e05a45900e73f$export$ee25a334c55de1f4,$cc7e05a45900e73f$export$b04be29aa201d4f5=$cc7e05a45900e73f$export$f67338d29bd972f8,$cc7e05a45900e73f$export$6d08773d2e66f8f2=$cc7e05a45900e73f$export$13ef48a934230896,$cc7e05a45900e73f$export$d6e5bf9c43ea9319=$cc7e05a45900e73f$export$3572fb0fb821ff49,$cc7e05a45900e73f$export$c3468e2714d175fa=$cc7e05a45900e73f$export$6b9198de19accfe6,$cc7e05a45900e73f$export$1ff3c3f08ae963c0=$cc7e05a45900e73f$export$eba4b1df07cb1d3},"../../node_modules/@radix-ui/react-use-previous/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{D:()=>$010c2913dbd2fe3d$export$5cae361ad82dce8b});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js");function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value){const ref=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({value,previous:value});return(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(ref.current.value!==value&&(ref.current.previous=ref.current.value,ref.current.value=value),ref.current.previous)),[value])}},"../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>$ea1ef594cf570d83$export$439d29a4e110a164,f:()=>$ea1ef594cf570d83$export$be92b6f5f03c0fe9});var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../../node_modules/@babel/runtime/helpers/esm/extends.js"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/react/index.js"),_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("../../node_modules/@radix-ui/react-primitive/dist/index.mjs");const $ea1ef594cf570d83$export$439d29a4e110a164=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((props,forwardedRef)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_1__.WV.span,(0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__.Z)({},props,{ref:forwardedRef,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...props.style}})))),$ea1ef594cf570d83$export$be92b6f5f03c0fe9=$ea1ef594cf570d83$export$439d29a4e110a164},"../../node_modules/lucide-react/dist/esm/icons/check.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>Check});const Check=(0,__webpack_require__("../../node_modules/lucide-react/dist/esm/createLucideIcon.js").Z)("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]])},"../../node_modules/lucide-react/dist/esm/icons/chevron-down.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Z:()=>ChevronDown});const ChevronDown=(0,__webpack_require__("../../node_modules/lucide-react/dist/esm/createLucideIcon.js").Z)("ChevronDown",[["polyline",{points:"6 9 12 15 18 9",key:"1do0m2"}]])}}]);