@teambit/node 1.0.1221 → 1.0.1223

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.
@@ -1,4 +1,4 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[575],{38467(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(8323);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},8323(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},27496(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PreviewModules}},Object.defineProperty(exports,"uf",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(38467);return _previewModules=function(){return data},data}},50259(__unused_webpack_module,exports){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.compareUrl=compareUrl;function isSubObject(source,target){for(const[key,value]of source.entries())if(target.get(key)!==value)return!1;return!0}function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.search||isSubObject(match.searchParams,base.searchParams))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.search||isSubObject(new URLSearchParams(base.search),new URLSearchParams(match.search)))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function compareUrl(baseUrlFromParams,toMatchUrlFromParams,{exact=!1,strict=!1}={}){if(baseUrlFromParams===toMatchUrlFromParams)return!0;let baseUrlStr=baseUrlFromParams,toMatchUrlStr=toMatchUrlFromParams;strict||(baseUrlStr=baseUrlStr.replace(/\/(?=[?#]|$)/,""),toMatchUrlStr=toMatchUrlStr.replace(/\/(?=[?#]|$)/,""));try{const base=new URL(baseUrlStr,"http://example.com"),match=new URL(toMatchUrlStr,"http://example.com"),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}catch(error){return console.error("Invalid URL provided:",error),!1}}},19304(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_js_1=__webpack_require__(88778);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_js_1.Link}});var use_location_js_1=__webpack_require__(92891);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_js_1.useLocation}});var use_navigate_js_1=__webpack_require__(81687);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_js_1.useNavigate}});var navigation_provider_js_1=__webpack_require__(3404);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_js_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_js_1.NavigationProvider}})},88778(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(12888)),navigation_provider_js_1=__webpack_require__(3404),native_link_js_1=__webpack_require__(25338);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_js_1.useNavigation)().Link||native_link_js_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_js_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},25338(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(96265)),compare_url_js_1=__webpack_require__(50259),use_location_js_1=__webpack_require__(92891),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,children,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","children","exact","href","external","native","state"]);const location=(0,use_location_js_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,compare_url_js_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}),children)})},3404(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationContext=void 0,exports.useNavigation=useNavigation,exports.NavigationProvider=NavigationProvider;const react_1=__importStar(__webpack_require__(12888));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}},92891(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=useLocation;const navigation_provider_js_1=__webpack_require__(3404);function NativeUseLocation(){if(!(typeof window>"u"))return window.location}function useLocation(){return((0,navigation_provider_js_1.useNavigation)().useLocation||NativeUseLocation)()}},81687(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=useNavigate;const navigation_provider_js_1=__webpack_require__(3404);function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}function useNavigate(){var _a;const nav=(0,navigation_provider_js_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}},67446(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(25360);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},25360(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97500)),react_1=__importDefault(__webpack_require__(12888)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(5855));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},30678(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(12888));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},40218(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.Composer=void 0;var composer_1=__webpack_require__(30678);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},80124(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.links=void 0;var links_1=__webpack_require__(63253);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},63253(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},52942(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(12888)),base_react_navigation_link_1=__webpack_require__(19304),community_constants_links_1=__webpack_require__(80124),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){const style={props};return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},35236(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(12888)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[134],{38467(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PreviewModules=exports.PREVIEW_MODULES=void 0;var preview_modules_1=__webpack_require__(8323);Object.defineProperty(exports,"PREVIEW_MODULES",{enumerable:!0,get:function(){return preview_modules_1.PREVIEW_MODULES}}),Object.defineProperty(exports,"PreviewModules",{enumerable:!0,get:function(){return preview_modules_1.PreviewModules}}),Object.defineProperty(exports,"linkModules",{enumerable:!0,get:function(){return preview_modules_1.linkModules}})},8323(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.linkModules=exports.PREVIEW_MODULES=exports.PreviewModules=void 0;class PreviewModules extends Map{constructor(){super(...arguments);this.onSet=new Set}set(id,preview){return super.set(id,preview),this.onSet.forEach(callback=>callback()),this}loadComponentPreviews(compId,previews){Object.entries(previews).forEach(([previewName,moduleFile])=>{const preview=this.get(previewName);!preview||(preview.componentMap[compId]=moduleFile)})}}exports.PreviewModules=PreviewModules;function getPreviewModules(){return typeof window<"u"?(window.__bit_preview_modules||(window.__bit_preview_modules=new PreviewModules),window.__bit_preview_modules):new PreviewModules}exports.PREVIEW_MODULES=getPreviewModules();function linkModules(previewName,previewModule){exports.PREVIEW_MODULES.set(previewName,previewModule)}exports.linkModules=linkModules},27496(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PREVIEW_MODULES}},__webpack_unused_export__={enumerable:!0,get:function(){return _previewModules().PreviewModules}},Object.defineProperty(exports,"uf",{enumerable:!0,get:function(){return _previewModules().linkModules}});function _previewModules(){const data=__webpack_require__(38467);return _previewModules=function(){return data},data}},50259(__unused_webpack_module,exports){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.compareUrl=compareUrl;function isSubObject(source,target){for(const[key,value]of source.entries())if(target.get(key)!==value)return!1;return!0}function isSubUrl(base,match){return(!match.protocol||match.protocol===base.protocol)&&(!match.hostname||match.hostname===base.hostname)&&(!match.port||match.port===base.port)&&(!match.pathname||base.pathname.startsWith(match.pathname))&&(!match.search||isSubObject(match.searchParams,base.searchParams))&&(!match.hash||match.hash===base.hash)&&(!match.password||match.password===base.password)&&(!match.username||match.username===base.username)}function isExactMatch(base,match){return(!match.pathname||base.pathname===match.pathname)&&(!match.search||isSubObject(new URLSearchParams(base.search),new URLSearchParams(match.search)))}function isStrictMatch(base,match){return!match.pathname||base.pathname.endsWith("/")===match.pathname.endsWith("/")}function compareUrl(baseUrlFromParams,toMatchUrlFromParams,{exact=!1,strict=!1}={}){if(baseUrlFromParams===toMatchUrlFromParams)return!0;let baseUrlStr=baseUrlFromParams,toMatchUrlStr=toMatchUrlFromParams;strict||(baseUrlStr=baseUrlStr.replace(/\/(?=[?#]|$)/,""),toMatchUrlStr=toMatchUrlStr.replace(/\/(?=[?#]|$)/,""));try{const base=new URL(baseUrlStr,"http://example.com"),match=new URL(toMatchUrlStr,"http://example.com"),subUrl=isSubUrl(base,match),exactMatch=!exact||isExactMatch(base,match),strictMatch=!strict||isStrictMatch(base,match);return subUrl&&exactMatch&&strictMatch}catch(error){return console.error("Invalid URL provided:",error),!1}}},19304(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationProvider=exports.useNavigation=exports.useNavigate=exports.useLocation=exports.Link=void 0;var link_js_1=__webpack_require__(88778);Object.defineProperty(exports,"Link",{enumerable:!0,get:function(){return link_js_1.Link}});var use_location_js_1=__webpack_require__(92891);Object.defineProperty(exports,"useLocation",{enumerable:!0,get:function(){return use_location_js_1.useLocation}});var use_navigate_js_1=__webpack_require__(81687);Object.defineProperty(exports,"useNavigate",{enumerable:!0,get:function(){return use_navigate_js_1.useNavigate}});var navigation_provider_js_1=__webpack_require__(3404);Object.defineProperty(exports,"useNavigation",{enumerable:!0,get:function(){return navigation_provider_js_1.useNavigation}}),Object.defineProperty(exports,"NavigationProvider",{enumerable:!0,get:function(){return navigation_provider_js_1.NavigationProvider}})},88778(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Link=void 0;const react_1=__importStar(__webpack_require__(12888)),navigation_provider_js_1=__webpack_require__(3404),native_link_js_1=__webpack_require__(25338);exports.Link=(0,react_1.forwardRef)(function(props,ref){const ActualLink=(0,navigation_provider_js_1.useNavigation)().Link||native_link_js_1.NativeLink;return props.native||props.external?react_1.default.createElement(native_link_js_1.NativeLink,Object.assign({},props,{ref})):react_1.default.createElement(ActualLink,Object.assign({},props,{ref}))})},25338(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NativeLink=void 0;const react_1=__importStar(__webpack_require__(12888)),classnames_1=__importDefault(__webpack_require__(96265)),compare_url_js_1=__webpack_require__(50259),use_location_js_1=__webpack_require__(92891),externalLinkAttributes={rel:"noopener",target:"_blank"};exports.NativeLink=(0,react_1.forwardRef)(function(_a,ref){var{className,style,activeClassName,activeStyle,active,strict,children,exact,href,external,native,state}=_a,rest=__rest(_a,["className","style","activeClassName","activeStyle","active","strict","children","exact","href","external","native","state"]);const location=(0,use_location_js_1.useLocation)(),shouldCalcActive=!!activeClassName||!!activeStyle,isActive=(0,react_1.useMemo)(()=>shouldCalcActive?typeof active=="boolean"?active:!location||!href?!1:(0,compare_url_js_1.compareUrl)(location.pathname,href,{exact,strict}):!1,[active,href,location,shouldCalcActive]),externalProps=external?externalLinkAttributes:{},combinedStyles=(0,react_1.useMemo)(()=>isActive&&activeStyle?Object.assign(Object.assign({},style),activeStyle):style,[isActive,style]);return react_1.default.createElement("a",Object.assign({},externalProps,rest,{ref,href,className:(0,classnames_1.default)(className,isActive&&activeClassName),style:combinedStyles}),children)})},3404(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(mod!=null)for(var k in mod)k!=="default"&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NavigationContext=void 0,exports.useNavigation=useNavigation,exports.NavigationProvider=NavigationProvider;const react_1=__importStar(__webpack_require__(12888));exports.NavigationContext=react_1.default.createContext({});function useNavigation(){return(0,react_1.useContext)(exports.NavigationContext)}function NavigationProvider({children,implementation}){return react_1.default.createElement(exports.NavigationContext.Provider,{value:implementation},children)}},92891(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useLocation=useLocation;const navigation_provider_js_1=__webpack_require__(3404);function NativeUseLocation(){if(!(typeof window>"u"))return window.location}function useLocation(){return((0,navigation_provider_js_1.useNavigation)().useLocation||NativeUseLocation)()}},81687(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useNavigate=useNavigate;const navigation_provider_js_1=__webpack_require__(3404);function nativeNavigator(target,{replace}={}){if(typeof window>"u")throw new Error("base-react.navigation.use-location - cannot use native navigator outside of browser. Inject a custom useNavigate, or use navigation after mount");const{location,history}=window;typeof target=="number"?history.go(target):replace?location.replace(target):location.assign(target)}function useNavigate(){var _a;const nav=(0,navigation_provider_js_1.useNavigation)();return((_a=nav.useNavigate)===null||_a===void 0?void 0:_a.call(nav))||nativeNavigator}},67446(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.LoaderRibbon=void 0;var loader_ribbon_1=__webpack_require__(25360);Object.defineProperty(exports,"LoaderRibbon",{enumerable:!0,get:function(){return loader_ribbon_1.LoaderRibbon}})},25360(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoaderRibbon=void 0;const classnames_1=__importDefault(__webpack_require__(97500)),react_1=__importDefault(__webpack_require__(12888)),loader_ribbon_module_scss_1=__importDefault(__webpack_require__(5855));function LoaderRibbon(_a){var{active,className}=_a,rest=__rest(_a,["active","className"]);return react_1.default.createElement("div",Object.assign({},rest,{className:classnames_1.default(className,loader_ribbon_module_scss_1.default.loader,active&&loader_ribbon_module_scss_1.default.loading)}),react_1.default.createElement("div",{className:loader_ribbon_module_scss_1.default.progress}))}exports.LoaderRibbon=LoaderRibbon},30678(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Composer=void 0;const react_1=__importDefault(__webpack_require__(12888));function Composer(props){const{components=[],children}=props,arrayified=components.map(tuple=>Array.isArray(tuple)?tuple:[tuple,void 0]);return react_1.default.createElement(react_1.default.Fragment,null,arrayified.reduceRight((acc,[Comp,forwardProps])=>react_1.default.createElement(Comp,Object.assign({},forwardProps),acc),children))}exports.Composer=Composer},40218(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.Composer=void 0;var composer_1=__webpack_require__(30678);Object.defineProperty(exports,"Composer",{enumerable:!0,get:function(){return composer_1.Composer}})},80124(__unused_webpack_module,exports,__webpack_require__){"use strict";var __webpack_unused_export__;__webpack_unused_export__={value:!0},exports.links=void 0;var links_1=__webpack_require__(63253);Object.defineProperty(exports,"links",{enumerable:!0,get:function(){return links_1.links}})},63253(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.links=void 0,exports.links={docs:"https://bit.dev/docs",github:"https://github.com/teambit/bit",slack:"https://join.slack.com/t/bit-dev-community/shared_invite/zt-1el4b4sb5-FpgRefqUiZbUH9lvnHgwRg",blog:"https://bit.cloud/blog",twitter:"https://twitter.com/bitdev_",linkedin:"https://www.linkedin.com/company/bit-dev",bitRegistry:"https://node.bit.cloud",youtube:"https://www.youtube.com/c/Bitdev/videos",careers:"https://bit.breezy.hr"}},52942(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0;const react_1=__importDefault(__webpack_require__(12888)),base_react_navigation_link_1=__webpack_require__(19304),community_constants_links_1=__webpack_require__(80124),styles={link:{textDecoration:"none",lineHeight:"inherit",color:"unset"},logo:{width:"24px",height:"24px",margin:"0 13px"}};function ContactIcons(props){const style={props};return react_1.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},styles.iconLine),style)},props),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.slack},react_1.default.createElement("img",{alt:"slack",style:styles.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.github},react_1.default.createElement("img",{alt:"github",style:styles.logo,src:"https://static.bit.dev/harmony/github.svg"})),react_1.default.createElement(base_react_navigation_link_1.Link,{external:!0,style:styles.link,href:community_constants_links_1.links.docs},react_1.default.createElement("img",{alt:"bit docs",style:styles.logo,src:"https://static.bit.dev/bit-logo.svg"})))}exports.ContactIcons=ContactIcons},35236(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ErrorPage=void 0;const react_1=__importDefault(__webpack_require__(12888)),styles={errorPage:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"auto",padding:"24px",textAlign:"center"},title:{fontWeight:"bold",margin:"0 0 24px 0"},img:{maxWidth:"700px",marginBottom:"24px",width:"100%"}},inlineStyles=`
2
2
  .bit-error-page-title { font-size: 36px; }
3
3
  @media screen and (max-width: 480px) { .bit-error-page-title { font-size: 24px; } }
4
4
  `;function ErrorPage(_a){var{code,title,style,children}=_a,rest=__rest(_a,["code","title","style","children"]);return react_1.default.createElement("div",Object.assign({},rest,{style:Object.assign(Object.assign({},styles.errorPage),style)}),react_1.default.createElement("style",null,inlineStyles),react_1.default.createElement("h1",{style:styles.title,className:"bit-error-page-title"},title),react_1.default.createElement("img",{alt:"error",style:styles.img,src:`https://static.bit.dev/harmony/${code}.svg`}),children)}exports.ErrorPage=ErrorPage},72672(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ContactIcons=void 0,__exportStar(__webpack_require__(35236),exports);var contact_footer_1=__webpack_require__(52942);Object.defineProperty(exports,"ContactIcons",{enumerable:!0,get:function(){return contact_footer_1.ContactIcons}})},80105(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;var not_found_page_1=__webpack_require__(96321);Object.defineProperty(exports,"NotFoundPage",{enumerable:!0,get:function(){return not_found_page_1.NotFoundPage}})},96321(__unused_webpack_module,exports,__webpack_require__){"use strict";var __rest=this&&this.__rest||function(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]]);return t},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotFoundPage=void 0;const react_1=__importDefault(__webpack_require__(12888)),design_ui_error_page_1=__webpack_require__(72672);function NotFoundPage(_a){var rest=__rest(_a,[]);return react_1.default.createElement(design_ui_error_page_1.ErrorPage,Object.assign({},rest,{code:404,title:"Page not found"}),react_1.default.createElement(design_ui_error_page_1.ContactIcons,null))}exports.NotFoundPage=NotFoundPage},4136(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__(15952),exports)},15952(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.StandaloneNotFoundPage=StandaloneNotFoundPage;const react_1=__importDefault(__webpack_require__(12888)),design_ui_pages_not_found_1=__webpack_require__(80105);function StandaloneNotFoundPage(){return react_1.default.createElement(design_ui_pages_not_found_1.NotFoundPage,{style:{fontFamily:'"Helvetica Neue",Helvetica, sans-serif'}})}},96265(module,exports){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;/*!
@@ -33,4 +33,4 @@ Error generating stack: `+x.message+`
33
33
  Copyright (c) 2018 Jed Watson.
34
34
  Licensed under the MIT License (MIT), see
35
35
  http://jedwatson.github.io/classnames
36
- */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if(typeof arg=="string"||typeof arg=="number")return arg;if(typeof arg!="object")return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},19900(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(89699)}}]);
36
+ */(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){for(var classes="",i=0;i<arguments.length;i++){var arg=arguments[i];arg&&(classes=appendClass(classes,parseValue(arg)))}return classes}function parseValue(arg){if(typeof arg=="string"||typeof arg=="number")return arg;if(typeof arg!="object")return"";if(Array.isArray(arg))return classNames.apply(null,arg);if(arg.toString!==Object.prototype.toString&&!arg.toString.toString().includes("[native code]"))return arg.toString();var classes="";for(var key in arg)hasOwn.call(arg,key)&&arg[key]&&(classes=appendClass(classes,key));return classes}function appendClass(value,newClass){return newClass?value?value+" "+newClass:value+newClass:value}module.exports?(classNames.default=classNames,module.exports=classNames):(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})()},32185(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_compositions_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(89699)}}]);
@@ -1,4 +1,4 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[109],{58015(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Composite:()=>Composite,CompositeItem:()=>CompositeItem,FloatingArrow:()=>FloatingArrow,FloatingDelayGroup:()=>FloatingDelayGroup,FloatingFocusManager:()=>FloatingFocusManager,FloatingList:()=>FloatingList,FloatingNode:()=>FloatingNode,FloatingOverlay:()=>FloatingOverlay,FloatingPortal:()=>FloatingPortal,FloatingTree:()=>FloatingTree,NextFloatingDelayGroup:()=>NextFloatingDelayGroup,arrow:()=>floating_ui_react_dom_arrow,autoPlacement:()=>floating_ui_react_dom_autoPlacement,autoUpdate:()=>autoUpdate,computePosition:()=>floating_ui_dom_computePosition,detectOverflow:()=>floating_ui_dom_detectOverflow,flip:()=>floating_ui_react_dom_flip,getOverflowAncestors:()=>getOverflowAncestors,hide:()=>floating_ui_react_dom_hide,inline:()=>floating_ui_react_dom_inline,inner:()=>inner,limitShift:()=>floating_ui_react_dom_limitShift,offset:()=>floating_ui_react_dom_offset,platform:()=>platform,safePolygon:()=>safePolygon,shift:()=>floating_ui_react_dom_shift,size:()=>floating_ui_react_dom_size,useClick:()=>useClick,useClientPoint:()=>useClientPoint,useDelayGroup:()=>useDelayGroup,useDelayGroupContext:()=>useDelayGroupContext,useDismiss:()=>useDismiss,useFloating:()=>floating_ui_react_esm_useFloating,useFloatingNodeId:()=>useFloatingNodeId,useFloatingParentNodeId:()=>useFloatingParentNodeId,useFloatingPortalNode:()=>useFloatingPortalNode,useFloatingRootContext:()=>useFloatingRootContext,useFloatingTree:()=>useFloatingTree,useFocus:()=>useFocus,useHover:()=>useHover,useId:()=>useId,useInnerOffset:()=>useInnerOffset,useInteractions:()=>useInteractions,useListItem:()=>useListItem,useListNavigation:()=>useListNavigation,useMergeRefs:()=>useMergeRefs,useNextDelayGroup:()=>useNextDelayGroup,useRole:()=>useRole,useTransitionStatus:()=>useTransitionStatus,useTransitionStyles:()=>useTransitionStyles,useTypeahead:()=>useTypeahead});var react=__webpack_require__(12888),react_namespaceObject=__webpack_require__.t(react,2);function hasWindow(){return typeof window<"u"}function getNodeName(node){return isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function getWindow(node){var _node$ownerDocument;return(node==null||(_node$ownerDocument=node.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement(node){var _ref;return(_ref=(isNode(node)?node.ownerDocument:node.document)||window.document)==null?void 0:_ref.documentElement}function isNode(value){return hasWindow()?value instanceof Node||value instanceof getWindow(value).Node:!1}function isElement(value){return hasWindow()?value instanceof Element||value instanceof getWindow(value).Element:!1}function isHTMLElement(value){return hasWindow()?value instanceof HTMLElement||value instanceof getWindow(value).HTMLElement:!1}function isShadowRoot(value){return!hasWindow()||typeof ShadowRoot>"u"?!1:value instanceof ShadowRoot||value instanceof getWindow(value).ShadowRoot}function isOverflowElement(element){const{overflow,overflowX,overflowY,display}=floating_ui_utils_dom_getComputedStyle(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&display!=="inline"&&display!=="contents"}function isTableElement(element){return/^(table|td|th)$/.test(getNodeName(element))}function isTopLayer(element){try{if(element.matches(":popover-open"))return!0}catch{}try{return element.matches(":modal")}catch{return!1}}const willChangeRe=/transform|translate|scale|rotate|perspective|filter/,containRe=/paint|layout|strict|content/,isNotNone=value=>!!value&&value!=="none";let isWebKitValue;function isContainingBlock(elementOrCss){const css=isElement(elementOrCss)?floating_ui_utils_dom_getComputedStyle(elementOrCss):elementOrCss;return isNotNone(css.transform)||isNotNone(css.translate)||isNotNone(css.scale)||isNotNone(css.rotate)||isNotNone(css.perspective)||!isWebKit()&&(isNotNone(css.backdropFilter)||isNotNone(css.filter))||willChangeRe.test(css.willChange||"")||containRe.test(css.contain||"")}function getContainingBlock(element){let currentNode=getParentNode(element);for(;isHTMLElement(currentNode)&&!isLastTraversableNode(currentNode);){if(isContainingBlock(currentNode))return currentNode;if(isTopLayer(currentNode))return null;currentNode=getParentNode(currentNode)}return null}function isWebKit(){return isWebKitValue==null&&(isWebKitValue=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(node){return/^(html|body|#document)$/.test(getNodeName(node))}function floating_ui_utils_dom_getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function getNodeScroll(element){return isElement(element)?{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}:{scrollLeft:element.scrollX,scrollTop:element.scrollY}}function getParentNode(node){if(getNodeName(node)==="html")return node;const result=node.assignedSlot||node.parentNode||isShadowRoot(node)&&node.host||getDocumentElement(node);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node){const parentNode=getParentNode(node);return isLastTraversableNode(parentNode)?(node.ownerDocument||node).body:isHTMLElement(parentNode)&&isOverflowElement(parentNode)?parentNode:getNearestOverflowAncestor(parentNode)}function getOverflowAncestors(node,list,traverseIframes){var _node$ownerDocument2;list===void 0&&(list=[]),traverseIframes===void 0&&(traverseIframes=!0);const scrollableAncestor=getNearestOverflowAncestor(node),isBody=scrollableAncestor===((_node$ownerDocument2=node.ownerDocument)==null?void 0:_node$ownerDocument2.body),win=getWindow(scrollableAncestor);if(isBody){const frameElement=getFrameElement(win);return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?getOverflowAncestors(frameElement):[])}else return list.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null}const sides=["top","right","bottom","left"],alignments=["start","end"],placements=sides.reduce((acc,side)=>acc.concat(side,side+"-"+alignments[0],side+"-"+alignments[1]),[]),min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=v=>({x:v,y:v}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function clamp(start,value,end){return max(start,min(value,end))}function evaluate(value,param){return typeof value=="function"?value(param):value}function getSide(placement){return placement.split("-")[0]}function getAlignment(placement){return placement.split("-")[1]}function getOppositeAxis(axis){return axis==="x"?"y":"x"}function getAxisLength(axis){return axis==="y"?"height":"width"}function getSideAxis(placement){const firstChar=placement[0];return firstChar==="t"||firstChar==="b"?"y":"x"}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement))}function getAlignmentSides(placement,rects,rtl){rtl===void 0&&(rtl=!1);const alignment=getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis);let mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}function getExpandedPlacements(placement){const oppositePlacement=getOppositePlacement(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)]}function getOppositeAlignmentPlacement(placement){return placement.includes("start")?placement.replace("start","end"):placement.replace("end","start")}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":return rtl?isStart?rlPlacement:lrPlacement:isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){const alignment=getAlignment(placement);let list=getSideList(getSide(placement),direction==="start",rtl);return alignment&&(list=list.map(side=>side+"-"+alignment),flipAlignment&&(list=list.concat(list.map(getOppositeAlignmentPlacement)))),list}function getOppositePlacement(placement){const side=getSide(placement);return oppositeSideMap[side]+placement.slice(side.length)}function expandPaddingObject(padding){var _padding$top,_padding$right,_padding$bottom,_padding$left;return{top:(_padding$top=padding.top)!=null?_padding$top:0,right:(_padding$right=padding.right)!=null?_padding$right:0,bottom:(_padding$bottom=padding.bottom)!=null?_padding$bottom:0,left:(_padding$left=padding.left)!=null?_padding$left:0}}function getPaddingObject(padding){return typeof padding!="number"?expandPaddingObject(padding):{top:padding,right:padding,bottom:padding,left:padding}}function rectToClientRect(rect){const{x,y,width,height}=rect;return{width,height,top:y,left:x,right:x+width,bottom:y+height,x,y}}/*!
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[492],{58015(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Composite:()=>Composite,CompositeItem:()=>CompositeItem,FloatingArrow:()=>FloatingArrow,FloatingDelayGroup:()=>FloatingDelayGroup,FloatingFocusManager:()=>FloatingFocusManager,FloatingList:()=>FloatingList,FloatingNode:()=>FloatingNode,FloatingOverlay:()=>FloatingOverlay,FloatingPortal:()=>FloatingPortal,FloatingTree:()=>FloatingTree,NextFloatingDelayGroup:()=>NextFloatingDelayGroup,arrow:()=>floating_ui_react_dom_arrow,autoPlacement:()=>floating_ui_react_dom_autoPlacement,autoUpdate:()=>autoUpdate,computePosition:()=>floating_ui_dom_computePosition,detectOverflow:()=>floating_ui_dom_detectOverflow,flip:()=>floating_ui_react_dom_flip,getOverflowAncestors:()=>getOverflowAncestors,hide:()=>floating_ui_react_dom_hide,inline:()=>floating_ui_react_dom_inline,inner:()=>inner,limitShift:()=>floating_ui_react_dom_limitShift,offset:()=>floating_ui_react_dom_offset,platform:()=>platform,safePolygon:()=>safePolygon,shift:()=>floating_ui_react_dom_shift,size:()=>floating_ui_react_dom_size,useClick:()=>useClick,useClientPoint:()=>useClientPoint,useDelayGroup:()=>useDelayGroup,useDelayGroupContext:()=>useDelayGroupContext,useDismiss:()=>useDismiss,useFloating:()=>floating_ui_react_esm_useFloating,useFloatingNodeId:()=>useFloatingNodeId,useFloatingParentNodeId:()=>useFloatingParentNodeId,useFloatingPortalNode:()=>useFloatingPortalNode,useFloatingRootContext:()=>useFloatingRootContext,useFloatingTree:()=>useFloatingTree,useFocus:()=>useFocus,useHover:()=>useHover,useId:()=>useId,useInnerOffset:()=>useInnerOffset,useInteractions:()=>useInteractions,useListItem:()=>useListItem,useListNavigation:()=>useListNavigation,useMergeRefs:()=>useMergeRefs,useNextDelayGroup:()=>useNextDelayGroup,useRole:()=>useRole,useTransitionStatus:()=>useTransitionStatus,useTransitionStyles:()=>useTransitionStyles,useTypeahead:()=>useTypeahead});var react=__webpack_require__(12888),react_namespaceObject=__webpack_require__.t(react,2);function hasWindow(){return typeof window<"u"}function getNodeName(node){return isNode(node)?(node.nodeName||"").toLowerCase():"#document"}function getWindow(node){var _node$ownerDocument;return(node==null||(_node$ownerDocument=node.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement(node){var _ref;return(_ref=(isNode(node)?node.ownerDocument:node.document)||window.document)==null?void 0:_ref.documentElement}function isNode(value){return hasWindow()?value instanceof Node||value instanceof getWindow(value).Node:!1}function isElement(value){return hasWindow()?value instanceof Element||value instanceof getWindow(value).Element:!1}function isHTMLElement(value){return hasWindow()?value instanceof HTMLElement||value instanceof getWindow(value).HTMLElement:!1}function isShadowRoot(value){return!hasWindow()||typeof ShadowRoot>"u"?!1:value instanceof ShadowRoot||value instanceof getWindow(value).ShadowRoot}function isOverflowElement(element){const{overflow,overflowX,overflowY,display}=floating_ui_utils_dom_getComputedStyle(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&display!=="inline"&&display!=="contents"}function isTableElement(element){return/^(table|td|th)$/.test(getNodeName(element))}function isTopLayer(element){try{if(element.matches(":popover-open"))return!0}catch{}try{return element.matches(":modal")}catch{return!1}}const willChangeRe=/transform|translate|scale|rotate|perspective|filter/,containRe=/paint|layout|strict|content/,isNotNone=value=>!!value&&value!=="none";let isWebKitValue;function isContainingBlock(elementOrCss){const css=isElement(elementOrCss)?floating_ui_utils_dom_getComputedStyle(elementOrCss):elementOrCss;return isNotNone(css.transform)||isNotNone(css.translate)||isNotNone(css.scale)||isNotNone(css.rotate)||isNotNone(css.perspective)||!isWebKit()&&(isNotNone(css.backdropFilter)||isNotNone(css.filter))||willChangeRe.test(css.willChange||"")||containRe.test(css.contain||"")}function getContainingBlock(element){let currentNode=getParentNode(element);for(;isHTMLElement(currentNode)&&!isLastTraversableNode(currentNode);){if(isContainingBlock(currentNode))return currentNode;if(isTopLayer(currentNode))return null;currentNode=getParentNode(currentNode)}return null}function isWebKit(){return isWebKitValue==null&&(isWebKitValue=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(node){return/^(html|body|#document)$/.test(getNodeName(node))}function floating_ui_utils_dom_getComputedStyle(element){return getWindow(element).getComputedStyle(element)}function getNodeScroll(element){return isElement(element)?{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}:{scrollLeft:element.scrollX,scrollTop:element.scrollY}}function getParentNode(node){if(getNodeName(node)==="html")return node;const result=node.assignedSlot||node.parentNode||isShadowRoot(node)&&node.host||getDocumentElement(node);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node){const parentNode=getParentNode(node);return isLastTraversableNode(parentNode)?(node.ownerDocument||node).body:isHTMLElement(parentNode)&&isOverflowElement(parentNode)?parentNode:getNearestOverflowAncestor(parentNode)}function getOverflowAncestors(node,list,traverseIframes){var _node$ownerDocument2;list===void 0&&(list=[]),traverseIframes===void 0&&(traverseIframes=!0);const scrollableAncestor=getNearestOverflowAncestor(node),isBody=scrollableAncestor===((_node$ownerDocument2=node.ownerDocument)==null?void 0:_node$ownerDocument2.body),win=getWindow(scrollableAncestor);if(isBody){const frameElement=getFrameElement(win);return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?getOverflowAncestors(frameElement):[])}else return list.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null}const sides=["top","right","bottom","left"],alignments=["start","end"],placements=sides.reduce((acc,side)=>acc.concat(side,side+"-"+alignments[0],side+"-"+alignments[1]),[]),min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=v=>({x:v,y:v}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};function clamp(start,value,end){return max(start,min(value,end))}function evaluate(value,param){return typeof value=="function"?value(param):value}function getSide(placement){return placement.split("-")[0]}function getAlignment(placement){return placement.split("-")[1]}function getOppositeAxis(axis){return axis==="x"?"y":"x"}function getAxisLength(axis){return axis==="y"?"height":"width"}function getSideAxis(placement){const firstChar=placement[0];return firstChar==="t"||firstChar==="b"?"y":"x"}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement))}function getAlignmentSides(placement,rects,rtl){rtl===void 0&&(rtl=!1);const alignment=getAlignment(placement),alignmentAxis=getAlignmentAxis(placement),length=getAxisLength(alignmentAxis);let mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";return rects.reference[length]>rects.floating[length]&&(mainAlignmentSide=getOppositePlacement(mainAlignmentSide)),[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}function getExpandedPlacements(placement){const oppositePlacement=getOppositePlacement(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)]}function getOppositeAlignmentPlacement(placement){return placement.includes("start")?placement.replace("start","end"):placement.replace("end","start")}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(side,isStart,rtl){switch(side){case"top":case"bottom":return rtl?isStart?rlPlacement:lrPlacement:isStart?lrPlacement:rlPlacement;case"left":case"right":return isStart?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){const alignment=getAlignment(placement);let list=getSideList(getSide(placement),direction==="start",rtl);return alignment&&(list=list.map(side=>side+"-"+alignment),flipAlignment&&(list=list.concat(list.map(getOppositeAlignmentPlacement)))),list}function getOppositePlacement(placement){const side=getSide(placement);return oppositeSideMap[side]+placement.slice(side.length)}function expandPaddingObject(padding){var _padding$top,_padding$right,_padding$bottom,_padding$left;return{top:(_padding$top=padding.top)!=null?_padding$top:0,right:(_padding$right=padding.right)!=null?_padding$right:0,bottom:(_padding$bottom=padding.bottom)!=null?_padding$bottom:0,left:(_padding$left=padding.left)!=null?_padding$left:0}}function getPaddingObject(padding){return typeof padding!="number"?expandPaddingObject(padding):{top:padding,right:padding,bottom:padding,left:padding}}function rectToClientRect(rect){const{x,y,width,height}=rect;return{width,height,top:y,left:x,right:x+width,bottom:y+height,x,y}}/*!
2
2
  * tabbable 6.5.0
3
3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4
4
  */var candidateSelectors=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],candidateSelector=candidateSelectors.join(","),NoElement=typeof Element>"u",matches=NoElement?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,getRootNode=!NoElement&&Element.prototype.getRootNode?function(element){var _element$getRootNode;return element==null||(_element$getRootNode=element.getRootNode)===null||_element$getRootNode===void 0?void 0:_element$getRootNode.call(element)}:function(element){return element?.ownerDocument},_isInert=function(node,lookUp){var _node$getAttribute;lookUp===void 0&&(lookUp=!0);var inertAtt=node==null||(_node$getAttribute=node.getAttribute)===null||_node$getAttribute===void 0?void 0:_node$getAttribute.call(node,"inert"),inert=inertAtt===""||inertAtt==="true",result=inert||lookUp&&node&&(typeof node.closest=="function"?node.closest("[inert]"):_isInert(node.parentNode));return result},isContentEditable=function(node){var _node$getAttribute2,attValue=node==null||(_node$getAttribute2=node.getAttribute)===null||_node$getAttribute2===void 0?void 0:_node$getAttribute2.call(node,"contenteditable");return attValue===""||attValue==="true"},getCandidates=function(el,includeContainer,filter){if(_isInert(el))return[];var candidates=Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));return includeContainer&&matches.call(el,candidateSelector)&&candidates.unshift(el),candidates=candidates.filter(filter),candidates},_getCandidatesIteratively=function(elements,includeContainer,options){for(var candidates=[],elementsToCheck=Array.from(elements);elementsToCheck.length;){var element=elementsToCheck.shift();if(!_isInert(element,!1))if(element.tagName==="SLOT"){var assigned=element.assignedElements(),content=assigned.length?assigned:element.children,nestedCandidates=_getCandidatesIteratively(content,!0,options);options.flatten?candidates.push.apply(candidates,nestedCandidates):candidates.push({scopeParent:element,candidates:nestedCandidates})}else{var validCandidate=matches.call(element,candidateSelector);validCandidate&&options.filter(element)&&(includeContainer||!elements.includes(element))&&candidates.push(element);var shadowRoot=element.shadowRoot||typeof options.getShadowRoot=="function"&&options.getShadowRoot(element),validShadowRoot=!_isInert(shadowRoot,!1)&&(!options.shadowRootFilter||options.shadowRootFilter(element));if(shadowRoot&&validShadowRoot){var _nestedCandidates=_getCandidatesIteratively(shadowRoot===!0?element.children:shadowRoot.children,!0,options);options.flatten?candidates.push.apply(candidates,_nestedCandidates):candidates.push({scopeParent:element,candidates:_nestedCandidates})}else elementsToCheck.unshift.apply(elementsToCheck,element.children)}}return candidates},hasTabIndex=function(node){return!isNaN(parseInt(node.getAttribute("tabindex"),10))},getTabIndex=function(node){if(!node)throw new Error("No node provided");return node.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName)||isContentEditable(node))&&!hasTabIndex(node)?0:node.tabIndex},getSortOrderTabIndex=function(node,isScope){var tabIndex=getTabIndex(node);return tabIndex<0&&isScope&&!hasTabIndex(node)?0:tabIndex},sortOrderedTabbables=function(a,b){return a.tabIndex===b.tabIndex?a.documentOrder-b.documentOrder:a.tabIndex-b.tabIndex},isInput=function(node){return node.tagName==="INPUT"},isHiddenInput=function(node){return isInput(node)&&node.type==="hidden"},isDetailsWithSummary=function(node){var r=node.tagName==="DETAILS"&&Array.prototype.slice.apply(node.children).some(function(child){return child.tagName==="SUMMARY"});return r},getCheckedRadio=function(nodes,form){for(var i=0;i<nodes.length;i++)if(nodes[i].checked&&nodes[i].form===form)return nodes[i]},isTabbableRadio=function(node){if(!node.name)return!0;var radioScope=node.form||getRootNode(node),queryRadios=function(name){return radioScope.querySelectorAll('input[type="radio"][name="'+name+'"]')},radioSet;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")radioSet=queryRadios(window.CSS.escape(node.name));else try{radioSet=queryRadios(node.name)}catch(err){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",err.message),!1}var checked=getCheckedRadio(radioSet,node.form);return!checked||checked===node},isRadio=function(node){return isInput(node)&&node.type==="radio"},isNonTabbableRadio=function(node){return isRadio(node)&&!isTabbableRadio(node)},isNodeAttached=function(node){var _nodeRoot,nodeRoot=node&&getRootNode(node),nodeRootHost=(_nodeRoot=nodeRoot)===null||_nodeRoot===void 0?void 0:_nodeRoot.host,attached=!1;if(nodeRoot&&nodeRoot!==node){var _nodeRootHost,_nodeRootHost$ownerDo,_node$ownerDocument;for(attached=!!((_nodeRootHost=nodeRootHost)!==null&&_nodeRootHost!==void 0&&(_nodeRootHost$ownerDo=_nodeRootHost.ownerDocument)!==null&&_nodeRootHost$ownerDo!==void 0&&_nodeRootHost$ownerDo.contains(nodeRootHost)||node!=null&&(_node$ownerDocument=node.ownerDocument)!==null&&_node$ownerDocument!==void 0&&_node$ownerDocument.contains(node));!attached&&nodeRootHost;){var _nodeRoot2,_nodeRootHost2,_nodeRootHost2$ownerD;nodeRoot=getRootNode(nodeRootHost),nodeRootHost=(_nodeRoot2=nodeRoot)===null||_nodeRoot2===void 0?void 0:_nodeRoot2.host,attached=!!((_nodeRootHost2=nodeRootHost)!==null&&_nodeRootHost2!==void 0&&(_nodeRootHost2$ownerD=_nodeRootHost2.ownerDocument)!==null&&_nodeRootHost2$ownerD!==void 0&&_nodeRootHost2$ownerD.contains(nodeRootHost))}}return attached},isZeroArea=function(node){var _node$getBoundingClie=node.getBoundingClientRect(),width=_node$getBoundingClie.width,height=_node$getBoundingClie.height;return width===0&&height===0},isHidden=function(node,_ref){var displayCheck=_ref.displayCheck,getShadowRoot=_ref.getShadowRoot;if(displayCheck==="full-native"&&"checkVisibility"in node){var visible=node.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!visible}var _getComputedStyle=getComputedStyle(node),visibility=_getComputedStyle.visibility;if(visibility==="hidden"||visibility==="collapse")return!0;var isDirectSummary=matches.call(node,"details>summary:first-of-type"),nodeUnderDetails=isDirectSummary?node.parentElement:node;if(matches.call(nodeUnderDetails,"details:not([open]) *"))return!0;if(!displayCheck||displayCheck==="full"||displayCheck==="full-native"||displayCheck==="legacy-full"){if(typeof getShadowRoot=="function"){for(var originalNode=node;node;){var parentElement=node.parentElement,rootNode=getRootNode(node);if(parentElement&&!parentElement.shadowRoot&&getShadowRoot(parentElement)===!0)return isZeroArea(node);node.assignedSlot?node=node.assignedSlot:!parentElement&&rootNode!==node.ownerDocument?node=rootNode.host:node=parentElement}node=originalNode}if(isNodeAttached(node))return!node.getClientRects().length;if(displayCheck!=="legacy-full")return!0}else if(displayCheck==="non-zero-area")return isZeroArea(node);return!1},isDisabledFromFieldset=function(node){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName))for(var parentNode=node.parentElement;parentNode;){if(parentNode.tagName==="FIELDSET"&&parentNode.disabled){for(var i=0;i<parentNode.children.length;i++){var child=parentNode.children.item(i);if(child.tagName==="LEGEND")return matches.call(parentNode,"fieldset[disabled] *")?!0:!child.contains(node)}return!0}parentNode=parentNode.parentElement}return!1},isNodeMatchingSelectorFocusable=function(options,node){return!(node.disabled||isHiddenInput(node)||isHidden(node,options)||isDetailsWithSummary(node)||isDisabledFromFieldset(node))},isNodeMatchingSelectorTabbable=function(options,node){return!(isNonTabbableRadio(node)||getTabIndex(node)<0||!isNodeMatchingSelectorFocusable(options,node))},isShadowRootTabbable=function(shadowHostNode){var tabIndex=parseInt(shadowHostNode.getAttribute("tabindex"),10);return!!(isNaN(tabIndex)||tabIndex>=0)},_sortByOrder=function(candidates){var regularTabbables=[],orderedTabbables=[];return candidates.forEach(function(item,i){var isScope=!!item.scopeParent,element=isScope?item.scopeParent:item,candidateTabindex=getSortOrderTabIndex(element,isScope),elements=isScope?_sortByOrder(item.candidates):element;candidateTabindex===0?isScope?regularTabbables.push.apply(regularTabbables,elements):regularTabbables.push(element):orderedTabbables.push({documentOrder:i,tabIndex:candidateTabindex,item,isScope,content:elements})}),orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc,sortable){return sortable.isScope?acc.push.apply(acc,sortable.content):acc.push(sortable.content),acc},[]).concat(regularTabbables)},tabbable=function(container,options){options=options||{};var candidates;return options.getShadowRoot?candidates=_getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,options),flatten:!1,getShadowRoot:options.getShadowRoot,shadowRootFilter:isShadowRootTabbable}):candidates=getCandidates(container,options.includeContainer,isNodeMatchingSelectorTabbable.bind(null,options)),_sortByOrder(candidates)},focusable=function(container,options){options=options||{};var candidates;return options.getShadowRoot?candidates=_getCandidatesIteratively([container],options.includeContainer,{filter:isNodeMatchingSelectorFocusable.bind(null,options),flatten:!0,getShadowRoot:options.getShadowRoot}):candidates=getCandidates(container,options.includeContainer,isNodeMatchingSelectorFocusable.bind(null,options)),candidates},isTabbable=function(node,options){if(options=options||{},!node)throw new Error("No node provided");return matches.call(node,candidateSelector)===!1?!1:isNodeMatchingSelectorTabbable(options,node)},focusableCandidateSelector=null,isFocusable=function(node,options){if(options=options||{},!node)throw new Error("No node provided");return matches.call(node,focusableCandidateSelector)===!1?!1:isNodeMatchingSelectorFocusable(options,node)};function getPlatform(){const uaData=navigator.userAgentData;return uaData!=null&&uaData.platform?uaData.platform:navigator.platform}function getUserAgent(){const uaData=navigator.userAgentData;return uaData&&Array.isArray(uaData.brands)?uaData.brands.map(_ref=>{let{brand,version}=_ref;return brand+"/"+version}).join(" "):navigator.userAgent}function isSafari(){return/apple/i.test(navigator.vendor)}function isAndroid(){const re=/android/i;return re.test(getPlatform())||re.test(getUserAgent())}function isMac(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isJSDOM(){return getUserAgent().includes("jsdom/")}const FOCUSABLE_ATTRIBUTE="data-floating-ui-focusable",TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight",ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown";function activeElement(doc){let activeElement2=doc.activeElement;for(;((_activeElement=activeElement2)==null||(_activeElement=_activeElement.shadowRoot)==null?void 0:_activeElement.activeElement)!=null;){var _activeElement;activeElement2=activeElement2.shadowRoot.activeElement}return activeElement2}function contains(parent2,child){if(!parent2||!child)return!1;const rootNode=child.getRootNode==null?void 0:child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent2===next)return!0;next=next.parentNode||next.host}}return!1}function getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}function isEventTargetWithin(event,node){if(node==null)return!1;if("composedPath"in event)return event.composedPath().includes(node);const e=event;return e.target!=null&&node.contains(e.target)}function isRootElement(element){return element.matches("html,body")}function getDocument(node){return node?.ownerDocument||document}function isTypeableElement(element){return isHTMLElement(element)&&element.matches(TYPEABLE_SELECTOR)}function isTypeableCombobox(element){return element?element.getAttribute("role")==="combobox"&&isTypeableElement(element):!1}function matchesFocusVisible(element){if(!element||isJSDOM())return!0;try{return element.matches(":focus-visible")}catch{return!0}}function getFloatingFocusElement(floatingElement){return floatingElement?floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE)?floatingElement:floatingElement.querySelector("["+FOCUSABLE_ATTRIBUTE+"]")||floatingElement:null}function getNodeChildren(nodes,id,onlyOpenChildren){return onlyOpenChildren===void 0&&(onlyOpenChildren=!0),nodes.filter(node=>{var _node$context;return node.parentId===id&&(!onlyOpenChildren||((_node$context=node.context)==null?void 0:_node$context.open))}).flatMap(child=>[child,...getNodeChildren(nodes,child.id,onlyOpenChildren)])}function getDeepestNode(nodes,id){let deepestNodeId,maxDepth=-1;function findDeepest(nodeId,depth){depth>maxDepth&&(deepestNodeId=nodeId,maxDepth=depth),getNodeChildren(nodes,nodeId).forEach(child=>{findDeepest(child.id,depth+1)})}return findDeepest(id,0),nodes.find(node=>node.id===deepestNodeId)}function getNodeAncestors(nodes,id){var _nodes$find;let allAncestors=[],currentParentId=(_nodes$find=nodes.find(node=>node.id===id))==null?void 0:_nodes$find.parentId;for(;currentParentId;){const currentNode=nodes.find(node=>node.id===currentParentId);currentParentId=currentNode?.parentId,currentNode&&(allAncestors=allAncestors.concat(currentNode))}return allAncestors}function stopEvent(event){event.preventDefault(),event.stopPropagation()}function isReactEvent(event){return"nativeEvent"in event}function isVirtualClick(event){return event.mozInputSource===0&&event.isTrusted?!0:isAndroid()&&event.pointerType?event.type==="click"&&event.buttons===1:event.detail===0&&!event.pointerType}function isVirtualPointerEvent(event){return isJSDOM()?!1:!isAndroid()&&event.width===0&&event.height===0||isAndroid()&&event.width===1&&event.height===1&&event.pressure===0&&event.detail===0&&event.pointerType==="mouse"||event.width<1&&event.height<1&&event.pressure===0&&event.detail===0&&event.pointerType==="touch"}function isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];return strict||values.push("",void 0),values.includes(pointerType)}var isClient=typeof document<"u",noop=function(){},floating_ui_react_utils_index=isClient?react.useLayoutEffect:noop;const SafeReact={...react_namespaceObject};function useLatestRef(value){const ref=react.useRef(value);return floating_ui_react_utils_index(()=>{ref.current=value}),ref}const useSafeInsertionEffect=SafeReact.useInsertionEffect||(fn=>fn());function useEffectEvent(callback){const ref=react.useRef(()=>{});return useSafeInsertionEffect(()=>{ref.current=callback}),react.useCallback(function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return ref.current==null?void 0:ref.current(...args)},[])}function isDifferentGridRow(index2,cols,prevRow){return Math.floor(index2/cols)!==prevRow}function isIndexOutOfListBounds(listRef,index2){return index2<0||index2>=listRef.current.length}function getMinListIndex(listRef,disabledIndices){return findNonDisabledListIndex(listRef,{disabledIndices})}function getMaxListIndex(listRef,disabledIndices){return findNonDisabledListIndex(listRef,{decrement:!0,startingIndex:listRef.current.length,disabledIndices})}function findNonDisabledListIndex(listRef,_temp){let{startingIndex=-1,decrement=!1,disabledIndices,amount=1}=_temp===void 0?{}:_temp,index2=startingIndex;do index2+=decrement?-amount:amount;while(index2>=0&&index2<=listRef.current.length-1&&isListIndexDisabled(listRef,index2,disabledIndices));return index2}function getGridNavigatedIndex(listRef,_ref){let{event,orientation,loop,rtl,cols,disabledIndices,minIndex,maxIndex,prevIndex,stopEvent:stop=!1}=_ref,nextIndex=prevIndex;if(event.key===ARROW_UP){if(stop&&stopEvent(event),prevIndex===-1)nextIndex=maxIndex;else if(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:nextIndex,amount:cols,decrement:!0,disabledIndices}),loop&&(prevIndex-cols<minIndex||nextIndex<0)){const col=prevIndex%cols,maxCol=maxIndex%cols,offset2=maxIndex-(maxCol-col);maxCol===col?nextIndex=maxIndex:nextIndex=maxCol>col?offset2:offset2-cols}isIndexOutOfListBounds(listRef,nextIndex)&&(nextIndex=prevIndex)}if(event.key===ARROW_DOWN&&(stop&&stopEvent(event),prevIndex===-1?nextIndex=minIndex:(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex,amount:cols,disabledIndices}),loop&&prevIndex+cols>maxIndex&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex%cols-cols,amount:cols,disabledIndices}))),isIndexOutOfListBounds(listRef,nextIndex)&&(nextIndex=prevIndex)),orientation==="both"){const prevRow=floor(prevIndex/cols);event.key===(rtl?ARROW_LEFT:ARROW_RIGHT)&&(stop&&stopEvent(event),prevIndex%cols!==cols-1?(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex,disabledIndices}),loop&&isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex-prevIndex%cols-1,disabledIndices}))):loop&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex-prevIndex%cols-1,disabledIndices})),isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=prevIndex)),event.key===(rtl?ARROW_RIGHT:ARROW_LEFT)&&(stop&&stopEvent(event),prevIndex%cols!==0?(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex,decrement:!0,disabledIndices}),loop&&isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex+(cols-prevIndex%cols),decrement:!0,disabledIndices}))):loop&&(nextIndex=findNonDisabledListIndex(listRef,{startingIndex:prevIndex+(cols-prevIndex%cols),decrement:!0,disabledIndices})),isDifferentGridRow(nextIndex,cols,prevRow)&&(nextIndex=prevIndex));const lastRow=floor(maxIndex/cols)===prevRow;isIndexOutOfListBounds(listRef,nextIndex)&&(loop&&lastRow?nextIndex=event.key===(rtl?ARROW_RIGHT:ARROW_LEFT)?maxIndex:findNonDisabledListIndex(listRef,{startingIndex:prevIndex-prevIndex%cols-1,disabledIndices}):nextIndex=prevIndex)}return nextIndex}function createGridCellMap(sizes,cols,dense){const cellMap=[];let startIndex=0;return sizes.forEach((_ref2,index2)=>{let{width,height}=_ref2;width>cols;let itemPlaced=!1;for(dense&&(startIndex=0);!itemPlaced;){const targetCells=[];for(let i=0;i<width;i++)for(let j=0;j<height;j++)targetCells.push(startIndex+i+j*cols);startIndex%cols+width<=cols&&targetCells.every(cell=>cellMap[cell]==null)?(targetCells.forEach(cell=>{cellMap[cell]=index2}),itemPlaced=!0):startIndex++}}),[...cellMap]}function getGridCellIndexOfCorner(index2,sizes,cellMap,cols,corner){if(index2===-1)return-1;const firstCellIndex=cellMap.indexOf(index2),sizeItem=sizes[index2];switch(corner){case"tl":return firstCellIndex;case"tr":return sizeItem?firstCellIndex+sizeItem.width-1:firstCellIndex;case"bl":return sizeItem?firstCellIndex+(sizeItem.height-1)*cols:firstCellIndex;case"br":return cellMap.lastIndexOf(index2)}}function getGridCellIndices(indices,cellMap){return cellMap.flatMap((index2,cellIndex)=>indices.includes(index2)?[cellIndex]:[])}function isListIndexDisabled(listRef,index2,disabledIndices){if(typeof disabledIndices=="function")return disabledIndices(index2);if(disabledIndices)return disabledIndices.includes(index2);const element=listRef.current[index2];return element==null||element.hasAttribute("disabled")||element.getAttribute("aria-disabled")==="true"}const getTabbableOptions=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function getTabbableIn(container,dir){const list=tabbable(container,getTabbableOptions()),len=list.length;if(len===0)return;const active=activeElement(getDocument(container)),index2=list.indexOf(active),nextIndex=index2===-1?dir===1?0:len-1:index2+dir;return list[nextIndex]}function getNextTabbable(referenceElement){return getTabbableIn(getDocument(referenceElement).body,1)||referenceElement}function getPreviousTabbable(referenceElement){return getTabbableIn(getDocument(referenceElement).body,-1)||referenceElement}function isOutsideEvent(event,container){const containerElement=container||event.currentTarget,relatedTarget=event.relatedTarget;return!relatedTarget||!contains(containerElement,relatedTarget)}function disableFocusInside(container){tabbable(container,getTabbableOptions()).forEach(element=>{element.dataset.tabindex=element.getAttribute("tabindex")||"",element.setAttribute("tabindex","-1")})}function enableFocusInside(container){container.querySelectorAll("[data-tabindex]").forEach(element=>{const tabindex=element.dataset.tabindex;delete element.dataset.tabindex,tabindex?element.setAttribute("tabindex",tabindex):element.removeAttribute("tabindex")})}var jsx_runtime=__webpack_require__(11684),react_dom=__webpack_require__(2163);function computeCoordsFromPlacement(_ref,placement,rtl){let{reference,floating}=_ref;const sideAxis=getSideAxis(placement),alignmentAxis=getAlignmentAxis(placement),alignLength=getAxisLength(alignmentAxis),side=getSide(placement),isVertical=sideAxis==="y",commonX=reference.x+reference.width/2-floating.width/2,commonY=reference.y+reference.height/2-floating.height/2,commonAlign=reference[alignLength]/2-floating[alignLength]/2;let coords;switch(side){case"top":coords={x:commonX,y:reference.y-floating.height};break;case"bottom":coords={x:commonX,y:reference.y+reference.height};break;case"right":coords={x:reference.x+reference.width,y:commonY};break;case"left":coords={x:reference.x-floating.width,y:commonY};break;default:coords={x:reference.x,y:reference.y}}const alignment=getAlignment(placement);return alignment&&(coords[alignmentAxis]+=commonAlign*(alignment==="end"?1:-1)*(rtl&&isVertical?-1:1)),coords}async function detectOverflow(state,options){var _await$platform$isEle;options===void 0&&(options={});const{x,y,platform:platform2,rects,elements,strategy}=state,{boundary="clippingAncestors",rootBoundary="viewport",elementContext="floating",altBoundary=!1,padding=0}=evaluate(options,state),paddingObject=getPaddingObject(padding),element=elements[altBoundary?elementContext==="floating"?"reference":"floating":elementContext],clippingClientRect=rectToClientRect(await platform2.getClippingRect({element:(_await$platform$isEle=await(platform2.isElement==null?void 0:platform2.isElement(element)))==null||_await$platform$isEle?element:element.contextElement||await(platform2.getDocumentElement==null?void 0:platform2.getDocumentElement(elements.floating)),boundary,rootBoundary,strategy})),rect=elementContext==="floating"?{x,y,width:rects.floating.width,height:rects.floating.height}:rects.reference,offsetParent=await(platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(elements.floating)),offsetScale=await(platform2.isElement==null?void 0:platform2.isElement(offsetParent))&&await(platform2.getScale==null?void 0:platform2.getScale(offsetParent))||{x:1,y:1},elementClientRect=rectToClientRect(platform2.convertOffsetParentRelativeRectToViewportRelativeRect?await platform2.convertOffsetParentRelativeRectToViewportRelativeRect({elements,rect,offsetParent,strategy}):rect);return{top:(clippingClientRect.top-elementClientRect.top+paddingObject.top)/offsetScale.y,bottom:(elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom)/offsetScale.y,left:(clippingClientRect.left-elementClientRect.left+paddingObject.left)/offsetScale.x,right:(elementClientRect.right-clippingClientRect.right+paddingObject.right)/offsetScale.x}}const MAX_RESET_COUNT=50,computePosition=async(reference,floating,config)=>{const{placement="bottom",strategy="absolute",middleware=[],platform:platform2}=config,platformWithDetectOverflow=platform2.detectOverflow?platform2:{...platform2,detectOverflow},rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(floating));let rects=await platform2.getElementRects({reference,floating,strategy}),{x,y}=computeCoordsFromPlacement(rects,placement,rtl),statefulPlacement=placement,resetCount=0;const middlewareData={};for(let i=0;i<middleware.length;i++){const currentMiddleware=middleware[i];if(!currentMiddleware)continue;const{name,fn}=currentMiddleware,{x:nextX,y:nextY,data,reset}=await fn({x,y,initialPlacement:placement,placement:statefulPlacement,strategy,middlewareData,rects,platform:platformWithDetectOverflow,elements:{reference,floating}});x=nextX??x,y=nextY??y,middlewareData[name]={...middlewareData[name],...data},reset&&resetCount<MAX_RESET_COUNT&&(resetCount++,typeof reset=="object"&&(reset.placement&&(statefulPlacement=reset.placement),reset.rects&&(rects=reset.rects===!0?await platform2.getElementRects({reference,floating,strategy}):reset.rects),{x,y}=computeCoordsFromPlacement(rects,statefulPlacement,rtl)),i=-1)}return{x,y,placement:statefulPlacement,strategy,middlewareData}},arrow=options=>({name:"arrow",options,async fn(state){const{x,y,placement,rects,platform:platform2,elements,middlewareData}=state,{element,padding=0}=evaluate(options,state)||{};if(element==null)return{};const paddingObject=getPaddingObject(padding),coords={x,y},axis=getAlignmentAxis(placement),length=getAxisLength(axis),arrowDimensions=await platform2.getDimensions(element),isYAxis=axis==="y",minProp=isYAxis?"top":"left",maxProp=isYAxis?"bottom":"right",clientProp=isYAxis?"clientHeight":"clientWidth",endDiff=rects.reference[length]+rects.reference[axis]-coords[axis]-rects.floating[length],startDiff=coords[axis]-rects.reference[axis],arrowOffsetParent=await(platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element));let clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;(!clientSize||!await(platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent)))&&(clientSize=elements.floating[clientProp]||rects.floating[length]);const centerToReference=endDiff/2-startDiff/2,largestPossiblePadding=clientSize/2-arrowDimensions[length]/2-1,minPadding=min(paddingObject[minProp],largestPossiblePadding),maxPadding=min(paddingObject[maxProp],largestPossiblePadding),max2=clientSize-arrowDimensions[length]-maxPadding,center=clientSize/2-arrowDimensions[length]/2+centerToReference,offset2=clamp(minPadding,center,max2),shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&&center!==offset2&&rects.reference[length]/2-(center<minPadding?minPadding:maxPadding)-arrowDimensions[length]/2<0,alignmentOffset=shouldAddOffset?center<minPadding?center-minPadding:center-max2:0;return{[axis]:coords[axis]+alignmentOffset,data:{[axis]:offset2,centerOffset:center-offset2-alignmentOffset,...shouldAddOffset&&{alignmentOffset}},reset:shouldAddOffset}}});function getPlacementList(alignment,autoAlignment,allowedPlacements){return(alignment?[...allowedPlacements.filter(placement=>getAlignment(placement)===alignment),...allowedPlacements.filter(placement=>getAlignment(placement)!==alignment)]:allowedPlacements.filter(placement=>getSide(placement)===placement)).filter(placement=>alignment?getAlignment(placement)===alignment||(autoAlignment?getOppositeAlignmentPlacement(placement)!==placement:!1):!0)}const autoPlacement=function(options){return options===void 0&&(options={}),{name:"autoPlacement",options,async fn(state){var _middlewareData$autoP,_middlewareData$autoP2,_placementsThatFitOnE;const{rects,middlewareData,placement,platform:platform2,elements}=state,{crossAxis=!1,alignment,allowedPlacements=placements,autoAlignment=!0,...detectOverflowOptions}=evaluate(options,state),placements$1=alignment!==void 0||allowedPlacements===placements?getPlacementList(alignment||null,autoAlignment,allowedPlacements):allowedPlacements,currentIndex=((_middlewareData$autoP=middlewareData.autoPlacement)==null?void 0:_middlewareData$autoP.index)||0,currentPlacement=placements$1[currentIndex];if(currentPlacement==null)return{};if(placement!==currentPlacement)return{reset:{placement:placements$1[0]}};const overflow=await platform2.detectOverflow(state,detectOverflowOptions),alignmentSides=getAlignmentSides(currentPlacement,rects,await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating))),currentOverflows=[overflow[getSide(currentPlacement)],overflow[alignmentSides[0]],overflow[alignmentSides[1]]],allOverflows=[...((_middlewareData$autoP2=middlewareData.autoPlacement)==null?void 0:_middlewareData$autoP2.overflows)||[],{placement:currentPlacement,overflows:currentOverflows}],nextPlacement=placements$1[currentIndex+1];if(nextPlacement)return{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:nextPlacement}};const placementsSortedByMostSpace=allOverflows.map(d=>{const alignment2=getAlignment(d.placement);return[d.placement,alignment2&&crossAxis?d.overflows.slice(0,2).reduce((acc,v)=>acc+v,0):d.overflows[0],d.overflows]}).sort((a,b)=>a[1]-b[1]),resetPlacement=((_placementsThatFitOnE=placementsSortedByMostSpace.filter(d=>d[2].slice(0,getAlignment(d[0])?2:3).every(v=>v<=0))[0])==null?void 0:_placementsThatFitOnE[0])||placementsSortedByMostSpace[0][0];return resetPlacement!==placement?{data:{index:currentIndex+1,overflows:allOverflows},reset:{placement:resetPlacement}}:{}}}},flip=function(options){return options===void 0&&(options={}),{name:"flip",options,async fn(state){var _middlewareData$arrow,_middlewareData$flip;const{placement,middlewareData,rects,initialPlacement,platform:platform2,elements}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0,fallbackPlacements:specifiedFallbackPlacements,fallbackStrategy="bestFit",fallbackAxisSideDirection="none",flipAlignment=!0,...detectOverflowOptions}=evaluate(options,state);if((_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset)return{};const side=getSide(placement),initialSideAxis=getSideAxis(initialPlacement),isBasePlacement=getSide(initialPlacement)===initialPlacement,rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating)),fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipAlignment?[getOppositePlacement(initialPlacement)]:getExpandedPlacements(initialPlacement)),hasFallbackAxisSideDirection=fallbackAxisSideDirection!=="none";!specifiedFallbackPlacements&&hasFallbackAxisSideDirection&&fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement,flipAlignment,fallbackAxisSideDirection,rtl));const placements2=[initialPlacement,...fallbackPlacements],overflow=await platform2.detectOverflow(state,detectOverflowOptions),overflows=[];let overflowsData=((_middlewareData$flip=middlewareData.flip)==null?void 0:_middlewareData$flip.overflows)||[];if(checkMainAxis&&overflows.push(overflow[side]),checkCrossAxis){const sides2=getAlignmentSides(placement,rects,rtl);overflows.push(overflow[sides2[0]],overflow[sides2[1]])}if(overflowsData=[...overflowsData,{placement,overflows}],!overflows.every(side2=>side2<=0)){var _middlewareData$flip2,_overflowsData$filter;const nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1,nextPlacement=placements2[nextIndex];if(nextPlacement&&(!(checkCrossAxis==="alignment"?initialSideAxis!==getSideAxis(nextPlacement):!1)||overflowsData.every(d=>getSideAxis(d.placement)===initialSideAxis?d.overflows[0]>0:!0)))return{data:{index:nextIndex,overflows:overflowsData},reset:{placement:nextPlacement}};let resetPlacement=(_overflowsData$filter=overflowsData.filter(d=>d.overflows[0]<=0).sort((a,b)=>a.overflows[1]-b.overflows[1])[0])==null?void 0:_overflowsData$filter.placement;if(!resetPlacement)switch(fallbackStrategy){case"bestFit":{var _overflowsData$filter2;const placement2=(_overflowsData$filter2=overflowsData.filter(d=>{if(hasFallbackAxisSideDirection){const currentSideAxis=getSideAxis(d.placement);return currentSideAxis===initialSideAxis||currentSideAxis==="y"}return!0}).map(d=>[d.placement,d.overflows.filter(overflow2=>overflow2>0).reduce((acc,overflow2)=>acc+overflow2,0)]).sort((a,b)=>a[1]-b[1])[0])==null?void 0:_overflowsData$filter2[0];placement2&&(resetPlacement=placement2);break}case"initialPlacement":resetPlacement=initialPlacement;break}if(placement!==resetPlacement)return{reset:{placement:resetPlacement}}}return{}}}};function getSideOffsets(overflow,rect){return{top:overflow.top-rect.height,right:overflow.right-rect.width,bottom:overflow.bottom-rect.height,left:overflow.left-rect.width}}function isAnySideFullyClipped(overflow){return sides.some(side=>overflow[side]>=0)}const hide=function(options){return options===void 0&&(options={}),{name:"hide",options,async fn(state){const{rects,platform:platform2}=state,{strategy="referenceHidden",...detectOverflowOptions}=evaluate(options,state);switch(strategy){case"referenceHidden":{const overflow=await platform2.detectOverflow(state,{...detectOverflowOptions,elementContext:"reference"}),offsets=getSideOffsets(overflow,rects.reference);return{data:{referenceHiddenOffsets:offsets,referenceHidden:isAnySideFullyClipped(offsets)}}}case"escaped":{const overflow=await platform2.detectOverflow(state,{...detectOverflowOptions,altBoundary:!0}),offsets=getSideOffsets(overflow,rects.floating);return{data:{escapedOffsets:offsets,escaped:isAnySideFullyClipped(offsets)}}}default:return{}}}}};function getBoundingRect(rects){const minX=min(...rects.map(rect=>rect.left)),minY=min(...rects.map(rect=>rect.top)),maxX=max(...rects.map(rect=>rect.right)),maxY=max(...rects.map(rect=>rect.bottom));return{x:minX,y:minY,width:maxX-minX,height:maxY-minY}}function getRectsByLine(rects){const sortedRects=rects.slice().sort((a,b)=>a.y-b.y),groups=[];let prevRect=null;for(let i=0;i<sortedRects.length;i++){const rect=sortedRects[i];!prevRect||rect.y-prevRect.y>prevRect.height/2?groups.push([rect]):groups[groups.length-1].push(rect),prevRect=rect}return groups.map(rect=>rectToClientRect(getBoundingRect(rect)))}const inline=function(options){return options===void 0&&(options={}),{name:"inline",options,async fn(state){const{placement,elements,rects,platform:platform2,strategy}=state,{padding=2,x,y}=evaluate(options,state),nativeClientRects=Array.from(await(platform2.getClientRects==null?void 0:platform2.getClientRects(elements.reference))||[]);if(!nativeClientRects.length)return{};const clientRects=getRectsByLine(nativeClientRects),fallback=rectToClientRect(getBoundingRect(nativeClientRects)),paddingObject=getPaddingObject(padding);function getBoundingClientRect2(){if(clientRects.length===2&&(clientRects[0].left>clientRects[1].right||clientRects[1].left>clientRects[0].right)&&x!=null&&y!=null)return clientRects.find(rect=>x>rect.left-paddingObject.left&&x<rect.right+paddingObject.right&&y>rect.top-paddingObject.top&&y<rect.bottom+paddingObject.bottom)||fallback;if(clientRects.length>=2){if(getSideAxis(placement)==="y"){const firstRect=clientRects[0],lastRect=clientRects[clientRects.length-1],isTop=getSide(placement)==="top",top2=firstRect.top,bottom2=lastRect.bottom,left=isTop?firstRect.left:lastRect.left,right=isTop?firstRect.right:lastRect.right;return rectToClientRect({x:left,y:top2,width:right-left,height:bottom2-top2})}const isLeftSide=getSide(placement)==="left",maxRight=max(...clientRects.map(rect=>rect.right)),minLeft=min(...clientRects.map(rect=>rect.left)),measureRects=clientRects.filter(rect=>isLeftSide?rect.left===minLeft:rect.right===maxRight),top=measureRects[0].top,bottom=measureRects[measureRects.length-1].bottom;return rectToClientRect({x:minLeft,y:top,width:maxRight-minLeft,height:bottom-top})}return fallback}const resetRects=await platform2.getElementRects({reference:{getBoundingClientRect:getBoundingClientRect2},floating:elements.floating,strategy});return rects.reference.x!==resetRects.reference.x||rects.reference.y!==resetRects.reference.y||rects.reference.width!==resetRects.reference.width||rects.reference.height!==resetRects.reference.height?{reset:{rects:resetRects}}:{}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(state,options){const{placement,platform:platform2,elements}=state,rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating)),side=getSide(placement),alignment=getAlignment(placement),isVertical=getSideAxis(placement)==="y",mainAxisMulti=originSides.has(side)?-1:1,crossAxisMulti=rtl&&isVertical?-1:1,rawValue=evaluate(options,state);let{mainAxis,crossAxis,alignmentAxis}=typeof rawValue=="number"?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:rawValue.mainAxis||0,crossAxis:rawValue.crossAxis||0,alignmentAxis:rawValue.alignmentAxis};return alignment&&typeof alignmentAxis=="number"&&(crossAxis=alignment==="end"?alignmentAxis*-1:alignmentAxis),isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}const offset=function(options){return options===void 0&&(options=0),{name:"offset",options,async fn(state){var _middlewareData$offse,_middlewareData$arrow;const{x,y,placement,middlewareData}=state,diffCoords=await convertValueToCoords(state,options);return placement===((_middlewareData$offse=middlewareData.offset)==null?void 0:_middlewareData$offse.placement)&&(_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset?{}:{x:x+diffCoords.x,y:y+diffCoords.y,data:{...diffCoords,placement}}}}},shift=function(options){return options===void 0&&(options={}),{name:"shift",options,async fn(state){const{x,y,placement,platform:platform2}=state,{mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!1,limiter={fn:_ref=>{let{x:x2,y:y2}=_ref;return{x:x2,y:y2}}},...detectOverflowOptions}=evaluate(options,state),coords={x,y},overflow=await platform2.detectOverflow(state,detectOverflowOptions),crossAxis=getSideAxis(placement),mainAxis=getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis],crossAxisCoord=coords[crossAxis];const clampCoord=(axis,coord)=>clamp(coord+overflow[axis==="y"?"top":"left"],coord,coord-overflow[axis==="y"?"bottom":"right"]);checkMainAxis&&(mainAxisCoord=clampCoord(mainAxis,mainAxisCoord)),checkCrossAxis&&(crossAxisCoord=clampCoord(crossAxis,crossAxisCoord));const limitedCoords=limiter.fn({...state,[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord});return{...limitedCoords,data:{x:limitedCoords.x-x,y:limitedCoords.y-y,enabled:{[mainAxis]:checkMainAxis,[crossAxis]:checkCrossAxis}}}}}},limitShift=function(options){return options===void 0&&(options={}),{options,fn(state){var _rawOffset$mainAxis,_rawOffset$crossAxis;const{x,y,placement,rects,middlewareData}=state,{offset:offset2=0,mainAxis:checkMainAxis=!0,crossAxis:checkCrossAxis=!0}=evaluate(options,state),coords={x,y},crossAxis=getSideAxis(placement),mainAxis=getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis],crossAxisCoord=coords[crossAxis];const rawOffset=evaluate(offset2,state),computedOffset=typeof rawOffset=="number"?{mainAxis:rawOffset,crossAxis:0}:{mainAxis:(_rawOffset$mainAxis=rawOffset.mainAxis)!=null?_rawOffset$mainAxis:0,crossAxis:(_rawOffset$crossAxis=rawOffset.crossAxis)!=null?_rawOffset$crossAxis:0};if(checkMainAxis){const len=mainAxis==="y"?"height":"width",limitMin=rects.reference[mainAxis]-rects.floating[len]+computedOffset.mainAxis,limitMax=rects.reference[mainAxis]+rects.reference[len]-computedOffset.mainAxis;mainAxisCoord<limitMin?mainAxisCoord=limitMin:mainAxisCoord>limitMax&&(mainAxisCoord=limitMax)}if(checkCrossAxis){var _middlewareData$offse,_middlewareData$offse2;const len=mainAxis==="y"?"width":"height",isOriginSide=originSides.has(getSide(placement)),limitMin=rects.reference[crossAxis]-rects.floating[len]+(isOriginSide&&((_middlewareData$offse=middlewareData.offset)==null?void 0:_middlewareData$offse[crossAxis])||0)+(isOriginSide?0:computedOffset.crossAxis),limitMax=rects.reference[crossAxis]+rects.reference[len]+(isOriginSide?0:((_middlewareData$offse2=middlewareData.offset)==null?void 0:_middlewareData$offse2[crossAxis])||0)-(isOriginSide?computedOffset.crossAxis:0);crossAxisCoord<limitMin?crossAxisCoord=limitMin:crossAxisCoord>limitMax&&(crossAxisCoord=limitMax)}return{[mainAxis]:mainAxisCoord,[crossAxis]:crossAxisCoord}}}},size=function(options){return options===void 0&&(options={}),{name:"size",options,async fn(state){const{placement,rects,platform:platform2,elements}=state,{apply=()=>{},...detectOverflowOptions}=evaluate(options,state),overflow=await platform2.detectOverflow(state,detectOverflowOptions),side=getSide(placement),alignment=getAlignment(placement),isYAxis=getSideAxis(placement)==="y",{width,height}=rects.floating;let heightSide,widthSide;side==="top"||side==="bottom"?(heightSide=side,widthSide=alignment===(await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating))?"start":"end")?"left":"right"):(widthSide=side,heightSide=alignment==="end"?"top":"bottom");const maximumClippingHeight=height-overflow.top-overflow.bottom,maximumClippingWidth=width-overflow.left-overflow.right,overflowAvailableHeight=min(height-overflow[heightSide],maximumClippingHeight),overflowAvailableWidth=min(width-overflow[widthSide],maximumClippingWidth),shiftData=state.middlewareData.shift,noShift=!shiftData;let availableHeight=overflowAvailableHeight,availableWidth=overflowAvailableWidth;shiftData!=null&&shiftData.enabled.x&&(availableWidth=maximumClippingWidth),shiftData!=null&&shiftData.enabled.y&&(availableHeight=maximumClippingHeight),noShift&&!alignment&&(isYAxis?availableWidth=width-2*max(overflow.left,overflow.right):availableHeight=height-2*max(overflow.top,overflow.bottom)),await apply({...state,availableWidth,availableHeight});const nextDimensions=await platform2.getDimensions(elements.floating);return width!==nextDimensions.width||height!==nextDimensions.height?{reset:{rects:!0}}:{}}}};function getCssDimensions(element){const css=floating_ui_utils_dom_getComputedStyle(element);let width=parseFloat(css.width)||0,height=parseFloat(css.height)||0;const hasOffset=isHTMLElement(element),offsetWidth=hasOffset?element.offsetWidth:width,offsetHeight=hasOffset?element.offsetHeight:height,shouldFallback=round(width)!==offsetWidth||round(height)!==offsetHeight;return shouldFallback&&(width=offsetWidth,height=offsetHeight),{width,height,$:shouldFallback}}function unwrapElement(element){return isElement(element)?element:element.contextElement}function getScale(element){const domElement=unwrapElement(element);if(!isHTMLElement(domElement))return createCoords(1);const rect=domElement.getBoundingClientRect(),{width,height,$}=getCssDimensions(domElement);let x=($?round(rect.width):rect.width)/width,y=($?round(rect.height):rect.height)/height;return(!x||!Number.isFinite(x))&&(x=1),(!y||!Number.isFinite(y))&&(y=1),{x,y}}const noOffsets=createCoords(0);function getVisualOffsets(element){const win=getWindow(element);return!isWebKit()||!win.visualViewport?noOffsets:{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}}function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){return isFixed===void 0&&(isFixed=!1),!!floatingOffsetParent&&isFixed&&floatingOffsetParent===getWindow(element)}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){includeScale===void 0&&(includeScale=!1),isFixedStrategy===void 0&&(isFixedStrategy=!1);const clientRect=element.getBoundingClientRect(),domElement=unwrapElement(element);let scale=createCoords(1);includeScale&&(offsetParent?isElement(offsetParent)&&(scale=getScale(offsetParent)):scale=getScale(element));const visualOffsets=shouldAddVisualOffsets(domElement,isFixedStrategy,offsetParent)?getVisualOffsets(domElement):createCoords(0);let x=(clientRect.left+visualOffsets.x)/scale.x,y=(clientRect.top+visualOffsets.y)/scale.y,width=clientRect.width/scale.x,height=clientRect.height/scale.y;if(domElement&&offsetParent){const win=getWindow(domElement),offsetWin=isElement(offsetParent)?getWindow(offsetParent):offsetParent;let currentWin=win,currentIFrame=getFrameElement(currentWin);for(;currentIFrame&&offsetWin!==currentWin;){const iframeScale=getScale(currentIFrame),iframeRect=currentIFrame.getBoundingClientRect(),css=floating_ui_utils_dom_getComputedStyle(currentIFrame),left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css.paddingLeft))*iframeScale.x,top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css.paddingTop))*iframeScale.y;x*=iframeScale.x,y*=iframeScale.y,width*=iframeScale.x,height*=iframeScale.y,x+=left,y+=top,currentWin=getWindow(currentIFrame),currentIFrame=getFrameElement(currentWin)}}return rectToClientRect({width,height,x,y})}function getWindowScrollBarX(element,rect){const leftScroll=getNodeScroll(element).scrollLeft;return rect?rect.left+leftScroll:getBoundingClientRect(getDocumentElement(element)).left+leftScroll}function getHTMLOffset(documentElement,scroll){const htmlRect=documentElement.getBoundingClientRect(),x=htmlRect.left+scroll.scrollLeft-getWindowScrollBarX(documentElement,htmlRect),y=htmlRect.top+scroll.scrollTop;return{x,y}}function convertOffsetParentRelativeRectToViewportRelativeRect(_ref){let{elements,rect,offsetParent,strategy}=_ref;const isFixed=strategy==="fixed",documentElement=getDocumentElement(offsetParent),topLayer=elements?isTopLayer(elements.floating):!1;if(offsetParent===documentElement||topLayer&&isFixed)return rect;let scroll={scrollLeft:0,scrollTop:0},scale=createCoords(1);const offsets=createCoords(0),isOffsetParentAnElement=isHTMLElement(offsetParent);if((isOffsetParentAnElement||!isFixed)&&((getNodeName(offsetParent)!=="body"||isOverflowElement(documentElement))&&(scroll=getNodeScroll(offsetParent)),isOffsetParentAnElement)){const offsetRect=getBoundingClientRect(offsetParent);scale=getScale(offsetParent),offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}const htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0);return{width:rect.width*scale.x,height:rect.height*scale.y,x:rect.x*scale.x-scroll.scrollLeft*scale.x+offsets.x+htmlOffset.x,y:rect.y*scale.y-scroll.scrollTop*scale.y+offsets.y+htmlOffset.y}}function getClientRects(element){return element.getClientRects?Array.from(element.getClientRects()):[]}function getDocumentRect(html){const scroll=getNodeScroll(html),body=html.ownerDocument.body,width=max(html.scrollWidth,html.clientWidth,body.scrollWidth,body.clientWidth),height=max(html.scrollHeight,html.clientHeight,body.scrollHeight,body.clientHeight);let x=-scroll.scrollLeft+getWindowScrollBarX(html);const y=-scroll.scrollTop;return floating_ui_utils_dom_getComputedStyle(body).direction==="rtl"&&(x+=max(html.clientWidth,body.clientWidth)-width),{width,height,x,y}}const SCROLLBAR_MAX=25;function getViewportRect(element,strategy,rootBoundary){rootBoundary===void 0&&(rootBoundary="viewport");const isLayoutViewport=rootBoundary==="layoutViewport",win=getWindow(element),html=getDocumentElement(element),visualViewport=win.visualViewport;let width=html.clientWidth,height=html.clientHeight,x=0,y=0;if(visualViewport){const layoutRelativeClientCoords=!isWebKit()||strategy==="fixed";isLayoutViewport?layoutRelativeClientCoords||(x=-visualViewport.offsetLeft,y=-visualViewport.offsetTop):(width=visualViewport.width,height=visualViewport.height,layoutRelativeClientCoords&&(x=visualViewport.offsetLeft,y=visualViewport.offsetTop))}if(getWindowScrollBarX(html)<=0){const doc=html.ownerDocument,body=doc.body,bodyStyles=getComputedStyle(body),bodyMarginInline=doc.compatMode==="CSS1Compat"&&parseFloat(bodyStyles.marginLeft)+parseFloat(bodyStyles.marginRight)||0,reservedWidth=Math.abs(html.clientWidth-body.clientWidth-bodyMarginInline),gutter=getComputedStyle(html).scrollbarGutter==="stable both-edges"?reservedWidth/2:reservedWidth;gutter<=SCROLLBAR_MAX&&(width-=gutter)}return{width,height,x,y}}function getInnerBoundingClientRect(element,strategy){const clientRect=getBoundingClientRect(element,!0,strategy==="fixed"),top=clientRect.top+element.clientTop,left=clientRect.left+element.clientLeft,scale=getScale(element),width=element.clientWidth*scale.x,height=element.clientHeight*scale.y,x=left*scale.x,y=top*scale.y;return{width,height,x,y}}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){let rect;if(clippingAncestor==="viewport"||clippingAncestor==="layoutViewport")rect=getViewportRect(element,strategy,clippingAncestor);else if(clippingAncestor==="document")rect=getDocumentRect(getDocumentElement(element));else if(isElement(clippingAncestor))rect=getInnerBoundingClientRect(clippingAncestor,strategy);else{const visualOffsets=getVisualOffsets(element);rect={x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y,width:clippingAncestor.width,height:clippingAncestor.height}}return rectToClientRect(rect)}function getClippingElementAncestors(element,cache){const cachedResult=cache.get(element);if(cachedResult)return cachedResult;let result=getOverflowAncestors(element,[],!1).filter(el=>isElement(el)&&getNodeName(el)!=="body"),lastKeptComputedStyle=null;const elementIsFixed=floating_ui_utils_dom_getComputedStyle(element).position==="fixed";let currentNode=elementIsFixed?getParentNode(element):element;for(;isElement(currentNode)&&!isLastTraversableNode(currentNode);){const computedStyle=floating_ui_utils_dom_getComputedStyle(currentNode),currentNodeIsContaining=isContainingBlock(currentNode),lastPosition=lastKeptComputedStyle?lastKeptComputedStyle.position:elementIsFixed?"fixed":"";!currentNodeIsContaining&&(lastPosition==="fixed"||lastPosition==="absolute"&&computedStyle.position==="static")?result=result.filter(ancestor=>ancestor!==currentNode):lastKeptComputedStyle=computedStyle,currentNode=getParentNode(currentNode)}return cache.set(element,result),result}function getClippingRect(_ref){let{element,boundary,rootBoundary,strategy}=_ref;const clippingAncestors=[...boundary==="clippingAncestors"?isTopLayer(element)?[]:getClippingElementAncestors(element,this._c):[].concat(boundary),rootBoundary],firstRect=getClientRectFromClippingAncestor(element,clippingAncestors[0],strategy);let top=firstRect.top,right=firstRect.right,bottom=firstRect.bottom,left=firstRect.left;for(let i=1;i<clippingAncestors.length;i++){const rect=getClientRectFromClippingAncestor(element,clippingAncestors[i],strategy);top=max(rect.top,top),right=min(rect.right,right),bottom=min(rect.bottom,bottom),left=max(rect.left,left)}return{width:right-left,height:bottom-top,x:left,y:top}}function getDimensions(element){const{width,height}=getCssDimensions(element);return{width,height}}function getRectRelativeToOffsetParent(element,offsetParent,strategy){const isOffsetParentAnElement=isHTMLElement(offsetParent),documentElement=getDocumentElement(offsetParent),isFixed=strategy==="fixed",rect=getBoundingClientRect(element,!0,isFixed,offsetParent);let scroll={scrollLeft:0,scrollTop:0};const offsets=createCoords(0);if((isOffsetParentAnElement||!isFixed)&&((getNodeName(offsetParent)!=="body"||isOverflowElement(documentElement))&&(scroll=getNodeScroll(offsetParent)),isOffsetParentAnElement)){const offsetRect=getBoundingClientRect(offsetParent,!0,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft,offsets.y=offsetRect.y+offsetParent.clientTop}!isOffsetParentAnElement&&documentElement&&(offsets.x=getWindowScrollBarX(documentElement));const htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords(0),x=rect.left+scroll.scrollLeft-offsets.x-htmlOffset.x,y=rect.top+scroll.scrollTop-offsets.y-htmlOffset.y;return{x,y,width:rect.width,height:rect.height}}function isStaticPositioned(element){return floating_ui_utils_dom_getComputedStyle(element).position==="static"}function getTrueOffsetParent(element,polyfill){if(!isHTMLElement(element)||floating_ui_utils_dom_getComputedStyle(element).position==="fixed")return null;if(polyfill)return polyfill(element);let rawOffsetParent=element.offsetParent;return getDocumentElement(element)===rawOffsetParent&&(rawOffsetParent=rawOffsetParent.ownerDocument.body),rawOffsetParent}function getOffsetParent(element,polyfill){const win=getWindow(element);if(isTopLayer(element))return win;if(!isHTMLElement(element)){let svgOffsetParent=getParentNode(element);for(;svgOffsetParent&&!isLastTraversableNode(svgOffsetParent);){if(isElement(svgOffsetParent)&&!isStaticPositioned(svgOffsetParent))return svgOffsetParent;svgOffsetParent=getParentNode(svgOffsetParent)}return win}let offsetParent=getTrueOffsetParent(element,polyfill);for(;offsetParent&&isTableElement(offsetParent)&&isStaticPositioned(offsetParent);)offsetParent=getTrueOffsetParent(offsetParent,polyfill);return offsetParent&&isLastTraversableNode(offsetParent)&&isStaticPositioned(offsetParent)&&!isContainingBlock(offsetParent)?win:offsetParent||getContainingBlock(element)||win}const getElementRects=async function(data){const getOffsetParentFn=this.getOffsetParent||getOffsetParent,floatingDimensions=await this.getDimensions(data.floating);return{reference:getRectRelativeToOffsetParent(data.reference,await getOffsetParentFn(data.floating),data.strategy),floating:{x:0,y:0,width:floatingDimensions.width,height:floatingDimensions.height}}};function isRTL(element){return floating_ui_utils_dom_getComputedStyle(element).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height}function observeMove(element,onMove,ancestorResize){let io=null,timeoutId;const root=getDocumentElement(element);function cleanup2(){var _io;clearTimeout(timeoutId),(_io=io)==null||_io.disconnect(),io=null}function refresh(skip,threshold){skip===void 0&&(skip=!1),threshold===void 0&&(threshold=1),cleanup2();const elementRectForRootMargin=element.getBoundingClientRect(),{left,top,width,height}=elementRectForRootMargin;if(skip||onMove(),!width||!height)return;const insetTop=floor(top),insetRight=floor(root.clientWidth-(left+width)),insetBottom=floor(root.clientHeight-(top+height)),insetLeft=floor(left),options={rootMargin:-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px",threshold:max(0,min(1,threshold))||1};let isFirstUpdate=!0;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(!rectsAreEqual(elementRectForRootMargin,element.getBoundingClientRect()))return refresh();if(ratio!==threshold){if(!isFirstUpdate)return refresh();ratio?refresh(!1,ratio):timeoutId=setTimeout(()=>{refresh(!1,1e-7)},1e3)}isFirstUpdate=!1}try{io=new IntersectionObserver(handleObserve,{...options,root:root.ownerDocument})}catch{io=new IntersectionObserver(handleObserve,options)}io.observe(element)}const win=getWindow(element),handleResize=()=>refresh(ancestorResize);return win.addEventListener("resize",handleResize),refresh(!0),()=>{win.removeEventListener("resize",handleResize),cleanup2()}}function autoUpdate(reference,floating,update,options){options===void 0&&(options={});const{ancestorScroll=!0,ancestorResize=!0,elementResize=typeof ResizeObserver=="function",layoutShift=typeof IntersectionObserver=="function",animationFrame=!1}=options,referenceEl=unwrapElement(reference),ancestors=ancestorScroll||ancestorResize?[...referenceEl?getOverflowAncestors(referenceEl):[],...floating?getOverflowAncestors(floating):[]]:[];ancestors.forEach(ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update),ancestorResize&&ancestor.addEventListener("resize",update)});const cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update,ancestorResize):null;let reobserveFrame=-1,resizeObserver=null;elementResize&&(resizeObserver=new ResizeObserver(_ref=>{let[firstEntry]=_ref;firstEntry&&firstEntry.target===referenceEl&&resizeObserver&&floating&&(resizeObserver.unobserve(floating),cancelAnimationFrame(reobserveFrame),reobserveFrame=requestAnimationFrame(()=>{var _resizeObserver;(_resizeObserver=resizeObserver)==null||_resizeObserver.observe(floating)})),update()}),referenceEl&&!animationFrame&&resizeObserver.observe(referenceEl),floating&&resizeObserver.observe(floating));let frameId,prevRefRect=animationFrame?getBoundingClientRect(reference):null;animationFrame&&frameLoop();function frameLoop(){const nextRefRect=getBoundingClientRect(reference);prevRefRect&&!rectsAreEqual(prevRefRect,nextRefRect)&&update(),prevRefRect=nextRefRect,frameId=requestAnimationFrame(frameLoop)}return update(),()=>{var _resizeObserver2;ancestors.forEach(ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update),ancestorResize&&ancestor.removeEventListener("resize",update)}),cleanupIo?.(),(_resizeObserver2=resizeObserver)==null||_resizeObserver2.disconnect(),resizeObserver=null,animationFrame&&cancelAnimationFrame(frameId)}}const floating_ui_dom_detectOverflow=detectOverflow,floating_ui_dom_offset=offset,floating_ui_dom_autoPlacement=autoPlacement,floating_ui_dom_shift=shift,floating_ui_dom_flip=flip,floating_ui_dom_size=size,floating_ui_dom_hide=hide,floating_ui_dom_arrow=arrow,floating_ui_dom_inline=inline,floating_ui_dom_limitShift=limitShift,floating_ui_dom_computePosition=(reference,floating,options)=>{const cache=new Map,mergedOptions=options??{},platformWithCache={...platform,...mergedOptions.platform,_c:cache};return computePosition(reference,floating,{...mergedOptions,platform:platformWithCache})};var floating_ui_react_dom_isClient=typeof document<"u",floating_ui_react_dom_noop=function(){},index=floating_ui_react_dom_isClient?react.useLayoutEffect:floating_ui_react_dom_noop;function deepEqual(a,b){if(a===b)return!0;if(typeof a!=typeof b)return!1;if(typeof a=="function"&&a.toString()===b.toString())return!0;let length,i,keys;if(a&&b&&typeof a=="object"){if(Array.isArray(a)){if(length=a.length,length!==b.length)return!1;for(i=length;i--!==0;)if(!deepEqual(a[i],b[i]))return!1;return!0}if(keys=Object.keys(a),length=keys.length,length!==Object.keys(b).length)return!1;for(i=length;i--!==0;)if(!{}.hasOwnProperty.call(b,keys[i]))return!1;for(i=length;i--!==0;){const key=keys[i];if(!(key==="_owner"&&a.$$typeof)&&!deepEqual(a[key],b[key]))return!1}return!0}return a!==a&&b!==b}function getDPR(element){return typeof window>"u"?1:(element.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function floating_ui_react_dom_useLatestRef(value){const ref=react.useRef(value);return index(()=>{ref.current=value}),ref}function useFloating(options){options===void 0&&(options={});const{placement="bottom",strategy="absolute",middleware=[],platform:platform2,elements:{reference:externalReference,floating:externalFloating}={},transform=!0,whileElementsMounted,open}=options,[data,setData]=react.useState({x:0,y:0,strategy,placement,middlewareData:{},isPositioned:!1}),[latestMiddleware,setLatestMiddleware]=react.useState(middleware);deepEqual(latestMiddleware,middleware)||setLatestMiddleware(middleware);const[_reference,_setReference]=react.useState(null),[_floating,_setFloating]=react.useState(null),setReference=react.useCallback(node=>{node!==referenceRef.current&&(referenceRef.current=node,_setReference(node))},[]),setFloating=react.useCallback(node=>{node!==floatingRef.current&&(floatingRef.current=node,_setFloating(node))},[]),referenceEl=externalReference||_reference,floatingEl=externalFloating||_floating,referenceRef=react.useRef(null),floatingRef=react.useRef(null),dataRef=react.useRef(data),hasWhileElementsMounted=whileElementsMounted!=null,whileElementsMountedRef=floating_ui_react_dom_useLatestRef(whileElementsMounted),platformRef=floating_ui_react_dom_useLatestRef(platform2),openRef=floating_ui_react_dom_useLatestRef(open),update=react.useCallback(()=>{if(!referenceRef.current||!floatingRef.current)return;const config={placement,strategy,middleware:latestMiddleware};platformRef.current&&(config.platform=platformRef.current),floating_ui_dom_computePosition(referenceRef.current,floatingRef.current,config).then(data2=>{const fullData={...data2,isPositioned:openRef.current!==!1};isMountedRef.current&&!deepEqual(dataRef.current,fullData)&&(dataRef.current=fullData,react_dom.flushSync(()=>{setData(fullData)}))})},[latestMiddleware,placement,strategy,platformRef,openRef]);index(()=>{open===!1&&dataRef.current.isPositioned&&(dataRef.current.isPositioned=!1,setData(data2=>({...data2,isPositioned:!1})))},[open]);const isMountedRef=react.useRef(!1);index(()=>(isMountedRef.current=!0,()=>{isMountedRef.current=!1}),[]),index(()=>{if(referenceEl&&(referenceRef.current=referenceEl),floatingEl&&(floatingRef.current=floatingEl),referenceEl&&floatingEl){if(whileElementsMountedRef.current)return whileElementsMountedRef.current(referenceEl,floatingEl,update);update()}},[referenceEl,floatingEl,update,whileElementsMountedRef,hasWhileElementsMounted]);const refs=react.useMemo(()=>({reference:referenceRef,floating:floatingRef,setReference,setFloating}),[setReference,setFloating]),elements=react.useMemo(()=>({reference:referenceEl,floating:floatingEl}),[referenceEl,floatingEl]),floatingStyles=react.useMemo(()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating)return initialStyles;const x=roundByDPR(elements.floating,data.x),y=roundByDPR(elements.floating,data.y);return transform?{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}:{position:strategy,left:x,top:y}},[strategy,transform,elements.floating,data.x,data.y]);return react.useMemo(()=>({...data,update,refs,elements,floatingStyles}),[data,update,refs,elements,floatingStyles])}const arrow$1=options=>{function isRef(value){return{}.hasOwnProperty.call(value,"current")}return{name:"arrow",options,fn(state){const{element,padding}=typeof options=="function"?options(state):options;return element&&isRef(element)?element.current!=null?floating_ui_dom_arrow({element:element.current,padding}).fn(state):{}:element?floating_ui_dom_arrow({element,padding}).fn(state):{}}}},floating_ui_react_dom_offset=(options,deps)=>{const result=floating_ui_dom_offset(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_shift=(options,deps)=>{const result=floating_ui_dom_shift(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_limitShift=(options,deps)=>({fn:floating_ui_dom_limitShift(options).fn,options:[options,deps]}),floating_ui_react_dom_flip=(options,deps)=>{const result=floating_ui_dom_flip(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_size=(options,deps)=>{const result=floating_ui_dom_size(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_autoPlacement=(options,deps)=>{const result=floating_ui_dom_autoPlacement(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_hide=(options,deps)=>{const result=floating_ui_dom_hide(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_inline=(options,deps)=>{const result=floating_ui_dom_inline(options);return{name:result.name,fn:result.fn,options:[options,deps]}},floating_ui_react_dom_arrow=(options,deps)=>{const result=arrow$1(options);return{name:result.name,fn:result.fn,options:[options,deps]}};function useMergeRefs(refs){const cleanupRef=react.useRef(void 0),refEffect=react.useCallback(instance=>{const cleanups=refs.map(ref=>{if(ref!=null){if(typeof ref=="function"){const refCallback=ref,refCleanup=refCallback(instance);return typeof refCleanup=="function"?refCleanup:()=>{refCallback(null)}}return ref.current=instance,()=>{ref.current=null}}});return()=>{cleanups.forEach(refCleanup=>refCleanup?.())}},refs);return react.useMemo(()=>refs.every(ref=>ref==null)?null:value=>{cleanupRef.current&&(cleanupRef.current(),cleanupRef.current=void 0),value!=null&&(cleanupRef.current=refEffect(value))},refs)}function sortByDocumentPosition(a,b){const position=a.compareDocumentPosition(b);return position&Node.DOCUMENT_POSITION_FOLLOWING||position&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:position&Node.DOCUMENT_POSITION_PRECEDING||position&Node.DOCUMENT_POSITION_CONTAINS?1:0}const FloatingListContext=react.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function FloatingList(props){const{children,elementsRef,labelsRef}=props,[nodes,setNodes]=react.useState(()=>new Set),register=react.useCallback(node=>{setNodes(prevSet=>new Set(prevSet).add(node))},[]),unregister=react.useCallback(node=>{setNodes(prevSet=>{const set=new Set(prevSet);return set.delete(node),set})},[]),map=react.useMemo(()=>{const newMap=new Map;return Array.from(nodes.keys()).sort(sortByDocumentPosition).forEach((node,index2)=>{newMap.set(node,index2)}),newMap},[nodes]);return(0,jsx_runtime.jsx)(FloatingListContext.Provider,{value:react.useMemo(()=>({register,unregister,map,elementsRef,labelsRef}),[register,unregister,map,elementsRef,labelsRef]),children})}function useListItem(props){props===void 0&&(props={});const{label}=props,{register,unregister,map,elementsRef,labelsRef}=react.useContext(FloatingListContext),[index2,setIndex]=react.useState(null),componentRef=react.useRef(null),ref=react.useCallback(node=>{if(componentRef.current=node,index2!==null&&(elementsRef.current[index2]=node,labelsRef)){var _node$textContent;const isLabelDefined=label!==void 0;labelsRef.current[index2]=isLabelDefined?label:(_node$textContent=node?.textContent)!=null?_node$textContent:null}},[index2,elementsRef,labelsRef,label]);return floating_ui_react_utils_index(()=>{const node=componentRef.current;if(node)return register(node),()=>{unregister(node)}},[register,unregister]),floating_ui_react_utils_index(()=>{const index3=componentRef.current?map.get(componentRef.current):null;index3!=null&&setIndex(index3)},[map]),react.useMemo(()=>({ref,index:index2??-1}),[index2,ref])}const floating_ui_react_esm_FOCUSABLE_ATTRIBUTE="data-floating-ui-focusable",ACTIVE_KEY="active",SELECTED_KEY="selected",floating_ui_react_esm_ARROW_LEFT="ArrowLeft",floating_ui_react_esm_ARROW_RIGHT="ArrowRight",floating_ui_react_esm_ARROW_UP="ArrowUp",floating_ui_react_esm_ARROW_DOWN="ArrowDown";function renderJsx(render,computedProps){return typeof render=="function"?render(computedProps):render?react.cloneElement(render,computedProps):(0,jsx_runtime.jsx)("div",{...computedProps})}const CompositeContext=react.createContext({activeIndex:0,onNavigate:()=>{}}),horizontalKeys=[floating_ui_react_esm_ARROW_LEFT,floating_ui_react_esm_ARROW_RIGHT],verticalKeys=[floating_ui_react_esm_ARROW_UP,floating_ui_react_esm_ARROW_DOWN],allKeys=[...horizontalKeys,...verticalKeys],Composite=react.forwardRef(function(props,forwardedRef){const{render,orientation="both",loop=!0,rtl=!1,cols=1,disabledIndices,activeIndex:externalActiveIndex,onNavigate:externalSetActiveIndex,itemSizes,dense=!1,...domProps}=props,[internalActiveIndex,internalSetActiveIndex]=react.useState(0),activeIndex=externalActiveIndex??internalActiveIndex,onNavigate=useEffectEvent(externalSetActiveIndex??internalSetActiveIndex),elementsRef=react.useRef([]),renderElementProps=render&&typeof render!="function"?render.props:{},contextValue=react.useMemo(()=>({activeIndex,onNavigate}),[activeIndex,onNavigate]),isGrid=cols>1;function handleKeyDown(event){if(!allKeys.includes(event.key))return;let nextIndex=activeIndex;const minIndex=getMinListIndex(elementsRef,disabledIndices),maxIndex=getMaxListIndex(elementsRef,disabledIndices),horizontalEndKey=rtl?floating_ui_react_esm_ARROW_LEFT:floating_ui_react_esm_ARROW_RIGHT,horizontalStartKey=rtl?floating_ui_react_esm_ARROW_RIGHT:floating_ui_react_esm_ARROW_LEFT;if(isGrid){const sizes=itemSizes||Array.from({length:elementsRef.current.length},()=>({width:1,height:1})),cellMap=createGridCellMap(sizes,cols,dense),minGridIndex=cellMap.findIndex(index2=>index2!=null&&!isListIndexDisabled(elementsRef,index2,disabledIndices)),maxGridIndex=cellMap.reduce((foundIndex,index2,cellIndex)=>index2!=null&&!isListIndexDisabled(elementsRef,index2,disabledIndices)?cellIndex:foundIndex,-1),maybeNextIndex=cellMap[getGridNavigatedIndex({current:cellMap.map(itemIndex=>itemIndex?elementsRef.current[itemIndex]:null)},{event,orientation,loop,rtl,cols,disabledIndices:getGridCellIndices([...(typeof disabledIndices!="function"?disabledIndices:null)||elementsRef.current.map((_,index2)=>isListIndexDisabled(elementsRef,index2,disabledIndices)?index2:void 0),void 0],cellMap),minIndex:minGridIndex,maxIndex:maxGridIndex,prevIndex:getGridCellIndexOfCorner(activeIndex>maxIndex?minIndex:activeIndex,sizes,cellMap,cols,event.key===floating_ui_react_esm_ARROW_DOWN?"bl":event.key===horizontalEndKey?"tr":"tl")})];maybeNextIndex!=null&&(nextIndex=maybeNextIndex)}const toEndKeys={horizontal:[horizontalEndKey],vertical:[floating_ui_react_esm_ARROW_DOWN],both:[horizontalEndKey,floating_ui_react_esm_ARROW_DOWN]}[orientation],toStartKeys={horizontal:[horizontalStartKey],vertical:[floating_ui_react_esm_ARROW_UP],both:[horizontalStartKey,floating_ui_react_esm_ARROW_UP]}[orientation],preventedKeys=isGrid?allKeys:{horizontal:horizontalKeys,vertical:verticalKeys,both:allKeys}[orientation];if(nextIndex===activeIndex&&[...toEndKeys,...toStartKeys].includes(event.key)&&(loop&&nextIndex===maxIndex&&toEndKeys.includes(event.key)?nextIndex=minIndex:loop&&nextIndex===minIndex&&toStartKeys.includes(event.key)?nextIndex=maxIndex:nextIndex=findNonDisabledListIndex(elementsRef,{startingIndex:nextIndex,decrement:toStartKeys.includes(event.key),disabledIndices})),nextIndex!==activeIndex&&!isIndexOutOfListBounds(elementsRef,nextIndex)){var _elementsRef$current$;event.stopPropagation(),preventedKeys.includes(event.key)&&event.preventDefault(),onNavigate(nextIndex),(_elementsRef$current$=elementsRef.current[nextIndex])==null||_elementsRef$current$.focus()}}const computedProps={...domProps,...renderElementProps,ref:forwardedRef,"aria-orientation":orientation==="both"?void 0:orientation,onKeyDown(e){domProps.onKeyDown==null||domProps.onKeyDown(e),renderElementProps.onKeyDown==null||renderElementProps.onKeyDown(e),handleKeyDown(e)}};return(0,jsx_runtime.jsx)(CompositeContext.Provider,{value:contextValue,children:(0,jsx_runtime.jsx)(FloatingList,{elementsRef,children:renderJsx(render,computedProps)})})}),CompositeItem=react.forwardRef(function(props,forwardedRef){const{render,...domProps}=props,renderElementProps=render&&typeof render!="function"?render.props:{},{activeIndex,onNavigate}=react.useContext(CompositeContext),{ref,index:index2}=useListItem(),mergedRef=useMergeRefs([ref,forwardedRef,renderElementProps.ref]),isActive=activeIndex===index2,computedProps={...domProps,...renderElementProps,ref:mergedRef,tabIndex:isActive?0:-1,"data-active":isActive?"":void 0,onFocus(e){domProps.onFocus==null||domProps.onFocus(e),renderElementProps.onFocus==null||renderElementProps.onFocus(e),onNavigate(index2)}};return renderJsx(render,computedProps)}),floating_ui_react_esm_SafeReact={...react_namespaceObject};let serverHandoffComplete=!1,count=0;const genId=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+count++;function useFloatingId(){const[id,setId]=react.useState(()=>serverHandoffComplete?genId():void 0);return floating_ui_react_utils_index(()=>{id==null&&setId(genId())},[]),react.useEffect(()=>{serverHandoffComplete=!0},[]),id}const useId=floating_ui_react_esm_SafeReact.useId||useFloatingId;let devMessageSet;function warn(){for(var _devMessageSet,_len=arguments.length,messages=new Array(_len),_key=0;_key<_len;_key++)messages[_key]=arguments[_key];const message="Floating UI: "+messages.join(" ");if(!((_devMessageSet=devMessageSet)!=null&&_devMessageSet.has(message))){var _devMessageSet2;(_devMessageSet2=devMessageSet)==null||_devMessageSet2.add(message),console.warn(message)}}function error(){for(var _devMessageSet3,_len2=arguments.length,messages=new Array(_len2),_key2=0;_key2<_len2;_key2++)messages[_key2]=arguments[_key2];const message="Floating UI: "+messages.join(" ");if(!((_devMessageSet3=devMessageSet)!=null&&_devMessageSet3.has(message))){var _devMessageSet4;(_devMessageSet4=devMessageSet)==null||_devMessageSet4.add(message),console.error(message)}}const FloatingArrow=react.forwardRef(function(props,ref){const{context:{placement,elements:{floating},middlewareData:{arrow:arrow2,shift:shift2}},width=14,height=7,tipRadius=0,strokeWidth=0,staticOffset,stroke,d,style:{transform,...restStyle}={},...rest}=props,clipPathId=useId(),[isRTL2,setIsRTL]=react.useState(!1);if(floating_ui_react_utils_index(()=>{if(!floating)return;floating_ui_utils_dom_getComputedStyle(floating).direction==="rtl"&&setIsRTL(!0)},[floating]),!floating)return null;const[side,alignment]=placement.split("-"),isVerticalSide=side==="top"||side==="bottom";let computedStaticOffset=staticOffset;(isVerticalSide&&shift2!=null&&shift2.x||!isVerticalSide&&shift2!=null&&shift2.y)&&(computedStaticOffset=null);const computedStrokeWidth=strokeWidth*2,halfStrokeWidth=computedStrokeWidth/2,svgX=width/2*(tipRadius/-8+1),svgY=height/2*tipRadius/4,isCustomShape=!!d,yOffsetProp=computedStaticOffset&&alignment==="end"?"bottom":"top";let xOffsetProp=computedStaticOffset&&alignment==="end"?"right":"left";computedStaticOffset&&isRTL2&&(xOffsetProp=alignment==="end"?"left":"right");const arrowX=arrow2?.x!=null?computedStaticOffset||arrow2.x:"",arrowY=arrow2?.y!=null?computedStaticOffset||arrow2.y:"",dValue=d||"M0,0"+(" H"+width)+(" L"+(width-svgX)+","+(height-svgY))+(" Q"+width/2+","+height+" "+svgX+","+(height-svgY))+" Z",rotation={top:isCustomShape?"rotate(180deg)":"",left:isCustomShape?"rotate(90deg)":"rotate(-90deg)",bottom:isCustomShape?"":"rotate(180deg)",right:isCustomShape?"rotate(-90deg)":"rotate(90deg)"}[side];return(0,jsx_runtime.jsxs)("svg",{...rest,"aria-hidden":!0,ref,width:isCustomShape?width:width+computedStrokeWidth,height:width,viewBox:"0 0 "+width+" "+(height>width?height:width),style:{position:"absolute",pointerEvents:"none",[xOffsetProp]:arrowX,[yOffsetProp]:arrowY,[side]:isVerticalSide||isCustomShape?"100%":"calc(100% - "+computedStrokeWidth/2+"px)",transform:[rotation,transform].filter(t=>!!t).join(" "),...restStyle},children:[computedStrokeWidth>0&&(0,jsx_runtime.jsx)("path",{clipPath:"url(#"+clipPathId+")",fill:"none",stroke,strokeWidth:computedStrokeWidth+(d?0:1),d:dValue}),(0,jsx_runtime.jsx)("path",{stroke:computedStrokeWidth&&!d?rest.fill:"none",d:dValue}),(0,jsx_runtime.jsx)("clipPath",{id:clipPathId,children:(0,jsx_runtime.jsx)("rect",{x:-halfStrokeWidth,y:halfStrokeWidth*(isCustomShape?-1:1),width:width+computedStrokeWidth,height:width})})]})});function createEventEmitter(){const map=new Map;return{emit(event,data){var _map$get;(_map$get=map.get(event))==null||_map$get.forEach(listener=>listener(data))},on(event,listener){map.has(event)||map.set(event,new Set),map.get(event).add(listener)},off(event,listener){var _map$get2;(_map$get2=map.get(event))==null||_map$get2.delete(listener)}}}const FloatingNodeContext=react.createContext(null),FloatingTreeContext=react.createContext(null),useFloatingParentNodeId=()=>{var _React$useContext;return((_React$useContext=react.useContext(FloatingNodeContext))==null?void 0:_React$useContext.id)||null},useFloatingTree=()=>react.useContext(FloatingTreeContext);function useFloatingNodeId(customParentId){const id=useId(),tree=useFloatingTree(),reactParentId=useFloatingParentNodeId(),parentId=customParentId||reactParentId;return floating_ui_react_utils_index(()=>{if(!id)return;const node={id,parentId};return tree?.addNode(node),()=>{tree?.removeNode(node)}},[tree,id,parentId]),id}function FloatingNode(props){const{children,id}=props,parentId=useFloatingParentNodeId();return(0,jsx_runtime.jsx)(FloatingNodeContext.Provider,{value:react.useMemo(()=>({id,parentId}),[id,parentId]),children})}function FloatingTree(props){const{children}=props,nodesRef=react.useRef([]),addNode=react.useCallback(node=>{nodesRef.current=[...nodesRef.current,node]},[]),removeNode=react.useCallback(node=>{nodesRef.current=nodesRef.current.filter(n=>n!==node)},[]),[events]=react.useState(()=>createEventEmitter());return(0,jsx_runtime.jsx)(FloatingTreeContext.Provider,{value:react.useMemo(()=>({nodesRef,addNode,removeNode,events}),[addNode,removeNode,events]),children})}function createAttribute(name){return"data-floating-ui-"+name}function clearTimeoutIfSet(timeoutRef){timeoutRef.current!==-1&&(clearTimeout(timeoutRef.current),timeoutRef.current=-1)}const safePolygonIdentifier=createAttribute("safe-polygon");function getDelay(value,prop,pointerType){if(pointerType&&!isMouseLikePointerType(pointerType))return 0;if(typeof value=="number")return value;if(typeof value=="function"){const result=value();return typeof result=="number"?result:result?.[prop]}return value?.[prop]}function getRestMs(value){return typeof value=="function"?value():value}function useHover(context,props){props===void 0&&(props={});const{open,onOpenChange,dataRef,events,elements}=context,{enabled=!0,delay=0,handleClose=null,mouseOnly=!1,restMs=0,move=!0}=props,tree=useFloatingTree(),parentId=useFloatingParentNodeId(),handleCloseRef=useLatestRef(handleClose),delayRef=useLatestRef(delay),openRef=useLatestRef(open),restMsRef=useLatestRef(restMs),pointerTypeRef=react.useRef(),timeoutRef=react.useRef(-1),handlerRef=react.useRef(),restTimeoutRef=react.useRef(-1),blockMouseMoveRef=react.useRef(!0),performedPointerEventsMutationRef=react.useRef(!1),unbindMouseMoveRef=react.useRef(()=>{}),restTimeoutPendingRef=react.useRef(!1),isHoverOpen=useEffectEvent(()=>{var _dataRef$current$open;const type=(_dataRef$current$open=dataRef.current.openEvent)==null?void 0:_dataRef$current$open.type;return type?.includes("mouse")&&type!=="mousedown"});react.useEffect(()=>{if(!enabled)return;function onOpenChange2(_ref){let{open:open2}=_ref;open2||(clearTimeoutIfSet(timeoutRef),clearTimeoutIfSet(restTimeoutRef),blockMouseMoveRef.current=!0,restTimeoutPendingRef.current=!1)}return events.on("openchange",onOpenChange2),()=>{events.off("openchange",onOpenChange2)}},[enabled,events]),react.useEffect(()=>{if(!enabled||!handleCloseRef.current||!open)return;function onLeave(event){isHoverOpen()&&onOpenChange(!1,event,"hover")}const html=getDocument(elements.floating).documentElement;return html.addEventListener("mouseleave",onLeave),()=>{html.removeEventListener("mouseleave",onLeave)}},[elements.floating,open,onOpenChange,enabled,handleCloseRef,isHoverOpen]);const closeWithDelay=react.useCallback(function(event,runElseBranch,reason){runElseBranch===void 0&&(runElseBranch=!0),reason===void 0&&(reason="hover");const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);closeDelay&&!handlerRef.current?(clearTimeoutIfSet(timeoutRef),timeoutRef.current=window.setTimeout(()=>onOpenChange(!1,event,reason),closeDelay)):runElseBranch&&(clearTimeoutIfSet(timeoutRef),onOpenChange(!1,event,reason))},[delayRef,onOpenChange]),cleanupMouseMoveHandler=useEffectEvent(()=>{unbindMouseMoveRef.current(),handlerRef.current=void 0}),clearPointerEvents=useEffectEvent(()=>{if(performedPointerEventsMutationRef.current){const body=getDocument(elements.floating).body;body.style.pointerEvents="",body.removeAttribute(safePolygonIdentifier),performedPointerEventsMutationRef.current=!1}}),isClickLikeOpenEvent=useEffectEvent(()=>dataRef.current.openEvent?["click","mousedown"].includes(dataRef.current.openEvent.type):!1);react.useEffect(()=>{if(!enabled)return;function onReferenceMouseEnter(event){if(clearTimeoutIfSet(timeoutRef),blockMouseMoveRef.current=!1,mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||getRestMs(restMsRef.current)>0&&!getDelay(delayRef.current,"open"))return;const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);openDelay?timeoutRef.current=window.setTimeout(()=>{openRef.current||onOpenChange(!0,event,"hover")},openDelay):open||onOpenChange(!0,event,"hover")}function onReferenceMouseLeave(event){if(isClickLikeOpenEvent()){clearPointerEvents();return}unbindMouseMoveRef.current();const doc=getDocument(elements.floating);if(clearTimeoutIfSet(restTimeoutRef),restTimeoutPendingRef.current=!1,handleCloseRef.current&&dataRef.current.floatingContext){open||clearTimeoutIfSet(timeoutRef),handlerRef.current=handleCloseRef.current({...dataRef.current.floatingContext,tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),isClickLikeOpenEvent()||closeWithDelay(event,!0,"safe-polygon")}});const handler=handlerRef.current;doc.addEventListener("mousemove",handler),unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)};return}(pointerTypeRef.current==="touch"?!contains(elements.floating,event.relatedTarget):!0)&&closeWithDelay(event)}function onScrollMouseLeave(event){isClickLikeOpenEvent()||!dataRef.current.floatingContext||handleCloseRef.current==null||handleCloseRef.current({...dataRef.current.floatingContext,tree,x:event.clientX,y:event.clientY,onClose(){clearPointerEvents(),cleanupMouseMoveHandler(),isClickLikeOpenEvent()||closeWithDelay(event)}})(event)}function onFloatingMouseEnter(){clearTimeoutIfSet(timeoutRef)}function onFloatingMouseLeave(event){isClickLikeOpenEvent()||closeWithDelay(event,!1)}if(isElement(elements.domReference)){const reference2=elements.domReference,floating=elements.floating;return open&&reference2.addEventListener("mouseleave",onScrollMouseLeave),move&&reference2.addEventListener("mousemove",onReferenceMouseEnter,{once:!0}),reference2.addEventListener("mouseenter",onReferenceMouseEnter),reference2.addEventListener("mouseleave",onReferenceMouseLeave),floating&&(floating.addEventListener("mouseleave",onScrollMouseLeave),floating.addEventListener("mouseenter",onFloatingMouseEnter),floating.addEventListener("mouseleave",onFloatingMouseLeave)),()=>{open&&reference2.removeEventListener("mouseleave",onScrollMouseLeave),move&&reference2.removeEventListener("mousemove",onReferenceMouseEnter),reference2.removeEventListener("mouseenter",onReferenceMouseEnter),reference2.removeEventListener("mouseleave",onReferenceMouseLeave),floating&&(floating.removeEventListener("mouseleave",onScrollMouseLeave),floating.removeEventListener("mouseenter",onFloatingMouseEnter),floating.removeEventListener("mouseleave",onFloatingMouseLeave))}}},[elements,enabled,context,mouseOnly,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,openRef,tree,delayRef,handleCloseRef,dataRef,isClickLikeOpenEvent,restMsRef]),floating_ui_react_utils_index(()=>{var _handleCloseRef$curre;if(!!enabled&&open&&(_handleCloseRef$curre=handleCloseRef.current)!=null&&(_handleCloseRef$curre=_handleCloseRef$curre.__options)!=null&&_handleCloseRef$curre.blockPointerEvents&&isHoverOpen()){performedPointerEventsMutationRef.current=!0;const floatingEl=elements.floating;if(isElement(elements.domReference)&&floatingEl){var _tree$nodesRef$curren;const body=getDocument(elements.floating).body;body.setAttribute(safePolygonIdentifier,"");const ref=elements.domReference,parentFloating=tree==null||(_tree$nodesRef$curren=tree.nodesRef.current.find(node=>node.id===parentId))==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.context)==null?void 0:_tree$nodesRef$curren.elements.floating;return parentFloating&&(parentFloating.style.pointerEvents=""),body.style.pointerEvents="none",ref.style.pointerEvents="auto",floatingEl.style.pointerEvents="auto",()=>{body.style.pointerEvents="",ref.style.pointerEvents="",floatingEl.style.pointerEvents=""}}}},[enabled,open,parentId,elements,tree,handleCloseRef,isHoverOpen]),floating_ui_react_utils_index(()=>{open||(pointerTypeRef.current=void 0,restTimeoutPendingRef.current=!1,cleanupMouseMoveHandler(),clearPointerEvents())},[open,cleanupMouseMoveHandler,clearPointerEvents]),react.useEffect(()=>()=>{cleanupMouseMoveHandler(),clearTimeoutIfSet(timeoutRef),clearTimeoutIfSet(restTimeoutRef),clearPointerEvents()},[enabled,elements.domReference,cleanupMouseMoveHandler,clearPointerEvents]);const reference=react.useMemo(()=>{function setPointerRef(event){pointerTypeRef.current=event.pointerType}return{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(event){const{nativeEvent}=event;function handleMouseMove(){!blockMouseMoveRef.current&&!openRef.current&&onOpenChange(!0,nativeEvent,"hover")}mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||open||getRestMs(restMsRef.current)===0||restTimeoutPendingRef.current&&event.movementX**2+event.movementY**2<2||(clearTimeoutIfSet(restTimeoutRef),pointerTypeRef.current==="touch"?handleMouseMove():(restTimeoutPendingRef.current=!0,restTimeoutRef.current=window.setTimeout(handleMouseMove,getRestMs(restMsRef.current))))}}},[mouseOnly,onOpenChange,open,openRef,restMsRef]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}const NOOP=()=>{},FloatingDelayGroupContext=react.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:NOOP,setState:NOOP,isInstantPhase:!1}),useDelayGroupContext=()=>react.useContext(FloatingDelayGroupContext);function FloatingDelayGroup(props){const{children,delay,timeoutMs=0}=props,[state,setState]=react.useReducer((prev,next)=>({...prev,...next}),{delay,timeoutMs,initialDelay:delay,currentId:null,isInstantPhase:!1}),initialCurrentIdRef=react.useRef(null),setCurrentId=react.useCallback(currentId=>{setState({currentId})},[]);return floating_ui_react_utils_index(()=>{state.currentId?initialCurrentIdRef.current===null?initialCurrentIdRef.current=state.currentId:state.isInstantPhase||setState({isInstantPhase:!0}):(state.isInstantPhase&&setState({isInstantPhase:!1}),initialCurrentIdRef.current=null)},[state.currentId,state.isInstantPhase]),(0,jsx_runtime.jsx)(FloatingDelayGroupContext.Provider,{value:react.useMemo(()=>({...state,setState,setCurrentId}),[state,setCurrentId]),children})}function useDelayGroup(context,options){options===void 0&&(options={});const{open,onOpenChange,floatingId}=context,{id:optionId,enabled=!0}=options,id=optionId??floatingId,groupContext=useDelayGroupContext(),{currentId,setCurrentId,initialDelay,setState,timeoutMs}=groupContext;return floating_ui_react_utils_index(()=>{!enabled||!currentId||(setState({delay:{open:1,close:getDelay(initialDelay,"close")}}),currentId!==id&&onOpenChange(!1))},[enabled,id,onOpenChange,setState,currentId,initialDelay]),floating_ui_react_utils_index(()=>{function unset(){onOpenChange(!1),setState({delay:initialDelay,currentId:null})}if(!!enabled&&!!currentId&&!open&&currentId===id){if(timeoutMs){const timeout=window.setTimeout(unset,timeoutMs);return()=>{clearTimeout(timeout)}}unset()}},[enabled,open,setState,currentId,id,onOpenChange,initialDelay,timeoutMs]),floating_ui_react_utils_index(()=>{!enabled||setCurrentId===NOOP||!open||setCurrentId(id)},[enabled,open,setCurrentId,id]),groupContext}const NextFloatingDelayGroupContext=react.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function NextFloatingDelayGroup(props){const{children,delay,timeoutMs=0}=props,delayRef=react.useRef(delay),initialDelayRef=react.useRef(delay),currentIdRef=react.useRef(null),currentContextRef=react.useRef(null),timeoutIdRef=react.useRef(-1);return(0,jsx_runtime.jsx)(NextFloatingDelayGroupContext.Provider,{value:react.useMemo(()=>({hasProvider:!0,delayRef,initialDelayRef,currentIdRef,timeoutMs,currentContextRef,timeoutIdRef}),[timeoutMs]),children})}function useNextDelayGroup(context,options){options===void 0&&(options={});const{open,onOpenChange,floatingId}=context,{enabled=!0}=options,groupContext=react.useContext(NextFloatingDelayGroupContext),{currentIdRef,delayRef,timeoutMs,initialDelayRef,currentContextRef,hasProvider,timeoutIdRef}=groupContext,[isInstantPhase,setIsInstantPhase]=react.useState(!1);return floating_ui_react_utils_index(()=>{function unset(){var _currentContextRef$cu;setIsInstantPhase(!1),(_currentContextRef$cu=currentContextRef.current)==null||_currentContextRef$cu.setIsInstantPhase(!1),currentIdRef.current=null,currentContextRef.current=null,delayRef.current=initialDelayRef.current}if(!!enabled&&!!currentIdRef.current&&!open&&currentIdRef.current===floatingId){if(setIsInstantPhase(!1),timeoutMs)return timeoutIdRef.current=window.setTimeout(unset,timeoutMs),()=>{clearTimeout(timeoutIdRef.current)};unset()}},[enabled,open,floatingId,currentIdRef,delayRef,timeoutMs,initialDelayRef,currentContextRef,timeoutIdRef]),floating_ui_react_utils_index(()=>{if(!enabled||!open)return;const prevContext=currentContextRef.current,prevId=currentIdRef.current;currentContextRef.current={onOpenChange,setIsInstantPhase},currentIdRef.current=floatingId,delayRef.current={open:0,close:getDelay(initialDelayRef.current,"close")},prevId!==null&&prevId!==floatingId?(clearTimeoutIfSet(timeoutIdRef),setIsInstantPhase(!0),prevContext?.setIsInstantPhase(!0),prevContext?.onOpenChange(!1)):(setIsInstantPhase(!1),prevContext?.setIsInstantPhase(!1))},[enabled,open,floatingId,onOpenChange,currentIdRef,delayRef,timeoutMs,initialDelayRef,currentContextRef,timeoutIdRef]),floating_ui_react_utils_index(()=>()=>{currentContextRef.current=null},[currentContextRef]),react.useMemo(()=>({hasProvider,delayRef,isInstantPhase}),[hasProvider,delayRef,isInstantPhase])}let rafId=0;function enqueueFocus(el,options){options===void 0&&(options={});const{preventScroll=!1,cancelPrevious=!0,sync=!1}=options;cancelPrevious&&cancelAnimationFrame(rafId);const exec=()=>el?.focus({preventScroll});sync?exec():rafId=requestAnimationFrame(exec)}function floating_ui_react_esm_contains(parent2,child){if(!parent2||!child)return!1;const rootNode=child.getRootNode==null?void 0:child.getRootNode();if(parent2.contains(child))return!0;if(rootNode&&isShadowRoot(rootNode)){let next=child;for(;next;){if(parent2===next)return!0;next=next.parentNode||next.host}}return!1}function floating_ui_react_esm_getTarget(event){return"composedPath"in event?event.composedPath()[0]:event.target}function floating_ui_react_esm_getDocument(node){return node?.ownerDocument||document}const counters={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function getCounterMap(control){return control==="inert"?counters.inert:control==="aria-hidden"?counters["aria-hidden"]:counters.none}let uncontrolledElementsSet=new WeakSet,markerMap={},lockCount$1=0;const supportsInert=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;function unwrapHost(node){return node?isShadowRoot(node)?node.host:unwrapHost(node.parentNode):null}const correctElements=(parent2,targets)=>targets.map(target=>{if(parent2.contains(target))return target;const correctedTarget=unwrapHost(target);return parent2.contains(correctedTarget)?correctedTarget:null}).filter(x=>x!=null);function applyAttributeToOthers(uncorrectedAvoidElements,body,ariaHidden,inert){const markerName="data-floating-ui-inert",controlAttribute=inert?"inert":ariaHidden?"aria-hidden":null,avoidElements=correctElements(body,uncorrectedAvoidElements),elementsToKeep=new Set,elementsToStop=new Set(avoidElements),hiddenElements=[];markerMap[markerName]||(markerMap[markerName]=new WeakMap);const markerCounter=markerMap[markerName];avoidElements.forEach(keep),deep(body),elementsToKeep.clear();function keep(el){!el||elementsToKeep.has(el)||(elementsToKeep.add(el),el.parentNode&&keep(el.parentNode))}function deep(parent2){!parent2||elementsToStop.has(parent2)||[].forEach.call(parent2.children,node=>{if(getNodeName(node)!=="script")if(elementsToKeep.has(node))deep(node);else{const attr2=controlAttribute?node.getAttribute(controlAttribute):null,alreadyHidden=attr2!==null&&attr2!=="false",counterMap=getCounterMap(controlAttribute),counterValue=(counterMap.get(node)||0)+1,markerValue=(markerCounter.get(node)||0)+1;counterMap.set(node,counterValue),markerCounter.set(node,markerValue),hiddenElements.push(node),counterValue===1&&alreadyHidden&&uncontrolledElementsSet.add(node),markerValue===1&&node.setAttribute(markerName,""),!alreadyHidden&&controlAttribute&&node.setAttribute(controlAttribute,controlAttribute==="inert"?"":"true")}})}return lockCount$1++,()=>{hiddenElements.forEach(element=>{const counterMap=getCounterMap(controlAttribute),counterValue=(counterMap.get(element)||0)-1,markerValue=(markerCounter.get(element)||0)-1;counterMap.set(element,counterValue),markerCounter.set(element,markerValue),counterValue||(!uncontrolledElementsSet.has(element)&&controlAttribute&&element.removeAttribute(controlAttribute),uncontrolledElementsSet.delete(element)),markerValue||element.removeAttribute(markerName)}),lockCount$1--,lockCount$1||(counters.inert=new WeakMap,counters["aria-hidden"]=new WeakMap,counters.none=new WeakMap,uncontrolledElementsSet=new WeakSet,markerMap={})}}function markOthers(avoidElements,ariaHidden,inert){ariaHidden===void 0&&(ariaHidden=!1),inert===void 0&&(inert=!1);const body=floating_ui_react_esm_getDocument(avoidElements[0]).body;return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live],[role="status"],output'))),body,ariaHidden,inert)}const HIDDEN_STYLES={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},FocusGuard=react.forwardRef(function(props,ref){const[role,setRole]=react.useState();floating_ui_react_utils_index(()=>{isSafari()&&setRole("button")},[]);const restProps={ref,tabIndex:0,role,"aria-hidden":role?void 0:!0,[createAttribute("focus-guard")]:"",style:HIDDEN_STYLES};return(0,jsx_runtime.jsx)("span",{...props,...restProps})}),HIDDEN_OWNER_STYLES={clipPath:"inset(50%)",position:"fixed",top:0,left:0},PortalContext=react.createContext(null),attr=createAttribute("portal");function useFloatingPortalNode(props){props===void 0&&(props={});const{id,root}=props,uniqueId=useId(),portalContext=usePortalContext(),[portalNode,setPortalNode]=react.useState(null),portalNodeRef=react.useRef(null);return floating_ui_react_utils_index(()=>()=>{portalNode?.remove(),queueMicrotask(()=>{portalNodeRef.current=null})},[portalNode]),floating_ui_react_utils_index(()=>{if(!uniqueId||portalNodeRef.current)return;const existingIdRoot=id?document.getElementById(id):null;if(!existingIdRoot)return;const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),existingIdRoot.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)},[id,uniqueId]),floating_ui_react_utils_index(()=>{if(root===null||!uniqueId||portalNodeRef.current)return;let container=root||portalContext?.portalNode;container&&!isNode(container)&&(container=container.current),container=container||document.body;let idWrapper=null;id&&(idWrapper=document.createElement("div"),idWrapper.id=id,container.appendChild(idWrapper));const subRoot=document.createElement("div");subRoot.id=uniqueId,subRoot.setAttribute(attr,""),container=idWrapper||container,container.appendChild(subRoot),portalNodeRef.current=subRoot,setPortalNode(subRoot)},[id,root,uniqueId,portalContext]),portalNode}function FloatingPortal(props){const{children,id,root,preserveTabOrder=!0}=props,portalNode=useFloatingPortalNode({id,root}),[focusManagerState,setFocusManagerState]=react.useState(null),beforeOutsideRef=react.useRef(null),afterOutsideRef=react.useRef(null),beforeInsideRef=react.useRef(null),afterInsideRef=react.useRef(null),modal=focusManagerState?.modal,open=focusManagerState?.open,shouldRenderGuards=!!focusManagerState&&!focusManagerState.modal&&focusManagerState.open&&preserveTabOrder&&!!(root||portalNode);return react.useEffect(()=>{if(!portalNode||!preserveTabOrder||modal)return;function onFocus(event){portalNode&&isOutsideEvent(event)&&(event.type==="focusin"?enableFocusInside:disableFocusInside)(portalNode)}return portalNode.addEventListener("focusin",onFocus,!0),portalNode.addEventListener("focusout",onFocus,!0),()=>{portalNode.removeEventListener("focusin",onFocus,!0),portalNode.removeEventListener("focusout",onFocus,!0)}},[portalNode,preserveTabOrder,modal]),react.useEffect(()=>{!portalNode||open||enableFocusInside(portalNode)},[open,portalNode]),(0,jsx_runtime.jsxs)(PortalContext.Provider,{value:react.useMemo(()=>({preserveTabOrder,beforeOutsideRef,afterOutsideRef,beforeInsideRef,afterInsideRef,portalNode,setFocusManagerState}),[preserveTabOrder,portalNode]),children:[shouldRenderGuards&&portalNode&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"outside",ref:beforeOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _beforeInsideRef$curr;(_beforeInsideRef$curr=beforeInsideRef.current)==null||_beforeInsideRef$curr.focus()}else{const domReference=focusManagerState?focusManagerState.domReference:null,prevTabbable=getPreviousTabbable(domReference);prevTabbable?.focus()}}}),shouldRenderGuards&&portalNode&&(0,jsx_runtime.jsx)("span",{"aria-owns":portalNode.id,style:HIDDEN_OWNER_STYLES}),portalNode&&react_dom.createPortal(children,portalNode),shouldRenderGuards&&portalNode&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"outside",ref:afterOutsideRef,onFocus:event=>{if(isOutsideEvent(event,portalNode)){var _afterInsideRef$curre;(_afterInsideRef$curre=afterInsideRef.current)==null||_afterInsideRef$curre.focus()}else{const domReference=focusManagerState?focusManagerState.domReference:null,nextTabbable=getNextTabbable(domReference);nextTabbable?.focus(),focusManagerState?.closeOnFocusOut&&focusManagerState?.onOpenChange(!1,event.nativeEvent,"focus-out")}}})]})}const usePortalContext=()=>react.useContext(PortalContext);function useLiteMergeRefs(refs){return react.useMemo(()=>value=>{refs.forEach(ref=>{ref&&(ref.current=value)})},refs)}const LIST_LIMIT=20;let previouslyFocusedElements=[];function clearDisconnectedPreviouslyFocusedElements(){previouslyFocusedElements=previouslyFocusedElements.filter(elementRef=>{var _elementRef$deref;return(_elementRef$deref=elementRef.deref())==null?void 0:_elementRef$deref.isConnected})}function addPreviouslyFocusedElement(element){clearDisconnectedPreviouslyFocusedElements(),element&&getNodeName(element)!=="body"&&(previouslyFocusedElements.push(new WeakRef(element)),previouslyFocusedElements.length>LIST_LIMIT&&(previouslyFocusedElements=previouslyFocusedElements.slice(-LIST_LIMIT)))}function getPreviouslyFocusedElement(){clearDisconnectedPreviouslyFocusedElements();const elementRef=previouslyFocusedElements[previouslyFocusedElements.length-1];return elementRef?.deref()}function getFirstTabbableElement(container){const tabbableOptions=getTabbableOptions();return isTabbable(container,tabbableOptions)?container:tabbable(container,tabbableOptions)[0]||container}function handleTabIndex(floatingFocusElement,orderRef){var _floatingFocusElement;if(!orderRef.current.includes("floating")&&!((_floatingFocusElement=floatingFocusElement.getAttribute("role"))!=null&&_floatingFocusElement.includes("dialog")))return;const options=getTabbableOptions(),tabbableContent=focusable(floatingFocusElement,options).filter(element=>{const dataTabIndex=element.getAttribute("data-tabindex")||"";return isTabbable(element,options)||element.hasAttribute("data-tabindex")&&!dataTabIndex.startsWith("-")}),tabIndex=floatingFocusElement.getAttribute("tabindex");orderRef.current.includes("floating")||tabbableContent.length===0?tabIndex!=="0"&&floatingFocusElement.setAttribute("tabindex","0"):(tabIndex!=="-1"||floatingFocusElement.hasAttribute("data-tabindex")&&floatingFocusElement.getAttribute("data-tabindex")!=="-1")&&(floatingFocusElement.setAttribute("tabindex","-1"),floatingFocusElement.setAttribute("data-tabindex","-1"))}const VisuallyHiddenDismiss=react.forwardRef(function(props,ref){return(0,jsx_runtime.jsx)("button",{...props,type:"button",ref,tabIndex:-1,style:HIDDEN_STYLES})});function FloatingFocusManager(props){const{context,children,disabled=!1,order=["content"],guards:_guards=!0,initialFocus=0,returnFocus=!0,restoreFocus=!1,modal=!0,visuallyHiddenDismiss=!1,closeOnFocusOut=!0,outsideElementsInert=!1,getInsideElements:_getInsideElements=()=>[]}=props,{open,onOpenChange,events,dataRef,elements:{domReference,floating}}=context,getNodeId=useEffectEvent(()=>{var _dataRef$current$floa;return(_dataRef$current$floa=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa.nodeId}),getInsideElements=useEffectEvent(_getInsideElements),ignoreInitialFocus=typeof initialFocus=="number"&&initialFocus<0,isUntrappedTypeableCombobox=isTypeableCombobox(domReference)&&ignoreInitialFocus,inertSupported=supportsInert(),guards=inertSupported?_guards:!0,useInert=!guards||inertSupported&&outsideElementsInert,orderRef=useLatestRef(order),initialFocusRef=useLatestRef(initialFocus),returnFocusRef=useLatestRef(returnFocus),tree=useFloatingTree(),portalContext=usePortalContext(),startDismissButtonRef=react.useRef(null),endDismissButtonRef=react.useRef(null),preventReturnFocusRef=react.useRef(!1),isPointerDownRef=react.useRef(!1),tabbableIndexRef=react.useRef(-1),blurTimeoutRef=react.useRef(-1),isInsidePortal=portalContext!=null,floatingFocusElement=getFloatingFocusElement(floating),getTabbableContent=useEffectEvent(function(container){return container===void 0&&(container=floatingFocusElement),container?tabbable(container,getTabbableOptions()):[]}),getTabbableElements=useEffectEvent(container=>{const content=getTabbableContent(container);return orderRef.current.map(type=>domReference&&type==="reference"?domReference:floatingFocusElement&&type==="floating"?floatingFocusElement:content).filter(Boolean).flat()});react.useEffect(()=>{if(disabled||!modal)return;function onKeyDown(event){if(event.key==="Tab"){contains(floatingFocusElement,activeElement(getDocument(floatingFocusElement)))&&getTabbableContent().length===0&&!isUntrappedTypeableCombobox&&stopEvent(event);const els=getTabbableElements(),target=getTarget(event);orderRef.current[0]==="reference"&&target===domReference&&(stopEvent(event),event.shiftKey?enqueueFocus(els[els.length-1]):enqueueFocus(els[1])),orderRef.current[1]==="floating"&&target===floatingFocusElement&&event.shiftKey&&(stopEvent(event),enqueueFocus(els[0]))}}const doc=getDocument(floatingFocusElement);return doc.addEventListener("keydown",onKeyDown),()=>{doc.removeEventListener("keydown",onKeyDown)}},[disabled,domReference,floatingFocusElement,modal,orderRef,isUntrappedTypeableCombobox,getTabbableContent,getTabbableElements]),react.useEffect(()=>{if(disabled||!floating)return;function handleFocusIn(event){const target=getTarget(event),tabbableIndex=getTabbableContent().indexOf(target);tabbableIndex!==-1&&(tabbableIndexRef.current=tabbableIndex)}return floating.addEventListener("focusin",handleFocusIn),()=>{floating.removeEventListener("focusin",handleFocusIn)}},[disabled,floating,getTabbableContent]),react.useEffect(()=>{if(disabled||!closeOnFocusOut)return;function handlePointerDown(){isPointerDownRef.current=!0,setTimeout(()=>{isPointerDownRef.current=!1})}function handleFocusOutside(event){const relatedTarget=event.relatedTarget,currentTarget=event.currentTarget,target=getTarget(event);queueMicrotask(()=>{const nodeId=getNodeId(),movedToUnrelatedNode=!(contains(domReference,relatedTarget)||contains(floating,relatedTarget)||contains(relatedTarget,floating)||contains(portalContext?.portalNode,relatedTarget)||relatedTarget!=null&&relatedTarget.hasAttribute(createAttribute("focus-guard"))||tree&&(getNodeChildren(tree.nodesRef.current,nodeId).find(node=>{var _node$context,_node$context2;return contains((_node$context=node.context)==null?void 0:_node$context.elements.floating,relatedTarget)||contains((_node$context2=node.context)==null?void 0:_node$context2.elements.domReference,relatedTarget)})||getNodeAncestors(tree.nodesRef.current,nodeId).find(node=>{var _node$context3,_node$context4,_node$context5;return[(_node$context3=node.context)==null?void 0:_node$context3.elements.floating,getFloatingFocusElement((_node$context4=node.context)==null?void 0:_node$context4.elements.floating)].includes(relatedTarget)||((_node$context5=node.context)==null?void 0:_node$context5.elements.domReference)===relatedTarget})));if(currentTarget===domReference&&floatingFocusElement&&handleTabIndex(floatingFocusElement,orderRef),restoreFocus&&currentTarget!==domReference&&!(target!=null&&target.isConnected)&&activeElement(getDocument(floatingFocusElement))===getDocument(floatingFocusElement).body){isHTMLElement(floatingFocusElement)&&floatingFocusElement.focus();const prevTabbableIndex=tabbableIndexRef.current,tabbableContent=getTabbableContent(),nodeToFocus=tabbableContent[prevTabbableIndex]||tabbableContent[tabbableContent.length-1]||floatingFocusElement;isHTMLElement(nodeToFocus)&&nodeToFocus.focus()}if(dataRef.current.insideReactTree){dataRef.current.insideReactTree=!1;return}(isUntrappedTypeableCombobox?!0:!modal)&&relatedTarget&&movedToUnrelatedNode&&!isPointerDownRef.current&&relatedTarget!==getPreviouslyFocusedElement()&&(preventReturnFocusRef.current=!0,onOpenChange(!1,event,"focus-out"))})}const shouldHandleBlurCapture=Boolean(!tree&&portalContext);function markInsideReactTree(){clearTimeoutIfSet(blurTimeoutRef),dataRef.current.insideReactTree=!0,blurTimeoutRef.current=window.setTimeout(()=>{dataRef.current.insideReactTree=!1})}if(floating&&isHTMLElement(domReference))return domReference.addEventListener("focusout",handleFocusOutside),domReference.addEventListener("pointerdown",handlePointerDown),floating.addEventListener("focusout",handleFocusOutside),shouldHandleBlurCapture&&floating.addEventListener("focusout",markInsideReactTree,!0),()=>{domReference.removeEventListener("focusout",handleFocusOutside),domReference.removeEventListener("pointerdown",handlePointerDown),floating.removeEventListener("focusout",handleFocusOutside),shouldHandleBlurCapture&&floating.removeEventListener("focusout",markInsideReactTree,!0)}},[disabled,domReference,floating,floatingFocusElement,modal,tree,portalContext,onOpenChange,closeOnFocusOut,restoreFocus,getTabbableContent,isUntrappedTypeableCombobox,getNodeId,orderRef,dataRef]);const beforeGuardRef=react.useRef(null),afterGuardRef=react.useRef(null),mergedBeforeGuardRef=useLiteMergeRefs([beforeGuardRef,portalContext?.beforeInsideRef]),mergedAfterGuardRef=useLiteMergeRefs([afterGuardRef,portalContext?.afterInsideRef]);react.useEffect(()=>{var _portalContext$portal,_ancestors$find;if(disabled||!floating)return;const portalNodes=Array.from((portalContext==null||(_portalContext$portal=portalContext.portalNode)==null?void 0:_portalContext$portal.querySelectorAll("["+createAttribute("portal")+"]"))||[]),rootAncestorComboboxDomReference=(_ancestors$find=(tree?getNodeAncestors(tree.nodesRef.current,getNodeId()):[]).find(node=>{var _node$context6;return isTypeableCombobox(((_node$context6=node.context)==null?void 0:_node$context6.elements.domReference)||null)}))==null||(_ancestors$find=_ancestors$find.context)==null?void 0:_ancestors$find.elements.domReference,insideElements=[floating,rootAncestorComboboxDomReference,...portalNodes,...getInsideElements(),startDismissButtonRef.current,endDismissButtonRef.current,beforeGuardRef.current,afterGuardRef.current,portalContext?.beforeOutsideRef.current,portalContext?.afterOutsideRef.current,orderRef.current.includes("reference")||isUntrappedTypeableCombobox?domReference:null].filter(x=>x!=null),cleanup2=modal||isUntrappedTypeableCombobox?markOthers(insideElements,!useInert,useInert):markOthers(insideElements);return()=>{cleanup2()}},[disabled,domReference,floating,modal,orderRef,portalContext,isUntrappedTypeableCombobox,guards,useInert,tree,getNodeId,getInsideElements]),floating_ui_react_utils_index(()=>{if(disabled||!isHTMLElement(floatingFocusElement))return;const doc=getDocument(floatingFocusElement),previouslyFocusedElement=activeElement(doc);queueMicrotask(()=>{const focusableElements=getTabbableElements(floatingFocusElement),initialFocusValue=initialFocusRef.current,elToFocus=(typeof initialFocusValue=="number"?focusableElements[initialFocusValue]:initialFocusValue.current)||floatingFocusElement,focusAlreadyInsideFloatingEl=contains(floatingFocusElement,previouslyFocusedElement);!ignoreInitialFocus&&!focusAlreadyInsideFloatingEl&&open&&enqueueFocus(elToFocus,{preventScroll:elToFocus===floatingFocusElement})})},[disabled,open,floatingFocusElement,ignoreInitialFocus,getTabbableElements,initialFocusRef]),floating_ui_react_utils_index(()=>{if(disabled||!floatingFocusElement)return;const doc=getDocument(floatingFocusElement),previouslyFocusedElement=activeElement(doc);addPreviouslyFocusedElement(previouslyFocusedElement);function onOpenChange2(_ref){let{reason,event,nested}=_ref;if(["hover","safe-polygon"].includes(reason)&&event.type==="mouseleave"&&(preventReturnFocusRef.current=!0),reason==="outside-press")if(nested)preventReturnFocusRef.current=!1;else if(isVirtualClick(event)||isVirtualPointerEvent(event))preventReturnFocusRef.current=!1;else{let isPreventScrollSupported=!1;document.createElement("div").focus({get preventScroll(){return isPreventScrollSupported=!0,!1}}),isPreventScrollSupported?preventReturnFocusRef.current=!1:preventReturnFocusRef.current=!0}}events.on("openchange",onOpenChange2);const fallbackEl=doc.createElement("span");fallbackEl.setAttribute("tabindex","-1"),fallbackEl.setAttribute("aria-hidden","true"),Object.assign(fallbackEl.style,HIDDEN_STYLES),isInsidePortal&&domReference&&domReference.insertAdjacentElement("afterend",fallbackEl);function getReturnElement(){if(typeof returnFocusRef.current=="boolean"){const el=domReference||getPreviouslyFocusedElement();return el&&el.isConnected?el:fallbackEl}return returnFocusRef.current.current||fallbackEl}return()=>{events.off("openchange",onOpenChange2);const activeEl=activeElement(doc),isFocusInsideFloatingTree=contains(floating,activeEl)||tree&&getNodeChildren(tree.nodesRef.current,getNodeId(),!1).some(node=>{var _node$context7;return contains((_node$context7=node.context)==null?void 0:_node$context7.elements.floating,activeEl)}),returnElement=getReturnElement();queueMicrotask(()=>{const tabbableReturnElement=getFirstTabbableElement(returnElement);returnFocusRef.current&&!preventReturnFocusRef.current&&isHTMLElement(tabbableReturnElement)&&(tabbableReturnElement!==activeEl&&activeEl!==doc.body?isFocusInsideFloatingTree:!0)&&tabbableReturnElement.focus({preventScroll:!0}),fallbackEl.remove()})}},[disabled,floating,floatingFocusElement,returnFocusRef,dataRef,events,tree,isInsidePortal,domReference,getNodeId]),react.useEffect(()=>(queueMicrotask(()=>{preventReturnFocusRef.current=!1}),()=>{queueMicrotask(clearDisconnectedPreviouslyFocusedElements)}),[disabled]),floating_ui_react_utils_index(()=>{if(!disabled&&!!portalContext)return portalContext.setFocusManagerState({modal,closeOnFocusOut,open,onOpenChange,domReference}),()=>{portalContext.setFocusManagerState(null)}},[disabled,portalContext,modal,open,onOpenChange,closeOnFocusOut,domReference]),floating_ui_react_utils_index(()=>{disabled||!floatingFocusElement||handleTabIndex(floatingFocusElement,orderRef)},[disabled,floatingFocusElement,orderRef]);function renderDismissButton(location){return disabled||!visuallyHiddenDismiss||!modal?null:(0,jsx_runtime.jsx)(VisuallyHiddenDismiss,{ref:location==="start"?startDismissButtonRef:endDismissButtonRef,onClick:event=>onOpenChange(!1,event.nativeEvent),children:typeof visuallyHiddenDismiss=="string"?visuallyHiddenDismiss:"Dismiss"})}const shouldRenderGuards=!disabled&&guards&&(modal?!isUntrappedTypeableCombobox:!0)&&(isInsidePortal||modal);return(0,jsx_runtime.jsxs)(jsx_runtime.Fragment,{children:[shouldRenderGuards&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"inside",ref:mergedBeforeGuardRef,onFocus:event=>{if(modal){const els=getTabbableElements();enqueueFocus(order[0]==="reference"?els[0]:els[els.length-1])}else if(portalContext!=null&&portalContext.preserveTabOrder&&portalContext.portalNode)if(preventReturnFocusRef.current=!1,isOutsideEvent(event,portalContext.portalNode)){const nextTabbable=getNextTabbable(domReference);nextTabbable?.focus()}else{var _portalContext$before;(_portalContext$before=portalContext.beforeOutsideRef.current)==null||_portalContext$before.focus()}}}),!isUntrappedTypeableCombobox&&renderDismissButton("start"),children,renderDismissButton("end"),shouldRenderGuards&&(0,jsx_runtime.jsx)(FocusGuard,{"data-type":"inside",ref:mergedAfterGuardRef,onFocus:event=>{if(modal)enqueueFocus(getTabbableElements()[0]);else if(portalContext!=null&&portalContext.preserveTabOrder&&portalContext.portalNode)if(closeOnFocusOut&&(preventReturnFocusRef.current=!0),isOutsideEvent(event,portalContext.portalNode)){const prevTabbable=getPreviousTabbable(domReference);prevTabbable?.focus()}else{var _portalContext$afterO;(_portalContext$afterO=portalContext.afterOutsideRef.current)==null||_portalContext$afterO.focus()}}})]})}let lockCount=0;const scrollbarProperty="--floating-ui-scrollbar-width";function enableScrollLock(){const platform2=getPlatform(),isIOS=/iP(hone|ad|od)|iOS/.test(platform2)||platform2==="MacIntel"&&navigator.maxTouchPoints>1,bodyStyle=document.body.style,paddingProp=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",scrollbarWidth=window.innerWidth-document.documentElement.clientWidth,scrollX=bodyStyle.left?parseFloat(bodyStyle.left):window.scrollX,scrollY=bodyStyle.top?parseFloat(bodyStyle.top):window.scrollY;if(bodyStyle.overflow="hidden",bodyStyle.setProperty(scrollbarProperty,scrollbarWidth+"px"),scrollbarWidth&&(bodyStyle[paddingProp]=scrollbarWidth+"px"),isIOS){var _window$visualViewpor,_window$visualViewpor2;const offsetLeft=((_window$visualViewpor=window.visualViewport)==null?void 0:_window$visualViewpor.offsetLeft)||0,offsetTop=((_window$visualViewpor2=window.visualViewport)==null?void 0:_window$visualViewpor2.offsetTop)||0;Object.assign(bodyStyle,{position:"fixed",top:-(scrollY-Math.floor(offsetTop))+"px",left:-(scrollX-Math.floor(offsetLeft))+"px",right:"0"})}return()=>{Object.assign(bodyStyle,{overflow:"",[paddingProp]:""}),bodyStyle.removeProperty(scrollbarProperty),isIOS&&(Object.assign(bodyStyle,{position:"",top:"",left:"",right:""}),window.scrollTo(scrollX,scrollY))}}let cleanup=()=>{};const FloatingOverlay=react.forwardRef(function(props,ref){const{lockScroll=!1,...rest}=props;return floating_ui_react_utils_index(()=>{if(!!lockScroll)return lockCount++,lockCount===1&&(cleanup=enableScrollLock()),()=>{lockCount--,lockCount===0&&cleanup()}},[lockScroll]),(0,jsx_runtime.jsx)("div",{ref,...rest,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...rest.style}})});function isButtonTarget(event){return isHTMLElement(event.target)&&event.target.tagName==="BUTTON"}function isAnchorTarget(event){return isHTMLElement(event.target)&&event.target.tagName==="A"}function isSpaceIgnored(element){return isTypeableElement(element)}function useClick(context,props){props===void 0&&(props={});const{open,onOpenChange,dataRef,elements:{domReference}}=context,{enabled=!0,event:eventOption="click",toggle=!0,ignoreMouse=!1,keyboardHandlers=!0,stickIfOpen=!0}=props,pointerTypeRef=react.useRef(),didKeyDownRef=react.useRef(!1),reference=react.useMemo(()=>({onPointerDown(event){pointerTypeRef.current=event.pointerType},onMouseDown(event){const pointerType=pointerTypeRef.current;event.button===0&&eventOption!=="click"&&(isMouseLikePointerType(pointerType,!0)&&ignoreMouse||(open&&toggle&&(dataRef.current.openEvent&&stickIfOpen?dataRef.current.openEvent.type==="mousedown":!0)?onOpenChange(!1,event.nativeEvent,"click"):(event.preventDefault(),onOpenChange(!0,event.nativeEvent,"click"))))},onClick(event){const pointerType=pointerTypeRef.current;if(eventOption==="mousedown"&&pointerTypeRef.current){pointerTypeRef.current=void 0;return}isMouseLikePointerType(pointerType,!0)&&ignoreMouse||(open&&toggle&&(dataRef.current.openEvent&&stickIfOpen?dataRef.current.openEvent.type==="click":!0)?onOpenChange(!1,event.nativeEvent,"click"):onOpenChange(!0,event.nativeEvent,"click"))},onKeyDown(event){pointerTypeRef.current=void 0,!(event.defaultPrevented||!keyboardHandlers||isButtonTarget(event))&&(event.key===" "&&!isSpaceIgnored(domReference)&&(event.preventDefault(),didKeyDownRef.current=!0),!isAnchorTarget(event)&&event.key==="Enter"&&onOpenChange(!(open&&toggle),event.nativeEvent,"click"))},onKeyUp(event){event.defaultPrevented||!keyboardHandlers||isButtonTarget(event)||isSpaceIgnored(domReference)||event.key===" "&&didKeyDownRef.current&&(didKeyDownRef.current=!1,onOpenChange(!(open&&toggle),event.nativeEvent,"click"))}}),[dataRef,domReference,eventOption,ignoreMouse,keyboardHandlers,onOpenChange,open,stickIfOpen,toggle]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}function createVirtualElement(domElement,data){let offsetX=null,offsetY=null,isAutoUpdateEvent=!1;return{contextElement:domElement||void 0,getBoundingClientRect(){var _data$dataRef$current;const domRect=domElement?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},isXAxis=data.axis==="x"||data.axis==="both",isYAxis=data.axis==="y"||data.axis==="both",canTrackCursorOnAutoUpdate=["mouseenter","mousemove"].includes(((_data$dataRef$current=data.dataRef.current.openEvent)==null?void 0:_data$dataRef$current.type)||"")&&data.pointerType!=="touch";let width=domRect.width,height=domRect.height,x=domRect.x,y=domRect.y;return offsetX==null&&data.x&&isXAxis&&(offsetX=domRect.x-data.x),offsetY==null&&data.y&&isYAxis&&(offsetY=domRect.y-data.y),x-=offsetX||0,y-=offsetY||0,width=0,height=0,!isAutoUpdateEvent||canTrackCursorOnAutoUpdate?(width=data.axis==="y"?domRect.width:0,height=data.axis==="x"?domRect.height:0,x=isXAxis&&data.x!=null?data.x:x,y=isYAxis&&data.y!=null?data.y:y):isAutoUpdateEvent&&!canTrackCursorOnAutoUpdate&&(height=data.axis==="x"?domRect.height:height,width=data.axis==="y"?domRect.width:width),isAutoUpdateEvent=!0,{width,height,x,y,top:y,right:x+width,bottom:y+height,left:x}}}}function isMouseBasedEvent(event){return event!=null&&event.clientX!=null}function useClientPoint(context,props){props===void 0&&(props={});const{open,dataRef,elements:{floating,domReference},refs}=context,{enabled=!0,axis="both",x=null,y=null}=props,initialRef=react.useRef(!1),cleanupListenerRef=react.useRef(null),[pointerType,setPointerType]=react.useState(),[reactive,setReactive]=react.useState([]),setReference=useEffectEvent((x2,y2)=>{initialRef.current||dataRef.current.openEvent&&!isMouseBasedEvent(dataRef.current.openEvent)||refs.setPositionReference(createVirtualElement(domReference,{x:x2,y:y2,axis,dataRef,pointerType}))}),handleReferenceEnterOrMove=useEffectEvent(event=>{x!=null||y!=null||(open?cleanupListenerRef.current||setReactive([]):setReference(event.clientX,event.clientY))}),openCheck=isMouseLikePointerType(pointerType)?floating:open,addListener=react.useCallback(()=>{if(!openCheck||!enabled||x!=null||y!=null)return;const win=getWindow(floating);function handleMouseMove(event){const target=getTarget(event);contains(floating,target)?(win.removeEventListener("mousemove",handleMouseMove),cleanupListenerRef.current=null):setReference(event.clientX,event.clientY)}if(!dataRef.current.openEvent||isMouseBasedEvent(dataRef.current.openEvent)){win.addEventListener("mousemove",handleMouseMove);const cleanup2=()=>{win.removeEventListener("mousemove",handleMouseMove),cleanupListenerRef.current=null};return cleanupListenerRef.current=cleanup2,cleanup2}refs.setPositionReference(domReference)},[openCheck,enabled,x,y,floating,dataRef,refs,domReference,setReference]);react.useEffect(()=>addListener(),[addListener,reactive]),react.useEffect(()=>{enabled&&!floating&&(initialRef.current=!1)},[enabled,floating]),react.useEffect(()=>{!enabled&&open&&(initialRef.current=!0)},[enabled,open]),floating_ui_react_utils_index(()=>{enabled&&(x!=null||y!=null)&&(initialRef.current=!1,setReference(x,y))},[enabled,x,y,setReference]);const reference=react.useMemo(()=>{function setPointerTypeRef(_ref){let{pointerType:pointerType2}=_ref;setPointerType(pointerType2)}return{onPointerDown:setPointerTypeRef,onPointerEnter:setPointerTypeRef,onMouseMove:handleReferenceEnterOrMove,onMouseEnter:handleReferenceEnterOrMove}},[handleReferenceEnterOrMove]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}const bubbleHandlerKeys={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},captureHandlerKeys={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},normalizeProp=normalizable=>{var _normalizable$escapeK,_normalizable$outside;return{escapeKey:typeof normalizable=="boolean"?normalizable:(_normalizable$escapeK=normalizable?.escapeKey)!=null?_normalizable$escapeK:!1,outsidePress:typeof normalizable=="boolean"?normalizable:(_normalizable$outside=normalizable?.outsidePress)!=null?_normalizable$outside:!0}};function useDismiss(context,props){props===void 0&&(props={});const{open,onOpenChange,elements,dataRef}=context,{enabled=!0,escapeKey=!0,outsidePress:unstable_outsidePress=!0,outsidePressEvent="pointerdown",referencePress=!1,referencePressEvent="pointerdown",ancestorScroll=!1,bubbles,capture}=props,tree=useFloatingTree(),outsidePressFn=useEffectEvent(typeof unstable_outsidePress=="function"?unstable_outsidePress:()=>!1),outsidePress=typeof unstable_outsidePress=="function"?outsidePressFn:unstable_outsidePress,endedOrStartedInsideRef=react.useRef(!1),{escapeKey:escapeKeyBubbles,outsidePress:outsidePressBubbles}=normalizeProp(bubbles),{escapeKey:escapeKeyCapture,outsidePress:outsidePressCapture}=normalizeProp(capture),isComposingRef=react.useRef(!1),closeOnEscapeKeyDown=useEffectEvent(event=>{var _dataRef$current$floa;if(!open||!enabled||!escapeKey||event.key!=="Escape"||isComposingRef.current)return;const nodeId=(_dataRef$current$floa=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa.nodeId,children=tree?getNodeChildren(tree.nodesRef.current,nodeId):[];if(!escapeKeyBubbles&&(event.stopPropagation(),children.length>0)){let shouldDismiss=!0;if(children.forEach(child=>{var _child$context;if((_child$context=child.context)!=null&&_child$context.open&&!child.context.dataRef.current.__escapeKeyBubbles){shouldDismiss=!1;return}}),!shouldDismiss)return}onOpenChange(!1,isReactEvent(event)?event.nativeEvent:event,"escape-key")}),closeOnEscapeKeyDownCapture=useEffectEvent(event=>{var _getTarget2;const callback=()=>{var _getTarget;closeOnEscapeKeyDown(event),(_getTarget=getTarget(event))==null||_getTarget.removeEventListener("keydown",callback)};(_getTarget2=getTarget(event))==null||_getTarget2.addEventListener("keydown",callback)}),closeOnPressOutside=useEffectEvent(event=>{var _dataRef$current$floa2;const insideReactTree=dataRef.current.insideReactTree;dataRef.current.insideReactTree=!1;const endedOrStartedInside=endedOrStartedInsideRef.current;if(endedOrStartedInsideRef.current=!1,outsidePressEvent==="click"&&endedOrStartedInside||insideReactTree||typeof outsidePress=="function"&&!outsidePress(event))return;const target=getTarget(event),inertSelector="["+createAttribute("inert")+"]",markers=getDocument(elements.floating).querySelectorAll(inertSelector);let targetRootAncestor=isElement(target)?target:null;for(;targetRootAncestor&&!isLastTraversableNode(targetRootAncestor);){const nextParent=getParentNode(targetRootAncestor);if(isLastTraversableNode(nextParent)||!isElement(nextParent))break;targetRootAncestor=nextParent}if(markers.length&&isElement(target)&&!isRootElement(target)&&!contains(target,elements.floating)&&Array.from(markers).every(marker=>!contains(targetRootAncestor,marker)))return;if(isHTMLElement(target)&&floating){const lastTraversableNode=isLastTraversableNode(target),style=floating_ui_utils_dom_getComputedStyle(target),scrollRe=/auto|scroll/,isScrollableX=lastTraversableNode||scrollRe.test(style.overflowX),isScrollableY=lastTraversableNode||scrollRe.test(style.overflowY),canScrollX=isScrollableX&&target.clientWidth>0&&target.scrollWidth>target.clientWidth,canScrollY=isScrollableY&&target.clientHeight>0&&target.scrollHeight>target.clientHeight,isRTL2=style.direction==="rtl",pressedVerticalScrollbar=canScrollY&&(isRTL2?event.offsetX<=target.offsetWidth-target.clientWidth:event.offsetX>target.clientWidth),pressedHorizontalScrollbar=canScrollX&&event.offsetY>target.clientHeight;if(pressedVerticalScrollbar||pressedHorizontalScrollbar)return}const nodeId=(_dataRef$current$floa2=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa2.nodeId,targetIsInsideChildren=tree&&getNodeChildren(tree.nodesRef.current,nodeId).some(node=>{var _node$context;return isEventTargetWithin(event,(_node$context=node.context)==null?void 0:_node$context.elements.floating)});if(isEventTargetWithin(event,elements.floating)||isEventTargetWithin(event,elements.domReference)||targetIsInsideChildren)return;const children=tree?getNodeChildren(tree.nodesRef.current,nodeId):[];if(children.length>0){let shouldDismiss=!0;if(children.forEach(child=>{var _child$context2;if((_child$context2=child.context)!=null&&_child$context2.open&&!child.context.dataRef.current.__outsidePressBubbles){shouldDismiss=!1;return}}),!shouldDismiss)return}onOpenChange(!1,event,"outside-press")}),closeOnPressOutsideCapture=useEffectEvent(event=>{var _getTarget4;const callback=()=>{var _getTarget3;closeOnPressOutside(event),(_getTarget3=getTarget(event))==null||_getTarget3.removeEventListener(outsidePressEvent,callback)};(_getTarget4=getTarget(event))==null||_getTarget4.addEventListener(outsidePressEvent,callback)});react.useEffect(()=>{if(!open||!enabled)return;dataRef.current.__escapeKeyBubbles=escapeKeyBubbles,dataRef.current.__outsidePressBubbles=outsidePressBubbles;let compositionTimeout=-1;function onScroll(event){onOpenChange(!1,event,"ancestor-scroll")}function handleCompositionStart(){window.clearTimeout(compositionTimeout),isComposingRef.current=!0}function handleCompositionEnd(){compositionTimeout=window.setTimeout(()=>{isComposingRef.current=!1},isWebKit()?5:0)}const doc=getDocument(elements.floating);escapeKey&&(doc.addEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),doc.addEventListener("compositionstart",handleCompositionStart),doc.addEventListener("compositionend",handleCompositionEnd)),outsidePress&&doc.addEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture);let ancestors=[];return ancestorScroll&&(isElement(elements.domReference)&&(ancestors=getOverflowAncestors(elements.domReference)),isElement(elements.floating)&&(ancestors=ancestors.concat(getOverflowAncestors(elements.floating))),!isElement(elements.reference)&&elements.reference&&elements.reference.contextElement&&(ancestors=ancestors.concat(getOverflowAncestors(elements.reference.contextElement)))),ancestors=ancestors.filter(ancestor=>{var _doc$defaultView;return ancestor!==((_doc$defaultView=doc.defaultView)==null?void 0:_doc$defaultView.visualViewport)}),ancestors.forEach(ancestor=>{ancestor.addEventListener("scroll",onScroll)}),()=>{escapeKey&&(doc.removeEventListener("keydown",escapeKeyCapture?closeOnEscapeKeyDownCapture:closeOnEscapeKeyDown,escapeKeyCapture),doc.removeEventListener("compositionstart",handleCompositionStart),doc.removeEventListener("compositionend",handleCompositionEnd)),outsidePress&&doc.removeEventListener(outsidePressEvent,outsidePressCapture?closeOnPressOutsideCapture:closeOnPressOutside,outsidePressCapture),ancestors.forEach(ancestor=>{ancestor.removeEventListener("scroll",onScroll)}),window.clearTimeout(compositionTimeout)}},[dataRef,elements,escapeKey,outsidePress,outsidePressEvent,open,onOpenChange,ancestorScroll,enabled,escapeKeyBubbles,outsidePressBubbles,closeOnEscapeKeyDown,escapeKeyCapture,closeOnEscapeKeyDownCapture,closeOnPressOutside,outsidePressCapture,closeOnPressOutsideCapture]),react.useEffect(()=>{dataRef.current.insideReactTree=!1},[dataRef,outsidePress,outsidePressEvent]);const reference=react.useMemo(()=>({onKeyDown:closeOnEscapeKeyDown,...referencePress&&{[bubbleHandlerKeys[referencePressEvent]]:event=>{onOpenChange(!1,event.nativeEvent,"reference-press")},...referencePressEvent!=="click"&&{onClick(event){onOpenChange(!1,event.nativeEvent,"reference-press")}}}}),[closeOnEscapeKeyDown,onOpenChange,referencePress,referencePressEvent]),floating=react.useMemo(()=>{function setMouseDownOrUpInside(event){event.button===0&&(endedOrStartedInsideRef.current=!0)}return{onKeyDown:closeOnEscapeKeyDown,onMouseDown:setMouseDownOrUpInside,onMouseUp:setMouseDownOrUpInside,[captureHandlerKeys[outsidePressEvent]]:()=>{dataRef.current.insideReactTree=!0}}},[closeOnEscapeKeyDown,outsidePressEvent,dataRef]);return react.useMemo(()=>enabled?{reference,floating}:{},[enabled,reference,floating])}function useFloatingRootContext(options){const{open=!1,onOpenChange:onOpenChangeProp,elements:elementsProp}=options,floatingId=useId(),dataRef=react.useRef({}),[events]=react.useState(()=>createEventEmitter()),nested=useFloatingParentNodeId()!=null,[positionReference,setPositionReference]=react.useState(elementsProp.reference),onOpenChange=useEffectEvent((open2,event,reason)=>{dataRef.current.openEvent=open2?event:void 0,events.emit("openchange",{open:open2,event,reason,nested}),onOpenChangeProp?.(open2,event,reason)}),refs=react.useMemo(()=>({setPositionReference}),[]),elements=react.useMemo(()=>({reference:positionReference||elementsProp.reference||null,floating:elementsProp.floating||null,domReference:elementsProp.reference}),[positionReference,elementsProp.reference,elementsProp.floating]);return react.useMemo(()=>({dataRef,open,onOpenChange,elements,events,floatingId,refs}),[open,onOpenChange,elements,events,floatingId,refs])}function floating_ui_react_esm_useFloating(_temp){var _elementsOption$refer,_elementsOption$float;let{elements:elementsOption,...options}=_temp===void 0?{}:_temp;const{nodeId}=options,internalRootContext=useFloatingRootContext({...options,elements:{reference:(_elementsOption$refer=elementsOption?.reference)!=null?_elementsOption$refer:null,floating:(_elementsOption$float=elementsOption?.floating)!=null?_elementsOption$float:null}}),rootContext=options.rootContext||internalRootContext,computedElements=rootContext.elements,[_domReference,setDomReference]=react.useState(null),[positionReference,_setPositionReference]=react.useState(null),domReference=computedElements?.domReference||_domReference,domReferenceRef=react.useRef(null),tree=useFloatingTree();floating_ui_react_utils_index(()=>{domReference&&(domReferenceRef.current=domReference)},[domReference]);const position=useFloating({...options,elements:{...computedElements,...positionReference&&{reference:positionReference}}}),setPositionReference=react.useCallback(node=>{const computedPositionReference=isElement(node)?{getBoundingClientRect:()=>node.getBoundingClientRect(),getClientRects:()=>node.getClientRects(),contextElement:node}:node;_setPositionReference(computedPositionReference),position.refs.setReference(computedPositionReference)},[position.refs]),setReference=react.useCallback(node=>{(isElement(node)||node===null)&&(domReferenceRef.current=node,setDomReference(node)),(isElement(position.refs.reference.current)||position.refs.reference.current===null||node!==null&&!isElement(node))&&position.refs.setReference(node)},[position.refs]),refs=react.useMemo(()=>({...position.refs,setReference,setPositionReference,domReference:domReferenceRef}),[position.refs,setReference,setPositionReference]),elements=react.useMemo(()=>({...position.elements,domReference}),[position.elements,domReference]),context=react.useMemo(()=>({...position,...rootContext,refs,elements,nodeId}),[position,refs,elements,nodeId,rootContext]);return floating_ui_react_utils_index(()=>{rootContext.dataRef.current.floatingContext=context;const node=tree?.nodesRef.current.find(node2=>node2.id===nodeId);node&&(node.context=context)}),react.useMemo(()=>({...position,context,refs,elements}),[position,refs,elements,context])}function isMacSafari(){return isMac()&&isSafari()}function useFocus(context,props){props===void 0&&(props={});const{open,onOpenChange,events,dataRef,elements}=context,{enabled=!0,visibleOnly=!0}=props,blockFocusRef=react.useRef(!1),timeoutRef=react.useRef(-1),keyboardModalityRef=react.useRef(!0);react.useEffect(()=>{if(!enabled)return;const win=getWindow(elements.domReference);function onBlur(){!open&&isHTMLElement(elements.domReference)&&elements.domReference===activeElement(getDocument(elements.domReference))&&(blockFocusRef.current=!0)}function onKeyDown(){keyboardModalityRef.current=!0}function onPointerDown(){keyboardModalityRef.current=!1}return win.addEventListener("blur",onBlur),isMacSafari()&&(win.addEventListener("keydown",onKeyDown,!0),win.addEventListener("pointerdown",onPointerDown,!0)),()=>{win.removeEventListener("blur",onBlur),isMacSafari()&&(win.removeEventListener("keydown",onKeyDown,!0),win.removeEventListener("pointerdown",onPointerDown,!0))}},[elements.domReference,open,enabled]),react.useEffect(()=>{if(!enabled)return;function onOpenChange2(_ref){let{reason}=_ref;(reason==="reference-press"||reason==="escape-key")&&(blockFocusRef.current=!0)}return events.on("openchange",onOpenChange2),()=>{events.off("openchange",onOpenChange2)}},[events,enabled]),react.useEffect(()=>()=>{clearTimeoutIfSet(timeoutRef)},[]);const reference=react.useMemo(()=>({onMouseLeave(){blockFocusRef.current=!1},onFocus(event){if(blockFocusRef.current)return;const target=getTarget(event.nativeEvent);if(visibleOnly&&isElement(target)){if(isMacSafari()&&!event.relatedTarget){if(!keyboardModalityRef.current&&!isTypeableElement(target))return}else if(!matchesFocusVisible(target))return}onOpenChange(!0,event.nativeEvent,"focus")},onBlur(event){blockFocusRef.current=!1;const relatedTarget=event.relatedTarget,nativeEvent=event.nativeEvent,movedToFocusGuard=isElement(relatedTarget)&&relatedTarget.hasAttribute(createAttribute("focus-guard"))&&relatedTarget.getAttribute("data-type")==="outside";timeoutRef.current=window.setTimeout(()=>{var _dataRef$current$floa;const activeEl=activeElement(elements.domReference?elements.domReference.ownerDocument:document);!relatedTarget&&activeEl===elements.domReference||contains((_dataRef$current$floa=dataRef.current.floatingContext)==null?void 0:_dataRef$current$floa.refs.floating.current,activeEl)||contains(elements.domReference,activeEl)||movedToFocusGuard||onOpenChange(!1,nativeEvent,"focus")})}}),[dataRef,elements.domReference,onOpenChange,visibleOnly]);return react.useMemo(()=>enabled?{reference}:{},[enabled,reference])}function mergeProps(userProps,propsList,elementKey){const map=new Map,isItem=elementKey==="item";let domUserProps=userProps;if(isItem&&userProps){const{[ACTIVE_KEY]:_,[SELECTED_KEY]:__,...validProps}=userProps;domUserProps=validProps}return{...elementKey==="floating"&&{tabIndex:-1,[floating_ui_react_esm_FOCUSABLE_ATTRIBUTE]:""},...domUserProps,...propsList.map(value=>{const propsOrGetProps=value?value[elementKey]:null;return typeof propsOrGetProps=="function"?userProps?propsOrGetProps(userProps):null:propsOrGetProps}).concat(userProps).reduce((acc,props)=>(props&&Object.entries(props).forEach(_ref=>{let[key,value]=_ref;if(!(isItem&&[ACTIVE_KEY,SELECTED_KEY].includes(key)))if(key.indexOf("on")===0){if(map.has(key)||map.set(key,[]),typeof value=="function"){var _map$get;(_map$get=map.get(key))==null||_map$get.push(value),acc[key]=function(){for(var _map$get2,_len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return(_map$get2=map.get(key))==null?void 0:_map$get2.map(fn=>fn(...args)).find(val=>val!==void 0)}}}else acc[key]=value}),acc),{})}}function useInteractions(propsList){propsList===void 0&&(propsList=[]);const referenceDeps=propsList.map(key=>key?.reference),floatingDeps=propsList.map(key=>key?.floating),itemDeps=propsList.map(key=>key?.item),getReferenceProps=react.useCallback(userProps=>mergeProps(userProps,propsList,"reference"),referenceDeps),getFloatingProps=react.useCallback(userProps=>mergeProps(userProps,propsList,"floating"),floatingDeps),getItemProps=react.useCallback(userProps=>mergeProps(userProps,propsList,"item"),itemDeps);return react.useMemo(()=>({getReferenceProps,getFloatingProps,getItemProps}),[getReferenceProps,getFloatingProps,getItemProps])}const ESCAPE="Escape";function doSwitch(orientation,vertical,horizontal){switch(orientation){case"vertical":return vertical;case"horizontal":return horizontal;default:return vertical||horizontal}}function isMainOrientationKey(key,orientation){return doSwitch(orientation,key===floating_ui_react_esm_ARROW_UP||key===floating_ui_react_esm_ARROW_DOWN,key===floating_ui_react_esm_ARROW_LEFT||key===floating_ui_react_esm_ARROW_RIGHT)}function isMainOrientationToEndKey(key,orientation,rtl){return doSwitch(orientation,key===floating_ui_react_esm_ARROW_DOWN,rtl?key===floating_ui_react_esm_ARROW_LEFT:key===floating_ui_react_esm_ARROW_RIGHT)||key==="Enter"||key===" "||key===""}function isCrossOrientationOpenKey(key,orientation,rtl){return doSwitch(orientation,rtl?key===floating_ui_react_esm_ARROW_LEFT:key===floating_ui_react_esm_ARROW_RIGHT,key===floating_ui_react_esm_ARROW_DOWN)}function isCrossOrientationCloseKey(key,orientation,rtl,cols){const vertical=rtl?key===floating_ui_react_esm_ARROW_RIGHT:key===floating_ui_react_esm_ARROW_LEFT,horizontal=key===floating_ui_react_esm_ARROW_UP;return orientation==="both"||orientation==="horizontal"&&cols&&cols>1?key===ESCAPE:doSwitch(orientation,vertical,horizontal)}function useListNavigation(context,props){const{open,onOpenChange,elements,floatingId}=context,{listRef,activeIndex,onNavigate:unstable_onNavigate=()=>{},enabled=!0,selectedIndex=null,allowEscape=!1,loop=!1,nested=!1,rtl=!1,virtual=!1,focusItemOnOpen="auto",focusItemOnHover=!0,openOnArrowKeyDown=!0,disabledIndices=void 0,orientation="vertical",parentOrientation,cols=1,scrollItemIntoView=!0,virtualItemRef,itemSizes,dense=!1}=props,floatingFocusElement=getFloatingFocusElement(elements.floating),floatingFocusElementRef=useLatestRef(floatingFocusElement),parentId=useFloatingParentNodeId(),tree=useFloatingTree();floating_ui_react_utils_index(()=>{context.dataRef.current.orientation=orientation},[context,orientation]);const onNavigate=useEffectEvent(()=>{unstable_onNavigate(indexRef.current===-1?null:indexRef.current)}),typeableComboboxReference=isTypeableCombobox(elements.domReference),focusItemOnOpenRef=react.useRef(focusItemOnOpen),indexRef=react.useRef(selectedIndex??-1),keyRef=react.useRef(null),isPointerModalityRef=react.useRef(!0),previousOnNavigateRef=react.useRef(onNavigate),previousMountedRef=react.useRef(!!elements.floating),previousOpenRef=react.useRef(open),forceSyncFocusRef=react.useRef(!1),forceScrollIntoViewRef=react.useRef(!1),disabledIndicesRef=useLatestRef(disabledIndices),latestOpenRef=useLatestRef(open),scrollItemIntoViewRef=useLatestRef(scrollItemIntoView),selectedIndexRef=useLatestRef(selectedIndex),[activeId,setActiveId]=react.useState(),[virtualId,setVirtualId]=react.useState(),focusItem=useEffectEvent(()=>{function runFocus(item2){if(virtual){var _item$id;(_item$id=item2.id)!=null&&_item$id.endsWith("-fui-option")&&(item2.id=floatingId+"-"+Math.random().toString(16).slice(2,10)),setActiveId(item2.id),tree?.events.emit("virtualfocus",item2),virtualItemRef&&(virtualItemRef.current=item2)}else enqueueFocus(item2,{sync:forceSyncFocusRef.current,preventScroll:!0})}const initialItem=listRef.current[indexRef.current],forceScrollIntoView=forceScrollIntoViewRef.current;initialItem&&runFocus(initialItem),(forceSyncFocusRef.current?v=>v():requestAnimationFrame)(()=>{const waitedItem=listRef.current[indexRef.current]||initialItem;if(!waitedItem)return;initialItem||runFocus(waitedItem);const scrollIntoViewOptions=scrollItemIntoViewRef.current;scrollIntoViewOptions&&item&&(forceScrollIntoView||!isPointerModalityRef.current)&&(waitedItem.scrollIntoView==null||waitedItem.scrollIntoView(typeof scrollIntoViewOptions=="boolean"?{block:"nearest",inline:"nearest"}:scrollIntoViewOptions))})});floating_ui_react_utils_index(()=>{!enabled||(open&&elements.floating?focusItemOnOpenRef.current&&selectedIndex!=null&&(forceScrollIntoViewRef.current=!0,indexRef.current=selectedIndex,onNavigate()):previousMountedRef.current&&(indexRef.current=-1,previousOnNavigateRef.current()))},[enabled,open,elements.floating,selectedIndex,onNavigate]),floating_ui_react_utils_index(()=>{if(!!enabled&&!!open&&!!elements.floating)if(activeIndex==null){if(forceSyncFocusRef.current=!1,selectedIndexRef.current!=null)return;if(previousMountedRef.current&&(indexRef.current=-1,focusItem()),(!previousOpenRef.current||!previousMountedRef.current)&&focusItemOnOpenRef.current&&(keyRef.current!=null||focusItemOnOpenRef.current===!0&&keyRef.current==null)){let runs=0;const waitForListPopulated=()=>{listRef.current[0]==null?(runs<2&&(runs?requestAnimationFrame:queueMicrotask)(waitForListPopulated),runs++):(indexRef.current=keyRef.current==null||isMainOrientationToEndKey(keyRef.current,orientation,rtl)||nested?getMinListIndex(listRef,disabledIndicesRef.current):getMaxListIndex(listRef,disabledIndicesRef.current),keyRef.current=null,onNavigate())};waitForListPopulated()}}else isIndexOutOfListBounds(listRef,activeIndex)||(indexRef.current=activeIndex,focusItem(),forceScrollIntoViewRef.current=!1)},[enabled,open,elements.floating,activeIndex,selectedIndexRef,nested,listRef,orientation,rtl,onNavigate,focusItem,disabledIndicesRef]),floating_ui_react_utils_index(()=>{var _nodes$find;if(!enabled||elements.floating||!tree||virtual||!previousMountedRef.current)return;const nodes=tree.nodesRef.current,parent2=(_nodes$find=nodes.find(node=>node.id===parentId))==null||(_nodes$find=_nodes$find.context)==null?void 0:_nodes$find.elements.floating,activeEl=activeElement(getDocument(elements.floating)),treeContainsActiveEl=nodes.some(node=>node.context&&contains(node.context.elements.floating,activeEl));parent2&&!treeContainsActiveEl&&isPointerModalityRef.current&&parent2.focus({preventScroll:!0})},[enabled,elements.floating,tree,parentId,virtual]),floating_ui_react_utils_index(()=>{if(!enabled||!tree||!virtual||parentId)return;function handleVirtualFocus(item2){setVirtualId(item2.id),virtualItemRef&&(virtualItemRef.current=item2)}return tree.events.on("virtualfocus",handleVirtualFocus),()=>{tree.events.off("virtualfocus",handleVirtualFocus)}},[enabled,tree,virtual,parentId,virtualItemRef]),floating_ui_react_utils_index(()=>{previousOnNavigateRef.current=onNavigate,previousOpenRef.current=open,previousMountedRef.current=!!elements.floating}),floating_ui_react_utils_index(()=>{open||(keyRef.current=null,focusItemOnOpenRef.current=focusItemOnOpen)},[open,focusItemOnOpen]);const hasActiveIndex=activeIndex!=null,item=react.useMemo(()=>{function syncCurrentTarget(currentTarget){if(!latestOpenRef.current)return;const index2=listRef.current.indexOf(currentTarget);index2!==-1&&indexRef.current!==index2&&(indexRef.current=index2,onNavigate())}return{onFocus(_ref){let{currentTarget}=_ref;forceSyncFocusRef.current=!0,syncCurrentTarget(currentTarget)},onClick:_ref2=>{let{currentTarget}=_ref2;return currentTarget.focus({preventScroll:!0})},onMouseMove(_ref3){let{currentTarget}=_ref3;forceSyncFocusRef.current=!0,forceScrollIntoViewRef.current=!1,focusItemOnHover&&syncCurrentTarget(currentTarget)},onPointerLeave(_ref4){let{pointerType}=_ref4;if(!(!isPointerModalityRef.current||pointerType==="touch")&&(forceSyncFocusRef.current=!0,!!focusItemOnHover&&(indexRef.current=-1,onNavigate(),!virtual))){var _floatingFocusElement;(_floatingFocusElement=floatingFocusElementRef.current)==null||_floatingFocusElement.focus({preventScroll:!0})}}}},[latestOpenRef,floatingFocusElementRef,focusItemOnHover,listRef,onNavigate,virtual]),getParentOrientation=react.useCallback(()=>{var _tree$nodesRef$curren;return parentOrientation??(tree==null||(_tree$nodesRef$curren=tree.nodesRef.current.find(node=>node.id===parentId))==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.context)==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.dataRef)==null?void 0:_tree$nodesRef$curren.current.orientation)},[parentId,tree,parentOrientation]),commonOnKeyDown=useEffectEvent(event=>{if(isPointerModalityRef.current=!1,forceSyncFocusRef.current=!0,event.which===229||!latestOpenRef.current&&event.currentTarget===floatingFocusElementRef.current)return;if(nested&&isCrossOrientationCloseKey(event.key,orientation,rtl,cols)){isMainOrientationKey(event.key,getParentOrientation())||stopEvent(event),onOpenChange(!1,event.nativeEvent,"list-navigation"),isHTMLElement(elements.domReference)&&(virtual?tree?.events.emit("virtualfocus",elements.domReference):elements.domReference.focus());return}const currentIndex=indexRef.current,minIndex=getMinListIndex(listRef,disabledIndices),maxIndex=getMaxListIndex(listRef,disabledIndices);if(typeableComboboxReference||(event.key==="Home"&&(stopEvent(event),indexRef.current=minIndex,onNavigate()),event.key==="End"&&(stopEvent(event),indexRef.current=maxIndex,onNavigate())),cols>1){const sizes=itemSizes||Array.from({length:listRef.current.length},()=>({width:1,height:1})),cellMap=createGridCellMap(sizes,cols,dense),minGridIndex=cellMap.findIndex(index3=>index3!=null&&!isListIndexDisabled(listRef,index3,disabledIndices)),maxGridIndex=cellMap.reduce((foundIndex,index3,cellIndex)=>index3!=null&&!isListIndexDisabled(listRef,index3,disabledIndices)?cellIndex:foundIndex,-1),index2=cellMap[getGridNavigatedIndex({current:cellMap.map(itemIndex=>itemIndex!=null?listRef.current[itemIndex]:null)},{event,orientation,loop,rtl,cols,disabledIndices:getGridCellIndices([...(typeof disabledIndices!="function"?disabledIndices:null)||listRef.current.map((_,index3)=>isListIndexDisabled(listRef,index3,disabledIndices)?index3:void 0),void 0],cellMap),minIndex:minGridIndex,maxIndex:maxGridIndex,prevIndex:getGridCellIndexOfCorner(indexRef.current>maxIndex?minIndex:indexRef.current,sizes,cellMap,cols,event.key===floating_ui_react_esm_ARROW_DOWN?"bl":event.key===(rtl?floating_ui_react_esm_ARROW_LEFT:floating_ui_react_esm_ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(index2!=null&&(indexRef.current=index2,onNavigate()),orientation==="both")return}if(isMainOrientationKey(event.key,orientation)){if(stopEvent(event),open&&!virtual&&activeElement(event.currentTarget.ownerDocument)===event.currentTarget){indexRef.current=isMainOrientationToEndKey(event.key,orientation,rtl)?minIndex:maxIndex,onNavigate();return}isMainOrientationToEndKey(event.key,orientation,rtl)?loop?indexRef.current=currentIndex>=maxIndex?allowEscape&&currentIndex!==listRef.current.length?-1:minIndex:findNonDisabledListIndex(listRef,{startingIndex:currentIndex,disabledIndices}):indexRef.current=Math.min(maxIndex,findNonDisabledListIndex(listRef,{startingIndex:currentIndex,disabledIndices})):loop?indexRef.current=currentIndex<=minIndex?allowEscape&&currentIndex!==-1?listRef.current.length:maxIndex:findNonDisabledListIndex(listRef,{startingIndex:currentIndex,decrement:!0,disabledIndices}):indexRef.current=Math.max(minIndex,findNonDisabledListIndex(listRef,{startingIndex:currentIndex,decrement:!0,disabledIndices})),isIndexOutOfListBounds(listRef,indexRef.current)&&(indexRef.current=-1),onNavigate()}}),ariaActiveDescendantProp=react.useMemo(()=>virtual&&open&&hasActiveIndex&&{"aria-activedescendant":virtualId||activeId},[virtual,open,hasActiveIndex,virtualId,activeId]),floating=react.useMemo(()=>({"aria-orientation":orientation==="both"?void 0:orientation,...typeableComboboxReference?{}:ariaActiveDescendantProp,onKeyDown:commonOnKeyDown,onPointerMove(){isPointerModalityRef.current=!0}}),[ariaActiveDescendantProp,commonOnKeyDown,orientation,typeableComboboxReference]),reference=react.useMemo(()=>{function checkVirtualMouse(event){focusItemOnOpen==="auto"&&isVirtualClick(event.nativeEvent)&&(focusItemOnOpenRef.current=!0)}function checkVirtualPointer(event){focusItemOnOpenRef.current=focusItemOnOpen,focusItemOnOpen==="auto"&&isVirtualPointerEvent(event.nativeEvent)&&(focusItemOnOpenRef.current=!0)}return{...ariaActiveDescendantProp,onKeyDown(event){isPointerModalityRef.current=!1;const isArrowKey=event.key.startsWith("Arrow"),isHomeOrEndKey=["Home","End"].includes(event.key),isMoveKey=isArrowKey||isHomeOrEndKey,isCrossOpenKey=isCrossOrientationOpenKey(event.key,orientation,rtl),isCrossCloseKey=isCrossOrientationCloseKey(event.key,orientation,rtl,cols),isParentCrossOpenKey=isCrossOrientationOpenKey(event.key,getParentOrientation(),rtl),isMainKey=isMainOrientationKey(event.key,orientation),isNavigationKey=(nested?isParentCrossOpenKey:isMainKey)||event.key==="Enter"||event.key.trim()==="";if(virtual&&open){const rootNode=tree?.nodesRef.current.find(node=>node.parentId==null),deepestNode=tree&&rootNode?getDeepestNode(tree.nodesRef.current,rootNode.id):null;if(isMoveKey&&deepestNode&&virtualItemRef){const eventObject=new KeyboardEvent("keydown",{key:event.key,bubbles:!0});if(isCrossOpenKey||isCrossCloseKey){var _deepestNode$context,_deepestNode$context2;const isCurrentTarget=((_deepestNode$context=deepestNode.context)==null?void 0:_deepestNode$context.elements.domReference)===event.currentTarget,dispatchItem=isCrossCloseKey&&!isCurrentTarget?(_deepestNode$context2=deepestNode.context)==null?void 0:_deepestNode$context2.elements.domReference:isCrossOpenKey?listRef.current.find(item2=>item2?.id===activeId):null;dispatchItem&&(stopEvent(event),dispatchItem.dispatchEvent(eventObject),setVirtualId(void 0))}if((isMainKey||isHomeOrEndKey)&&deepestNode.context&&deepestNode.context.open&&deepestNode.parentId&&event.currentTarget!==deepestNode.context.elements.domReference){var _deepestNode$context$;stopEvent(event),(_deepestNode$context$=deepestNode.context.elements.domReference)==null||_deepestNode$context$.dispatchEvent(eventObject);return}}return commonOnKeyDown(event)}if(!(!open&&!openOnArrowKeyDown&&isArrowKey)){if(isNavigationKey){const isParentMainKey=isMainOrientationKey(event.key,getParentOrientation());keyRef.current=nested&&isParentMainKey?null:event.key}if(nested){isParentCrossOpenKey&&(stopEvent(event),open?(indexRef.current=getMinListIndex(listRef,disabledIndicesRef.current),onNavigate()):onOpenChange(!0,event.nativeEvent,"list-navigation"));return}isMainKey&&(selectedIndex!=null&&(indexRef.current=selectedIndex),stopEvent(event),!open&&openOnArrowKeyDown?onOpenChange(!0,event.nativeEvent,"list-navigation"):commonOnKeyDown(event),open&&onNavigate())}},onFocus(){open&&!virtual&&(indexRef.current=-1,onNavigate())},onPointerDown:checkVirtualPointer,onPointerEnter:checkVirtualPointer,onMouseDown:checkVirtualMouse,onClick:checkVirtualMouse}},[activeId,ariaActiveDescendantProp,cols,commonOnKeyDown,disabledIndicesRef,focusItemOnOpen,listRef,nested,onNavigate,onOpenChange,open,openOnArrowKeyDown,orientation,getParentOrientation,rtl,selectedIndex,tree,virtual,virtualItemRef]);return react.useMemo(()=>enabled?{reference,floating,item}:{},[enabled,reference,floating,item])}const componentRoleToAriaRoleMap=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function useRole(context,props){var _elements$domReferenc,_componentRoleToAriaR;props===void 0&&(props={});const{open,elements,floatingId:defaultFloatingId}=context,{enabled=!0,role="dialog"}=props,defaultReferenceId=useId(),referenceId=((_elements$domReferenc=elements.domReference)==null?void 0:_elements$domReferenc.id)||defaultReferenceId,floatingId=react.useMemo(()=>{var _getFloatingFocusElem;return((_getFloatingFocusElem=getFloatingFocusElement(elements.floating))==null?void 0:_getFloatingFocusElem.id)||defaultFloatingId},[elements.floating,defaultFloatingId]),ariaRole=(_componentRoleToAriaR=componentRoleToAriaRoleMap.get(role))!=null?_componentRoleToAriaR:role,isNested=useFloatingParentNodeId()!=null,reference=react.useMemo(()=>ariaRole==="tooltip"||role==="label"?{["aria-"+(role==="label"?"labelledby":"describedby")]:open?floatingId:void 0}:{"aria-expanded":open?"true":"false","aria-haspopup":ariaRole==="alertdialog"?"dialog":ariaRole,"aria-controls":open?floatingId:void 0,...ariaRole==="listbox"&&{role:"combobox"},...ariaRole==="menu"&&{id:referenceId},...ariaRole==="menu"&&isNested&&{role:"menuitem"},...role==="select"&&{"aria-autocomplete":"none"},...role==="combobox"&&{"aria-autocomplete":"list"}},[ariaRole,floatingId,isNested,open,referenceId,role]),floating=react.useMemo(()=>{const floatingProps={id:floatingId,...ariaRole&&{role:ariaRole}};return ariaRole==="tooltip"||role==="label"?floatingProps:{...floatingProps,...ariaRole==="menu"&&{"aria-labelledby":referenceId}}},[ariaRole,floatingId,referenceId,role]),item=react.useCallback(_ref=>{let{active,selected}=_ref;const commonProps={role:"option",...active&&{id:floatingId+"-fui-option"}};switch(role){case"select":case"combobox":return{...commonProps,"aria-selected":selected}}return{}},[floatingId,role]);return react.useMemo(()=>enabled?{reference,floating,item}:{},[enabled,reference,floating,item])}const camelCaseToKebabCase=str=>str.replace(/[A-Z]+(?![a-z])|[A-Z]/g,($,ofs)=>(ofs?"-":"")+$.toLowerCase());function execWithArgsOrReturn(valueOrFn,args){return typeof valueOrFn=="function"?valueOrFn(args):valueOrFn}function useDelayUnmount(open,durationMs){const[isMounted,setIsMounted]=react.useState(open);return open&&!isMounted&&setIsMounted(!0),react.useEffect(()=>{if(!open&&isMounted){const timeout=setTimeout(()=>setIsMounted(!1),durationMs);return()=>clearTimeout(timeout)}},[open,isMounted,durationMs]),isMounted}function useTransitionStatus(context,props){props===void 0&&(props={});const{open,elements:{floating}}=context,{duration=250}=props,closeDuration=(typeof duration=="number"?duration:duration.close)||0,[status,setStatus]=react.useState("unmounted"),isMounted=useDelayUnmount(open,closeDuration);return!isMounted&&status==="close"&&setStatus("unmounted"),floating_ui_react_utils_index(()=>{if(!!floating){if(open){setStatus("initial");const frame=requestAnimationFrame(()=>{react_dom.flushSync(()=>{setStatus("open")})});return()=>{cancelAnimationFrame(frame)}}setStatus("close")}},[open,floating]),{isMounted,status}}function useTransitionStyles(context,props){props===void 0&&(props={});const{initial:unstable_initial={opacity:0},open:unstable_open,close:unstable_close,common:unstable_common,duration=250}=props,placement=context.placement,side=placement.split("-")[0],fnArgs=react.useMemo(()=>({side,placement}),[side,placement]),isNumberDuration=typeof duration=="number",openDuration=(isNumberDuration?duration:duration.open)||0,closeDuration=(isNumberDuration?duration:duration.close)||0,[styles,setStyles]=react.useState(()=>({...execWithArgsOrReturn(unstable_common,fnArgs),...execWithArgsOrReturn(unstable_initial,fnArgs)})),{isMounted,status}=useTransitionStatus(context,{duration}),initialRef=useLatestRef(unstable_initial),openRef=useLatestRef(unstable_open),closeRef=useLatestRef(unstable_close),commonRef=useLatestRef(unstable_common);return floating_ui_react_utils_index(()=>{const initialStyles=execWithArgsOrReturn(initialRef.current,fnArgs),closeStyles=execWithArgsOrReturn(closeRef.current,fnArgs),commonStyles=execWithArgsOrReturn(commonRef.current,fnArgs),openStyles=execWithArgsOrReturn(openRef.current,fnArgs)||Object.keys(initialStyles).reduce((acc,key)=>(acc[key]="",acc),{});if(status==="initial"&&setStyles(styles2=>({transitionProperty:styles2.transitionProperty,...commonStyles,...initialStyles})),status==="open"&&setStyles({transitionProperty:Object.keys(openStyles).map(camelCaseToKebabCase).join(","),transitionDuration:openDuration+"ms",...commonStyles,...openStyles}),status==="close"){const styles2=closeStyles||initialStyles;setStyles({transitionProperty:Object.keys(styles2).map(camelCaseToKebabCase).join(","),transitionDuration:closeDuration+"ms",...commonStyles,...styles2})}},[closeDuration,closeRef,initialRef,openRef,commonRef,openDuration,status,fnArgs]),{isMounted,styles}}function useTypeahead(context,props){var _ref;const{open,dataRef}=context,{listRef,activeIndex,onMatch:unstable_onMatch,onTypingChange:unstable_onTypingChange,enabled=!0,findMatch=null,resetMs=750,ignoreKeys=[],selectedIndex=null}=props,timeoutIdRef=react.useRef(-1),stringRef=react.useRef(""),prevIndexRef=react.useRef((_ref=selectedIndex??activeIndex)!=null?_ref:-1),matchIndexRef=react.useRef(null),onMatch=useEffectEvent(unstable_onMatch),onTypingChange=useEffectEvent(unstable_onTypingChange),findMatchRef=useLatestRef(findMatch),ignoreKeysRef=useLatestRef(ignoreKeys);floating_ui_react_utils_index(()=>{open&&(clearTimeoutIfSet(timeoutIdRef),matchIndexRef.current=null,stringRef.current="")},[open]),floating_ui_react_utils_index(()=>{if(open&&stringRef.current===""){var _ref2;prevIndexRef.current=(_ref2=selectedIndex??activeIndex)!=null?_ref2:-1}},[open,selectedIndex,activeIndex]);const setTypingChange=useEffectEvent(value=>{value?dataRef.current.typing||(dataRef.current.typing=value,onTypingChange(value)):dataRef.current.typing&&(dataRef.current.typing=value,onTypingChange(value))}),onKeyDown=useEffectEvent(event=>{function getMatchingIndex(list,orderedList,string){const str=findMatchRef.current?findMatchRef.current(orderedList,string):orderedList.find(text=>text?.toLocaleLowerCase().indexOf(string.toLocaleLowerCase())===0);return str?list.indexOf(str):-1}const listContent=listRef.current;if(stringRef.current.length>0&&stringRef.current[0]!==" "&&(getMatchingIndex(listContent,listContent,stringRef.current)===-1?setTypingChange(!1):event.key===" "&&stopEvent(event)),listContent==null||ignoreKeysRef.current.includes(event.key)||event.key.length!==1||event.ctrlKey||event.metaKey||event.altKey)return;open&&event.key!==" "&&(stopEvent(event),setTypingChange(!0)),listContent.every(text=>{var _text$,_text$2;return text?((_text$=text[0])==null?void 0:_text$.toLocaleLowerCase())!==((_text$2=text[1])==null?void 0:_text$2.toLocaleLowerCase()):!0})&&stringRef.current===event.key&&(stringRef.current="",prevIndexRef.current=matchIndexRef.current),stringRef.current+=event.key,clearTimeoutIfSet(timeoutIdRef),timeoutIdRef.current=window.setTimeout(()=>{stringRef.current="",prevIndexRef.current=matchIndexRef.current,setTypingChange(!1)},resetMs);const prevIndex=prevIndexRef.current,index2=getMatchingIndex(listContent,[...listContent.slice((prevIndex||0)+1),...listContent.slice(0,(prevIndex||0)+1)],stringRef.current);index2!==-1?(onMatch(index2),matchIndexRef.current=index2):event.key!==" "&&(stringRef.current="",setTypingChange(!1))}),reference=react.useMemo(()=>({onKeyDown}),[onKeyDown]),floating=react.useMemo(()=>({onKeyDown,onKeyUp(event){event.key===" "&&setTypingChange(!1)}}),[onKeyDown,setTypingChange]);return react.useMemo(()=>enabled?{reference,floating}:{},[enabled,reference,floating])}function getArgsWithCustomFloatingHeight(state,height){return{...state,rects:{...state.rects,floating:{...state.rects.floating,height}}}}const inner=props=>({name:"inner",options:props,async fn(state){const{listRef,overflowRef,onFallbackChange,offset:innerOffset=0,index:index2=0,minItemsVisible=4,referenceOverflowThreshold=0,scrollRef,...detectOverflowOptions}=evaluate(props,state),{rects,platform:platform2,elements:{floating}}=state,item=listRef.current[index2],scrollEl=scrollRef?.current||floating,clientTop=floating.clientTop||scrollEl.clientTop,floatingIsBordered=floating.clientTop!==0,scrollElIsBordered=scrollEl.clientTop!==0,floatingIsScrollEl=floating===scrollEl;if(!item)return{};const nextArgs={...state,...await floating_ui_react_dom_offset(-item.offsetTop-floating.clientTop-rects.reference.height/2-item.offsetHeight/2-innerOffset).fn(state)},overflow=await platform2.detectOverflow(getArgsWithCustomFloatingHeight(nextArgs,scrollEl.scrollHeight+clientTop+floating.clientTop),detectOverflowOptions),refOverflow=await platform2.detectOverflow(nextArgs,{...detectOverflowOptions,elementContext:"reference"}),diffY=max(0,overflow.top),nextY=nextArgs.y+diffY,maxHeight=(scrollEl.scrollHeight>scrollEl.clientHeight?v=>v:round)(max(0,scrollEl.scrollHeight+(floatingIsBordered&&floatingIsScrollEl||scrollElIsBordered?clientTop*2:0)-diffY-max(0,overflow.bottom)));if(scrollEl.style.maxHeight=maxHeight+"px",scrollEl.scrollTop=diffY,onFallbackChange){const shouldFallback=scrollEl.offsetHeight<item.offsetHeight*min(minItemsVisible,listRef.current.length)-1||refOverflow.top>=-referenceOverflowThreshold||refOverflow.bottom>=-referenceOverflowThreshold;react_dom.flushSync(()=>onFallbackChange(shouldFallback))}return overflowRef&&(overflowRef.current=await platform2.detectOverflow(getArgsWithCustomFloatingHeight({...nextArgs,y:nextY},scrollEl.offsetHeight+clientTop+floating.clientTop),detectOverflowOptions)),{y:nextY}}});function useInnerOffset(context,props){const{open,elements}=context,{enabled=!0,overflowRef,scrollRef,onChange:unstable_onChange}=props,onChange=useEffectEvent(unstable_onChange),controlledScrollingRef=react.useRef(!1),prevScrollTopRef=react.useRef(null),initialOverflowRef=react.useRef(null);react.useEffect(()=>{if(!enabled)return;function onWheel(e){if(e.ctrlKey||!el||overflowRef.current==null)return;const dY=e.deltaY,isAtTop=overflowRef.current.top>=-.5,isAtBottom=overflowRef.current.bottom>=-.5,remainingScroll=el.scrollHeight-el.clientHeight,sign=dY<0?-1:1,method=dY<0?"max":"min";el.scrollHeight<=el.clientHeight||(!isAtTop&&dY>0||!isAtBottom&&dY<0?(e.preventDefault(),react_dom.flushSync(()=>{onChange(d=>d+Math[method](dY,remainingScroll*sign))})):/firefox/i.test(getUserAgent())&&(el.scrollTop+=dY))}const el=scrollRef?.current||elements.floating;if(open&&el)return el.addEventListener("wheel",onWheel),requestAnimationFrame(()=>{prevScrollTopRef.current=el.scrollTop,overflowRef.current!=null&&(initialOverflowRef.current={...overflowRef.current})}),()=>{prevScrollTopRef.current=null,initialOverflowRef.current=null,el.removeEventListener("wheel",onWheel)}},[enabled,open,elements.floating,overflowRef,scrollRef,onChange]);const floating=react.useMemo(()=>({onKeyDown(){controlledScrollingRef.current=!0},onWheel(){controlledScrollingRef.current=!1},onPointerMove(){controlledScrollingRef.current=!1},onScroll(){const el=scrollRef?.current||elements.floating;if(!(!overflowRef.current||!el||!controlledScrollingRef.current)){if(prevScrollTopRef.current!==null){const scrollDiff=el.scrollTop-prevScrollTopRef.current;(overflowRef.current.bottom<-.5&&scrollDiff<-1||overflowRef.current.top<-.5&&scrollDiff>1)&&react_dom.flushSync(()=>onChange(d=>d+scrollDiff))}requestAnimationFrame(()=>{prevScrollTopRef.current=el.scrollTop})}}}),[elements.floating,onChange,overflowRef,scrollRef]);return react.useMemo(()=>enabled?{floating}:{},[enabled,floating])}function floating_ui_react_esm_getNodeChildren(nodes,id,onlyOpenChildren){return onlyOpenChildren===void 0&&(onlyOpenChildren=!0),nodes.filter(node=>{var _node$context;return node.parentId===id&&(!onlyOpenChildren||((_node$context=node.context)==null?void 0:_node$context.open))}).flatMap(child=>[child,...floating_ui_react_esm_getNodeChildren(nodes,child.id,onlyOpenChildren)])}function isPointInPolygon(point,polygon){const[x,y]=point;let isInside2=!1;const length=polygon.length;for(let i=0,j=length-1;i<length;j=i++){const[xi,yi]=polygon[i]||[0,0],[xj,yj]=polygon[j]||[0,0];yi>=y!=yj>=y&&x<=(xj-xi)*(y-yi)/(yj-yi)+xi&&(isInside2=!isInside2)}return isInside2}function isInside(point,rect){return point[0]>=rect.x&&point[0]<=rect.x+rect.width&&point[1]>=rect.y&&point[1]<=rect.y+rect.height}function safePolygon(options){options===void 0&&(options={});const{buffer=.5,blockPointerEvents=!1,requireIntent=!0}=options,timeoutRef={current:-1};let hasLanded=!1,lastX=null,lastY=null,lastCursorTime=typeof performance<"u"?performance.now():0;function getCursorSpeed(x,y){const currentTime=performance.now(),elapsedTime=currentTime-lastCursorTime;if(lastX===null||lastY===null||elapsedTime===0)return lastX=x,lastY=y,lastCursorTime=currentTime,null;const deltaX=x-lastX,deltaY=y-lastY,speed=Math.sqrt(deltaX*deltaX+deltaY*deltaY)/elapsedTime;return lastX=x,lastY=y,lastCursorTime=currentTime,speed}const fn=_ref=>{let{x,y,placement,elements,onClose,nodeId,tree}=_ref;return function(event){function close(){clearTimeoutIfSet(timeoutRef),onClose()}if(clearTimeoutIfSet(timeoutRef),!elements.domReference||!elements.floating||placement==null||x==null||y==null)return;const{clientX,clientY}=event,clientPoint=[clientX,clientY],target=floating_ui_react_esm_getTarget(event),isLeave=event.type==="mouseleave",isOverFloatingEl=floating_ui_react_esm_contains(elements.floating,target),isOverReferenceEl=floating_ui_react_esm_contains(elements.domReference,target),refRect=elements.domReference.getBoundingClientRect(),rect=elements.floating.getBoundingClientRect(),side=placement.split("-")[0],cursorLeaveFromRight=x>rect.right-rect.width/2,cursorLeaveFromBottom=y>rect.bottom-rect.height/2,isOverReferenceRect=isInside(clientPoint,refRect),isFloatingWider=rect.width>refRect.width,isFloatingTaller=rect.height>refRect.height,left=(isFloatingWider?refRect:rect).left,right=(isFloatingWider?refRect:rect).right,top=(isFloatingTaller?refRect:rect).top,bottom=(isFloatingTaller?refRect:rect).bottom;if(isOverFloatingEl&&(hasLanded=!0,!isLeave))return;if(isOverReferenceEl&&(hasLanded=!1),isOverReferenceEl&&!isLeave){hasLanded=!0;return}if(isLeave&&isElement(event.relatedTarget)&&floating_ui_react_esm_contains(elements.floating,event.relatedTarget)||tree&&floating_ui_react_esm_getNodeChildren(tree.nodesRef.current,nodeId).length)return;if(side==="top"&&y>=refRect.bottom-1||side==="bottom"&&y<=refRect.top+1||side==="left"&&x>=refRect.right-1||side==="right"&&x<=refRect.left+1)return close();let rectPoly=[];switch(side){case"top":rectPoly=[[left,refRect.top+1],[left,rect.bottom-1],[right,rect.bottom-1],[right,refRect.top+1]];break;case"bottom":rectPoly=[[left,rect.top+1],[left,refRect.bottom-1],[right,refRect.bottom-1],[right,rect.top+1]];break;case"left":rectPoly=[[rect.right-1,bottom],[rect.right-1,top],[refRect.left+1,top],[refRect.left+1,bottom]];break;case"right":rectPoly=[[refRect.right-1,bottom],[refRect.right-1,top],[rect.left+1,top],[rect.left+1,bottom]];break}function getPolygon(_ref2){let[x2,y2]=_ref2;switch(side){case"top":{const cursorPointOne=[isFloatingWider?x2+buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2+buffer+1],cursorPointTwo=[isFloatingWider?x2-buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2+buffer+1],commonPoints=[[rect.left,cursorLeaveFromRight||isFloatingWider?rect.bottom-buffer:rect.top],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.bottom-buffer:rect.top:rect.bottom-buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"bottom":{const cursorPointOne=[isFloatingWider?x2+buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2-buffer],cursorPointTwo=[isFloatingWider?x2-buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2-buffer],commonPoints=[[rect.left,cursorLeaveFromRight||isFloatingWider?rect.top+buffer:rect.bottom],[rect.right,cursorLeaveFromRight?isFloatingWider?rect.top+buffer:rect.bottom:rect.top+buffer]];return[cursorPointOne,cursorPointTwo,...commonPoints]}case"left":{const cursorPointOne=[x2+buffer+1,isFloatingTaller?y2+buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4],cursorPointTwo=[x2+buffer+1,isFloatingTaller?y2-buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4];return[...[[cursorLeaveFromBottom||isFloatingTaller?rect.right-buffer:rect.left,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.right-buffer:rect.left:rect.right-buffer,rect.bottom]],cursorPointOne,cursorPointTwo]}case"right":{const cursorPointOne=[x2-buffer,isFloatingTaller?y2+buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4],cursorPointTwo=[x2-buffer,isFloatingTaller?y2-buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4],commonPoints=[[cursorLeaveFromBottom||isFloatingTaller?rect.left+buffer:rect.right,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.left+buffer:rect.right:rect.left+buffer,rect.bottom]];return[cursorPointOne,cursorPointTwo,...commonPoints]}}}if(!isPointInPolygon([clientX,clientY],rectPoly)){if(hasLanded&&!isOverReferenceRect)return close();if(!isLeave&&requireIntent){const cursorSpeed=getCursorSpeed(event.clientX,event.clientY);if(cursorSpeed!==null&&cursorSpeed<.1)return close()}isPointInPolygon([clientX,clientY],getPolygon([x,y]))?!hasLanded&&requireIntent&&(timeoutRef.current=window.setTimeout(close,40)):close()}}};return fn.__options={blockPointerEvents},fn}},85111(module){(function(global,factory){module.exports=factory()})(this,function(){"use strict";const schemeRegex=/^[\w+.-]+:\/\//,urlRegex=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fileRegex=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(input){return schemeRegex.test(input)}function isSchemeRelativeUrl(input){return input.startsWith("//")}function isAbsolutePath(input){return input.startsWith("/")}function isFileUrl(input){return input.startsWith("file:")}function isRelative(input){return/^[.?#]/.test(input)}function parseAbsoluteUrl(input){const match=urlRegex.exec(input);return makeUrl(match[1],match[2]||"",match[3],match[4]||"",match[5]||"/",match[6]||"",match[7]||"")}function parseFileUrl(input){const match=fileRegex.exec(input),path=match[2];return makeUrl("file:","",match[1]||"","",isAbsolutePath(path)?path:"/"+path,match[3]||"",match[4]||"")}function makeUrl(scheme,user,host,port,path,query,hash){return{scheme,user,host,port,path,query,hash,type:7}}function parseUrl(input){if(isSchemeRelativeUrl(input)){const url2=parseAbsoluteUrl("http:"+input);return url2.scheme="",url2.type=6,url2}if(isAbsolutePath(input)){const url2=parseAbsoluteUrl("http://foo.com"+input);return url2.scheme="",url2.host="",url2.type=5,url2}if(isFileUrl(input))return parseFileUrl(input);if(isAbsoluteUrl(input))return parseAbsoluteUrl(input);const url=parseAbsoluteUrl("http://foo.com/"+input);return url.scheme="",url.host="",url.type=input?input.startsWith("?")?3:input.startsWith("#")?2:4:1,url}function stripPathFilename(path){if(path.endsWith("/.."))return path;const index=path.lastIndexOf("/");return path.slice(0,index+1)}function mergePaths(url,base){normalizePath(base,base.type),url.path==="/"?url.path=base.path:url.path=stripPathFilename(base.path)+url.path}function normalizePath(url,type){const rel=type<=4,pieces=url.path.split("/");let pointer=1,positive=0,addTrailingSlash=!1;for(let i=1;i<pieces.length;i++){const piece=pieces[i];if(!piece){addTrailingSlash=!0;continue}if(addTrailingSlash=!1,piece!=="."){if(piece===".."){positive?(addTrailingSlash=!0,positive--,pointer--):rel&&(pieces[pointer++]=piece);continue}pieces[pointer++]=piece,positive++}}let path="";for(let i=1;i<pointer;i++)path+="/"+pieces[i];(!path||addTrailingSlash&&!path.endsWith("/.."))&&(path+="/"),url.path=path}function resolve(input,base){if(!input&&!base)return"";const url=parseUrl(input);let inputType=url.type;if(base&&inputType!==7){const baseUrl=parseUrl(base),baseType=baseUrl.type;switch(inputType){case 1:url.hash=baseUrl.hash;case 2:url.query=baseUrl.query;case 3:case 4:mergePaths(url,baseUrl);case 5:url.user=baseUrl.user,url.host=baseUrl.host,url.port=baseUrl.port;case 6:url.scheme=baseUrl.scheme}baseType>inputType&&(inputType=baseType)}normalizePath(url,inputType);const queryHash=url.query+url.hash;switch(inputType){case 2:case 3:return queryHash;case 4:{const path=url.path.slice(1);return path?isRelative(base||input)&&!isRelative(path)?"./"+path+queryHash:path+queryHash:queryHash||"."}case 5:return url.path+queryHash;default:return url.scheme+"//"+url.user+url.host+url.port+url.path+queryHash}}return resolve})},83875(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(86343))},32796(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0});var node_fs_1=__webpack_require__(64644);exports.NodeFS=node_fs_1.NodeFS,__export(__webpack_require__(45780))},64644(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const path_1=__webpack_require__(52101),fs_1=__importDefault(__webpack_require__(94891)),promises_1=__importDefault(__webpack_require__(45780));class NodeFS{constructor(workingDir){this.workingDir=workingDir,this.promises=new promises_1.default}getPath(path){return path_1.join(this.workingDir,path)}access(path,mode,callback){fs_1.default.access(this.getPath(path),mode,callback)}accessSync(path,mode){fs_1.default.accessSync(this.getPath(path),mode)}appendFile(file,data,options,callback){fs_1.default.appendFile(this.getPath(file),data,options)}appendFileSync(file,data,options){fs_1.default.appendFileSync(this.getPath(file),data,options)}chmod(path,mode,callback){fs_1.default.chmod(this.getPath(path),mode,callback)}chmodSync(path,mode){fs_1.default.chmodSync(this.getPath(path),mode)}chown(path,uid,gid,callback){fs_1.default.chown(this.getPath(path),uid,gid,callback)}chownSync(path,uid,gid){fs_1.default.chownSync(this.getPath(path),uid,gid)}close(fd,callback){fs_1.default.close(fd,callback)}closeSync(fd){fs_1.default.closeSync(fd)}copyFile(src,dest,callback){fs_1.default.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){fs_1.default.copyFileSync(src,dest,flags)}createReadStream(path,options){return fs_1.default.createReadStream(this.getPath(path),options)}createWriteStream(path,options){return fs_1.default.createWriteStream(this.getPath(path),options)}exists(path,callback){fs_1.default.exists(this.getPath(path),callback)}existsSync(path){return fs_1.default.existsSync(this.getPath(path))}fchmod(fd,mode,callback){fs_1.default.fchmod(fd,mode,callback)}fchmodSync(fd,mode){fs_1.default.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){fs_1.default.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){fs_1.default.fchownSync(fd,uid,gid)}fdatasync(fd,callback){fs_1.default.fdatasync(fd,callback)}fdatasyncSync(fd){fs_1.default.fdatasyncSync(fd)}fstat(fd,callback){fs_1.default.fstat(fd,callback)}fstatSync(fd){return fs_1.default.fstatSync(fd)}fsync(fd,callback){fs_1.default.fsync(fd,callback)}fsyncSync(fd){fs_1.default.fsyncSync(fd)}ftruncate(fd,len,callback){fs_1.default.ftruncate(fd,len,callback)}ftruncateSync(fd,len){fs_1.default.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){fs_1.default.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){fs_1.default.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){fs_1.default.lchmod(this.getPath(path),mode,callback)}lchmodSync(path,mode){fs_1.default.lchmodSync(this.getPath(path),mode)}lchown(path,uid,gid,callback){fs_1.default.lchown(this.getPath(path),uid,gid,callback)}lchownSync(path,uid,gid){fs_1.default.lchownSync(this.getPath(path),uid,gid)}link(existingPath,newPath,callback){fs_1.default.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){fs_1.default.linkSync(existingPath,newPath)}lstat(path,callback){fs_1.default.lstat(this.getPath(path),callback)}lstatSync(path){return fs_1.default.lstatSync(path)}mkdir(path,options,callback){fs_1.default.mkdir(this.getPath(path),options,callback)}mkdirSync(path,options){fs_1.default.mkdirSync(this.getPath(path),options)}mkdtemp(prefix,options,callback){fs_1.default.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return fs_1.default.mkdtempSync(prefix,options)}open(path,flags,mode,callback){fs_1.default.open(this.getPath(path),flags,mode,callback)}openSync(path,flags,mode){return fs_1.default.openSync(this.getPath(path),flags,mode)}read(fd,buffer,offset,length,position,callback){fs_1.default.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return fs_1.default.readFileSync(this.getPath(path))}readSync(fd,buffer,offset,length,position){return fs_1.default.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){fs_1.default.readdir(this.getPath(path),options,callback)}readdirSync(path,options){return fs_1.default.readdirSync(this.getPath(path),options)}readlink(path,options,callback){fs_1.default.readlink(this.getPath(path),options,callback)}readlinkSync(path,options){return fs_1.default.readlinkSync(this.getPath(path),options)}realpath(path,options,callback){fs_1.default.realpath(this.getPath(path),options,callback)}realpathSync(path,options){return fs_1.default.realpathSync(this.getPath(path),options)}rename(oldPath,newPath,callback){fs_1.default.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){fs_1.default.renameSync(oldPath,newPath)}rmdir(path,callback){fs_1.default.rmdir(this.getPath(path),callback)}rmdirSync(path){fs_1.default.rmdirSync(this.getPath(path))}stat(path,callback){fs_1.default.stat(this.getPath(path),callback)}statSync(path){return fs_1.default.statSync(path)}symlink(target,path,type,callback){fs_1.default.symlink(target,this.getPath(path),type,callback)}symlinkSync(target,path,type){fs_1.default.symlinkSync(target,this.getPath(path),type)}truncate(path,len,callback){fs_1.default.truncate(this.getPath(path),len,callback)}truncateSync(path,len){fs_1.default.truncateSync(this.getPath(path),len)}unlink(path,callback){fs_1.default.unlink(this.getPath(path),callback)}unlinkSync(path){fs_1.default.unlinkSync(this.getPath(path))}unwatchFile(filename,listener){fs_1.default.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){fs_1.default.utimes(this.getPath(path),atime,mtime,callback)}utimesSync(path,atime,mtime){fs_1.default.utimesSync(this.getPath(path),atime,mtime)}watch(filename,options,listener){return fs_1.default.watch(filename,options,listener)}watchFile(filename,options,listener){fs_1.default.watchFile(filename,options,listener)}writeFile(path,data,options,callback){fs_1.default.writeFile(this.getPath(path),data,options)}writeFileSync(path,data,options){fs_1.default.writeFileSync(this.getPath(path),data,options)}writeSync(fd,buffer,offset,length,position){return fs_1.default.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.NodeFS=NodeFS},45780(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0});const fs_1=__importDefault(__webpack_require__(94891));class FsPromisesAPI{access(path,mode){return fs_1.default.promises.access(path,mode)}appendFile(path,data,options){return fs_1.default.promises.appendFile(path,data)}chmod(path,mode){return fs_1.default.promises.chmod(path,mode)}chown(path,uid,gid){return fs_1.default.promises.chown(path,uid,gid)}copyFile(src,dest,flags){return fs_1.default.promises.copyFile(src,dest,flags)}fchmod(handle,mode){return fs_1.default.promises.fchmod(handle,mode)}fchown(handle,uid,gid){return fs_1.default.promises.fchown(handle,uid,gid)}fdatasync(handle){return fs_1.default.promises.fdatasync(handle)}fstat(handle){return fs_1.default.promises.fstat(handle)}fsync(handle){return fs_1.default.promises.fsync(handle)}ftruncate(handle,len){return fs_1.default.promises.ftruncate(handle,len)}futimes(handle,atime,mtime){return fs_1.default.promises.futimes(handle,atime,mtime)}lchmod(path,mode){return fs_1.default.promises.lchmod(path,mode)}lchown(path,uid,gid){return fs_1.default.promises.lchown(path,uid,gid)}link(existingPath,newPath){return fs_1.default.promises.link(existingPath,newPath)}lstat(path){return fs_1.default.promises.lstat(path)}mkdir(path,options){return fs_1.default.promises.mkdir(path,options)}mkdtemp(prefix,options){return fs_1.default.promises.mkdtemp(prefix,options)}open(path,flags,mode){return fs_1.default.promises.open(path,flags,mode)}read(handle,buffer,offset,length,position){return fs_1.default.promises.read(handle,buffer,offset,length,position)}readFile(path,options){return fs_1.default.promises.readFile(path,options)}readdir(path,options){return fs_1.default.promises.readdir(path,options)}readlink(path,options){return fs_1.default.promises.readlink(path,options)}realpath(path,options){return fs_1.default.promises.realpath(path,options)}rename(oldPath,newPath){return fs_1.default.promises.rename(oldPath,newPath)}rmdir(path){return fs_1.default.promises.rmdir(path)}stat(path){return fs_1.default.promises.stat(path)}symlink(target,path,type){return fs_1.default.promises.symlink(target,path,type)}truncate(path,len){return fs_1.default.promises.truncate(path,len)}unlink(path){return fs_1.default.promises.unlink(path)}utimes(path,atime,mtime){return fs_1.default.promises.utimes(path,atime,mtime)}write(handle,buffer,offset,length,position){fs_1.default.promises.write(handle,buffer,offset,length)}writeFile(path,data,options){return fs_1.default.promises.writeFile(path,data,options)}}exports.default=FsPromisesAPI},86343(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(32796)),__export(__webpack_require__(32339))},32339(__unused_webpack_module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(78691))},78691(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const memfs_1=__webpack_require__(51165);class MemoryFS{constructor(){this.volume=new memfs_1.Volume,this.promises=this.volume.promises}access(path,mode,callback){this.volume.access(path,mode,callback)}accessSync(path,mode){this.volume.accessSync(path,mode)}appendFile(file,data,options,callback){this.volume.appendFile(file,data,options)}mkdirpSync(path){this.volume.mkdirpSync(path)}appendFileSync(file,data,options){this.volume.appendFileSync(file,data,options)}chmod(path,mode,callback){this.volume.chmod(path,mode,callback)}chmodSync(path,mode){this.volume.chmodSync(path,mode)}chown(path,uid,gid,callback){this.volume.chown(path,uid,gid,callback)}chownSync(path,uid,gid){this.volume.chownSync(path,uid,gid)}close(fd,callback){this.volume.close(fd,callback)}closeSync(fd){this.volume.closeSync(fd)}copyFile(src,dest,callback){this.volume.copyFile(src,dest,callback)}copyFileSync(src,dest,flags){this.volume.copyFileSync(src,dest,flags)}createReadStream(path,options){return this.volume.createReadStream(path,options)}createWriteStream(path,options){return this.volume.createWriteStream(path,options)}exists(path,callback){this.volume.exists(path,callback)}existsSync(path){return!1}fchmod(fd,mode,callback){this.volume.fchmod(fd,mode,callback)}fchmodSync(fd,mode){this.volume.fchmodSync(fd,mode)}fchown(fd,uid,gid,callback){this.volume.fchown(fd,uid,gid,callback)}fchownSync(fd,uid,gid){this.volume.fchownSync(fd,uid,gid)}fdatasync(fd,callback){this.volume.fdatasync(fd,callback)}fdatasyncSync(fd){this.volume.fdatasyncSync(fd)}fstat(fd,callback){this.volume.fstat(fd,callback)}fstatSync(fd){return this.volume.fstatSync(fd)}fsync(fd,callback){this.volume.fsync(fd,callback)}fsyncSync(fd){this.volume.fsyncSync(fd)}ftruncate(fd,len,callback){this.volume.ftruncate(fd,len,callback)}ftruncateSync(fd,len){this.volume.ftruncateSync(fd,len)}futimes(fd,atime,mtime,callback){this.volume.futimes(fd,atime,mtime,callback)}futimesSync(fd,atime,mtime){this.volume.futimesSync(fd,atime,mtime)}lchmod(path,mode,callback){this.volume.lchmod(path,mode,callback)}lchmodSync(path,mode){this.volume.lchmodSync(path,mode)}lchown(path,uid,gid,callback){this.volume.lchown(path,uid,gid,callback)}lchownSync(path,uid,gid){this.volume.lchownSync(path,uid,gid)}link(existingPath,newPath,callback){this.volume.link(existingPath,newPath,callback)}linkSync(existingPath,newPath){this.volume.linkSync(existingPath,newPath)}lstat(path,callback){this.volume.lstat(path,callback)}lstatSync(path){return this.volume.lstatSync(path)}mkdir(path,options,callback){this.volume.mkdir(path,options,callback)}mkdirSync(path,options){this.volume.mkdirSync(path,options)}mkdtemp(prefix,options,callback){this.volume.mkdtemp(prefix,options,callback)}mkdtempSync(prefix,options){return this.volume.mkdtempSync(prefix,options)}open(path,flags,mode,callback){this.volume.open(path,flags,mode,callback)}openSync(path,flags,mode){return this.volume.openSync(path,flags,mode)}read(fd,buffer,offset,length,position,callback){this.volume.read(fd,buffer,offset,length,position,callback)}readFile(path,options,callback){}readFileSync(path,options){return this.volume.readFileSync(path)}readSync(fd,buffer,offset,length,position){return this.volume.readSync(fd,buffer,offset,length,position)}readdir(path,options,callback){this.volume.readdir(path,options,callback)}readdirSync(path,options){return this.volume.readdirSync(path,options)}readlink(path,options,callback){this.volume.readlink(path,options,callback)}readlinkSync(path,options){return this.volume.readlinkSync(path,options)}realpath(path,options,callback){this.volume.realpath(path,options,callback)}realpathSync(path,options){return this.volume.realpathSync(path,options)}rename(oldPath,newPath,callback){this.volume.rename(oldPath,newPath,callback)}renameSync(oldPath,newPath){this.volume.renameSync(oldPath,newPath)}rmdir(path,callback){this.volume.rmdir(path,callback)}rmdirSync(path){this.volume.rmdirSync(path)}stat(path,callback){this.volume.stat(path,callback)}statSync(path){return this.volume.statSync(path)}symlink(target,path,type,callback){this.volume.symlink(target,path,type,callback)}symlinkSync(target,path,type){this.volume.symlinkSync(target,path,type)}truncate(path,len,callback){this.volume.truncate(path,len,callback)}truncateSync(path,len){this.volume.truncateSync(path,len)}unlink(path,callback){this.volume.unlink(path,callback)}unlinkSync(path){this.volume.unlinkSync(path)}unwatchFile(filename,listener){this.volume.unwatchFile(filename,listener)}utimes(path,atime,mtime,callback){this.volume.utimes(path,atime,mtime,callback)}utimesSync(path,atime,mtime){this.volume.utimesSync(path,atime,mtime)}watch(filename,options,listener){return this.volume.watch(filename,options,listener)}watchFile(filename,options,listener){this.volume.watchFile(filename,options,listener)}writeFile(path,data,options,callback){this.volume.writeFile(path,data,options)}writeFileSync(path,data,options){this.volume.writeFileSync(path,data,options)}writeSync(fd,buffer,offset,length,position){return this.volume.writeSync(fd,buffer,offset,length,position)}write(fd,buffer,offset,length,position,callback){this.write(fd,buffer,offset,length,position,callback)}}exports.MemoryFS=MemoryFS},19633(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAPI=void 0;var use_api_1=__webpack_require__(56839);Object.defineProperty(exports,"useAPI",{enumerable:!0,get:function(){return use_api_1.useAPI}})},56839(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAPI=useAPI;const ui_foundation_ui_hooks_use_data_query_1=__webpack_require__(73356),client_1=__webpack_require__(6083),api_reference_models_api_reference_model_1=__webpack_require__(74958),GET_SCHEMA=(0,client_1.gql)`
@@ -515,10 +515,10 @@ and limitations under the License.
515
515
  */var REGEX_DATA="xregexp",features={astral:!1},nativ={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},fixed={},regexCache={},patternCache={},tokens=[],defaultScope="default",classScope="class",nativeTokens={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},replacementToken=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,correctExecNpcg=nativ.exec.call(/()??/,"")[1]===void 0,hasFlagsProp=/x/.flags!==void 0,toString={}.toString;function hasNativeFlag(flag){var isSupported=!0;try{new RegExp("",flag)}catch{isSupported=!1}return isSupported}var hasNativeU=hasNativeFlag("u"),hasNativeY=hasNativeFlag("y"),registeredFlags={g:!0,i:!0,m:!0,u:hasNativeU,y:hasNativeY};function augment(regex,captureNames,xSource,xFlags,isInternalOnly){var p=void 0;if(regex[REGEX_DATA]={captureNames},isInternalOnly)return regex;if(regex.__proto__)regex.__proto__=XRegExp.prototype;else for(p in XRegExp.prototype)regex[p]=XRegExp.prototype[p];return regex[REGEX_DATA].source=xSource,regex[REGEX_DATA].flags=xFlags&&xFlags.split("").sort().join(""),regex}function clipDuplicates(str){return nativ.replace.call(str,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(regex,options){if(!XRegExp.isRegExp(regex))throw new TypeError("Type RegExp expected");var xData=regex[REGEX_DATA]||{},flags=getNativeFlags(regex),flagsToAdd="",flagsToRemove="",xregexpSource=null,xregexpFlags=null;return options=options||{},options.removeG&&(flagsToRemove+="g"),options.removeY&&(flagsToRemove+="y"),flagsToRemove&&(flags=nativ.replace.call(flags,new RegExp("["+flagsToRemove+"]+","g"),"")),options.addG&&(flagsToAdd+="g"),options.addY&&(flagsToAdd+="y"),flagsToAdd&&(flags=clipDuplicates(flags+flagsToAdd)),options.isInternalOnly||(xData.source!==void 0&&(xregexpSource=xData.source),xData.flags!=null&&(xregexpFlags=flagsToAdd?clipDuplicates(xData.flags+flagsToAdd):xData.flags)),regex=augment(new RegExp(options.source||regex.source,flags),hasNamedCapture(regex)?xData.captureNames.slice(0):null,xregexpSource,xregexpFlags,options.isInternalOnly),regex}function dec(hex2){return parseInt(hex2,16)}function getContextualTokenSeparator(match,scope,flags){return match.input[match.index-1]==="("||match.input[match.index+match[0].length]===")"||isQuantifierNext(match.input,match.index+match[0].length,flags)?"":"(?:)"}function getNativeFlags(regex){return hasFlagsProp?regex.flags:nativ.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(regex))[1]}function hasNamedCapture(regex){return!!(regex[REGEX_DATA]&&regex[REGEX_DATA].captureNames)}function hex(dec2){return parseInt(dec2,10).toString(16)}function isQuantifierNext(pattern,pos,flags){var inlineCommentPattern="\\(\\?#[^)]*\\)",lineCommentPattern="#[^#\\n]*",quantifierPattern="[?*+]|{\\d+(?:,\\d*)?}";return nativ.test.call(flags.indexOf("x")!==-1?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,pattern.slice(pos))}function isType(value,type){return toString.call(value)==="[object "+type+"]"}function pad4(str){for(;str.length<4;)str="0"+str;return str}function prepareFlags(pattern,flags){var i=void 0;if(clipDuplicates(flags)!==flags)throw new SyntaxError("Invalid duplicate regex flag "+flags);for(pattern=nativ.replace.call(pattern,/^\(\?([\w$]+)\)/,function($0,$1){if(nativ.test.call(/[gy]/,$1))throw new SyntaxError("Cannot use flag g or y in mode modifier "+$0);return flags=clipDuplicates(flags+$1),""}),i=0;i<flags.length;++i)if(!registeredFlags[flags[i]])throw new SyntaxError("Unknown regex flag "+flags[i]);return{pattern,flags}}function prepareOptions(value){var options={};return isType(value,"String")?(XRegExp.forEach(value,/[^\s,]+/,function(match){options[match]=!0}),options):value}function registerFlag(flag){if(!/^[\w$]$/.test(flag))throw new Error("Flag must be a single character A-Za-z0-9_$");registeredFlags[flag]=!0}function runTokens(pattern,flags,pos,scope,context){for(var i=tokens.length,leadChar=pattern[pos],result=null,match=void 0,t=void 0;i--;)if(t=tokens[i],!(t.leadChar&&t.leadChar!==leadChar||t.scope!==scope&&t.scope!=="all"||t.flag&&flags.indexOf(t.flag)===-1)&&(match=XRegExp.exec(pattern,t.regex,pos,"sticky"),match)){result={matchLength:match[0].length,output:t.handler.call(context,match,scope,flags),reparse:t.reparse};break}return result}function setAstral(on){features.astral=on}function toObject(value){if(value==null)throw new TypeError("Cannot convert null or undefined to object");return value}function XRegExp(pattern,flags){if(XRegExp.isRegExp(pattern)){if(flags!==void 0)throw new TypeError("Cannot supply flags when copying a RegExp");return copyRegex(pattern)}if(pattern=pattern===void 0?"":String(pattern),flags=flags===void 0?"":String(flags),XRegExp.isInstalled("astral")&&flags.indexOf("A")===-1&&(flags+="A"),patternCache[pattern]||(patternCache[pattern]={}),!patternCache[pattern][flags]){for(var context={hasNamedCapture:!1,captureNames:[]},scope=defaultScope,output="",pos=0,result=void 0,applied=prepareFlags(pattern,flags),appliedPattern=applied.pattern,appliedFlags=applied.flags;pos<appliedPattern.length;){do result=runTokens(appliedPattern,appliedFlags,pos,scope,context),result&&result.reparse&&(appliedPattern=appliedPattern.slice(0,pos)+result.output+appliedPattern.slice(pos+result.matchLength));while(result&&result.reparse);if(result)output+=result.output,pos+=result.matchLength||1;else{var token=XRegExp.exec(appliedPattern,nativeTokens[scope],pos,"sticky")[0];output+=token,pos+=token.length,token==="["&&scope===defaultScope?scope=classScope:token==="]"&&scope===classScope&&(scope=defaultScope)}}patternCache[pattern][flags]={pattern:nativ.replace.call(output,/(?:\(\?:\))+/g,"(?:)"),flags:nativ.replace.call(appliedFlags,/[^gimuy]+/g,""),captures:context.hasNamedCapture?context.captureNames:null}}var generated=patternCache[pattern][flags];return augment(new RegExp(generated.pattern,generated.flags),generated.captures,pattern,flags)}XRegExp.prototype=/(?:)/,XRegExp.version="4.0.0",XRegExp._clipDuplicates=clipDuplicates,XRegExp._hasNativeFlag=hasNativeFlag,XRegExp._dec=dec,XRegExp._hex=hex,XRegExp._pad4=pad4,XRegExp.addToken=function(regex,handler,options){options=options||{};var optionalFlags=options.optionalFlags,i=void 0;if(options.flag&&registerFlag(options.flag),optionalFlags)for(optionalFlags=nativ.split.call(optionalFlags,""),i=0;i<optionalFlags.length;++i)registerFlag(optionalFlags[i]);tokens.push({regex:copyRegex(regex,{addG:!0,addY:hasNativeY,isInternalOnly:!0}),handler,scope:options.scope||defaultScope,flag:options.flag,reparse:options.reparse,leadChar:options.leadChar}),XRegExp.cache.flush("patterns")},XRegExp.cache=function(pattern,flags){return regexCache[pattern]||(regexCache[pattern]={}),regexCache[pattern][flags]||(regexCache[pattern][flags]=XRegExp(pattern,flags))},XRegExp.cache.flush=function(cacheName){cacheName==="patterns"?patternCache={}:regexCache={}},XRegExp.escape=function(str){return nativ.replace.call(toObject(str),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},XRegExp.exec=function(str,regex,pos,sticky){var cacheKey="g",addY=!1,fakeY=!1,match=void 0;addY=hasNativeY&&!!(sticky||regex.sticky&&sticky!==!1),addY?cacheKey+="y":sticky&&(fakeY=!0,cacheKey+="FakeY"),regex[REGEX_DATA]=regex[REGEX_DATA]||{};var r2=regex[REGEX_DATA][cacheKey]||(regex[REGEX_DATA][cacheKey]=copyRegex(regex,{addG:!0,addY,source:fakeY?regex.source+"|()":void 0,removeY:sticky===!1,isInternalOnly:!0}));return pos=pos||0,r2.lastIndex=pos,match=fixed.exec.call(r2,str),fakeY&&match&&match.pop()===""&&(match=null),regex.global&&(regex.lastIndex=match?r2.lastIndex:0),match},XRegExp.forEach=function(str,regex,callback){for(var pos=0,i=-1,match=void 0;match=XRegExp.exec(str,regex,pos);)callback(match,++i,str,regex),pos=match.index+(match[0].length||1)},XRegExp.globalize=function(regex){return copyRegex(regex,{addG:!0})},XRegExp.install=function(options){options=prepareOptions(options),!features.astral&&options.astral&&setAstral(!0)},XRegExp.isInstalled=function(feature){return!!features[feature]},XRegExp.isRegExp=function(value){return toString.call(value)==="[object RegExp]"},XRegExp.match=function(str,regex,scope){var global=regex.global&&scope!=="one"||scope==="all",cacheKey=(global?"g":"")+(regex.sticky?"y":"")||"noGY";regex[REGEX_DATA]=regex[REGEX_DATA]||{};var r2=regex[REGEX_DATA][cacheKey]||(regex[REGEX_DATA][cacheKey]=copyRegex(regex,{addG:!!global,removeG:scope==="one",isInternalOnly:!0})),result=nativ.match.call(toObject(str),r2);return regex.global&&(regex.lastIndex=scope==="one"&&result?result.index+result[0].length:0),global?result||[]:result&&result[0]},XRegExp.matchChain=function(str,chain){return function recurseChain(values,level){var item=chain[level].regex?chain[level]:{regex:chain[level]},matches=[];function addMatch(match){if(item.backref){if(!(match.hasOwnProperty(item.backref)||+item.backref<match.length))throw new ReferenceError("Backreference to undefined group: "+item.backref);matches.push(match[item.backref]||"")}else matches.push(match[0])}for(var i=0;i<values.length;++i)XRegExp.forEach(values[i],item.regex,addMatch);return level===chain.length-1||!matches.length?matches:recurseChain(matches,level+1)}([str],0)},XRegExp.replace=function(str,search,replacement,scope){var isRegex=XRegExp.isRegExp(search),global=search.global&&scope!=="one"||scope==="all",cacheKey=(global?"g":"")+(search.sticky?"y":"")||"noGY",s2=search;isRegex?(search[REGEX_DATA]=search[REGEX_DATA]||{},s2=search[REGEX_DATA][cacheKey]||(search[REGEX_DATA][cacheKey]=copyRegex(search,{addG:!!global,removeG:scope==="one",isInternalOnly:!0}))):global&&(s2=new RegExp(XRegExp.escape(String(search)),"g"));var result=fixed.replace.call(toObject(str),s2,replacement);return isRegex&&search.global&&(search.lastIndex=0),result},XRegExp.replaceEach=function(str,replacements){var i=void 0,r=void 0;for(i=0;i<replacements.length;++i)r=replacements[i],str=XRegExp.replace(str,r[0],r[1],r[2]);return str},XRegExp.split=function(str,separator,limit){return fixed.split.call(toObject(str),separator,limit)},XRegExp.test=function(str,regex,pos,sticky){return!!XRegExp.exec(str,regex,pos,sticky)},XRegExp.uninstall=function(options){options=prepareOptions(options),features.astral&&options.astral&&setAstral(!1)},XRegExp.union=function(patterns,flags,options){options=options||{};var conjunction=options.conjunction||"or",numCaptures=0,numPriorCaptures=void 0,captureNames=void 0;function rewrite(match,paren,backref){var name=captureNames[numCaptures-numPriorCaptures];if(paren){if(++numCaptures,name)return"(?<"+name+">"}else if(backref)return"\\"+(+backref+numPriorCaptures);return match}if(!(isType(patterns,"Array")&&patterns.length))throw new TypeError("Must provide a nonempty array of patterns to merge");for(var parts=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,output=[],pattern=void 0,i=0;i<patterns.length;++i)pattern=patterns[i],XRegExp.isRegExp(pattern)?(numPriorCaptures=numCaptures,captureNames=pattern[REGEX_DATA]&&pattern[REGEX_DATA].captureNames||[],output.push(nativ.replace.call(XRegExp(pattern.source).source,parts,rewrite))):output.push(XRegExp.escape(pattern));var separator=conjunction==="none"?"":"|";return XRegExp(output.join(separator),flags)},fixed.exec=function(str){var origLastIndex=this.lastIndex,match=nativ.exec.apply(this,arguments);if(match){if(!correctExecNpcg&&match.length>1&&match.indexOf("")!==-1){var r2=copyRegex(this,{removeG:!0,isInternalOnly:!0});nativ.replace.call(String(str).slice(match.index),r2,function(){for(var _len=arguments.length,args=Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];for(var len=args.length,i2=1;i2<len-2;++i2)args[i2]===void 0&&(match[i2]=void 0)})}if(this[REGEX_DATA]&&this[REGEX_DATA].captureNames)for(var i=1;i<match.length;++i){var name=this[REGEX_DATA].captureNames[i-1];name&&(match[name]=match[i])}this.global&&!match[0].length&&this.lastIndex>match.index&&(this.lastIndex=match.index)}return this.global||(this.lastIndex=origLastIndex),match},fixed.test=function(str){return!!fixed.exec.call(this,str)},fixed.match=function(regex){if(!XRegExp.isRegExp(regex))regex=new RegExp(regex);else if(regex.global){var result=nativ.match.apply(this,arguments);return regex.lastIndex=0,result}return fixed.exec.call(regex,toObject(this))},fixed.replace=function(search,replacement){var isRegex=XRegExp.isRegExp(search),origLastIndex=void 0,captureNames=void 0,result=void 0;return isRegex?(search[REGEX_DATA]&&(captureNames=search[REGEX_DATA].captureNames),origLastIndex=search.lastIndex):search+="",isType(replacement,"Function")?result=nativ.replace.call(String(this),search,function(){for(var _len2=arguments.length,args=Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];if(captureNames){args[0]=new String(args[0]);for(var i=0;i<captureNames.length;++i)captureNames[i]&&(args[0][captureNames[i]]=args[i+1])}return isRegex&&search.global&&(search.lastIndex=args[args.length-2]+args[0].length),replacement.apply(void 0,args)}):result=nativ.replace.call(this==null?this:String(this),search,function(){for(var _len3=arguments.length,args=Array(_len3),_key3=0;_key3<_len3;_key3++)args[_key3]=arguments[_key3];return nativ.replace.call(String(replacement),replacementToken,replacer);function replacer($0,bracketed,angled,dollarToken){if(bracketed=bracketed||angled,bracketed){var n=+bracketed;if(n<=args.length-3)return args[n]||"";if(n=captureNames?captureNames.indexOf(bracketed):-1,n<0)throw new SyntaxError("Backreference to undefined group "+$0);return args[n+1]||""}if(dollarToken==="$")return"$";if(dollarToken==="&"||+dollarToken==0)return args[0];if(dollarToken==="`")return args[args.length-1].slice(0,args[args.length-2]);if(dollarToken==="'")return args[args.length-1].slice(args[args.length-2]+args[0].length);if(dollarToken=+dollarToken,!isNaN(dollarToken)){if(dollarToken>args.length-3)throw new SyntaxError("Backreference to undefined group "+$0);return args[dollarToken]||""}throw new SyntaxError("Invalid token "+$0)}}),isRegex&&(search.global?search.lastIndex=0:search.lastIndex=origLastIndex),result},fixed.split=function(separator,limit){if(!XRegExp.isRegExp(separator))return nativ.split.apply(this,arguments);var str=String(this),output=[],origLastIndex=separator.lastIndex,lastLastIndex=0,lastLength=void 0;return limit=(limit===void 0?-1:limit)>>>0,XRegExp.forEach(str,separator,function(match){match.index+match[0].length>lastLastIndex&&(output.push(str.slice(lastLastIndex,match.index)),match.length>1&&match.index<str.length&&Array.prototype.push.apply(output,match.slice(1)),lastLength=match[0].length,lastLastIndex=match.index+lastLength)}),lastLastIndex===str.length?(!nativ.test.call(separator,"")||lastLength)&&output.push(""):output.push(str.slice(lastLastIndex)),separator.lastIndex=origLastIndex,output.length>limit?output.slice(0,limit):output},XRegExp.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(match,scope){if(match[1]==="B"&&scope===defaultScope)return match[0];throw new SyntaxError("Invalid escape "+match[0])},{scope:"all",leadChar:"\\"}),XRegExp.addToken(/\\u{([\dA-Fa-f]+)}/,function(match,scope,flags){var code=dec(match[1]);if(code>1114111)throw new SyntaxError("Invalid Unicode code point "+match[0]);if(code<=65535)return"\\u"+pad4(hex(code));if(hasNativeU&&flags.indexOf("u")!==-1)return match[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u")},{scope:"all",leadChar:"\\"}),XRegExp.addToken(/\[(\^?)\]/,function(match){return match[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["}),XRegExp.addToken(/\(\?#[^)]*\)/,getContextualTokenSeparator,{leadChar:"("}),XRegExp.addToken(/\s+|#[^\n]*\n?/,getContextualTokenSeparator,{flag:"x"}),XRegExp.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",leadChar:"."}),XRegExp.addToken(/\\k<([\w$]+)>/,function(match){var index=isNaN(match[1])?this.captureNames.indexOf(match[1])+1:+match[1],endIndex=match.index+match[0].length;if(!index||index>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+match[0]);return"\\"+index+(endIndex===match.input.length||isNaN(match.input[endIndex])?"":"(?:)")},{leadChar:"\\"}),XRegExp.addToken(/\\(\d+)/,function(match,scope){if(!(scope===defaultScope&&/^[1-9]/.test(match[1])&&+match[1]<=this.captureNames.length)&&match[1]!=="0")throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+match[0]);return match[0]},{scope:"all",leadChar:"\\"}),XRegExp.addToken(/\(\?P?<([\w$]+)>/,function(match){if(!isNaN(match[1]))throw new SyntaxError("Cannot use integer as capture name "+match[0]);if(match[1]==="length"||match[1]==="__proto__")throw new SyntaxError("Cannot use reserved word as capture name "+match[0]);if(this.captureNames.indexOf(match[1])!==-1)throw new SyntaxError("Cannot use same name for multiple groups "+match[0]);return this.captureNames.push(match[1]),this.hasNamedCapture=!0,"("},{leadChar:"("}),XRegExp.addToken(/\((?!\?)/,function(match,scope,flags){return flags.indexOf("n")!==-1?"(?:":(this.captureNames.push(null),"(")},{optionalFlags:"n",leadChar:"("}),exports.default=XRegExp,module.exports=exports.default},28593(module){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){for(var target={},i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source)hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target}},76089(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AspectList=void 0;class AspectList{constructor(entries){this.entries=entries}get(aspectId){const aspectEntry=this.entries.find(entry=>entry.aspectId===aspectId);if(!!aspectEntry)return aspectEntry.aspectData}toObject(){return{entries:this.entries}}static fromObject(obj){const entries=obj?.entries||[];return new AspectList(entries)}static fromJson(obj){const entries=obj?.entries?.map(({aspectId,aspectData})=>({aspectId,aspectData:JSON.parse(aspectData)}))||[];return new AspectList(entries)}}exports.AspectList=AspectList},58175(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ComponentDescriptor=void 0;function _component(){const data=__webpack_require__(30266);return _component=function(){return data},data}function _aspectList(){const data=__webpack_require__(76089);return _aspectList=function(){return data},data}class ComponentDescriptor{constructor(id,aspectList){this.id=id,this.aspectList=aspectList}get scope(){return this.id.scope}get(aspectId){return this.aspectList.get(aspectId)}toObject(){return{id:this.id.toString(),aspectList:this.aspectList.toObject()}}async isModified(){return!1}stringify(){return JSON.stringify(this.toObject())}toString(){return this.stringify()}static fromObject({id,aspectList}){const aspects=_aspectList().AspectList.fromObject(aspectList);return new ComponentDescriptor(_component().ComponentID.fromString(id),aspects)}static fromArray(componentsDescriptorProps){return componentsDescriptorProps.map(component=>ComponentDescriptor.fromObject(component))}}exports.ComponentDescriptor=ComponentDescriptor},95350(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AspectDataEntry",{enumerable:!0,get:function(){return _aspectList().AspectDataEntry}}),Object.defineProperty(exports,"AspectList",{enumerable:!0,get:function(){return _aspectList().AspectList}}),Object.defineProperty(exports,"AspectListProps",{enumerable:!0,get:function(){return _aspectList().AspectListProps}}),Object.defineProperty(exports,"ComponentDescriptor",{enumerable:!0,get:function(){return _componentDescriptor().ComponentDescriptor}}),Object.defineProperty(exports,"ComponentDescriptorProps",{enumerable:!0,get:function(){return _componentDescriptor().ComponentDescriptorProps}});function _componentDescriptor(){const data=__webpack_require__(58175);return _componentDescriptor=function(){return data},data}function _aspectList(){const data=__webpack_require__(76089);return _aspectList=function(){return data},data}},7364(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CircularDependencies=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class CircularDependencies extends _componentIssue().ComponentIssue{description="circular dependencies";solution="run `bit deps circular` to get the component-ids participating in the circular";isTagBlocker=!0;outputForCLI(){return(0,_componentIssue().formatTitle)(this.descriptionWithSolution,!1)}}exports.CircularDependencies=CircularDependencies},71848(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ISSUE_FORMAT_SPACE_COUNT=exports.ISSUE_FORMAT_SPACE=exports.ComponentIssue=void 0,exports.componentIssueToString=componentIssueToString,exports.deserializeWithBitId=deserializeWithBitId,exports.formatTitle=formatTitle;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _componentId(){const data=__webpack_require__(19100);return _componentId=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const ISSUE_FORMAT_SPACE_COUNT=exports.ISSUE_FORMAT_SPACE_COUNT=10,ISSUE_FORMAT_SPACE=exports.ISSUE_FORMAT_SPACE=" ".repeat(ISSUE_FORMAT_SPACE_COUNT);class ComponentIssue{isTagBlocker=!0;isCacheBlocker=!0;formatDataFunction=componentIssueToString;get descriptionWithSolution(){const solution=this.formatSolution();return`${this.description} ${solution}`}formatSolution(){return this.solution?` (${this.solution})`:""}outputForCLI(){return formatTitle(this.descriptionWithSolution)+_chalk().default.white(this.dataToString())}dataToString(){return Object.keys(this.data).map(k=>`${ISSUE_FORMAT_SPACE}${k} -> ${this.formatDataFunction(this.data[k])}`).join(`
516
516
  `)}toObject(){return{type:this.constructor.name,description:this.description,solution:this.solution,isTagBlocker:this.isTagBlocker,data:this.data}}serialize(){return JSON.stringify(this.data)}deserialize(data){return JSON.parse(data)}}exports.ComponentIssue=ComponentIssue;function formatTitle(issueTitle,hasMoreData=!0){const colon=hasMoreData?":":"";return _chalk().default.yellow(`
517
517
  ${issueTitle}${colon}
518
- `)}function componentIssueToString(value){return Array.isArray(value)?value.join(", "):value}function deserializeWithBitId(dataStr){const data=JSON.parse(dataStr);return Object.keys(data).forEach(filePath=>{data[filePath]=data[filePath].map(id=>new(_componentId()).ComponentID(id))}),data}},43968(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DeprecatedDependencies=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class DeprecatedDependencies extends _componentIssue().ComponentIssue{description="dependencies used in the code were deprecated";solution="replace them with alternative dependencies. or remove them if not needed anymore";isTagBlocker=!1;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.DeprecatedDependencies=DeprecatedDependencies},84179(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DuplicateComponentAndPackage=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class DuplicateComponentAndPackage extends _componentIssue().ComponentIssue{description="tracked component added as a package";solution="either remove the package from the workspace.jsonc (bit uninstall) or remove the component (bit remove)";isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data}}exports.DuplicateComponentAndPackage=DuplicateComponentAndPackage},9264(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExternalEnvWithoutVersion=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ExternalEnvWithoutVersion extends _componentIssue().ComponentIssue{description="failed loading env - external env without a version";solution="";isTagBlocker=!0;formatSolution(){return`(run "bit env set ${this.data.componentId} ${this.data.envId}")`}dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.envId}}exports.ExternalEnvWithoutVersion=ExternalEnvWithoutVersion},68131(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImportFromDirectory=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ImportFromDirectory extends _componentIssue().ComponentIssue{description="relative import from a directory";solution="change the import statement to a specific file";data={};isCacheBlocker=!1;isTagBlocker=!1}exports.ImportFromDirectory=ImportFromDirectory},13916(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImportNonMainFiles=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ImportNonMainFiles extends _componentIssue().ComponentIssue{description="importing non-main files";solution="the dependency should expose its API from the main file";data={};isCacheBlocker=!1}exports.ImportNonMainFiles=ImportNonMainFiles},57333(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ComponentIssue",{enumerable:!0,get:function(){return _componentIssue().ComponentIssue}}),Object.defineProperty(exports,"IssuesClasses",{enumerable:!0,get:function(){return _issuesList().IssuesClasses}}),Object.defineProperty(exports,"IssuesList",{enumerable:!0,get:function(){return _issuesList().IssuesList}}),Object.defineProperty(exports,"IssuesNames",{enumerable:!0,get:function(){return _issuesList().IssuesNames}}),Object.defineProperty(exports,"MISSING_DEPS_SPACE",{enumerable:!0,get:function(){return _componentIssue().ISSUE_FORMAT_SPACE}}),Object.defineProperty(exports,"MISSING_NESTED_DEPS_SPACE",{enumerable:!0,get:function(){return _untrackedDependencies().MISSING_NESTED_DEPS_SPACE}}),Object.defineProperty(exports,"RelativeComponentsAuthoredEntry",{enumerable:!0,get:function(){return _relativeComponentsAuthored().RelativeComponentsAuthoredEntry}}),Object.defineProperty(exports,"UntrackedFileDependencyEntry",{enumerable:!0,get:function(){return _untrackedDependencies().UntrackedFileDependencyEntry}}),Object.defineProperty(exports,"renderCycles",{enumerable:!0,get:function(){return _renderCycles().renderCycles}});function _issuesList(){const data=__webpack_require__(64770);return _issuesList=function(){return data},data}function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}function _untrackedDependencies(){const data=__webpack_require__(11558);return _untrackedDependencies=function(){return data},data}function _relativeComponentsAuthored(){const data=__webpack_require__(90477);return _relativeComponentsAuthored=function(){return data},data}function _renderCycles(){const data=__webpack_require__(34761);return _renderCycles=function(){return data},data}},64770(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IssuesList=exports.IssuesClasses=void 0;function _stripAnsi(){const data=_interopRequireDefault(__webpack_require__(22255));return _stripAnsi=function(){return data},data}function _importNonMainFiles(){const data=__webpack_require__(13916);return _importNonMainFiles=function(){return data},data}function _missingDependenciesOnFs(){const data=__webpack_require__(45185);return _missingDependenciesOnFs=function(){return data},data}function _missingDists(){const data=__webpack_require__(80377);return _missingDists=function(){return data},data}function _missingPackagesDependenciesOnFs(){const data=__webpack_require__(75983);return _missingPackagesDependenciesOnFs=function(){return data},data}function _missingManuallyConfiguredPackages(){const data=__webpack_require__(86840);return _missingManuallyConfiguredPackages=function(){return data},data}function _parseErrors(){const data=__webpack_require__(9992);return _parseErrors=function(){return data},data}function _relativeComponents(){const data=__webpack_require__(10398);return _relativeComponents=function(){return data},data}function _relativeComponentsAuthored(){const data=__webpack_require__(90477);return _relativeComponentsAuthored=function(){return data},data}function _resolveErrors(){const data=__webpack_require__(50957);return _resolveErrors=function(){return data},data}function _untrackedDependencies(){const data=__webpack_require__(11558);return _untrackedDependencies=function(){return data},data}function _legacyInsideHarmony(){const data=__webpack_require__(85316);return _legacyInsideHarmony=function(){return data},data}function _multipleEnvs(){const data=__webpack_require__(638);return _multipleEnvs=function(){return data},data}function _missingLinksFromNmToSrc(){const data=__webpack_require__(19753);return _missingLinksFromNmToSrc=function(){return data},data}function _circularDependencies(){const data=__webpack_require__(7364);return _circularDependencies=function(){return data},data}function _duplicateComponentAndPackage(){const data=__webpack_require__(84179);return _duplicateComponentAndPackage=function(){return data},data}function _mergeConfigHasConflict(){const data=__webpack_require__(81652);return _mergeConfigHasConflict=function(){return data},data}function _nonLoadedEnv(){const data=__webpack_require__(43264);return _nonLoadedEnv=function(){return data},data}function _externalEnvWithoutVersion(){const data=__webpack_require__(9264);return _externalEnvWithoutVersion=function(){return data},data}function _removedDependencies(){const data=__webpack_require__(92455);return _removedDependencies=function(){return data},data}function _selfReference(){const data=__webpack_require__(37395);return _selfReference=function(){return data},data}function _importFromDirectory(){const data=__webpack_require__(68131);return _importFromDirectory=function(){return data},data}function _deprecatedDependencies(){const data=__webpack_require__(43968);return _deprecatedDependencies=function(){return data},data}function _removedEnv(){const data=__webpack_require__(75699);return _removedEnv=function(){return data},data}function _loadFailures(){const data=__webpack_require__(42357);return _loadFailures=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const IssuesClasses=exports.IssuesClasses={MissingPackagesDependenciesOnFs:_missingPackagesDependenciesOnFs().MissingPackagesDependenciesOnFs,MissingManuallyConfiguredPackages:_missingManuallyConfiguredPackages().MissingManuallyConfiguredPackages,UntrackedDependencies:_untrackedDependencies().UntrackedDependencies,ResolveErrors:_resolveErrors().ResolveErrors,RelativeComponents:_relativeComponents().RelativeComponents,RelativeComponentsAuthored:_relativeComponentsAuthored().RelativeComponentsAuthored,ParseErrors:_parseErrors().ParseErrors,MissingDists:_missingDists().MissingDists,LegacyInsideHarmony:_legacyInsideHarmony().LegacyInsideHarmony,MissingDependenciesOnFs:_missingDependenciesOnFs().MissingDependenciesOnFs,ImportNonMainFiles:_importNonMainFiles().ImportNonMainFiles,MultipleEnvs:_multipleEnvs().MultipleEnvs,MissingLinksFromNodeModulesToSrc:_missingLinksFromNmToSrc().MissingLinksFromNodeModulesToSrc,CircularDependencies:_circularDependencies().CircularDependencies,DuplicateComponentAndPackage:_duplicateComponentAndPackage().DuplicateComponentAndPackage,MergeConfigHasConflict:_mergeConfigHasConflict().MergeConfigHasConflict,NonLoadedEnv:_nonLoadedEnv().NonLoadedEnv,ExternalEnvWithoutVersion:_externalEnvWithoutVersion().ExternalEnvWithoutVersion,RemovedDependencies:_removedDependencies().RemovedDependencies,RemovedEnv:_removedEnv().RemovedEnv,DeprecatedDependencies:_deprecatedDependencies().DeprecatedDependencies,SelfReference:_selfReference().SelfReference,ImportFromDirectory:_importFromDirectory().ImportFromDirectory,LoadFailures:_loadFailures().LoadFailures};class IssuesList{constructor(_issues=[]){this._issues=_issues}get count(){return this._issues.length}isEmpty(){return this._issues.length===0}outputForCLI(){return this._issues.map(issue=>issue.outputForCLI()).join("")}toObject(){return this._issues.map(issue=>issue.toObject())}toObjectWithDataAsString(){return this._issues.map(issue=>({...issue.toObject(),data:(0,_stripAnsi().default)(issue.dataToString()).trim()}))}add(issue){this._issues.push(issue)}delete(IssueClass){this._issues=this._issues.filter(issue=>issue.constructor.name!==IssueClass.name)}hasTagBlockerIssues(){return this._issues.some(issue=>issue.isTagBlocker)}getIssue(IssueClass){return this.getIssueByName(IssueClass.name)}getIssueByName(issueType){return this._issues.find(issue=>issue.constructor.name===issueType)}getAllIssues(){return this._issues}getAllIssueNames(){return this._issues.map(issue=>issue.constructor.name)}createIssue(IssueClass){const newIssue=new IssueClass;return this.add(newIssue),newIssue}getOrCreate(IssueClass){return this.getIssue(IssueClass)||this.createIssue(IssueClass)}shouldBlockSavingInCache(){return this._issues.some(issue=>issue.isCacheBlocker)}shouldBlockTagging(){return this._issues.some(issue=>issue.isTagBlocker)}filterNonTagBlocking(){return new IssuesList(this._issues.filter(issue=>issue.isTagBlocker))}toObjectIncludeDataAsString(){return this._issues.map(issue=>({...issue.toObject(),dataAsString:(0,_stripAnsi().default)(issue.dataToString())}))}serialize(){return this._issues.map(issue=>({type:issue.constructor.name,data:issue.serialize()}))}static deserialize(data){if(!Array.isArray(data))return new IssuesList;const issues=data.map(issue=>{const ClassName=issue.type;if(!Object.keys(IssuesClasses).includes(ClassName))throw new Error(`issue type "${ClassName}" is not recognized.
518
+ `)}function componentIssueToString(value){return Array.isArray(value)?value.join(", "):value}function deserializeWithBitId(dataStr){const data=JSON.parse(dataStr);return Object.keys(data).forEach(filePath=>{data[filePath]=data[filePath].map(id=>new(_componentId()).ComponentID(id))}),data}},43968(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DeprecatedDependencies=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class DeprecatedDependencies extends _componentIssue().ComponentIssue{description="dependencies used in the code were deprecated";solution="replace them with alternative dependencies. or remove them if not needed anymore";isTagBlocker=!1;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.DeprecatedDependencies=DeprecatedDependencies},84179(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DuplicateComponentAndPackage=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class DuplicateComponentAndPackage extends _componentIssue().ComponentIssue{description="tracked component added as a package";solution="either remove the package from the workspace.jsonc (bit uninstall) or remove the component (bit remove)";isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data}}exports.DuplicateComponentAndPackage=DuplicateComponentAndPackage},9264(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ExternalEnvWithoutVersion=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ExternalEnvWithoutVersion extends _componentIssue().ComponentIssue{description="failed loading env - external env without a version";solution="";isTagBlocker=!0;formatSolution(){return`(run "bit env set ${this.data.componentId} ${this.data.envId}")`}dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.envId}}exports.ExternalEnvWithoutVersion=ExternalEnvWithoutVersion},68131(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImportFromDirectory=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ImportFromDirectory extends _componentIssue().ComponentIssue{description="relative import from a directory";solution="change the import statement to a specific file";data={};isCacheBlocker=!1;isTagBlocker=!1}exports.ImportFromDirectory=ImportFromDirectory},13916(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ImportNonMainFiles=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ImportNonMainFiles extends _componentIssue().ComponentIssue{description="importing non-main files";solution="the dependency should expose its API from the main file";data={};isCacheBlocker=!1}exports.ImportNonMainFiles=ImportNonMainFiles},57333(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"ComponentIssue",{enumerable:!0,get:function(){return _componentIssue().ComponentIssue}}),Object.defineProperty(exports,"IssuesClasses",{enumerable:!0,get:function(){return _issuesList().IssuesClasses}}),Object.defineProperty(exports,"IssuesList",{enumerable:!0,get:function(){return _issuesList().IssuesList}}),Object.defineProperty(exports,"IssuesNames",{enumerable:!0,get:function(){return _issuesList().IssuesNames}}),Object.defineProperty(exports,"MISSING_DEPS_SPACE",{enumerable:!0,get:function(){return _componentIssue().ISSUE_FORMAT_SPACE}}),Object.defineProperty(exports,"MISSING_NESTED_DEPS_SPACE",{enumerable:!0,get:function(){return _untrackedDependencies().MISSING_NESTED_DEPS_SPACE}}),Object.defineProperty(exports,"RelativeComponentsAuthoredEntry",{enumerable:!0,get:function(){return _relativeComponentsAuthored().RelativeComponentsAuthoredEntry}}),Object.defineProperty(exports,"UntrackedFileDependencyEntry",{enumerable:!0,get:function(){return _untrackedDependencies().UntrackedFileDependencyEntry}}),Object.defineProperty(exports,"renderCycles",{enumerable:!0,get:function(){return _renderCycles().renderCycles}});function _issuesList(){const data=__webpack_require__(64770);return _issuesList=function(){return data},data}function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}function _untrackedDependencies(){const data=__webpack_require__(11558);return _untrackedDependencies=function(){return data},data}function _relativeComponentsAuthored(){const data=__webpack_require__(90477);return _relativeComponentsAuthored=function(){return data},data}function _renderCycles(){const data=__webpack_require__(34761);return _renderCycles=function(){return data},data}},64770(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.IssuesList=exports.IssuesClasses=void 0;function _stripAnsi(){const data=_interopRequireDefault(__webpack_require__(22255));return _stripAnsi=function(){return data},data}function _importNonMainFiles(){const data=__webpack_require__(13916);return _importNonMainFiles=function(){return data},data}function _missingDependenciesOnFs(){const data=__webpack_require__(45185);return _missingDependenciesOnFs=function(){return data},data}function _missingDists(){const data=__webpack_require__(80377);return _missingDists=function(){return data},data}function _missingPackagesDependenciesOnFs(){const data=__webpack_require__(75983);return _missingPackagesDependenciesOnFs=function(){return data},data}function _missingManuallyConfiguredPackages(){const data=__webpack_require__(86840);return _missingManuallyConfiguredPackages=function(){return data},data}function _parseErrors(){const data=__webpack_require__(9992);return _parseErrors=function(){return data},data}function _relativeComponents(){const data=__webpack_require__(10398);return _relativeComponents=function(){return data},data}function _relativeComponentsAuthored(){const data=__webpack_require__(90477);return _relativeComponentsAuthored=function(){return data},data}function _resolveErrors(){const data=__webpack_require__(50957);return _resolveErrors=function(){return data},data}function _untrackedDependencies(){const data=__webpack_require__(11558);return _untrackedDependencies=function(){return data},data}function _legacyInsideHarmony(){const data=__webpack_require__(85316);return _legacyInsideHarmony=function(){return data},data}function _multipleEnvs(){const data=__webpack_require__(638);return _multipleEnvs=function(){return data},data}function _missingLinksFromNmToSrc(){const data=__webpack_require__(19753);return _missingLinksFromNmToSrc=function(){return data},data}function _circularDependencies(){const data=__webpack_require__(7364);return _circularDependencies=function(){return data},data}function _duplicateComponentAndPackage(){const data=__webpack_require__(84179);return _duplicateComponentAndPackage=function(){return data},data}function _mergeConfigHasConflict(){const data=__webpack_require__(81652);return _mergeConfigHasConflict=function(){return data},data}function _nonLoadedEnv(){const data=__webpack_require__(43264);return _nonLoadedEnv=function(){return data},data}function _externalEnvWithoutVersion(){const data=__webpack_require__(9264);return _externalEnvWithoutVersion=function(){return data},data}function _removedDependencies(){const data=__webpack_require__(92455);return _removedDependencies=function(){return data},data}function _selfReference(){const data=__webpack_require__(37395);return _selfReference=function(){return data},data}function _importFromDirectory(){const data=__webpack_require__(68131);return _importFromDirectory=function(){return data},data}function _deprecatedDependencies(){const data=__webpack_require__(43968);return _deprecatedDependencies=function(){return data},data}function _removedEnv(){const data=__webpack_require__(75699);return _removedEnv=function(){return data},data}function _loadFailures(){const data=__webpack_require__(42357);return _loadFailures=function(){return data},data}function _pinnedDependencies(){const data=__webpack_require__(73773);return _pinnedDependencies=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const IssuesClasses=exports.IssuesClasses={MissingPackagesDependenciesOnFs:_missingPackagesDependenciesOnFs().MissingPackagesDependenciesOnFs,MissingManuallyConfiguredPackages:_missingManuallyConfiguredPackages().MissingManuallyConfiguredPackages,UntrackedDependencies:_untrackedDependencies().UntrackedDependencies,ResolveErrors:_resolveErrors().ResolveErrors,RelativeComponents:_relativeComponents().RelativeComponents,RelativeComponentsAuthored:_relativeComponentsAuthored().RelativeComponentsAuthored,ParseErrors:_parseErrors().ParseErrors,MissingDists:_missingDists().MissingDists,LegacyInsideHarmony:_legacyInsideHarmony().LegacyInsideHarmony,MissingDependenciesOnFs:_missingDependenciesOnFs().MissingDependenciesOnFs,ImportNonMainFiles:_importNonMainFiles().ImportNonMainFiles,MultipleEnvs:_multipleEnvs().MultipleEnvs,MissingLinksFromNodeModulesToSrc:_missingLinksFromNmToSrc().MissingLinksFromNodeModulesToSrc,CircularDependencies:_circularDependencies().CircularDependencies,DuplicateComponentAndPackage:_duplicateComponentAndPackage().DuplicateComponentAndPackage,MergeConfigHasConflict:_mergeConfigHasConflict().MergeConfigHasConflict,NonLoadedEnv:_nonLoadedEnv().NonLoadedEnv,ExternalEnvWithoutVersion:_externalEnvWithoutVersion().ExternalEnvWithoutVersion,RemovedDependencies:_removedDependencies().RemovedDependencies,RemovedEnv:_removedEnv().RemovedEnv,DeprecatedDependencies:_deprecatedDependencies().DeprecatedDependencies,SelfReference:_selfReference().SelfReference,ImportFromDirectory:_importFromDirectory().ImportFromDirectory,LoadFailures:_loadFailures().LoadFailures,PinnedDependencies:_pinnedDependencies().PinnedDependencies};class IssuesList{constructor(_issues=[]){this._issues=_issues}get count(){return this._issues.length}isEmpty(){return this._issues.length===0}outputForCLI(){return this._issues.map(issue=>issue.outputForCLI()).join("")}toObject(){return this._issues.map(issue=>issue.toObject())}toObjectWithDataAsString(){return this._issues.map(issue=>({...issue.toObject(),data:(0,_stripAnsi().default)(issue.dataToString()).trim()}))}add(issue){this._issues.push(issue)}delete(IssueClass){this._issues=this._issues.filter(issue=>issue.constructor.name!==IssueClass.name)}hasTagBlockerIssues(){return this._issues.some(issue=>issue.isTagBlocker)}getIssue(IssueClass){return this.getIssueByName(IssueClass.name)}getIssueByName(issueType){return this._issues.find(issue=>issue.constructor.name===issueType)}getAllIssues(){return this._issues}getAllIssueNames(){return this._issues.map(issue=>issue.constructor.name)}createIssue(IssueClass){const newIssue=new IssueClass;return this.add(newIssue),newIssue}getOrCreate(IssueClass){return this.getIssue(IssueClass)||this.createIssue(IssueClass)}shouldBlockSavingInCache(){return this._issues.some(issue=>issue.isCacheBlocker)}shouldBlockTagging(){return this._issues.some(issue=>issue.isTagBlocker)}filterNonTagBlocking(){return new IssuesList(this._issues.filter(issue=>issue.isTagBlocker))}toObjectIncludeDataAsString(){return this._issues.map(issue=>({...issue.toObject(),dataAsString:(0,_stripAnsi().default)(issue.dataToString())}))}serialize(){return this._issues.map(issue=>({type:issue.constructor.name,data:issue.serialize()}))}static deserialize(data){if(!Array.isArray(data))return new IssuesList;const issues=data.map(issue=>{const ClassName=issue.type;if(!Object.keys(IssuesClasses).includes(ClassName))throw new Error(`issue type "${ClassName}" is not recognized.
519
519
  the following are permitted ${Object.keys(IssuesClasses).join(", ")}`);const issueInstance=new IssuesClasses[ClassName];return issueInstance.data=issueInstance.deserialize(issue.data),issueInstance});return new IssuesList(issues)}}exports.IssuesList=IssuesList},85316(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LegacyInsideHarmony=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class LegacyInsideHarmony extends _componentIssue().ComponentIssue{description="legacy component inside Harmony workspace";solution="remove the component and re-create it via Harmony";isTagBlocker=!0;outputForCLI(){return(0,_componentIssue().formatTitle)(this.descriptionWithSolution,!1)}}exports.LegacyInsideHarmony=LegacyInsideHarmony},42357(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoadFailures=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class LoadFailures extends _componentIssue().ComponentIssue{description="failed loading some aspects/envs of this component (the load continued without them)";solution='see the error details below, often resolved by running "bit install" or "bit compile"';data=[];isTagBlocker=!1;isCacheBlocker=!1;dataToString(){return this.data.map(entry=>`${_componentIssue().ISSUE_FORMAT_SPACE}${entry.failedId} (during ${entry.phase}) -> ${entry.error}`).join(`
520
520
  `)}}exports.LoadFailures=LoadFailures},81652(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MergeConfigHasConflict=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MergeConfigHasConflict extends _componentIssue().ComponentIssue{description="merge-conflict file has unresolved conflicts";solution="edit the merge-conflict file in the workspace root and resolve the conflicts";isTagBlocker=!0;outputForCLI(){return(0,_componentIssue().formatTitle)(this.descriptionWithSolution,!1)}}exports.MergeConfigHasConflict=MergeConfigHasConflict},45185(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingDependenciesOnFs=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MissingDependenciesOnFs extends _componentIssue().ComponentIssue{description="non-existing dependency files";solution="make sure all files exists on your workspace";data={}}exports.MissingDependenciesOnFs=MissingDependenciesOnFs},80377(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingDists=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MissingDists extends _componentIssue().ComponentIssue{description="missing dists";solution='run "bit compile"';isTagBlocker=!1;outputForCLI(){return(0,_componentIssue().formatTitle)(this.descriptionWithSolution,!1)}}exports.MissingDists=MissingDists},19753(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingLinksFromNodeModulesToSrc=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MissingLinksFromNodeModulesToSrc extends _componentIssue().ComponentIssue{description="missing links from node_modules to source";solution='run "bit link"';isTagBlocker=!1;outputForCLI(){return(0,_componentIssue().formatTitle)(this.descriptionWithSolution,!1)}}exports.MissingLinksFromNodeModulesToSrc=MissingLinksFromNodeModulesToSrc},86840(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingManuallyConfiguredPackages=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MissingManuallyConfiguredPackages extends _componentIssue().ComponentIssue{description="missing packages that were manually set";solution='run "bit install"';data=[];dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.MissingManuallyConfiguredPackages=MissingManuallyConfiguredPackages},75983(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MissingPackagesDependenciesOnFs=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MissingPackagesDependenciesOnFs extends _componentIssue().ComponentIssue{description="missing packages or links from node_modules to the source";solution='run "bit install --add-missing-deps" to fix both issues';data=[];dataToString(){return this.data.map(d=>`${_componentIssue().ISSUE_FORMAT_SPACE}${d.filePath} -> ${this.formatDataFunction(d.missingPackages)}`).join(`
521
- `)}}exports.MissingPackagesDependenciesOnFs=MissingPackagesDependenciesOnFs},638(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MultipleEnvs=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MultipleEnvs extends _componentIssue().ComponentIssue{description="multiple envs";solution=`set the desired env by running "bit env set <component> <env>", if it doesn't work, run "bit aspect unset <component> <unwanted-env-id>". to keep troubleshooting run "bit aspect list <component-id>"`;isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.MultipleEnvs=MultipleEnvs},43264(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NonLoadedEnv=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class NonLoadedEnv extends _componentIssue().ComponentIssue{description="failed loading env";solution='run "bit install"';isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data}}exports.NonLoadedEnv=NonLoadedEnv},9992(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParseErrors=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ParseErrors extends _componentIssue().ComponentIssue{description="error found while parsing the file";solution="edit the file and fix the parsing error";data={}}exports.ParseErrors=ParseErrors},90477(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RelativeComponentsAuthored=void 0;function _componentId(){const data=__webpack_require__(19100);return _componentId=function(){return data},data}function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RelativeComponentsAuthored extends _componentIssue().ComponentIssue{description="components with relative import statements found";solution='replace to module paths or use "bit link --rewire" to replace';data={};isCacheBlocker=!1;formatDataFunction=relativeComponentsAuthoredIssuesToString;serialize(){const obj=Object.keys(this.data).reduce((acc,fileName)=>(acc[fileName]=this.data[fileName].map(record=>({importSource:record.importSource,componentId:record.componentId.serialize(),relativePath:record.relativePath})),acc),{});return JSON.stringify(obj)}deserialize(dataStr){const data=JSON.parse(dataStr);return Object.keys(data).forEach(fileName=>{data[fileName]=data[fileName].map(record=>({importSource:record.importSource,componentId:_componentId().ComponentID.deserialize(record.componentId),relativePath:record.relativePath}))}),data}}exports.RelativeComponentsAuthored=RelativeComponentsAuthored;function relativeComponentsAuthoredIssuesToString(relativeEntries){const stringifyEntry=entry=>`"${entry.importSource}" (${entry.componentId.toString()})`;return relativeEntries.map(stringifyEntry).join(", ")}},10398(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RelativeComponents=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RelativeComponents extends _componentIssue().ComponentIssue{description="components with relative import statements found";solution="use module paths for imported components";data={};isCacheBlocker=!1;deserialize(data){return(0,_componentIssue().deserializeWithBitId)(data)}}exports.RelativeComponents=RelativeComponents},92455(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RemovedDependencies=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RemovedDependencies extends _componentIssue().ComponentIssue{description="dependencies used in the code were deleted";solution='if the dependencies are no longer needed, remove them from the code. otherwise, to get it installed from main run "bit install <missing dep>". to undo the delete, run "bit recover"';isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.RemovedDependencies=RemovedDependencies},75699(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RemovedEnv=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RemovedEnv extends _componentIssue().ComponentIssue{description="the env of this component is deleted";solution='use "bit env set/replace" to set a new env or a different version of this env. to undo the delete, run "bit recover"';isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data}}exports.RemovedEnv=RemovedEnv},34761(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.renderCycles=renderCycles;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const MAX_HORIZONTAL_WIDTH=90,ARROW=" \u2500\u2500\u2500> ",ARROW_LEN=8;function shortenNames(cycle){const parsed=cycle.slice(0,-1).map(id=>{const atIdx=id.lastIndexOf("@"),version=atIdx>0?id.slice(atIdx+1):void 0,withoutVer=atIdx>0?id.slice(0,atIdx):id,slashIdx=withoutVer.lastIndexOf("/"),scope=slashIdx>0?withoutVer.slice(0,slashIdx):void 0,name=slashIdx>0?withoutVer.slice(slashIdx+1):withoutVer;return{scope,name,version}}),commonScope=new Set(parsed.map(p=>p.scope)).size===1?parsed[0].scope:void 0,commonVersion=new Set(parsed.map(p=>p.version)).size===1?parsed[0].version:void 0;return{names:parsed.map(p=>{let display=commonScope?p.name:p.scope?`${p.scope}/${p.name}`:p.name;return!commonVersion&&p.version&&(display+=`@${p.version}`),display}),scope:commonScope,version:commonVersion}}function renderHeader(cycleIndex,totalCycles,componentCount,scope,version){const isSelf=componentCount===1;let header="";return totalCycles>1&&cycleIndex!==void 0?header+=`Cycle ${cycleIndex+1} of ${totalCycles}`:header+="Cycle",header+=isSelf?" - self-dependency":` - ${componentCount} components`,scope&&(header+=` (scope: ${scope})`),version&&(header+=` @${version}`),_chalk().default.bold(header)}function renderSelfCycle(name){return` ${_chalk().default.cyan(name)} \u27F2`}function renderHorizontal(names){const chainParts=[],plainParts=[];for(let i=0;i<names.length;i++)chainParts.push(_chalk().default.cyan(names[i])),plainParts.push(names[i]),i<names.length-1&&(chainParts.push(_chalk().default.dim(ARROW)),plainParts.push(ARROW));const chainStr=chainParts.join(""),plainLen=plainParts.join("").length,closingSuffix=_chalk().default.red(" \u2500\u2500\u2500\u2518"),totalWidth=plainLen+6,topBar=_chalk().default.red("\u250C")+_chalk().default.red("\u2500".repeat(totalWidth-2))+_chalk().default.red("\u2510"),sideLine=" ".repeat(totalWidth-1)+_chalk().default.red("\u2502"),entryArrow=_chalk().default.red("\u25BC")+" ".repeat(totalWidth-2)+_chalk().default.red("\u2502");return[topBar,sideLine,entryArrow,chainStr+closingSuffix].join(`
521
+ `)}}exports.MissingPackagesDependenciesOnFs=MissingPackagesDependenciesOnFs},638(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MultipleEnvs=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class MultipleEnvs extends _componentIssue().ComponentIssue{description="multiple envs";solution=`set the desired env by running "bit env set <component> <env>", if it doesn't work, run "bit aspect unset <component> <unwanted-env-id>". to keep troubleshooting run "bit aspect list <component-id>"`;isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.MultipleEnvs=MultipleEnvs},43264(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NonLoadedEnv=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class NonLoadedEnv extends _componentIssue().ComponentIssue{description="failed loading env";solution='run "bit install"';isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data}}exports.NonLoadedEnv=NonLoadedEnv},9992(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParseErrors=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class ParseErrors extends _componentIssue().ComponentIssue{description="error found while parsing the file";solution="edit the file and fix the parsing error";data={}}exports.ParseErrors=ParseErrors},73773(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PinnedDependencies=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class PinnedDependencies extends _componentIssue().ComponentIssue{description='dependencies on workspace components with a version set by config ("bit deps set", variants or env), not the workspace version';solution='to use the workspace version, remove the version from the config, e.g. "bit deps unset <component> <package>"';data=[];isTagBlocker=!1;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.PinnedDependencies=PinnedDependencies},90477(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RelativeComponentsAuthored=void 0;function _componentId(){const data=__webpack_require__(19100);return _componentId=function(){return data},data}function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RelativeComponentsAuthored extends _componentIssue().ComponentIssue{description="components with relative import statements found";solution='replace to module paths or use "bit link --rewire" to replace';data={};isCacheBlocker=!1;formatDataFunction=relativeComponentsAuthoredIssuesToString;serialize(){const obj=Object.keys(this.data).reduce((acc,fileName)=>(acc[fileName]=this.data[fileName].map(record=>({importSource:record.importSource,componentId:record.componentId.serialize(),relativePath:record.relativePath})),acc),{});return JSON.stringify(obj)}deserialize(dataStr){const data=JSON.parse(dataStr);return Object.keys(data).forEach(fileName=>{data[fileName]=data[fileName].map(record=>({importSource:record.importSource,componentId:_componentId().ComponentID.deserialize(record.componentId),relativePath:record.relativePath}))}),data}}exports.RelativeComponentsAuthored=RelativeComponentsAuthored;function relativeComponentsAuthoredIssuesToString(relativeEntries){const stringifyEntry=entry=>`"${entry.importSource}" (${entry.componentId.toString()})`;return relativeEntries.map(stringifyEntry).join(", ")}},10398(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RelativeComponents=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RelativeComponents extends _componentIssue().ComponentIssue{description="components with relative import statements found";solution="use module paths for imported components";data={};isCacheBlocker=!1;deserialize(data){return(0,_componentIssue().deserializeWithBitId)(data)}}exports.RelativeComponents=RelativeComponents},92455(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RemovedDependencies=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RemovedDependencies extends _componentIssue().ComponentIssue{description="dependencies used in the code were deleted";solution='if the dependencies are no longer needed, remove them from the code. otherwise, to get it installed from main run "bit install <missing dep>". to undo the delete, run "bit recover"';isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data.join(", ")}}exports.RemovedDependencies=RemovedDependencies},75699(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RemovedEnv=void 0;function _componentIssue(){const data=__webpack_require__(71848);return _componentIssue=function(){return data},data}class RemovedEnv extends _componentIssue().ComponentIssue{description="the env of this component is deleted";solution='use "bit env set/replace" to set a new env or a different version of this env. to undo the delete, run "bit recover"';isTagBlocker=!0;dataToString(){return _componentIssue().ISSUE_FORMAT_SPACE+this.data}}exports.RemovedEnv=RemovedEnv},34761(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.renderCycles=renderCycles;function _chalk(){const data=_interopRequireDefault(__webpack_require__(52404));return _chalk=function(){return data},data}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const MAX_HORIZONTAL_WIDTH=90,ARROW=" \u2500\u2500\u2500> ",ARROW_LEN=8;function shortenNames(cycle){const parsed=cycle.slice(0,-1).map(id=>{const atIdx=id.lastIndexOf("@"),version=atIdx>0?id.slice(atIdx+1):void 0,withoutVer=atIdx>0?id.slice(0,atIdx):id,slashIdx=withoutVer.lastIndexOf("/"),scope=slashIdx>0?withoutVer.slice(0,slashIdx):void 0,name=slashIdx>0?withoutVer.slice(slashIdx+1):withoutVer;return{scope,name,version}}),commonScope=new Set(parsed.map(p=>p.scope)).size===1?parsed[0].scope:void 0,commonVersion=new Set(parsed.map(p=>p.version)).size===1?parsed[0].version:void 0;return{names:parsed.map(p=>{let display=commonScope?p.name:p.scope?`${p.scope}/${p.name}`:p.name;return!commonVersion&&p.version&&(display+=`@${p.version}`),display}),scope:commonScope,version:commonVersion}}function renderHeader(cycleIndex,totalCycles,componentCount,scope,version){const isSelf=componentCount===1;let header="";return totalCycles>1&&cycleIndex!==void 0?header+=`Cycle ${cycleIndex+1} of ${totalCycles}`:header+="Cycle",header+=isSelf?" - self-dependency":` - ${componentCount} components`,scope&&(header+=` (scope: ${scope})`),version&&(header+=` @${version}`),_chalk().default.bold(header)}function renderSelfCycle(name){return` ${_chalk().default.cyan(name)} \u27F2`}function renderHorizontal(names){const chainParts=[],plainParts=[];for(let i=0;i<names.length;i++)chainParts.push(_chalk().default.cyan(names[i])),plainParts.push(names[i]),i<names.length-1&&(chainParts.push(_chalk().default.dim(ARROW)),plainParts.push(ARROW));const chainStr=chainParts.join(""),plainLen=plainParts.join("").length,closingSuffix=_chalk().default.red(" \u2500\u2500\u2500\u2518"),totalWidth=plainLen+6,topBar=_chalk().default.red("\u250C")+_chalk().default.red("\u2500".repeat(totalWidth-2))+_chalk().default.red("\u2510"),sideLine=" ".repeat(totalWidth-1)+_chalk().default.red("\u2502"),entryArrow=_chalk().default.red("\u25BC")+" ".repeat(totalWidth-2)+_chalk().default.red("\u2502");return[topBar,sideLine,entryArrow,chainStr+closingSuffix].join(`
522
522
  `)}function renderVertical(names){const lines=[];for(let i=0;i<names.length;i++)lines.push(_chalk().default.cyan(names[i])),i<names.length-1&&(lines.push(_chalk().default.dim(" \u2502")),lines.push(_chalk().default.dim(" \u25BC")));return lines.push(_chalk().default.red(" \u2570\u2500\u2500\u2500\u25B6 ")+_chalk().default.cyan(names[0])+_chalk().default.dim(" (back to start)")),lines.join(`
523
523
  `)}function renderCycles(cycles){if(!cycles.length)return"No circular dependencies found";const totalCycles=cycles.length,blocks=cycles.map((cycle,idx)=>{const componentCount=cycle.length-1,{names,scope,version}=shortenNames(cycle),cycleIndex=totalCycles>1?idx:void 0,header=renderHeader(cycleIndex,totalCycles,componentCount,scope,version);let body;return componentCount===1?body=renderSelfCycle(names[0]):names.reduce((sum,n)=>sum+n.length,0)+(names.length-1)*ARROW_LEN+6<=MAX_HORIZONTAL_WIDTH?body=renderHorizontal(names):body=renderVertical(names),`${header}
524
524
 
@@ -884,4 +884,4 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
884
884
  `)),`
885
885
  }`)}function wrap(start,maybeString){var end=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return maybeString!=null&&maybeString!==""?start+maybeString+end:""}function indent(str){return wrap(" ",str.replace(/\n/g,`
886
886
  `))}function isMultiline(str){return str.indexOf(`
887
- `)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}},23838(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{YR:()=>visit,sP:()=>BREAK});var _jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6188),_ast_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12890),QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=Object.freeze({});function visit(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent2=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent2,parent2=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent2?inArray?index:keys[index]:void 0,node=parent2?parent2[key]:newRoot,node==null)continue;parent2&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!(0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(node))throw new Error("Invalid AST Node: ".concat((0,_jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__.A)(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent2,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if((0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent2&&ancestors.push(parent2),parent2=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}},35109(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26143)},84472(module){"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},78192(module){"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},53680(module){"use strict";module.exports=JSON.parse('{"locale":"en","long":{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}},"short":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}},"narrow":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0}y ago","future":"in {0}y"},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":"{0}q ago","future":"in {0}q"},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0}mo ago","future":"in {0}mo"},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0}w ago","future":"in {0}w"},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":"{0}d ago","future":"in {0}d"},"hour":{"current":"this hour","past":"{0}h ago","future":"in {0}h"},"minute":{"current":"this minute","past":"{0}m ago","future":"in {0}m"},"second":{"current":"now","past":"{0}s ago","future":"in {0}s"}},"now":{"now":{"current":"now","future":"in a moment","past":"just now"}},"mini":{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"},"short-time":{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec."},"long-time":{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"}}}')}}]);
887
+ `)!==-1}function hasMultilineItems(maybeArray){return maybeArray!=null&&maybeArray.some(isMultiline)}},23838(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{YR:()=>visit,sP:()=>BREAK});var _jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(6188),_ast_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12890),QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},BREAK=Object.freeze({});function visit(root,visitor){var visitorKeys=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QueryDocumentKeys,stack=void 0,inArray=Array.isArray(root),keys=[root],index=-1,edits=[],node=void 0,key=void 0,parent2=void 0,path=[],ancestors=[],newRoot=root;do{index++;var isLeaving=index===keys.length,isEdited=isLeaving&&edits.length!==0;if(isLeaving){if(key=ancestors.length===0?void 0:path[path.length-1],node=parent2,parent2=ancestors.pop(),isEdited){if(inArray)node=node.slice();else{for(var clone={},_i2=0,_Object$keys2=Object.keys(node);_i2<_Object$keys2.length;_i2++){var k=_Object$keys2[_i2];clone[k]=node[k]}node=clone}for(var editOffset=0,ii=0;ii<edits.length;ii++){var editKey=edits[ii][0],editValue=edits[ii][1];inArray&&(editKey-=editOffset),inArray&&editValue===null?(node.splice(editKey,1),editOffset++):node[editKey]=editValue}}index=stack.index,keys=stack.keys,edits=stack.edits,inArray=stack.inArray,stack=stack.prev}else{if(key=parent2?inArray?index:keys[index]:void 0,node=parent2?parent2[key]:newRoot,node==null)continue;parent2&&path.push(key)}var result=void 0;if(!Array.isArray(node)){if(!(0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(node))throw new Error("Invalid AST Node: ".concat((0,_jsutils_inspect_mjs__WEBPACK_IMPORTED_MODULE_0__.A)(node),"."));var visitFn=getVisitFn(visitor,node.kind,isLeaving);if(visitFn){if(result=visitFn.call(visitor,node,key,parent2,path,ancestors),result===BREAK)break;if(result===!1){if(!isLeaving){path.pop();continue}}else if(result!==void 0&&(edits.push([key,result]),!isLeaving))if((0,_ast_mjs__WEBPACK_IMPORTED_MODULE_1__.Ll)(result))node=result;else{path.pop();continue}}}if(result===void 0&&isEdited&&edits.push([key,node]),isLeaving)path.pop();else{var _visitorKeys$node$kin;stack={inArray,index,keys,edits,prev:stack},inArray=Array.isArray(node),keys=inArray?node:(_visitorKeys$node$kin=visitorKeys[node.kind])!==null&&_visitorKeys$node$kin!==void 0?_visitorKeys$node$kin:[],index=-1,edits=[],parent2&&ancestors.push(parent2),parent2=node}}while(stack!==void 0);return edits.length!==0&&(newRoot=edits[edits.length-1][1]),newRoot}function visitInParallel(visitors){var skipping=new Array(visitors.length);return{enter:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!1);if(fn){var result=fn.apply(visitors[i],arguments);if(result===!1)skipping[i]=node;else if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0)return result}}},leave:function(node){for(var i=0;i<visitors.length;i++)if(skipping[i]==null){var fn=getVisitFn(visitors[i],node.kind,!0);if(fn){var result=fn.apply(visitors[i],arguments);if(result===BREAK)skipping[i]=BREAK;else if(result!==void 0&&result!==!1)return result}}else skipping[i]===node&&(skipping[i]=null)}}}function getVisitFn(visitor,kind,isLeaving){var kindVisitor=visitor[kind];if(kindVisitor){if(!isLeaving&&typeof kindVisitor=="function")return kindVisitor;var kindSpecificVisitor=isLeaving?kindVisitor.leave:kindVisitor.enter;if(typeof kindSpecificVisitor=="function")return kindSpecificVisitor}else{var specificVisitor=isLeaving?visitor.leave:visitor.enter;if(specificVisitor){if(typeof specificVisitor=="function")return specificVisitor;var specificKindVisitor=specificVisitor[kind];if(typeof specificKindVisitor=="function")return specificKindVisitor}}}},95492(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{x:()=>_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(_home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__,2))});var _home_circleci_bit_bit_node_modules_teambit_react_ui_docs_app_dist_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26143)},84472(module){"use strict";module.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},78192(module){"use strict";module.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')},53680(module){"use strict";module.exports=JSON.parse('{"locale":"en","long":{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}},"short":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}},"narrow":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0}y ago","future":"in {0}y"},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":"{0}q ago","future":"in {0}q"},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0}mo ago","future":"in {0}mo"},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0}w ago","future":"in {0}w"},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":"{0}d ago","future":"in {0}d"},"hour":{"current":"this hour","past":"{0}h ago","future":"in {0}h"},"minute":{"current":"this minute","past":"{0}m ago","future":"in {0}m"},"second":{"current":"now","past":"{0}s ago","future":"in {0}s"}},"now":{"now":{"current":"now","future":"in a moment","past":"just now"}},"mini":{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"},"short-time":{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec."},"long-time":{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"}}}')}}]);
@@ -1,15 +1,15 @@
1
1
  {
2
- "109.49a4aaa40e3aee814af4.js": "109.49a4aaa40e3aee814af4.js",
3
- "575.8f55239c3cb51adc4272.js": "575.8f55239c3cb51adc4272.js",
2
+ "134.5a5b60d62aac7cd871ed.js": "134.5a5b60d62aac7cd871ed.js",
3
+ "492.d51a0d5b33a867a9268d.js": "492.d51a0d5b33a867a9268d.js",
4
4
  "752.1e493116a159db2f2afd.js": "752.1e493116a159db2f2afd.js",
5
5
  "compositions.css": "static/css/compositions.b7ba1a09.css",
6
6
  "compositions.html": "compositions.html",
7
- "compositions.js": "compositions.cc7df06041f7612df3db.js",
7
+ "compositions.js": "compositions.781457279114bdbe11e0.js",
8
8
  "entrypoints": {
9
9
  "peers": {
10
10
  "assets": {
11
11
  "js": [
12
- "peers.1278fc8c9c7cfbe17448.js"
12
+ "peers.4a2abb06075208bec904.js"
13
13
  ]
14
14
  }
15
15
  },
@@ -27,8 +27,8 @@
27
27
  "compositions": {
28
28
  "assets": {
29
29
  "js": [
30
- "575.8f55239c3cb51adc4272.js",
31
- "compositions.cc7df06041f7612df3db.js"
30
+ "134.5a5b60d62aac7cd871ed.js",
31
+ "compositions.781457279114bdbe11e0.js"
32
32
  ],
33
33
  "css": [
34
34
  "static/css/compositions.b7ba1a09.css"
@@ -38,19 +38,19 @@
38
38
  "overview": {
39
39
  "assets": {
40
40
  "js": [
41
- "109.49a4aaa40e3aee814af4.js",
42
- "overview.3d0c829e8ed25f23b184.js"
41
+ "492.d51a0d5b33a867a9268d.js",
42
+ "overview.19d4e17beb18bf1cdd38.js"
43
43
  ],
44
44
  "css": [
45
- "static/css/109.97944f20.css"
45
+ "static/css/492.97944f20.css"
46
46
  ]
47
47
  }
48
48
  }
49
49
  },
50
50
  "overview.html": "overview.html",
51
- "overview.js": "overview.3d0c829e8ed25f23b184.js",
52
- "peers.js": "peers.1278fc8c9c7cfbe17448.js",
51
+ "overview.js": "overview.19d4e17beb18bf1cdd38.js",
52
+ "peers.js": "peers.4a2abb06075208bec904.js",
53
53
  "preview-root.css": "static/css/preview-root.2523facc.css",
54
54
  "preview-root.js": "preview-root.629d3861c2404dc583e1.js",
55
- "static/css/109.97944f20.css": "static/css/109.97944f20.css"
55
+ "static/css/492.97944f20.css": "static/css/492.97944f20.css"
56
56
  }
@@ -0,0 +1,2 @@
1
+ "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[866],{10774(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){var _home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27496),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32185);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("compositions",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!1,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[752,518,134],()=>__webpack_exec__(10774));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,2 +1,2 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
2
- try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.1278fc8c9c7cfbe17448.js"></script><script defer="defer" src="752.1e493116a159db2f2afd.js"></script><script defer="defer" src="preview-root.629d3861c2404dc583e1.js"></script><script defer="defer" src="575.8f55239c3cb51adc4272.js"></script><script defer="defer" src="compositions.cc7df06041f7612df3db.js"></script><link href="static/css/preview-root.2523facc.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
2
+ try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.4a2abb06075208bec904.js"></script><script defer="defer" src="752.1e493116a159db2f2afd.js"></script><script defer="defer" src="preview-root.629d3861c2404dc583e1.js"></script><script defer="defer" src="134.5a5b60d62aac7cd871ed.js"></script><script defer="defer" src="compositions.781457279114bdbe11e0.js"></script><link href="static/css/preview-root.2523facc.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -1,2 +1,2 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{95184(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27496),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_98cf30a024475b337e2db75aec661313311da841_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(35109);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_98cf30a024475b337e2db75aec661313311da841_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!1,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()},94891(){},91044(){},22179(){},71220(){},38854(){}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[752,518,575,866,109],()=>__webpack_exec__(95184));var __webpack_exports__=__webpack_require__.O()}]);
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{34402(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){"use strict";var _home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27496),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(95492);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!1,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()},94891(){},91044(){},22179(){},71220(){},38854(){}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[752,518,134,866,492],()=>__webpack_exec__(34402));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,2 +1,2 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
2
- try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.1278fc8c9c7cfbe17448.js"></script><script defer="defer" src="752.1e493116a159db2f2afd.js"></script><script defer="defer" src="preview-root.629d3861c2404dc583e1.js"></script><script defer="defer" src="575.8f55239c3cb51adc4272.js"></script><script defer="defer" src="compositions.cc7df06041f7612df3db.js"></script><script defer="defer" src="109.49a4aaa40e3aee814af4.js"></script><script defer="defer" src="overview.3d0c829e8ed25f23b184.js"></script><link href="static/css/preview-root.2523facc.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"><link href="static/css/109.97944f20.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
2
+ try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.4a2abb06075208bec904.js"></script><script defer="defer" src="752.1e493116a159db2f2afd.js"></script><script defer="defer" src="preview-root.629d3861c2404dc583e1.js"></script><script defer="defer" src="134.5a5b60d62aac7cd871ed.js"></script><script defer="defer" src="compositions.781457279114bdbe11e0.js"></script><script defer="defer" src="492.d51a0d5b33a867a9268d.js"></script><script defer="defer" src="overview.19d4e17beb18bf1cdd38.js"></script><link href="static/css/preview-root.2523facc.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"><link href="static/css/492.97944f20.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -43,7 +43,7 @@ function __bitSurfaceToOverlay(err, componentId) {
43
43
  }, 0);
44
44
  }
45
45
 
46
- import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-139de64abf5d134f0b08ed2465dac768a4bea720.mjs";
46
+ import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-68b147035e4e910b00e4b8a4a3ce04a0de2e2e59.mjs";
47
47
  async function initializeModules() {
48
48
 
49
49
  linkModules('compositions', {
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1221/dist/node.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1221/dist/node.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1223/dist/node.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.harmony_node@1.0.1223/dist/node.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -43,7 +43,7 @@ function __bitSurfaceToOverlay(err, componentId) {
43
43
  }, 0);
44
44
  }
45
45
 
46
- import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-98cf30a024475b337e2db75aec661313311da841.mjs";
46
+ import {defaultMainModule} from "/home/circleci/bit/bit/node_modules/@teambit/_local/preview-modules-9b89befd045d1080499f8437aaaa95b3d5125fd8.mjs";
47
47
  async function initializeModules() {
48
48
 
49
49
  linkModules('overview', {
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/node",
3
- "version": "1.0.1221",
3
+ "version": "1.0.1223",
4
4
  "homepage": "https://bit.cloud/teambit/harmony/node",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.harmony",
8
8
  "name": "node",
9
- "version": "1.0.1221"
9
+ "version": "1.0.1223"
10
10
  },
11
11
  "dependencies": {
12
12
  "typescript": "5.9.2",
@@ -22,29 +22,29 @@
22
22
  "eslint-plugin-jest": "27.6.3",
23
23
  "@typescript-eslint/eslint-plugin": "7.1.0",
24
24
  "@typescript-eslint/parser": "7.1.0",
25
- "@teambit/application": "1.0.1220",
26
25
  "@teambit/logger": "0.0.1498",
27
26
  "@teambit/toolbox.network.get-port": "1.0.30",
28
27
  "@teambit/harmony": "0.4.12",
29
- "@teambit/builder": "1.0.1220",
30
- "@teambit/dependency-resolver": "1.0.1219",
31
- "@teambit/envs": "1.0.1219",
32
- "@teambit/preview": "1.0.1220",
33
- "@teambit/schema": "1.0.1220",
34
28
  "@teambit/toolbox.path.path": "0.0.26",
35
- "@teambit/typescript": "1.0.1220",
36
- "@teambit/compiler": "1.0.1220",
37
29
  "@teambit/component-id": "1.2.5",
38
- "@teambit/generator": "1.0.1221",
39
30
  "@teambit/harmony.modules.runtimes": "0.0.4",
40
- "@teambit/pkg": "1.0.1220",
41
31
  "@teambit/worker": "0.0.1708",
42
32
  "@bitdev/node.generators.node-starters": "1.0.2",
43
33
  "@bitdev/node.generators.node-templates": "6.0.6",
44
- "@teambit/compositions": "1.0.1220",
45
34
  "@teambit/design.ui.empty-box": "0.0.364",
46
- "@teambit/react": "1.0.1221",
47
- "@teambit/tester": "1.0.1221"
35
+ "@teambit/application": "1.0.1222",
36
+ "@teambit/react": "1.0.1223",
37
+ "@teambit/builder": "1.0.1222",
38
+ "@teambit/dependency-resolver": "1.0.1221",
39
+ "@teambit/envs": "1.0.1221",
40
+ "@teambit/preview": "1.0.1222",
41
+ "@teambit/schema": "1.0.1222",
42
+ "@teambit/tester": "1.0.1223",
43
+ "@teambit/typescript": "1.0.1222",
44
+ "@teambit/compiler": "1.0.1222",
45
+ "@teambit/generator": "1.0.1223",
46
+ "@teambit/pkg": "1.0.1222",
47
+ "@teambit/compositions": "1.0.1222"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/lodash": "4.14.165",
@@ -1,2 +0,0 @@
1
- "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[866],{8628(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__){var _home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(27496),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_139de64abf5d134f0b08ed2465dac768a4bea720_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19900);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_2_105_bit_2_2_105_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("compositions",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_139de64abf5d134f0b08ed2465dac768a4bea720_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!1,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[752,518,575],()=>__webpack_exec__(8628));var __webpack_exports__=__webpack_require__.O()}]);