import{jsx as jsx$1,Fragment,jsxs}from"react/jsx-runtime";import*as React from"react";import React__default,{createContext,useReducer,useEffect,useMemo,useContext,createElement,useState,useRef,forwardRef,useLayoutEffect,useCallback,useImperativeHandle,Component,Fragment as Fragment$1}from"react";import{q as getDefaultExportFromCjs,w as filter,x as omit,j as getAllIcons,y as get,n as commonjsGlobal,v as colors$1,s as highchartsTheme,z as merge,r as highchartsDarkTheme,A as useCollapsible,B as getAugmentedNamespace,C as createPopper,E as uniqueId,F as typography,G as cloneDeep,H as isString}from"./lib-SyD3buPZ.js";import*as ReactDOM from"react-dom";import ReactDOM__default,{createPortal}from"react-dom";import{TrixEditor}from"react-trix";import Trix from"trix";import require$$0 from"react-is";const initialState={items:[],dragData:{id:"",initialGroup:""},isDragging:"",activeContainer:""};const reducer=(state,action)=>{switch(action.type){case"SET_ITEMS":return Object.assign(Object.assign({},state),{items:action.payload});case"SET_DRAG_DATA":return Object.assign(Object.assign({},state),{dragData:action.payload});case"SET_IS_DRAGGING":return Object.assign(Object.assign({},state),{isDragging:action.payload});case"SET_ACTIVE_CONTAINER":return Object.assign(Object.assign({},state),{activeContainer:action.payload});case"CHANGE_CATEGORY":return Object.assign(Object.assign({},state),{items:state.items.map((item=>item.id===action.payload.itemId?Object.assign(Object.assign({},item),{container:action.payload.container}):item))});case"REORDER_ITEMS":{const{dragId:dragId,targetId:targetId}=action.payload;const newItems=[...state.items];const draggedItem=newItems.find((item=>item.id===dragId));const draggedIndex=newItems.indexOf(draggedItem);const targetIndex=newItems.findIndex((item=>item.id===targetId));newItems.splice(draggedIndex,1);newItems.splice(targetIndex,0,draggedItem);return Object.assign(Object.assign({},state),{items:newItems})}default:return state}};const DragContext=createContext({});const DraggableContext=()=>useContext(DragContext);const DraggableProvider=({children:children,initialItems:initialItems,onReorder:onReorder,onDragStart:onDragStart,onDragEnter:onDragEnter,onDragEnd:onDragEnd,onDrop:onDrop,onDragOver:onDragOver})=>{const[state,dispatch]=useReducer(reducer,initialState);useEffect((()=>{dispatch({type:"SET_ITEMS",payload:initialItems})}),[initialItems]);useEffect((()=>{onReorder(state.items)}),[state.items]);const handleDragStart=(id,container)=>{dispatch({type:"SET_DRAG_DATA",payload:{id:id,initialGroup:container}});dispatch({type:"SET_IS_DRAGGING",payload:id});if(onDragStart)onDragStart(id,container)};const handleDragEnter=(id,container)=>{if(state.dragData.id!==id){dispatch({type:"REORDER_ITEMS",payload:{dragId:state.dragData.id,targetId:id}});dispatch({type:"SET_DRAG_DATA",payload:{id:state.dragData.id,initialGroup:container}})}if(onDragEnter)onDragEnter(id,container)};const handleDragEnd=()=>{dispatch({type:"SET_IS_DRAGGING",payload:""});dispatch({type:"SET_ACTIVE_CONTAINER",payload:""});if(onDragEnd)onDragEnd()};const changeCategory=(itemId,container)=>{dispatch({type:"CHANGE_CATEGORY",payload:{itemId:itemId,container:container}})};const handleDrop=container=>{dispatch({type:"SET_IS_DRAGGING",payload:""});dispatch({type:"SET_ACTIVE_CONTAINER",payload:""});changeCategory(state.dragData.id,container);if(onDrop)onDrop(container)};const handleDragOver=(e,container)=>{e.preventDefault();dispatch({type:"SET_ACTIVE_CONTAINER",payload:container});if(onDragOver)onDragOver(e,container)};const contextValue=useMemo((()=>({items:state.items,dragData:state.dragData,isDragging:state.isDragging,activeContainer:state.activeContainer,handleDragStart:handleDragStart,handleDragEnter:handleDragEnter,handleDragEnd:handleDragEnd,handleDrop:handleDrop,handleDragOver:handleDragOver})),[state]);return jsx$1(DragContext.Provider,Object.assign({value:contextValue},{children:children}),void 0)};var classnames$1={exports:{}}; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(module){(function(){var hasOwn={}.hasOwnProperty;function classNames2(){var classes=[];for(var i=0;iObject.keys(data).reduce(((props,key)=>{props[`${prefix2}-${key}`]=data[key];return props}),{});const noop$1=()=>{};const buildAriaProps=aria=>buildPrefixedProps("aria",aria);const buildDataProps=data=>buildPrefixedProps("data",data);const buildCss=(...rules)=>classnames(rules).replace(/\s/g,"_");const buildHtmlProps=htmlOptions=>{const htmlProps={};Object.keys(htmlOptions).forEach((key=>{htmlProps[key]=htmlOptions[key]}));return htmlProps};const isEmpty$1=value=>!value||value=="";const titleizedWord=word=>word.charAt(0).toUpperCase()+word.slice(1).toLowerCase();const titleize=sentence=>isEmpty$1(sentence)?sentence:sentence.split(" ").map(titleizedWord).join(" ");const notEmpty=value=>!isEmpty$1(value);const joinPresent=(array,separator)=>filter(array,notEmpty).join(separator);const camelToSnakeCase=word=>word.split(/([A-Z])/g).map(((w2,i)=>{const prefix2=i>0?"_":"";return w2===w2.toLowerCase()?w2:prefix2+w2.toLowerCase()})).join("");const BitValues=[0,1];const getResponsivePropClasses=(prop,classPrefix)=>{const keys=Object.keys(prop);return keys.map((size=>{const propValue=typeof prop[size]==="string"?camelToSnakeCase(prop[size]):prop[size];return`${classPrefix}_${size}_${propValue}`})).join(" ")};const getPositioningPropsClasses=(position2,value)=>{let css4="";if(typeof value==="string"){css4+=`${position2}_${value}`}else if(typeof value==="object"&&value.inset){css4+=`${position2}_${value.value}_inset`}else if(typeof value==="object"){css4+=`${position2}_${value.value}`}return css4};const filterClassName=value=>{if(value.includes("%")){return value.replace("%","_percent")}else{return value}};const PROP_CATEGORIES={groupHoverProps:({groupHover:groupHover})=>groupHover?"group_hover ":"",hoverProps:({hover:hover})=>{let css4="";if(!hover)return css4;css4+=hover.shadow?`hover_shadow_${hover.shadow} `:"";css4+=hover.background?`hover_background-${hover.background} `:"";css4+=hover.scale?`hover_scale_${hover.scale} `:"";css4+=hover.color?`hover_color-${hover.color} `:"";css4+=hover.visibility?`hover_visibility`:"";return css4},spacingProps:({marginRight:marginRight,marginLeft:marginLeft,marginTop:marginTop,marginBottom:marginBottom,marginX:marginX,marginY:marginY,margin:margin,paddingRight:paddingRight,paddingLeft:paddingLeft,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingX:paddingX,paddingY:paddingY,padding:padding})=>{let css4="";const spacingProps={marginRight:marginRight,marginLeft:marginLeft,marginTop:marginTop,marginBottom:marginBottom,marginX:marginX,marginY:marginY,margin:margin,paddingRight:paddingRight,paddingLeft:paddingLeft,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingX:paddingX,paddingY:paddingY,padding:padding};const screenSizeValues=["xs","sm","md","lg","xl"];function handleObjectValue(properties,prefix2){let classResult="";const breakValue=properties.break||"on";const defaultValue=properties.default||null;Object.entries(properties).forEach((([key,value])=>{if(screenSizeValues.includes(key)){classResult+=`break_${breakValue}_${key}:${prefix2}_${value} `}}));if(defaultValue){classResult+=`${prefix2}_${defaultValue} `}return classResult}function getPrefix(key){const prefixes={marginRight:"mr",marginLeft:"ml",marginTop:"mt",marginBottom:"mb",marginX:"mx",marginY:"my",margin:"m",paddingRight:"pr",paddingLeft:"pl",paddingTop:"pt",paddingBottom:"pb",paddingX:"px",paddingY:"py",padding:"p"};return prefixes[key]}Object.entries(spacingProps).forEach((([key,value])=>{if(value){if(typeof value==="object"){css4+=handleObjectValue(value,getPrefix(key))}else{const prefix2=getPrefix(key);css4+=`${prefix2}_${value} `}}}));return css4.trim()},borderRadiusProps:({borderRadius:borderRadius2})=>{let css4="";css4+=borderRadius2?`border_radius_${borderRadius2} `:"";return css4},overflowProps:({overflow:overflow,overflowX:overflowX,overflowY:overflowY})=>{let css4="";css4+=overflow?`overflow_${overflow}`:"";css4+=overflowX?`overflow_x_${overflowX}`:"";css4+=overflowY?`overflow_y_${overflowY}`:"";return css4},truncateProps:({truncate:truncate})=>{if(typeof truncate==="object"){return""}else{return truncate?`truncate_${truncate}`:""}},darkProps:({dark:dark})=>dark?"dark":"",numberSpacingProps:({numberSpacing:numberSpacing})=>{let css4="";css4+=numberSpacing?`ns_${numberSpacing} `:"";return css4},widthProps:({width:width})=>{let css4="";css4+=width?`width_${filterClassName(width)} `:"";return css4.trimEnd()},minWidthProps:({minWidth:minWidth})=>{let css4="";css4+=minWidth?`min_width_${filterClassName(minWidth)} `:"";return css4.trimEnd()},maxWidthProps:({maxWidth:maxWidth})=>{let css4="";css4+=maxWidth?`max_width_${filterClassName(maxWidth)} `:"";return css4.trimEnd()},minHeightProps:({minHeight:minHeight})=>{const heightValues=["auto","xs","sm","md","lg","xl","xxl","xxxl"];if(heightValues.includes(minHeight)){let css4="";css4+=minHeight?`min_height_${filterClassName(minHeight)} `:"";return css4.trimEnd()}},maxHeightProps:({maxHeight:maxHeight})=>{const heightValues=["auto","xs","sm","md","lg","xl","xxl","xxxl"];if(heightValues.includes(maxHeight)){let css4="";css4+=maxHeight?`max_height_${filterClassName(maxHeight)} `:"";return css4.trimEnd()}},heightProps:({height:height})=>{const heightValues=["auto","xs","sm","md","lg","xl","xxl","xxxl"];if(heightValues.includes(height)){let css4="";css4+=height?`height_${filterClassName(height)} `:"";return css4.trimEnd()}},zIndexProps:zIndex=>{let css4="";Object.entries(zIndex).forEach((zIndexEntry=>{if(zIndexEntry[0]=="zIndex"){if(typeof zIndexEntry[1]=="number"){css4+=`z_index_${zIndexEntry[1]} `}else if(typeof zIndexEntry[1]=="object"){Object.entries(zIndexEntry[1]).forEach((zIndexObj=>{css4+=`z_index_${zIndexObj[0]}_${zIndexObj[1]} `}))}}}));return css4},shadowProps:({shadow:shadow})=>{let css4="";css4+=shadow?`shadow_${shadow} `:"";return css4},lineHeightProps:({lineHeight:lineHeight})=>{let css4="";css4+=lineHeight?`line_height_${lineHeight} `:"";return css4},displayProps:display=>{let css4="";Object.entries(display).forEach((displayEntry=>{if(displayEntry[0]=="display"){if(typeof displayEntry[1]=="string"){css4+=`display_${displayEntry[1]} `}else if(typeof displayEntry[1]=="object"){Object.entries(displayEntry[1]).forEach((displayObj=>{css4+=`display_${displayObj[0]}_${displayObj[1]} `}))}else;}}));return css4},cursorProps:({cursor:cursor2})=>{let css4="";css4+=cursor2?`cursor_${camelToSnakeCase(cursor2)}`:"";return css4},alignContentProps:({alignContent:alignContent})=>{if(typeof alignContent==="object"){return getResponsivePropClasses(alignContent,"align_content")}return alignContent?`align_content_${camelToSnakeCase(alignContent)}`:""},alignItemsProps:({alignItems:alignItems})=>{if(typeof alignItems==="object"){return getResponsivePropClasses(alignItems,"align_items")}else{return alignItems?`align_items_${camelToSnakeCase(alignItems)}`:""}},alignSelfProps:({alignSelf:alignSelf})=>{if(typeof alignSelf==="object"){return getResponsivePropClasses(alignSelf,"align_self")}else{return alignSelf?`align_self_${alignSelf}`:""}},flexDirectionProps:({flexDirection:flexDirection})=>{if(typeof flexDirection=="object"){return getResponsivePropClasses(flexDirection,"flex_direction")}else{return flexDirection?`flex_direction_${camelToSnakeCase(flexDirection)}`:""}},flexWrapProps:({flexWrap:flexWrap})=>{if(typeof flexWrap=="object"){return getResponsivePropClasses(flexWrap,"flex_wrap")}else{return flexWrap?`flex_wrap_${camelToSnakeCase(flexWrap)}`:""}},flexProps:({flex:flex})=>{if(typeof flex==="object"){return getResponsivePropClasses(flex,"flex")}else{return flex?`flex_${flex}`:""}},flexGrowProps:({flexGrow:flexGrow})=>{if(typeof flexGrow=="object"){return getResponsivePropClasses(flexGrow,"flex_grow")}else if(BitValues.includes(flexGrow)){return`flex_grow_${flexGrow}`}else{return""}},flexShrinkProps:({flexShrink:flexShrink})=>{if(typeof flexShrink=="object"){return getResponsivePropClasses(flexShrink,"flex_shrink")}else if(BitValues.includes(flexShrink)){return`flex_shrink_${flexShrink}`}else{return""}},justifyContentProps:({justifyContent:justifyContent})=>{if(typeof justifyContent==="object"){return getResponsivePropClasses(justifyContent,"justify_content")}else{return justifyContent?`justify_content_${camelToSnakeCase(justifyContent)}`:""}},justifySelfProps:({justifySelf:justifySelf})=>{if(typeof justifySelf==="object"){return getResponsivePropClasses(justifySelf,"justify_self")}else{return justifySelf?`justify_self_${justifySelf}`:""}},orderProps:({order:order})=>{if(typeof order==="object"){return getResponsivePropClasses(order,"flex_order")}else{return order?`flex_order_${order}`:""}},positionProps:({position:position2})=>{let css4="";css4+=position2&&position2!=="static"?`position_${position2}`:"";return css4},topProps:({top:top})=>getPositioningPropsClasses("top",top),rightProps:({right:right})=>getPositioningPropsClasses("right",right),bottomProps:({bottom:bottom})=>getPositioningPropsClasses("bottom",bottom),leftProps:({left:left})=>getPositioningPropsClasses("left",left),textAlignProps:({textAlign:textAlign})=>{if(typeof textAlign==="object"){return getResponsivePropClasses(textAlign,"text_align")}else{return textAlign?`text_align_${textAlign} `:""}},verticalAlignProps:({verticalAlign:verticalAlign})=>{if(typeof verticalAlign==="object"){return getResponsivePropClasses(verticalAlign,"vertical_align")}else{return verticalAlign?`vertical_align_${verticalAlign} `:""}}};const PROP_INLINE_CATEGORIES={heightProps:({height:height})=>height?{height:height}:{},maxHeightProps:({maxHeight:maxHeight})=>maxHeight?{maxHeight:maxHeight}:{},minHeightProps:({minHeight:minHeight})=>minHeight?{minHeight:minHeight}:{}};const globalProps=(props,defaultProps2={})=>{const allProps=Object.assign(Object.assign({},props),defaultProps2);return Object.keys(PROP_CATEGORIES).map((key=>PROP_CATEGORIES[key](allProps))).filter((value=>(value===null||value===void 0?void 0:value.length)>0)).join(" ")};const globalInlineProps=props=>{const styles=Object.keys(PROP_INLINE_CATEGORIES).reduce(((acc,key)=>{const result=PROP_INLINE_CATEGORIES[key](props);return Object.assign(Object.assign({},acc),typeof result==="object"?result:{})}),{});return styles};const domSafeProps=props=>{const notSafeProps=["marginRight","marginLeft","marginTop","marginBottom","marginX","marginY","margin","paddingRight","paddingLeft","paddingTop","paddingBottom","paddingX","paddingY","padding","dark","enableDrag"];return omit(props,notSafeProps)};const Flex=props=>{const{align:align="none",children:children,className:className,data:data={},inline:inline=false,horizontal:horizontal="left",htmlOptions:htmlOptions={},justify:justify="none",orientation:orientation="row",spacing:spacing2="none",gap:gap="none",rowGap:rowGap="none",columnGap:columnGap="none",reverse:reverse=false,vertical:vertical="top",wrap:wrap=false,alignSelf:alignSelf="none"}=props;const orientationClass=orientation!==void 0?`orientation_${orientation}`:"";const justifyClass=justify!=="none"?`justify_content_${justify}`:`justify_content_${horizontal}`;const alignClass=align!=="none"?`align_items_${align}`:`align_items_${vertical}`;const inlineClass=inline===true?"inline":"";const spacingClass=spacing2!==void 0?`spacing_${spacing2}`:"";const gapClass=gap!=="none"?`gap_${gap}`:"";const rowGapClass=rowGap!=="none"?`rowGap_${rowGap}`:"";const columnGapClass=columnGap!=="none"?`columnGap_${columnGap}`:"";const wrapClass=wrap===true?"wrap":"";const reverseClass=reverse===true?"reverse":"";const alignSelfClass=alignSelf!=="none"?`align_self_${alignSelf}`:"";const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dynamicInlineProps=globalInlineProps(props);return jsx$1("div",Object.assign({className:classnames(buildCss("pb_flex_kit",orientationClass,justifyClass,alignClass,inlineClass,reverseClass,wrapClass,spacingClass,gapClass,rowGapClass,columnGapClass,alignSelfClass),globalProps(props),className),style:dynamicInlineProps},dataProps,htmlProps,{children:children}),void 0)};const FlexItem=props=>{const{children:children,className:className,fixedSize:fixedSize,grow:grow,htmlOptions:htmlOptions={},shrink:shrink,flex:flex="none",order:order="none",alignSelf:alignSelf,displayFlex:displayFlex}=props;const growClass=grow===true?"grow":"";const displayFlexClass=displayFlex===true?`display_flex_${displayFlex}`:"";const flexClass=flex!=="none"?`flex_${flex}`:"";const shrinkClass=shrink===true?"shrink":"";const alignSelfClass=alignSelf?`align_self_${alignSelf}`:"";const fixedStyle=fixedSize!==void 0?{flexBasis:`${fixedSize}`}:null;const orderClass=order!=="none"?`order_${order}`:null;const dynamicInlineProps=globalInlineProps(props);const combinedStyles=Object.assign(Object.assign({},fixedStyle),dynamicInlineProps);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",Object.assign({},htmlProps,{className:classnames(buildCss("pb_flex_item_kit",growClass,shrinkClass,flexClass,displayFlexClass),orderClass,alignSelfClass,globalProps(props),className),style:combinedStyles},{children:children}),void 0)};const isValidEmoji=emoji=>{const emojiRegex=new RegExp("^(\\p{Emoji}|\\uFE0F|\\u200D|\\u20E3)+$","u");return emojiRegex.test(emoji)};const flipMap={fa:{horizontal:"fa-flip-horizontal",vertical:"fa-flip-vertical",both:"fa-flip-horizontal fa-flip-vertical",none:""},svg:{horizontal:"flip_horizontal",vertical:"flip_vertical",both:"flip_horizontal flip_vertical",none:""}};const pulseMap={fa:"fa-pulse",svg:"pulse"};const spinMap={fa:"fa-spin",svg:"spin"};const rotateMap={fa:{90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},svg:{90:"rotate_90",180:"rotate_180",270:"rotate_270"}};const sizeMap={fa:{lg:"fa-lg",xs:"fa-xs",sm:"fa-sm","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x","":""},svg:{lg:"svg_lg",xs:"svg_xs",sm:"svg_sm","1x":"svg_1x","2x":"svg_2x","3x":"svg_3x","4x":"svg_4x","5x":"svg_5x","6x":"svg_6x","7x":"svg_7x","8x":"svg_8x","9x":"svg_9x","10x":"svg_10x","":""}};const Icon=props=>{const{aria:aria={},border:border=false,className:className,color:color,customIcon:customIcon,data:data={},fixedWidth:fixedWidth=true,flip:flip2="none",htmlOptions:htmlOptions={},icon:icon="",id:id,inverse:inverse=false,listItem:listItem=false,pull:pull,pulse:pulse=false,rotation:rotation,size:size,fontStyle:fontStyle="far",spin:spin=false,tabIndex:tabIndex}=props;let iconElement=typeof icon==="object"?icon:null;if(!customIcon&&!iconElement){const PowerIcon=window.PB_ICONS?window.PB_ICONS[icon]:null;if(PowerIcon){iconElement=jsx$1(PowerIcon,{},void 0)}}const isFA=!iconElement&&!customIcon;let classes=classnames(!iconElement&&!customIcon?"pb_icon_kit":"",iconElement||customIcon?"pb_custom_icon":fontStyle,iconElement?"svg-inline--fa":"",color?`color_${color}`:"",globalProps(props),className);const transformClasses=classnames(flip2?flipMap[isFA?"fa":"svg"][flip2]:null,pulse?pulseMap[isFA?"fa":"svg"]:null,rotation?rotateMap[isFA?"fa":"svg"][rotation]:null,spin?spinMap[isFA?"fa":"svg"]:null,size?sizeMap[isFA?"fa":"svg"][size]:null,border?isFA?"fa-border":"svg_border":null,fixedWidth?isFA?"fa-fw":"svg_fw":null,inverse?isFA?"fa-inverse":"svg_inverse":null,listItem?isFA?"fa-li":"svg_li":null,pull?isFA?`fa-pull-${pull}`:`pull_${pull}`:null);classes+=` ${transformClasses}`;if(isFA){const faClassList={"fa-border":border,"fa-inverse":inverse,"fa-li":listItem,[`fa-${size}`]:size,[`fa-pull-${pull}`]:pull};faClassList[`fa-${icon}`]=icon;classes+=` ${classnames(faClassList)}`}const classesEmoji=classnames("pb_icon_kit_emoji",globalProps(props),className);aria.label?null:aria.label=`${icon} icon`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const displaySVG=customIcon2=>{if(iconElement||customIcon2)return jsx$1(Fragment,{children:React__default.cloneElement(iconElement||customIcon2,Object.assign(Object.assign(Object.assign(Object.assign({},dataProps),htmlProps),{className:classes,id:id,width:"auto",height:"auto"}),props.tabIndex!==void 0&&{tabIndex:tabIndex}))},void 0);else if(isValidEmoji(icon))return jsx$1(Fragment,{children:jsx$1("span",Object.assign({},dataProps,htmlProps,{className:classesEmoji,id:id},{children:icon}),void 0)},void 0);else return jsxs(Fragment,{children:[jsx$1("i",Object.assign({},dataProps,htmlProps,{className:classes,id:id}),void 0),jsx$1("span",Object.assign({},ariaProps,{hidden:true}),void 0)]},void 0)};return jsx$1(Fragment,{children:displaySVG(customIcon)},void 0)};var main={exports:{}};(function(module){module.exports=function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module2=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module2.exports,module2,module2.exports,__webpack_require__);module2.loaded=true;return module2.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module2,exports,__webpack_require__){module2.exports=__webpack_require__(1)},function(module2,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:true});function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}var _Highlighter=__webpack_require__(2);var _Highlighter2=_interopRequireDefault2(_Highlighter);exports["default"]=_Highlighter2["default"];module2.exports=exports["default"]},function(module2,exports,__webpack_require__){Object.defineProperty(exports,"__esModule",{value:true});var _extends2=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i]}return target}var _highlightWordsCore=__webpack_require__(3);var _propTypes3=__webpack_require__(4);var _propTypes22=_interopRequireDefault2(_propTypes3);var _react3=__webpack_require__(14);var _memoizeOne=__webpack_require__(15);var _memoizeOne2=_interopRequireDefault2(_memoizeOne);Highlighter2.propTypes={activeClassName:_propTypes22["default"].string,activeIndex:_propTypes22["default"].number,activeStyle:_propTypes22["default"].object,autoEscape:_propTypes22["default"].bool,className:_propTypes22["default"].string,findChunks:_propTypes22["default"].func,highlightClassName:_propTypes22["default"].oneOfType([_propTypes22["default"].object,_propTypes22["default"].string]),highlightStyle:_propTypes22["default"].object,highlightTag:_propTypes22["default"].oneOfType([_propTypes22["default"].node,_propTypes22["default"].func,_propTypes22["default"].string]),sanitize:_propTypes22["default"].func,searchWords:_propTypes22["default"].arrayOf(_propTypes22["default"].oneOfType([_propTypes22["default"].string,_propTypes22["default"].instanceOf(RegExp)])).isRequired,textToHighlight:_propTypes22["default"].string.isRequired,unhighlightTag:_propTypes22["default"].oneOfType([_propTypes22["default"].node,_propTypes22["default"].func,_propTypes22["default"].string]),unhighlightClassName:_propTypes22["default"].string,unhighlightStyle:_propTypes22["default"].object};function Highlighter2(_ref3){var _ref$activeClassName=_ref3.activeClassName;var activeClassName=_ref$activeClassName===void 0?"":_ref$activeClassName;var _ref$activeIndex=_ref3.activeIndex;var activeIndex=_ref$activeIndex===void 0?-1:_ref$activeIndex;var activeStyle=_ref3.activeStyle;var autoEscape=_ref3.autoEscape;var _ref$caseSensitive=_ref3.caseSensitive;var caseSensitive=_ref$caseSensitive===void 0?false:_ref$caseSensitive;var className=_ref3.className;var findChunks=_ref3.findChunks;var _ref$highlightClassName=_ref3.highlightClassName;var highlightClassName=_ref$highlightClassName===void 0?"":_ref$highlightClassName;var _ref$highlightStyle=_ref3.highlightStyle;var highlightStyle=_ref$highlightStyle===void 0?{}:_ref$highlightStyle;var _ref$highlightTag=_ref3.highlightTag;var highlightTag=_ref$highlightTag===void 0?"mark":_ref$highlightTag;var sanitize=_ref3.sanitize;var searchWords=_ref3.searchWords;var textToHighlight=_ref3.textToHighlight;var _ref$unhighlightTag=_ref3.unhighlightTag;var unhighlightTag=_ref$unhighlightTag===void 0?"span":_ref$unhighlightTag;var _ref$unhighlightClassName=_ref3.unhighlightClassName;var unhighlightClassName=_ref$unhighlightClassName===void 0?"":_ref$unhighlightClassName;var unhighlightStyle=_ref3.unhighlightStyle;var rest=_objectWithoutProperties2(_ref3,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]);var chunks=(0,_highlightWordsCore.findAll)({autoEscape:autoEscape,caseSensitive:caseSensitive,findChunks:findChunks,sanitize:sanitize,searchWords:searchWords,textToHighlight:textToHighlight});var HighlightTag=highlightTag;var highlightIndex=-1;var highlightClassNames="";var highlightStyles=void 0;var lowercaseProps=function lowercaseProps2(object){var mapped={};for(var key in object){mapped[key.toLowerCase()]=object[key]}return mapped};var memoizedLowercaseProps=(0,_memoizeOne2["default"])(lowercaseProps);return(0,_react3.createElement)("span",_extends2({className:className},rest,{children:chunks.map((function(chunk,index2){var text=textToHighlight.substr(chunk.start,chunk.end-chunk.start);if(chunk.highlight){highlightIndex++;var highlightClass=void 0;if(typeof highlightClassName==="object"){if(!caseSensitive){highlightClassName=memoizedLowercaseProps(highlightClassName);highlightClass=highlightClassName[text.toLowerCase()]}else{highlightClass=highlightClassName[text]}}else{highlightClass=highlightClassName}var isActive=highlightIndex===+activeIndex;highlightClassNames=highlightClass+" "+(isActive?activeClassName:"");highlightStyles=isActive===true&&activeStyle!=null?Object.assign({},highlightStyle,activeStyle):highlightStyle;var props={children:text,className:highlightClassNames,key:index2,style:highlightStyles};if(typeof HighlightTag!=="string"){props.highlightIndex=highlightIndex}return(0,_react3.createElement)(HighlightTag,props)}else{return(0,_react3.createElement)(unhighlightTag,{children:text,className:unhighlightClassName,key:index2,style:unhighlightStyle})}}))}))}module2.exports=exports["default"]},function(module2,exports){module2.exports=function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module3=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module3.exports,module3,module3.exports,__webpack_require__);module3.loaded=true;return module3.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module3,exports2,__webpack_require__){module3.exports=__webpack_require__(1)},function(module3,exports2,__webpack_require__){Object.defineProperty(exports2,"__esModule",{value:true});var _utils=__webpack_require__(2);Object.defineProperty(exports2,"combineChunks",{enumerable:true,get:function get2(){return _utils.combineChunks}});Object.defineProperty(exports2,"fillInChunks",{enumerable:true,get:function get2(){return _utils.fillInChunks}});Object.defineProperty(exports2,"findAll",{enumerable:true,get:function get2(){return _utils.findAll}});Object.defineProperty(exports2,"findChunks",{enumerable:true,get:function get2(){return _utils.findChunks}})},function(module3,exports2){Object.defineProperty(exports2,"__esModule",{value:true});exports2.findAll=function findAll2(_ref3){var autoEscape=_ref3.autoEscape,_ref$caseSensitive=_ref3.caseSensitive,caseSensitive=_ref$caseSensitive===void 0?false:_ref$caseSensitive,_ref$findChunks=_ref3.findChunks,findChunks=_ref$findChunks===void 0?defaultFindChunks:_ref$findChunks,sanitize=_ref3.sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;return fillInChunks({chunksToHighlight:combineChunks({chunks:findChunks({autoEscape:autoEscape,caseSensitive:caseSensitive,sanitize:sanitize,searchWords:searchWords,textToHighlight:textToHighlight})}),totalLength:textToHighlight?textToHighlight.length:0})};var combineChunks=exports2.combineChunks=function combineChunks2(_ref22){var chunks=_ref22.chunks;chunks=chunks.sort((function(first,second){return first.start-second.start})).reduce((function(processedChunks,nextChunk){if(processedChunks.length===0){return[nextChunk]}else{var prevChunk=processedChunks.pop();if(nextChunk.start<=prevChunk.end){var endIndex=Math.max(prevChunk.end,nextChunk.end);processedChunks.push({start:prevChunk.start,end:endIndex})}else{processedChunks.push(prevChunk,nextChunk)}return processedChunks}}),[]);return chunks};var defaultFindChunks=function defaultFindChunks2(_ref3){var autoEscape=_ref3.autoEscape,caseSensitive=_ref3.caseSensitive,_ref3$sanitize=_ref3.sanitize,sanitize=_ref3$sanitize===void 0?identity:_ref3$sanitize,searchWords=_ref3.searchWords,textToHighlight=_ref3.textToHighlight;textToHighlight=sanitize(textToHighlight);return searchWords.filter((function(searchWord){return searchWord})).reduce((function(chunks,searchWord){searchWord=sanitize(searchWord);if(autoEscape){searchWord=escapeRegExpFn(searchWord)}var regex=new RegExp(searchWord,caseSensitive?"g":"gi");var match2=void 0;while(match2=regex.exec(textToHighlight)){var start=match2.index;var end=regex.lastIndex;if(end>start){chunks.push({start:start,end:end})}if(match2.index==regex.lastIndex){regex.lastIndex++}}return chunks}),[])};exports2.findChunks=defaultFindChunks;var fillInChunks=exports2.fillInChunks=function fillInChunks2(_ref4){var chunksToHighlight=_ref4.chunksToHighlight,totalLength=_ref4.totalLength;var allChunks=[];var append2=function append22(start,end,highlight){if(end-start>0){allChunks.push({start:start,end:end,highlight:highlight})}};if(chunksToHighlight.length===0){append2(0,totalLength,false)}else{var lastIndex=0;chunksToHighlight.forEach((function(chunk){append2(lastIndex,chunk.start,false);append2(chunk.start,chunk.end,true);lastIndex=chunk.end}));append2(lastIndex,totalLength,false)}return allChunks};function identity(value){return value}function escapeRegExpFn(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(module2,exports,__webpack_require__){(function(process){if(process.env.NODE_ENV!=="production"){var REACT_ELEMENT_TYPE=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103;var isValidElement=function(object){return typeof object==="object"&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE};var throwOnDirectAccess=true;module2.exports=__webpack_require__(6)(isValidElement,throwOnDirectAccess)}else{module2.exports=__webpack_require__(13)()}}).call(exports,__webpack_require__(5))},function(module2,exports){var process=module2.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e2){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e2){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex1){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}var argIndex=0;var message="Warning: "+format.replace(/%s/g,(function(){return args[argIndex++]}));if(typeof console!=="undefined"){console.error(message)}try{throw new Error(message)}catch(x){}};warning2=function warning22(condition,format){if(format===void 0){throw new Error("`warning(condition, format, ...args)` requires a warning message argument")}if(format.indexOf("Failed Composite propType: ")===0){return}if(!condition){for(var _len2=arguments.length,args=Array(_len2>2?_len2-2:0),_key2=2;_key2<_len2;_key2++){args[_key2-2]=arguments[_key2]}printWarning.apply(void 0,[format].concat(args))}}}module2.exports=warning2}).call(exports,__webpack_require__(5))},function(module2,exports){var getOwnPropertySymbols=Object.getOwnPropertySymbols;var hasOwnProperty2=Object.prototype.hasOwnProperty;var propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(val){if(val===null||val===void 0){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(val)}function shouldUseNative(){try{if(!Object.assign){return false}var test1=new String("abc");test1[5]="de";if(Object.getOwnPropertyNames(test1)[0]==="5"){return false}var test2={};for(var i=0;i<10;i++){test2["_"+String.fromCharCode(i)]=i}var order2=Object.getOwnPropertyNames(test2).map((function(n){return test2[n]}));if(order2.join("")!=="0123456789"){return false}var test3={};"abcdefghijklmnopqrst".split("").forEach((function(letter){test3[letter]=letter}));if(Object.keys(Object.assign({},test3)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(err){return false}}module2.exports=shouldUseNative()?Object.assign:function(target,source){var from2;var to=toObject(target);var symbols;for(var s=1;s1&&arguments[1]!==void 0?arguments[1]:simpleIsEqual;var lastThis=void 0;var lastArgs=[];var lastResult=void 0;var calledOnce=false;var isNewArgEqualToLast=function isNewArgEqualToLast2(newArg,index22){return isEqual3(newArg,lastArgs[index22])};var result=function result2(){for(var _len=arguments.length,newArgs=Array(_len),_key=0;_key<_len;_key++){newArgs[_key]=arguments[_key]}if(calledOnce&&lastThis===this&&newArgs.length===lastArgs.length&&newArgs.every(isNewArgEqualToLast)){return lastResult}calledOnce=true;lastThis=this;lastArgs=newArgs;lastResult=resultFn.apply(this,newArgs);return lastResult};return result}module2.exports=index2}])})(main);var mainExports=main.exports;const Highlighter=getDefaultExportFromCjs(mainExports);const Highlight=props=>{const{children:children,className:className="pb_highlight_kit",data:data={},highlightedText:highlightedText=["highlight"],htmlOptions:htmlOptions={},id:id="",text:text=""}=props;const htmlProps=buildHtmlProps(htmlOptions);const highlightContent=text||children;return jsx$1(Highlighter,Object.assign({autoEscape:true,data:data,highlightClassName:classnames(globalProps(props),className),highlightTag:"mark",id:id,searchWords:highlightedText,textToHighlight:highlightContent},htmlProps),void 0)};const Body$1=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color="",data:data={},highlightedText:highlightedText=[],highlighting:highlighting=false,htmlOptions:htmlOptions={},id:id="",status:status=null,tag:tag="div",text:text="",variant:variant=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_body_kit",color,variant,status),globalProps(props),className);const Tag=`${tag}`;return jsxs(Tag,Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:[highlighting&&jsx$1(Highlight,Object.assign({highlightedText:highlightedText,text:text},{children:children}),void 0),!highlighting&&(text||children)]}),void 0)};const Caption=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md",tag:tag="div",text:text,variant:variant=null}=props;const tagOptions=["h1","h2","h3","h4","h5","h6","p","span","div","caption"];const Tag=tagOptions.includes(tag)?tag:"div";const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buildCss("pb_caption_kit",size,variant,color),globalProps(props),className);return jsx$1(Tag,Object.assign({},ariaProps,dataProps,htmlProps,{className:css4,id:id},{children:text||children}),void 0)};const getPlacementProps=(placement,size)=>{let placementMapping={};switch(size){case"xxs":case"xs":placementMapping={"top-right":{top:"xs",right:"xs"},"bottom-left":{bottom:"xs",left:"xs"},"top-left":{top:"xs",left:"xs"},"bottom-right":{bottom:"xs",right:"xs"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"sm":placementMapping={"top-right":{top:"0",right:"xs"},"bottom-left":{bottom:"0",left:"xs"},"top-left":{top:"0",left:"xs"},"bottom-right":{bottom:"0",right:"xs"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"md":case"lg":placementMapping={"top-right":{top:"0",right:"0"},"bottom-left":{bottom:"0",left:"0"},"top-left":{top:"0",left:"0"},"bottom-right":{bottom:"0",right:"0"},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break;case"xl":placementMapping={"top-right":{top:{value:"xxs",inset:true},right:{value:"xxs",inset:true}},"bottom-left":{bottom:{value:"xxs",inset:true},left:{value:"xxs",inset:true}},"top-left":{top:{value:"xxs",inset:true},left:{value:"xxs",inset:true}},"bottom-right":{bottom:{value:"xxs",inset:true},right:{value:"xxs",inset:true}},"bottom-center":{bottom:"xs",className:"overlay_bottom_center"},"top-center":{top:"xs",className:"overlay_top_center"},"left-center":{left:"sm",className:"overlay_left_center"},"right-center":{right:"sm",className:"overlay_right_center"}};break}return placementMapping[placement]||{}};const Image=props=>{const{alt:alt="",aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,onError:onError=null,rounded:rounded=false,size:size="",transition:transition="fade",url:url=""}=props;const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_image_kit",size?`size_${size}`:null),"lazyload",transition,{rounded:rounded},globalProps(props),className);const dynamicInlineProps=globalInlineProps(props);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("img",{...ariaProps,...dataProps,...htmlProps,alt:alt,className:classes,"data-src":url,id:id,onError:onError,src:url,style:dynamicInlineProps})};const OnlineStatus=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,status:status="offline",size:size="sm",noBorder:noBorder=false}=props;aria.label=status;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const getBorder=noBorder?"no_border":"";const classes=classnames(buildCss("pb_online_status_kit",status,getBorder,"size",size),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id})};const Badge=props=>{const{aria:aria={},className:className,closeProps:closeProps={},data:data={},htmlOptions:htmlOptions={},id:id,removeIcon:removeIcon=false,removeOnClick:removeOnClick,rounded:rounded=false,text:text,variant:variant="neutral"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buildCss("pb_badge_kit",variant==="success"?"success_sm":variant==="notificationError"?"notification_error":variant,rounded?"rounded":""),globalProps(props),className);const timesIcon=getAllIcons()["times"];return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:css4,id:id,children:jsxs("span",{children:[text,removeIcon&&jsx$1("span",{onClick:removeOnClick,style:{cursor:"pointer"},...closeProps,children:jsx$1(Icon,{className:"svg-inline--fa",customIcon:timesIcon.icon,fixedWidth:true})})]})})};const IconCircle=props=>{const{aria:aria={},className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},icon:icon,id:id,size:size="md",variant:variant="default"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_icon_circle_kit",`size_${size}`,variant),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Icon,{dark:dark,icon:icon})})};function __rest(s,e){var t={};for(var p in s)if(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);i0&&t[t.length-1])&&(op[0]===6||op[0]===2)){_=0;continue}if(op[0]===3&&(!t||op[1]>t[0]&&op[1]0)&&!(r=i.next()).done)ar.push(r.value)}catch(error){e={error:error}}finally{try{if(r&&!r.done&&(m=i["return"]))m.call(i)}finally{if(e)throw e.error}}return ar}function __spread(){for(var ar=[],i=0;i{const{aria:aria={},children:children,className:className,container:container,data:data={},htmlOptions:htmlOptions={},id:id}=props;const{handleDragOver:handleDragOver,handleDrop:handleDrop,activeContainer:activeContainer}=DraggableContext();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable_container"),`${activeContainer===container?"active":""}`,globalProps(props),className);return createElement("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id,key:container,onDragOver:e=>handleDragOver(e,container),onDrop:()=>handleDrop(container)}),children)};const DraggableItem=props=>{const{aria:aria={},children:children,className:className,container:container,data:data={},htmlOptions:htmlOptions={},id:id,dragId:dragId}=props;const{isDragging:isDragging,handleDragStart:handleDragStart,handleDragEnter:handleDragEnter,handleDragEnd:handleDragEnd}=DraggableContext();const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable_item"),`${isDragging===dragId?"is_dragging":""}`,globalProps(props),className);return createElement("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,draggable:true,id:id,key:dragId,onDragEnd:()=>handleDragEnd(),onDragEnter:()=>handleDragEnter(dragId,container),onDragStart:()=>handleDragStart(dragId,container)}),children)};const Draggable=props=>{const{aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_draggable"),globalProps(props),className);return jsx$1("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:classes,id:id},{children:children}),void 0)};Draggable.Container=DraggableContainer;Draggable.Item=DraggableItem;const Header=props=>{const{children:children,className:className,headerColor:headerColor="category_1",headerColorStriped:headerColorStriped=false}=props;const headerCSS=buildCss("pb_card_header_kit",`${headerColor}`,headerColorStriped?"striped":"");const headerSpacing=globalProps(props);return jsx$1("div",Object.assign({className:classnames(headerCSS,headerSpacing,className)},{children:children}),void 0)};const Body=props=>{const{children:children,className:className}=props;const bodyCSS=buildCss("pb_card_body_kit");const bodySpacing=globalProps(props);return jsx$1("div",Object.assign({className:classnames(bodyCSS,bodySpacing,className)},{children:children}),void 0)};const Card=props=>{const{aria:aria={},background:background="none",borderNone:borderNone=false,borderRadius:borderRadius2="md",children:children,className:className,data:data={},dragId:dragId,dragHandle:dragHandle=true,draggableItem:draggableItem=false,highlight:highlight={},htmlOptions:htmlOptions={},selected:selected=false,tag:tag="div"}=props;const borderCSS=borderNone==true?"border_none":"";const selectedCSS=selected==true?"selected":"deselected";const backgroundCSS=background=="none"?"":`background_${background}`;const cardCss=buildCss("pb_card_kit",selectedCSS,borderCSS,`border_radius_${borderRadius2}`,backgroundCSS,{[`highlight_${highlight.position}`]:highlight.position,[`highlight_${highlight.color}`]:highlight.color});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const cardChildren=React__default.Children.toArray(children);const dynamicInlineProps=globalInlineProps(props);const _a=htmlProps,{style:htmlStyle={}}=_a,restHtmlProps=__rest(_a,["style"]);const mergedStyles=Object.assign(Object.assign({},htmlStyle),dynamicInlineProps);const subComponentTags=tagName=>cardChildren.filter((c=>get(c,"type.displayName")===tagName)).map(((child,i)=>{if(React__default.isValidElement(child)){return React__default.cloneElement(child,{key:`${tagName.toLowerCase()}-${i}`})}}));const nonHeaderChildren=cardChildren.filter((child=>get(child,"type.displayName")!=="Header"));const tagOptions=["div","section","footer","header","article","aside","main","nav"];const Tag=tagOptions.includes(tag)?tag:"div";return jsx$1(Fragment,{children:draggableItem?jsx$1(Draggable.Item,Object.assign({dragId:dragId},{children:jsxs(Tag,Object.assign({},ariaProps,dataProps,{className:classnames(cardCss,globalProps(props),className)},restHtmlProps,{style:mergedStyles},{children:[subComponentTags("Header"),dragHandle?jsxs(Flex,{children:[jsx$1("span",Object.assign({className:"card_draggable_handle"},{children:jsx$1(Icon,{icon:"grip-dots-vertical",paddingRight:"xs",verticalAlign:"middle"},void 0)}),void 0),jsx$1("div",Object.assign({style:{width:"100%"}},{children:nonHeaderChildren}),void 0)]},void 0):nonHeaderChildren]}),void 0)}),dragId):jsxs(Tag,Object.assign({},ariaProps,dataProps,{className:classnames(cardCss,globalProps(props),className)},restHtmlProps,{style:mergedStyles},{children:[subComponentTags("Header"),nonHeaderChildren]}),void 0)},void 0)};Card.Header=Header;Card.Body=Body;const firstTwoInitials=name2=>name2.split(/\s/).map((name22=>name22[0])).join("").substring(0,2);const Avatar=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},name:name2=void 0,componentOverlay:componentOverlay,id:id="",imageAlt:imageAlt="",imageUrl:imageUrl,size:size="md",status:status=null,dark:dark=false}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_avatar_kit",`size_${size}`),globalProps(props),className);const initials=name2&&firstTwoInitials(name2);dataProps["data-initials"]=initials;const[error,setError]=useState(false);const handleError=()=>setError(true);const canShowImage=imageUrl&&!error;const onlineStatusSize=["xxs","xs"].includes(size)?"sm":["sm","md"].includes(size)?"md":["lg","xl"].includes(size)?"lg":"sm";const onlineStatusPositionProps=["xxs","xs","sm"].includes(size)?{top:{inset:true,value:"0"},right:{inset:false,value:"xxs"}}:{bottom:{inset:true,value:"0"},right:{inset:true,value:size==="xl"?"sm":size==="lg"?"xs":"xxs"}};return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:componentOverlay?jsxs(Flex,{display:"display_inline_block",position:"relative",children:[jsx$1("div",{className:"avatar_wrapper","data-initials":initials,children:canShowImage&&jsx$1(Image,{alt:imageAlt?imageAlt:name2,onError:handleError,url:imageUrl})}),componentOverlay.component==="badge"&&jsx$1(Card,{borderNone:true,borderRadius:"rounded",padding:"none",position:"absolute",...getPlacementProps(componentOverlay.placement,size),children:jsx$1(Badge,{rounded:true,text:componentOverlay.text,variant:componentOverlay.variant})}),componentOverlay.component==="iconCircle"&&jsx$1(Card,{borderNone:true,borderRadius:"rounded",htmlOptions:{style:{padding:"2px"}},position:"absolute",...getPlacementProps(componentOverlay.placement,size),children:jsx$1(IconCircle,{icon:componentOverlay.icon,size:"xxs",variant:componentOverlay.variant})})]}):jsxs(Fragment,{children:[jsx$1("div",{className:"avatar_wrapper","data-initials":initials,children:canShowImage&&jsx$1(Image,{alt:imageAlt?imageAlt:name2,onError:handleError,url:imageUrl})}),status&&jsx$1(OnlineStatus,{dark:dark,position:"absolute",size:onlineStatusSize,status:status,...onlineStatusPositionProps})]})})};const breakpoints={xs:"(max-width: 575px)",sm:"(min-width: 576px) and (max-width: 767px)",md:"(min-width: 768px) and (max-width: 991px)",lg:"(min-width: 992px) and (max-width: 1199px)",xl:"(min-width: 1200px)"};const getResponsiveValue=prop=>{if(typeof prop==="string"){return prop}for(const[bp,value]of Object.entries(prop||{})){if(bp!=="default"&&window.matchMedia(breakpoints[bp]).matches){return value}}return(prop==null?void 0:prop.default)||void 0};const Background=props=>{const{alt:alt=void 0,aria:aria={},backgroundColor:backgroundColor="light",backgroundPosition:backgroundPosition="",backgroundRepeat:backgroundRepeat="initial",backgroundSize:backgroundSize="cover",children:children,className:className,customColor:customColor,data:data={},htmlOptions:htmlOptions={},id:id,imageUrl:imageUrl="",tag:tag="div",transition:transition=""}=props;const[responsiveProps,setResponsiveProps]=useState({backgroundSize:getResponsiveValue(backgroundSize),backgroundPosition:getResponsiveValue(backgroundPosition),backgroundRepeat:getResponsiveValue(backgroundRepeat),backgroundColor:getResponsiveValue(backgroundColor),imageUrl:getResponsiveValue(imageUrl)});useEffect((()=>{const updateResponsiveProps=()=>{setResponsiveProps({backgroundSize:getResponsiveValue(props.backgroundSize),backgroundPosition:getResponsiveValue(props.backgroundPosition),backgroundRepeat:getResponsiveValue(props.backgroundRepeat),backgroundColor:getResponsiveValue(props.backgroundColor),imageUrl:getResponsiveValue(props.imageUrl)})};window.addEventListener("resize",updateResponsiveProps);return()=>window.removeEventListener("resize",updateResponsiveProps)}),[props]);const{backgroundColor:resBackgroundColor,backgroundPosition:resBackgroundPosition,backgroundRepeat:resBackgroundRepeat,backgroundSize:resBackgroundSize,imageUrl:resImageUrl}=responsiveProps;const classes=classnames(buildCss("pb_background_kit"),"lazyload",globalProps(props),transition,{[`pb_background_color_${resBackgroundColor}`]:resBackgroundColor&&!customColor,[`pb_background_custom_color`]:!!customColor},className);const backgroundStyle={backgroundColor:customColor||void 0,...resImageUrl!==""?{backgroundImage:resImageUrl?`url(${resImageUrl})`:void 0,backgroundRepeat:resBackgroundRepeat||void 0,backgroundPosition:resBackgroundPosition||void 0,backgroundSize:resBackgroundSize||void 0}:{}};const dynamicInlineProps=globalInlineProps(props);const combinedStyles={...backgroundStyle,...dynamicInlineProps};const Tag=`${tag}`;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,alt:alt,className:classes,id:id,style:combinedStyles,children:children})};var highchartsReact_min={exports:{}};(function(module,exports){!function(t,e){module.exports=e(React__default)}("undefined"!=typeof self?self:commonjsGlobal,(function(t){return function(t2){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:false,exports:{}};return t2[n].call(o.exports,o,o.exports,e),o.l=true,o.exports}var r={};return e.m=t2,e.c=r,e.d=function(t3,r2,n){e.o(t3,r2)||Object.defineProperty(t3,r2,{configurable:false,enumerable:true,get:n})},e.n=function(t3){var r2=t3&&t3.__esModule?function(){return t3.default}:function(){return t3};return e.d(r2,"a",r2),r2},e.o=function(t3,e2){return Object.prototype.hasOwnProperty.call(t3,e2)},e.p="",e(e.s=0)}([function(t2,e,r){function n(){return n=Object.assign?Object.assign.bind():function(t3){for(var e2=1;e2t3.length)&&(e2=t3.length);for(var r2=0,n2=new Array(e2);r2parseInt(i2.userAgent.split("Firefox/")[1],10),i2.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],i2.noop=function(){},i2.supportsPassiveEvents=function(){let t2=false;if(!i2.isMS){let e3=Object.defineProperty({},"passive",{get:function(){t2=true}});i2.win.addEventListener&&i2.win.removeEventListener&&(i2.win.addEventListener("testPassive",i2.noop,e3),i2.win.removeEventListener("testPassive",i2.noop,e3))}return t2}(),i2.charts=[],i2.composed=[],i2.dateFormats={},i2.seriesTypes={},i2.symbolSizes={},i2.chartCount=0,e2})),i(e,"Core/Utilities.js",[e["Core/Globals.js"]],(function(t2){let e2;let{charts:i2,doc:s,win:r}=t2;function o(e3,i3,s2,n2){let a2=i3?"Highcharts error":"Highcharts warning";32===e3&&(e3=`${a2}: Deprecated member`);let h2=p(e3),l2=h2?`${a2} #${e3}: www.highcharts.com/errors/${e3}/`:e3.toString();if(void 0!==n2){let t3="";h2&&(l2+="?"),C(n2,(function(e4,i4){t3+=`\n - ${i4}: ${e4}`,h2&&(l2+=encodeURI(i4)+"="+encodeURI(e4))})),l2+=t3}M(t2,"displayError",{chart:s2,code:e3,message:l2,params:n2},(function(){if(i3)throw Error(l2);r.console&&-1===o.messages.indexOf(l2)&&console.warn(l2)})),o.messages.push(l2)}function n(t3,e3){return parseInt(t3,e3||10)}function a(t3){return"string"==typeof t3}function h(t3){let e3=Object.prototype.toString.call(t3);return"[object Array]"===e3||"[object Array Iterator]"===e3}function l(t3,e3){return!!t3&&"object"==typeof t3&&(!e3||!h(t3))}function d(t3){return l(t3)&&"number"==typeof t3.nodeType}function c(t3){let e3=t3&&t3.constructor;return!!(l(t3,true)&&!d(t3)&&e3&&e3.name&&"Object"!==e3.name)}function p(t3){return"number"==typeof t3&&!isNaN(t3)&&t3<1/0&&t3>-1/0}function u(t3){return null!=t3}function g(t3,e3,i3){let s2;let r2=a(e3)&&!u(i3),o2=(e4,i4)=>{u(e4)?t3.setAttribute(i4,e4):r2?(s2=t3.getAttribute(i4))||"class"!==i4||(s2=t3.getAttribute(i4+"Name")):t3.removeAttribute(i4)};return a(e3)?o2(i3,e3):C(e3,o2),s2}function f(t3){return h(t3)?t3:[t3]}function m(t3,e3){let i3;for(i3 in t3||(t3={}),e3)t3[i3]=e3[i3];return t3}function x(){let t3=arguments,e3=t3.length;for(let i3=0;i31e14?t3:parseFloat(t3.toPrecision(e3||14))}(o||(o={})).messages=[],Math.easeInOutSine=function(t3){return-.5*(Math.cos(Math.PI*t3)-1)};let S=Array.prototype.find?function(t3,e3){return t3.find(e3)}:function(t3,e3){let i3;let s2=t3.length;for(i3=0;i3t4.order-e4.order)),t3.forEach((t4=>{false===t4.fn.call(e3,r2)&&r2.preventDefault()}))}o2&&!r2.defaultPrevented&&o2.call(e3,r2)}C({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(e3,i3){t2[i3]=function(t3){return o(32,false,void 0,{[`Highcharts.${i3}`]:`use Array.${e3}`}),Array.prototype[e3].apply(t3,[].slice.call(arguments,1))}}));let w2=function(){let t3=Math.random().toString(36).substring(2,9)+"-",i3=0;return function(){return"highcharts-"+(e2?"":t3)+i3++}}();return r.jQuery&&(r.jQuery.fn.highcharts=function(){let e3=[].slice.call(arguments);if(this[0])return e3[0]?(new(t2[a(e3[0])?e3.shift():"Chart"])(this[0],e3[0],e3[1]),this):i2[g(this[0],"data-highcharts-chart")]}),{addEvent:function(e3,i3,s2,r2={}){let o2="function"==typeof e3&&e3.prototype||e3;Object.hasOwnProperty.call(o2,"hcEvents")||(o2.hcEvents={});let n2=o2.hcEvents;t2.Point&&e3 instanceof t2.Point&&e3.series&&e3.series.chart&&(e3.series.chart.runTrackerClick=true);let a2=e3.addEventListener;a2&&a2.call(e3,i3,s2,!!t2.supportsPassiveEvents&&{passive:void 0===r2.passive?-1!==i3.indexOf("touch"):r2.passive,capture:false}),n2[i3]||(n2[i3]=[]);let h2={fn:s2,order:"number"==typeof r2.order?r2.order:1/0};return n2[i3].push(h2),n2[i3].sort(((t3,e4)=>t3.order-e4.order)),function(){k(e3,i3,s2)}},arrayMax:function(t3){let e3=t3.length,i3=t3[0];for(;e3--;)t3[e3]>i3&&(i3=t3[e3]);return i3},arrayMin:function(t3){let e3=t3.length,i3=t3[0];for(;e3--;)t3[e3]e3?t3{let s2=e3%2/2,r2=i3?-1:1;return(Math.round(t3*r2-s2)+s2)*r2},css:y,defined:u,destroyObjectProperties:function(t3,e3,i3){C(t3,(function(s2,r2){s2!==e3&&(s2==null?void 0:s2.destroy)&&s2.destroy(),((s2==null?void 0:s2.destroy)||!i3)&&delete t3[r2]}))},diffObjects:function(t3,e3,i3,s2){let r2={};return function t4(e4,r3,o2,n2){let a2=i3?r3:e4;C(e4,(function(i4,d2){if(!n2&&s2&&s2.indexOf(d2)>-1&&r3[d2]){i4=f(i4),o2[d2]=[];for(let e5=0;e5{if(t4.length>1)for(o2=t4.length-1;o2>0;o2--)(r2=t4[o2]-t4[o2-1])<0&&!n2?(e3==null?void 0:e3(),e3=void 0):r2&&(void 0===i3||r2=i4-1&&(i4=Math.floor(s3)),Math.max(0,i4-(t3(e3,"padding-left",true)||0)-(t3(e3,"padding-right",true)||0))}if("height"===i3)return Math.max(0,Math.min(e3.offsetHeight,e3.scrollHeight)-(t3(e3,"padding-top",true)||0)-(t3(e3,"padding-bottom",true)||0));let a2=r.getComputedStyle(e3,void 0);return a2&&(o2=a2.getPropertyValue(i3),x(s2,"opacity"!==i3)&&(o2=n(o2))),o2},inArray:function(t3,e3,i3){return o(32,false,void 0,{"Highcharts.inArray":"use Array.indexOf"}),e3.indexOf(t3,i3)},insertItem:function(t3,e3){let i3;let s2=t3.options.index,r2=e3.length;for(i3=t3.options.isInternal?r2:0;i3=t3))&&(r2||!(a2<=(e3[o2]+(e3[o2+1]||e3[o2]))/2)));o2++);return v(n2*i3,-Math.round(Math.log(.001)/Math.LN10))},objectEach:C,offset:function(t3){let e3=s.documentElement,i3=t3.parentElement||t3.parentNode?t3.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i3.top+(r.pageYOffset||e3.scrollTop)-(e3.clientTop||0),left:i3.left+(r.pageXOffset||e3.scrollLeft)-(e3.clientLeft||0),width:i3.width,height:i3.height}},pad:function(t3,e3,i3){return Array((e3||2)+1-String(t3).replace("-","").length).join(i3||"0")+t3},pick:x,pInt:n,pushUnique:function(t3,e3){return 0>t3.indexOf(e3)&&!!t3.push(e3)},relativeLength:function(t3,e3,i3){return/%$/.test(t3)?e3*parseFloat(t3)/100+(i3||0):parseFloat(t3)},removeEvent:k,replaceNested:function(t3,...e3){let i3,s2;do{for(s2 of(i3=t3,e3))t3=t3.replace(s2[0],s2[1])}while(t3!==i3);return t3},splat:f,stableSort:function(t3,e3){let i3,s2;let r2=t3.length;for(s2=0;s20?setTimeout(t3,e3,i3):(t3.call(0,i3),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:w2,useSerialIds:function(t3){return e2=x(t3,e2)},wrap:function(t3,e3,i3){let s2=t3[e3];t3[e3]=function(){let t4=arguments,e4=this;return i3.apply(this,[function(){return s2.apply(e4,arguments.length?arguments:t4)}].concat([].slice.call(arguments)))}}}})),i(e,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:false,panning:{enabled:false,type:"x"},styledMode:false,borderRadius:0,colorCount:10,allowMutatingData:true,ignoreHiddenSeries:true,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:true,type:"line",zooming:{singleTouch:false,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),i(e,"Core/Color/Palettes.js",[],(function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}})),i(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2){let{win:i2}=t2,{defined:s,error:r,extend:o,isNumber:n,isObject:a,merge:h,objectEach:l,pad:d,pick:c,splat:p,timeUnits:u}=e2,g=t2.isSafari&&i2.Intl&&i2.Intl.DateTimeFormat.prototype.formatRange,f=t2.isSafari&&i2.Intl&&!i2.Intl.DateTimeFormat.prototype.formatRange;class m{constructor(t3){this.options={},this.useUTC=false,this.variableTimezone=false,this.Date=i2.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t3)}get(t3,e3){if(this.variableTimezone||this.timezoneOffset){let i3=e3.getTime(),s2=i3-this.getTimezoneOffset(e3);e3.setTime(s2);let r2=e3["getUTC"+t3]();return e3.setTime(i3),r2}return this.useUTC?e3["getUTC"+t3]():e3["get"+t3]()}set(t3,e3,i3){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t3||"Seconds"===t3||"Minutes"===t3&&this.getTimezoneOffset(e3)%36e5==0)return e3["setUTC"+t3](i3);let s2=this.getTimezoneOffset(e3),r2=e3.getTime()-s2;e3.setTime(r2),e3["setUTC"+t3](i3);let o2=this.getTimezoneOffset(e3);return r2=e3.getTime()+o2,e3.setTime(r2)}return this.useUTC||g&&"FullYear"===t3?e3["setUTC"+t3](i3):e3["set"+t3](i3)}update(t3={}){let e3=c(t3.useUTC,true);this.options=t3=h(true,this.options,t3),this.Date=t3.Date||i2.Date||Date,this.useUTC=e3,this.timezoneOffset=e3&&t3.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e3&&!!(t3.getTimezoneOffset||t3.timezone)}makeTime(t3,e3,i3,s2,r2,o2){let n2,a2,h2;return this.useUTC?(n2=this.Date.UTC.apply(0,arguments),a2=this.getTimezoneOffset(n2),n2+=a2,a2!==(h2=this.getTimezoneOffset(n2))?n2+=h2-a2:a2-36e5!==this.getTimezoneOffset(n2-36e5)||f||(n2-=36e5)):n2=new this.Date(t3,e3,c(i3,1),c(s2,0),c(r2,0),c(o2,0)).getTime(),n2}timezoneOffsetFunction(){let t3=this,e3=this.options,i3=e3.getTimezoneOffset;return this.useUTC?e3.timezone?t4=>{try{let i4=`shortOffset,${e3.timezone||""}`,[s2,r2,o2,a2,h2=0]=(m.formatCache[i4]=m.formatCache[i4]||Intl.DateTimeFormat("en",{timeZone:e3.timezone,timeZoneName:"shortOffset"})).format(t4).split(/(GMT|:)/).map(Number),l2=-(36e5*(o2+h2/60));if(n(l2))return l2}catch(t5){r(34)}return 0}:this.useUTC&&i3?t4=>6e4*i3(t4.valueOf()):()=>6e4*(t3.timezoneOffset||0):t4=>6e4*new Date(t4.toString()).getTimezoneOffset()}dateFormat(e3,i3,r2){if(!s(i3)||isNaN(i3))return t2.defaultOptions.lang&&t2.defaultOptions.lang.invalidDate||"";e3=c(e3,"%Y-%m-%d %H:%M:%S");let n2=this,a2=new this.Date(i3),h2=this.get("Hours",a2),p2=this.get("Day",a2),u2=this.get("Date",a2),g2=this.get("Month",a2),f2=this.get("FullYear",a2),m2=t2.defaultOptions.lang,x=m2&&m2.weekdays,y=m2&&m2.shortWeekdays;return l(o({a:y?y[p2]:x[p2].substr(0,3),A:x[p2],d:d(u2),e:d(u2,2," "),w:p2,b:m2.shortMonths[g2],B:m2.months[g2],m:d(g2+1),o:g2+1,y:f2.toString().substr(2,2),Y:f2,H:d(h2),k:h2,I:d(h2%12||12),l:h2%12||12,M:d(this.get("Minutes",a2)),p:h2<12?"AM":"PM",P:h2<12?"am":"pm",S:d(this.get("Seconds",a2)),L:d(Math.floor(i3%1e3),3)},t2.dateFormats),(function(t3,s2){for(;-1!==e3.indexOf("%"+s2);)e3=e3.replace("%"+s2,"function"==typeof t3?t3.call(n2,i3):t3)})),r2?e3.substr(0,1).toUpperCase()+e3.substr(1):e3}resolveDTLFormat(t3){return a(t3,true)?t3:{main:(t3=p(t3))[0],from:t3[1],to:t3[2]}}getTimeTicks(t3,e3,i3,r2){let n2,a2,h2,l2;let d2=this,p2=d2.Date,g2=[],f2={},m2=new p2(e3),x=t3.unitRange,y=t3.count||1;if(r2=c(r2,1),s(e3)){d2.set("Milliseconds",m2,x>=u.second?0:y*Math.floor(d2.get("Milliseconds",m2)/y)),x>=u.second&&d2.set("Seconds",m2,x>=u.minute?0:y*Math.floor(d2.get("Seconds",m2)/y)),x>=u.minute&&d2.set("Minutes",m2,x>=u.hour?0:y*Math.floor(d2.get("Minutes",m2)/y)),x>=u.hour&&d2.set("Hours",m2,x>=u.day?0:y*Math.floor(d2.get("Hours",m2)/y)),x>=u.day&&d2.set("Date",m2,x>=u.month?1:Math.max(1,y*Math.floor(d2.get("Date",m2)/y))),x>=u.month&&(d2.set("Month",m2,x>=u.year?0:y*Math.floor(d2.get("Month",m2)/y)),a2=d2.get("FullYear",m2)),x>=u.year&&(a2-=a2%y,d2.set("FullYear",m2,a2)),x===u.week&&(l2=d2.get("Day",m2),d2.set("Date",m2,d2.get("Date",m2)-l2+r2+(l24*u.month||d2.getTimezoneOffset(e3)!==d2.getTimezoneOffset(i3));let p3=m2.getTime();for(n2=1;p31?p3=d2.makeTime(a2,t4,o2,c2+n2*y):p3+=x*y,n2++;g2.push(p3),x<=u.hour&&g2.length<1e4&&g2.forEach((function(t5){t5%18e5==0&&"000000000"===d2.dateFormat("%H%M%S%L",t5)&&(f2[t5]="day")}))}return g2.info=o(t3,{higherRanks:f2,totalRange:x*y}),g2}getDateFormat(t3,e3,i3,s2){let r2=this.dateFormat("%m-%d %H:%M:%S.%L",e3),o2="01-01 00:00:00.000",n2={millisecond:15,second:12,minute:9,hour:6,day:3},a2="millisecond",h2=a2;for(a2 in u){if(t3===u.week&&+this.dateFormat("%w",e3)===i3&&r2.substr(6)===o2.substr(6)){a2="week";break}if(u[a2]>t3){a2=h2;break}if(n2[a2]&&r2.substr(n2[a2])!==o2.substr(n2[a2]))break;"week"!==a2&&(h2=a2)}return this.resolveDTLFormat(s2[a2]).main}}return m.formatCache={},m})),i(e,"Core/Defaults.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r){let{isTouchDevice:o}=e2,{fireEvent:n,merge:a}=r,h={colors:i2.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:true},chart:t2,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:true,align:"center",alignColumns:true,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:false,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:true,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:true,animation:{duration:300,easing:t3=>Math.sqrt(1-Math.pow(t3-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:false,snap:o?25:10,headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:true,stickOnContact:false,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:false},credits:{enabled:true,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};h.chart.styledMode=false;let l=new s(h.time);return{defaultOptions:h,defaultTime:l,getOptions:function(){return h},setOptions:function(t3){return n(e2,"setOptions",{options:t3}),a(true,h,t3),(t3.time||t3.global)&&(e2.time?e2.time.update(a(h.global,h.time,t3.global,t3.time)):e2.time=l),h}}})),i(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2){let{isNumber:i2,merge:s,pInt:r}=e2;class o{static parse(t3){return t3?new o(t3):o.None}constructor(e3){let i3,s2,r2,n;this.rgba=[NaN,NaN,NaN,NaN],this.input=e3;let a=t2.Color;if(a&&a!==o)return new a(e3);if("object"==typeof e3&&void 0!==e3.stops)this.stops=e3.stops.map((t3=>new o(t3[1])));else if("string"==typeof e3){if(this.input=e3=o.names[e3.toLowerCase()]||e3,"#"===e3.charAt(0)){let t3=e3.length,i4=parseInt(e3.substr(1),16);7===t3?s2=[(16711680&i4)>>16,(65280&i4)>>8,255&i4,1]:4===t3&&(s2=[(3840&i4)>>4|(3840&i4)>>8,(240&i4)>>4|240&i4,(15&i4)<<4|15&i4,1])}if(!s2)for(r2=o.parsers.length;r2--&&!s2;)(i3=(n=o.parsers[r2]).regex.exec(e3))&&(s2=n.parse(i3))}s2&&(this.rgba=s2)}get(t3){let e3=this.input,r2=this.rgba;if("object"==typeof e3&&void 0!==this.stops){let i3=s(e3);return i3.stops=[].slice.call(i3.stops),this.stops.forEach(((e4,s2)=>{i3.stops[s2]=[i3.stops[s2][0],e4.get(t3)]})),i3}return r2&&i2(r2[0])?"rgb"!==t3&&(t3||1!==r2[3])?"a"===t3?`${r2[3]}`:"rgba("+r2.join(",")+")":"rgb("+r2[0]+","+r2[1]+","+r2[2]+")":e3}brighten(t3){let e3=this.rgba;if(this.stops)this.stops.forEach((function(e4){e4.brighten(t3)}));else if(i2(t3)&&0!==t3)for(let i3=0;i3<3;i3++)e3[i3]+=r(255*t3),e3[i3]<0&&(e3[i3]=0),e3[i3]>255&&(e3[i3]=255);return this}setOpacity(t3){return this.rgba[3]=t3,this}tweenTo(t3,e3){let s2=this.rgba,r2=t3.rgba;if(!i2(s2[0])||!i2(r2[0]))return t3.input||"none";let o2=1!==r2[3]||1!==s2[3];return(o2?"rgba(":"rgb(")+Math.round(r2[0]+(s2[0]-r2[0])*(1-e3))+","+Math.round(r2[1]+(s2[1]-r2[1])*(1-e3))+","+Math.round(r2[2]+(s2[2]-r2[2])*(1-e3))+(o2?","+(r2[3]+(s2[3]-r2[3])*(1-e3)):"")+")"}}return o.names={white:"#ffffff",black:"#000000"},o.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t3){return[r(t3[1]),r(t3[2]),r(t3[3]),parseFloat(t3[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t3){return[r(t3[1]),r(t3[2]),r(t3[3]),1]}}],o.None=new o(""),o})),i(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{parse:s}=t2,{win:r}=e2,{isNumber:o,objectEach:n}=i2;class a{constructor(t3,e3,i3){this.pos=NaN,this.options=e3,this.elem=t3,this.prop=i3}dSetter(){let t3=this.paths,e3=t3&&t3[0],i3=t3&&t3[1],s2=this.now||0,r2=[];if(1!==s2&&e3&&i3){if(e3.length===i3.length&&s2<1)for(let t4=0;t4=h+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=true,i3=true,n(l,(function(t4){true!==t4&&(i3=false)})),i3&&a2&&a2.call(o2),e3=false):(this.pos=r2.easing((s2-this.startTime)/h),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e3=true),e3}initPath(t3,e3,i3){let s2=t3.startX,r2=t3.endX,n2=i3.slice(),a2=t3.isArea,h=a2?2:1,l=e3&&i3.length>e3.length&&i3.hasStackedCliffs,d,c,p,u,g=e3&&e3.slice();if(!g||l)return[n2,n2];function f(t4,e4){for(;t4.length{let s3=d(t4.options.animation);a2=n(e3)&&i2(e3.defer)?r2.defer:Math.max(a2,s3.duration+s3.defer),h2=Math.min(r2.duration,s3.duration)})),t3.renderer.forExport&&(a2=0),{defer:Math.max(0,a2-h2),duration:Math.min(a2,h2)}},setAnimation:function(t3,e3){e3.renderer.globalAnimation=l(t3,e3.options.chart.animation,true)},stop:c}})),i(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2){let{SVG_NS:i2,win:s}=t2,{attr:r,createElement:o,css:n,error:a,isFunction:h,isString:l,objectEach:d,splat:c}=e2,{trustedTypes:p}=s,u=p&&h(p.createPolicy)&&p.createPolicy("highcharts",{createHTML:t3=>t3}),g=u?u.createHTML(""):"",f=function(){try{return!!(new DOMParser).parseFromString(g,"text/html")}catch(t3){return false}}();class m{static filterUserAttributes(t3){return d(t3,((e3,i3)=>{let s2=true;-1===m.allowedAttributes.indexOf(i3)&&(s2=false),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i3)&&(s2=l(e3)&&m.allowedReferences.some((t4=>0===e3.indexOf(t4)))),s2||(a(33,false,void 0,{"Invalid attribute in config":`${i3}`}),delete t3[i3]),l(e3)&&t3[i3]&&(t3[i3]=e3.replace(/{let i3=e3.split(":").map((t5=>t5.trim())),s2=i3.shift();return s2&&i3.length&&(t4[s2.replace(/-([a-z])/g,(t5=>t5[1].toUpperCase()))]=i3.join(":")),t4}),{})}static setElementHTML(t3,e3){t3.innerHTML=m.emptyHTML,e3&&new m(e3).addToDOM(t3)}constructor(t3){this.nodes="string"==typeof t3?this.parseMarkup(t3):t3}addToDOM(e3){return function e4(s2,o2){let h2;return c(s2).forEach((function(s3){let l2;let c2=s3.tagName,p2=s3.textContent?t2.doc.createTextNode(s3.textContent):void 0,u2=m.bypassHTMLFiltering;if(c2){if("#text"===c2)l2=p2;else if(-1!==m.allowedTags.indexOf(c2)||u2){let a2="svg"===c2?i2:o2.namespaceURI||i2,h3=t2.doc.createElementNS(a2,c2),g2=s3.attributes||{};d(s3,(function(t3,e5){"tagName"!==e5&&"attributes"!==e5&&"children"!==e5&&"style"!==e5&&"textContent"!==e5&&(g2[e5]=t3)})),r(h3,u2?g2:m.filterUserAttributes(g2)),s3.style&&n(h3,s3.style),p2&&h3.appendChild(p2),e4(s3.children||[],h3),l2=h3}else a(33,false,void 0,{"Invalid tagName in config":c2})}l2&&o2.appendChild(l2),h2=l2})),h2}(this.nodes,e3)}parseMarkup(t3){let e3;let i3=[];if(t3=t3.trim().replace(/ style=(["'])/g," data-style=$1"),f)e3=(new DOMParser).parseFromString(u?u.createHTML(t3):t3,"text/html");else{let i4=o("div");i4.innerHTML=t3,e3={body:i4}}let s2=(t4,e4)=>{let i4=t4.nodeName.toLowerCase(),r2={tagName:i4};"#text"===i4&&(r2.textContent=t4.textContent||"");let o2=t4.attributes;if(o2){let t5={};[].forEach.call(o2,(e5=>{"data-style"===e5.name?r2.style=m.parseStyle(e5.value):t5[e5.name]=e5.value})),r2.attributes=t5}if(t4.childNodes.length){let e5=[];[].forEach.call(t4.childNodes,(t5=>{s2(t5,e5)})),e5.length&&(r2.children=e5)}e4.push(r2)};return[].forEach.call(e3.body.childNodes,(t4=>s2(t4,i3))),i3}}return m.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],m.allowedReferences=["https://","http://","mailto:","/","../","./","#"],m.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],m.emptyHTML=g,m.bypassHTMLFiltering=false,m})),i(e,"Core/Templating.js",[e["Core/Defaults.js"],e["Core/Utilities.js"]],(function(t2,e2){let{defaultOptions:i2,defaultTime:s}=t2,{extend:r,getNestedProperty:o,isArray:n,isNumber:a,isObject:h,pick:l,pInt:d}=e2,c={add:(t3,e3)=>t3+e3,divide:(t3,e3)=>0!==e3?t3/e3:"",eq:(t3,e3)=>t3==e3,each:function(t3){let e3=arguments[arguments.length-1];return!!n(t3)&&t3.map(((i3,s2)=>p(e3.body,r(h(i3)?i3:{"@this":i3},{"@index":s2,"@first":0===s2,"@last":s2===t3.length-1})))).join("")},ge:(t3,e3)=>t3>=e3,gt:(t3,e3)=>t3>e3,if:t3=>!!t3,le:(t3,e3)=>t3<=e3,lt:(t3,e3)=>t3t3*e3,ne:(t3,e3)=>t3!=e3,subtract:(t3,e3)=>t3-e3,unless:t3=>!t3};function p(t3="",e3,r2){let n2=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,a2=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,h2=[],d2=/f$/,g=/\.(\d)/,f=i2.lang,m=r2&&r2.time||s,x=r2&&r2.numberFormatter||u,y=(t4="")=>{let i3;return"true"===t4||"false"!==t4&&((i3=Number(t4)).toString()===t4?i3:o(t4,e3))},b,v,S=0,C;for(;null!==(b=n2.exec(t3));){let i3=a2.exec(b[1]);i3&&(b=i3,C=true),v&&v.isBlock||(v={ctx:e3,expression:b[1],find:b[0],isBlock:"#"===b[1].charAt(0),start:b.index,startInner:b.index+b[0].length,length:b[0].length});let s2=b[1].split(" ")[0].replace("#","");c[s2]&&(v.isBlock&&s2===v.fn&&S++,v.fn||(v.fn=s2));let r3="else"===b[1];if(v.isBlock&&v.fn&&(b[1]===`/${v.fn}`||r3)){if(S)!r3&&S--;else{let e4=v.startInner,i4=t3.substr(e4,b.index-e4);void 0===v.body?(v.body=i4,v.startInner=b.index+b[0].length):v.elseBody=i4,v.find+=i4+b[0],r3||(h2.push(v),v=void 0)}}else v.isBlock||h2.push(v);if(i3&&!(v==null?void 0:v.isBlock))break}return h2.forEach((i3=>{let s2,o2;let{body:n3,elseBody:a3,expression:h3,fn:u2}=i3;if(u2){let t4=[i3],l2=h3.split(" ");for(o2=c[u2].length;o2--;)t4.unshift(y(l2[o2+1]));s2=c[u2].apply(e3,t4),i3.isBlock&&"boolean"==typeof s2&&(s2=p(s2?n3:a3,e3,r2))}else{let t4=h3.split(":");if(s2=y(t4.shift()||""),t4.length&&"number"==typeof s2){let e4=t4.join(":");if(d2.test(e4)){let t5=parseInt((e4.match(g)||["","-1"])[1],10);null!==s2&&(s2=x(s2,t5,f.decimalPoint,e4.indexOf(",")>-1?f.thousandsSep:""))}else s2=m.dateFormat(e4,s2)}}t3=t3.replace(i3.find,l(s2,""))})),C?p(t3,e3,r2):t3}function u(t3,e3,s2,r2){let o2,n2;t3=+t3||0,e3=+e3;let h2=i2.lang,c2=(t3.toString().split(".")[1]||"").split("e")[0].length,p2=t3.toString().split("e"),u2=e3;-1===e3?e3=Math.min(c2,20):a(e3)?e3&&p2[1]&&p2[1]<0&&((n2=e3+ +p2[1])>=0?(p2[0]=(+p2[0]).toExponential(n2).split("e")[0],e3=n2):(p2[0]=p2[0].split(".")[0]||0,t3=e3<20?(p2[0]*Math.pow(10,p2[1])).toFixed(e3):0,p2[1]=0)):e3=2;let g=(Math.abs(p2[1]?p2[0]:t3)+Math.pow(10,-Math.max(e3,c2)-1)).toFixed(e3),f=String(d(g)),m=f.length>3?f.length%3:0;return s2=l(s2,h2.decimalPoint),r2=l(r2,h2.thousandsSep),o2=(t3<0?"-":"")+(m?f.substr(0,m)+r2:""),0>+p2[1]&&!u2?o2="0":o2+=f.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+r2),e3?o2+=s2+g.slice(-e3):0==+o2&&(o2="0"),p2[1]&&0!=+o2&&(o2+="e"+p2[1]),o2}return{dateFormat:function(t3,e3,i3){return s.dateFormat(t3,e3,i3)},format:p,helpers:c,numberFormat:u}})),i(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],(function(t2){var e2,i2;let s;return(i2=e2||(e2={})).rendererTypes={},i2.getRendererType=function(t3=s){return i2.rendererTypes[t3]||i2.rendererTypes[s]},i2.registerRendererType=function(e3,r,o){i2.rendererTypes[e3]=r,(!s||o)&&(s=e3,t2.Renderer=r)},e2})),i(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],(function(t2){var e2;let{clamp:i2,pick:s,pushUnique:r,stableSort:o}=t2;return(e2||(e2={})).distribute=function t3(e3,n,a){let h=e3,l=h.reducedLen||n,d=(t4,e4)=>t4.target-e4.target,c=[],p=e3.length,u=[],g=c.push,f,m,x,y=true,b,v,S=0,C;for(f=p;f--;)S+=e3[f].size;if(S>l){for(o(e3,((t4,e4)=>(e4.rank||0)-(t4.rank||0))),x=(C=e3[0].rank===e3[e3.length-1].rank)?p/2:-1,m=C?x:p-1;x&&S>l;)b=e3[f=Math.floor(m)],r(u,f)&&(S-=b.size),m+=x,C&&m>=e3.length&&(x/=2,m=x);u.sort(((t4,e4)=>e4-t4)).forEach((t4=>g.apply(c,e3.splice(t4,1))))}for(o(e3,d),e3=e3.map((t4=>({size:t4.size,targets:[t4.target],align:s(t4.align,.5)})));y;){for(f=e3.length;f--;)b=e3[f],v=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=i2(v-b.size*b.align,0,n-b.size);for(f=e3.length,y=false;f--;)f>0&&e3[f-1].pos+e3[f-1].size>e3[f].pos&&(e3[f-1].size+=e3[f].size,e3[f-1].targets=e3[f-1].targets.concat(e3[f].targets),e3[f-1].align=.5,e3[f-1].pos+e3[f-1].size>n&&(e3[f-1].pos=n-e3[f-1].size),e3.splice(f,1),y=true)}return g.apply(h,c),f=0,e3.some((e4=>{let i3=0;return(e4.targets||[]).some((()=>(h[f].pos=e4.pos+i3,void 0!==a&&Math.abs(h[f].pos-h[f].target)>a)?(h.slice(0,f+1).forEach((t4=>delete t4.pos)),h.reducedLen=(h.reducedLen||n)-.1*n,h.reducedLen>.1*n&&t3(h,n,a),true):(i3+=h[f].size,f++,false)))})),o(h,d),h},e2})),i(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{animate:r,animObject:o,stop:n}=t2,{deg2rad:a,doc:h,svg:l,SVG_NS:d,win:c}=i2,{addEvent:p,attr:u,createElement:g,crisp:f,css:m,defined:x,erase:y,extend:b,fireEvent:v,isArray:S,isFunction:C,isObject:k,isString:M,merge:w2,objectEach:T,pick:A,pInt:P,pushUnique:L,replaceNested:O,syncTimeout:D,uniqueKey:E}=s;class I{_defaultGetter(t3){let e3=A(this[t3+"Value"],this[t3],this.element?this.element.getAttribute(t3):null,0);return/^-?[\d\.]+$/.test(e3)&&(e3=parseFloat(e3)),e3}_defaultSetter(t3,e3,i3){i3.setAttribute(e3,t3)}add(t3){let e3;let i3=this.renderer,s2=this.element;return t3&&(this.parentGroup=t3),void 0!==this.textStr&&"text"===this.element.nodeName&&i3.buildText(this),this.added=true,(!t3||t3.handleZ||this.zIndex)&&(e3=this.zIndexSetter()),e3||(t3?t3.element:i3.box).appendChild(s2),this.onAdd&&this.onAdd(),this}addClass(t3,e3){let i3=e3?"":this.attr("class")||"";return(t3=(t3||"").split(/ /g).reduce((function(t4,e4){return-1===i3.indexOf(e4)&&t4.push(e4),t4}),i3?[i3]:[]).join(" "))!==i3&&this.attr("class",t3),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=false)}align(t3,e3,i3,s2=true){let r2,o2,n2,a2;let h2={},l2=this.renderer,d2=l2.alignedObjects,c2=!!t3;t3?(this.alignOptions=t3,this.alignByTranslate=e3,this.alignTo=i3):(t3=this.alignOptions||{},e3=this.alignByTranslate,i3=this.alignTo);let p2=!i3||M(i3)?i3||"renderer":void 0;p2&&(c2&&L(d2,this),i3=void 0);let u2=A(i3,l2[p2],l2),g2=t3.align,f2=t3.verticalAlign;return r2=(u2.x||0)+(t3.x||0),o2=(u2.y||0)+(t3.y||0),"right"===g2?n2=1:"center"===g2&&(n2=2),n2&&(r2+=((u2.width||0)-(t3.width||0))/n2),h2[e3?"translateX":"x"]=Math.round(r2),"bottom"===f2?a2=1:"middle"===f2&&(a2=2),a2&&(o2+=((u2.height||0)-(t3.height||0))/a2),h2[e3?"translateY":"y"]=Math.round(o2),s2&&(this[this.placed?"animate":"attr"](h2),this.placed=true),this.alignAttr=h2,this}alignSetter(t3){let e3={left:"start",center:"middle",right:"end"};e3[t3]&&(this.alignValue=t3,this.element.setAttribute("text-anchor",e3[t3]))}animate(t3,e3,i3){let s2=o(A(e3,this.renderer.globalAnimation,true)),n2=s2.defer;return h.hidden&&(s2.duration=0),0!==s2.duration?(i3&&(s2.complete=i3),D((()=>{this.element&&r(this,t3,s2)}),n2)):(this.attr(t3,void 0,i3||s2.complete),T(t3,(function(t4,e4){s2.step&&s2.step.call(this,t4,{prop:e4,pos:1,elem:this})}),this)),this}applyTextOutline(t3){let e3=this.element;-1!==t3.indexOf("contrast")&&(t3=t3.replace(/contrast/g,this.renderer.getContrast(e3.style.fill)));let s2=t3.split(" "),r2=s2[s2.length-1],o2=s2[0];if(o2&&"none"!==o2&&i2.svg){this.fakeTS=true,o2=o2.replace(/(^[\d\.]+)(.*?)$/g,(function(t5,e4,i4){return 2*Number(e4)+i4})),this.removeTextOutline();let t4=h.createElementNS(d,"tspan");u(t4,{class:"highcharts-text-outline",fill:r2,stroke:r2,"stroke-width":o2,"stroke-linejoin":"round"});let i3=e3.querySelector("textPath")||e3;[].forEach.call(i3.childNodes,(e4=>{let i4=e4.cloneNode(true);i4.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((t5=>i4.removeAttribute(t5))),t4.appendChild(i4)}));let s3=0;[].forEach.call(i3.querySelectorAll("text tspan"),(t5=>{s3+=Number(t5.getAttribute("dy"))}));let n2=h.createElementNS(d,"tspan");n2.textContent="​",u(n2,{x:Number(e3.getAttribute("x")),dy:-s3}),t4.appendChild(n2),i3.insertBefore(t4,i3.firstChild)}}attr(t3,e3,i3,s2){let{element:r2}=this,o2=I.symbolCustomAttribs,a2,h2,l2=this,d2;return"string"==typeof t3&&void 0!==e3&&(a2=t3,(t3={})[a2]=e3),"string"==typeof t3?l2=(this[t3+"Getter"]||this._defaultGetter).call(this,t3,r2):(T(t3,(function(e4,i4){d2=false,s2||n(this,i4),this.symbolName&&-1!==o2.indexOf(i4)&&(h2||(this.symbolAttr(t3),h2=true),d2=true),this.rotation&&("x"===i4||"y"===i4)&&(this.doTransform=true),d2||(this[i4+"Setter"]||this._defaultSetter).call(this,e4,i4,r2)}),this),this.afterSetters()),i3&&i3.call(this),l2}clip(t3){if(t3&&!t3.clipPath){let e3=E()+"-",i3=this.renderer.createElement("clipPath").attr({id:e3}).add(this.renderer.defs);b(t3,{clipPath:i3,id:e3,count:0}),t3.add(i3)}return this.attr("clip-path",t3?`url(${this.renderer.url}#${t3.id})`:"none")}crisp(t3,e3){e3=Math.round(e3||t3.strokeWidth||0);let i3=t3.x||this.x||0,s2=t3.y||this.y||0,r2=(t3.width||this.width||0)+i3,o2=(t3.height||this.height||0)+s2,n2=f(i3,e3),a2=f(s2,e3);return b(t3,{x:n2,y:a2,width:f(r2,e3)-n2,height:f(o2,e3)-a2}),x(t3.strokeWidth)&&(t3.strokeWidth=e3),t3}complexColor(t3,i3,s2){let r2=this.renderer,o2,n2,a2,h2,l2,d2,c2,p2,u2,g2,f2=[],m2;v(this.renderer,"complexColor",{args:arguments},(function(){if(t3.radialGradient?n2="radialGradient":t3.linearGradient&&(n2="linearGradient"),n2){if(a2=t3[n2],l2=r2.gradients,d2=t3.stops,u2=s2.radialReference,S(a2)&&(t3[n2]=a2={x1:a2[0],y1:a2[1],x2:a2[2],y2:a2[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===n2&&u2&&!x(a2.gradientUnits)&&(h2=a2,a2=w2(a2,r2.getRadialAttr(u2,h2),{gradientUnits:"userSpaceOnUse"})),T(a2,(function(t4,e3){"id"!==e3&&f2.push(e3,t4)})),T(d2,(function(t4){f2.push(t4)})),l2[f2=f2.join(",")])g2=l2[f2].attr("id");else{a2.id=g2=E();let t4=l2[f2]=r2.createElement(n2).attr(a2).add(r2.defs);t4.radAttr=h2,t4.stops=[],d2.forEach((function(i4){0===i4[1].indexOf("rgba")?(c2=(o2=e2.parse(i4[1])).get("rgb"),p2=o2.get("a")):(c2=i4[1],p2=1);let s3=r2.createElement("stop").attr({offset:i4[0],"stop-color":c2,"stop-opacity":p2}).add(t4);t4.stops.push(s3)}))}m2="url("+r2.url+"#"+g2+")",s2.setAttribute(i3,m2),s2.gradient=f2,t3.toString=function(){return m2}}}))}css(t3){let e3=this.styles,i3={},s2=this.element,r2,o2=!e3;if(e3&&T(t3,(function(t4,s3){e3&&e3[s3]!==t4&&(i3[s3]=t4,o2=true)})),o2){e3&&(t3=b(e3,i3)),null===t3.width||"auto"===t3.width?delete this.textWidth:"text"===s2.nodeName.toLowerCase()&&t3.width&&(r2=this.textWidth=P(t3.width)),b(this.styles,t3),r2&&!l&&this.renderer.forExport&&delete t3.width;let o3=w2(t3);s2.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach((t4=>o3&&delete o3[t4])),o3.color&&(o3.fill=o3.color)),m(s2,o3)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t3.textOutline&&this.applyTextOutline(t3.textOutline)),this}dashstyleSetter(t3){let e3,i3=this["stroke-width"];if("inherit"===i3&&(i3=1),t3=t3&&t3.toLowerCase()){let s2=t3.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e3=s2.length;e3--;)s2[e3]=""+P(s2[e3])*A(i3,NaN);t3=s2.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t3)}}destroy(){var _a;let t3=this,e3=t3.element||{},i3=t3.renderer,s2=e3.ownerSVGElement,r2="SPAN"===e3.nodeName&&t3.parentGroup||void 0,o2,a2;if(e3.onclick=e3.onmouseout=e3.onmouseover=e3.onmousemove=e3.point=null,n(t3),t3.clipPath&&s2){let e4=t3.clipPath;[].forEach.call(s2.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t4){t4.getAttribute("clip-path").indexOf(e4.element.id)>-1&&t4.removeAttribute("clip-path")})),t3.clipPath=e4.destroy()}if(t3.connector=(_a=t3.connector)==null?void 0:_a.destroy(),t3.stops){for(a2=0;a2e4&&e4.join?(i4?t4+" ":"")+e4.join(" "):(e4||"").toString()),"")),/(NaN| {2}|^$)/.test(t3)&&(t3="M 0 0"),this[e3]!==t3&&(i3.setAttribute(e3,t3),this[e3]=t3)}fillSetter(t3,e3,i3){"string"==typeof t3?i3.setAttribute(e3,t3):t3&&this.complexColor(t3,e3,i3)}hrefSetter(t3,e3,i3){i3.setAttributeNS("http://www.w3.org/1999/xlink",e3,t3)}getBBox(t3,e3){let i3,s2,r2,o2;let{alignValue:n2,element:a2,renderer:h2,styles:l2,textStr:d2}=this,{cache:c2,cacheKeys:p2}=h2,u2=a2.namespaceURI===this.SVG_NS,g2=A(e3,this.rotation,0),f2=h2.styledMode?a2&&I.prototype.getStyle.call(a2,"font-size"):l2.fontSize;if(x(d2)&&(-1===(o2=d2.toString()).indexOf("<")&&(o2=o2.replace(/\d/g,"0")),o2+=["",h2.rootFontSize,f2,g2,this.textWidth,n2,l2.textOverflow,l2.fontWeight].join(",")),o2&&!t3&&(i3=c2[o2]),!i3||i3.polygon){if(u2||h2.forExport){try{r2=this.fakeTS&&function(t5){let e4=a2.querySelector(".highcharts-text-outline");e4&&m(e4,{display:t5})},C(r2)&&r2("none"),i3=a2.getBBox?b({},a2.getBBox()):{width:a2.offsetWidth,height:a2.offsetHeight,x:0,y:0},C(r2)&&r2("")}catch(t5){}(!i3||i3.width<0)&&(i3={x:0,y:0,width:0,height:0})}else i3=this.htmlGetBBox();s2=i3.height,u2&&(i3.height=s2={"11px,17":14,"13px,20":16}[`${f2||""},${Math.round(s2)}`]||s2),g2&&(i3=this.getRotatedBox(i3,g2));let t4={bBox:i3};v(this,"afterGetBBox",t4),i3=t4.bBox}if(o2&&(""===d2||i3.height>0)){for(;p2.length>250;)delete c2[p2.shift()];c2[o2]||p2.push(o2),c2[o2]=i3}return i3}getRotatedBox(t3,e3){let{x:i3,y:s2,width:r2,height:o2}=t3,{alignValue:n2,translateY:h2,rotationOriginX:l2=0,rotationOriginY:d2=0}=this,c2={right:1,center:.5}[n2||0]||0,p2=Number(this.element.getAttribute("y")||0)-(h2?0:s2),u2=e3*a,g2=(e3-90)*a,f2=Math.cos(u2),m2=Math.sin(u2),x2=r2*f2,y2=r2*m2,b2=Math.cos(g2),v2=Math.sin(g2),[[S2,C2],[k2,M2]]=[l2,d2].map((t4=>[t4-t4*f2,t4*m2])),w3=i3+c2*(r2-x2)+S2+M2+p2*b2,T2=w3+x2,A2=T2-o2*b2,P2=A2-x2,L2=s2+p2-c2*y2-C2+k2+p2*v2,O2=L2+y2,D2=O2-o2*v2,E2=D2-y2,I2=Math.min(w3,T2,A2,P2),j=Math.min(L2,O2,D2,E2),B=Math.max(w3,T2,A2,P2)-I2,R=Math.max(L2,O2,D2,E2)-j;return{x:I2,y:j,width:B,height:R,polygon:[[w3,L2],[T2,O2],[A2,D2],[P2,E2]]}}getStyle(t3){return c.getComputedStyle(this.element||this,"").getPropertyValue(t3)}hasClass(t3){return-1!==(""+this.attr("class")).split(" ").indexOf(t3)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t3,e3){this.onEvents={},this.opacity=1,this.SVG_NS=d,this.element="span"===e3||"body"===e3?g(e3):h.createElementNS(this.SVG_NS,e3),this.renderer=t3,this.styles={},v(this,"afterInit")}on(t3,e3){let{onEvents:i3}=this;return i3[t3]&&i3[t3](),i3[t3]=p(this.element,t3,e3),this}opacitySetter(t3,e3,i3){let s2=Number(Number(t3).toFixed(3));this.opacity=s2,i3.setAttribute(e3,s2)}reAlign(){var _a;((_a=this.alignOptions)==null?void 0:_a.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=false,this.align())}removeClass(t3){return this.attr("class",(""+this.attr("class")).replace(M(t3)?RegExp(`(^| )${t3}( |$)`):t3," ").replace(/ +/g," ").trim())}removeTextOutline(){let t3=this.element.querySelector("tspan.highcharts-text-outline");t3&&this.safeRemoveChild(t3)}safeRemoveChild(t3){let e3=t3.parentNode;e3&&e3.removeChild(t3)}setRadialReference(t3){let e3=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t3,e3&&e3.radAttr&&e3.animate(this.renderer.getRadialAttr(t3,e3.radAttr)),this}shadow(t3){var _a;let{renderer:e3}=this,i3=w2(((_a=this.parentGroup)==null?void 0:_a.rotation)===90?{offsetX:-1,offsetY:-1}:{},k(t3)?t3:{}),s2=e3.shadowDefinition(i3);return this.attr({filter:t3?`url(${e3.url}#${s2})`:"none"})}show(t3=true){return this.attr({visibility:t3?"inherit":"visible"})}"stroke-widthSetter"(t3,e3,i3){this[e3]=t3,i3.setAttribute(e3,t3)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t3=this.getStyle("stroke-width"),e3=0,i3;return/px$/.test(t3)?e3=P(t3):""!==t3&&(u(i3=h.createElementNS(d,"rect"),{width:t3,"stroke-width":0}),this.element.parentNode.appendChild(i3),e3=i3.getBBox().width,i3.parentNode.removeChild(i3)),e3}symbolAttr(t3){let e3=this;I.symbolCustomAttribs.forEach((function(i3){e3[i3]=A(t3[i3],e3[i3])})),e3.attr({d:e3.renderer.symbols[e3.symbolName](e3.x,e3.y,e3.width,e3.height,e3)})}textSetter(t3){t3!==this.textStr&&(delete this.textPxLength,this.textStr=t3,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t3){let e3=this.element,i3=e3.getElementsByTagName("title")[0]||h.createElementNS(this.SVG_NS,"title");e3.insertBefore?e3.insertBefore(i3,e3.firstChild):e3.appendChild(i3),i3.textContent=O(A(t3,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let t3=this.element;return t3.parentNode.appendChild(t3),this}translate(t3,e3){return this.attr({translateX:t3,translateY:e3})}updateTransform(t3="transform"){var _a;let{element:e3,matrix:i3,rotation:s2=0,rotationOriginX:r2,rotationOriginY:o2,scaleX:n2,scaleY:a2,translateX:h2=0,translateY:l2=0}=this,d2=["translate("+h2+","+l2+")"];x(i3)&&d2.push("matrix("+i3.join(",")+")"),s2&&(d2.push("rotate("+s2+" "+A(r2,e3.getAttribute("x"),0)+" "+A(o2,e3.getAttribute("y")||0)+")"),((_a=this.text)==null?void 0:_a.element.tagName)==="SPAN"&&this.text.attr({rotation:s2,rotationOriginX:(r2||0)-this.padding,rotationOriginY:(o2||0)-this.padding})),(x(n2)||x(a2))&&d2.push("scale("+A(n2,1)+" "+A(a2,1)+")"),d2.length&&!(this.text||this).textPath&&e3.setAttribute(t3,d2.join(" "))}visibilitySetter(t3,e3,i3){"inherit"===t3?i3.removeAttribute(e3):this[e3]!==t3&&i3.setAttribute(e3,t3),this[e3]=t3}xGetter(t3){return"circle"===this.element.nodeName&&("x"===t3?t3="cx":"y"===t3&&(t3="cy")),this._defaultGetter(t3)}zIndexSetter(t3,e3){let i3=this.renderer,s2=this.parentGroup,r2=(s2||i3).element||i3.box,o2=this.element,n2=r2===i3.box,a2,h2,l2,d2=false,c2,p2=this.added,u2;if(x(t3)?(o2.setAttribute("data-z-index",t3),t3=+t3,this[e3]===t3&&(p2=false)):x(this[e3])&&o2.removeAttribute("data-z-index"),this[e3]=t3,p2){for((t3=this.zIndex)&&s2&&(s2.handleZ=true),u2=(a2=r2.childNodes).length-1;u2>=0&&!d2;u2--)c2=!x(l2=(h2=a2[u2]).getAttribute("data-z-index")),h2!==o2&&(t3<0&&c2&&!n2&&!u2?(r2.insertBefore(o2,a2[u2]),d2=true):(P(l2)<=t3||c2&&(!x(t3)||t3>=0))&&(r2.insertBefore(o2,a2[u2+1]),d2=true));d2||(r2.insertBefore(o2,a2[n2?3:0]),d2=true)}return d2}}return I.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],I.prototype.strokeSetter=I.prototype.fillSetter,I.prototype.yGetter=I.prototype.xGetter,I.prototype.matrixSetter=I.prototype.rotationOriginXSetter=I.prototype.rotationOriginYSetter=I.prototype.rotationSetter=I.prototype.scaleXSetter=I.prototype.scaleYSetter=I.prototype.translateXSetter=I.prototype.translateYSetter=I.prototype.verticalAlignSetter=function(t3,e3){this[e3]=t3,this.doTransform=true},I})),i(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t2,e2){let{defined:i2,extend:s,isNumber:r,merge:o,pick:n,removeEvent:a}=e2;class h extends t2{constructor(t3,e3,i3,s2,r2,o2,n2,a2,l,d){let c;super(t3,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=false,this.textStr=e3,this.x=i3,this.y=s2,this.anchorX=o2,this.anchorY=n2,this.baseline=l,this.className=d,this.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&this.addClass("highcharts-"+d),this.text=t3.text(void 0,0,0,a2).attr({zIndex:1}),"string"==typeof r2&&((c=/^url\((.*?)\)$/.test(r2))||this.renderer.symbols[r2])&&(this.symbolKey=r2),this.bBox=h.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t3.styledMode||c,this.deferredAttr={},this.alignFactor=0}alignSetter(t3){let e3={left:0,center:.5,right:1}[t3];e3!==this.alignFactor&&(this.alignFactor=e3,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(t3,e3){this.anchorX=t3,this.boxAttr(e3,Math.round(t3)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t3,e3){this.anchorY=t3,this.boxAttr(e3,t3-this.ySetting)}boxAttr(t3,e3){this.box?this.box.attr(t3,e3):this.deferredAttr[t3]=e3}css(e3){if(e3){let t3={};e3=o(e3),h.textProps.forEach((i3=>{void 0!==e3[i3]&&(t3[i3]=e3[i3],delete e3[i3])})),this.text.css(t3),"fontSize"in t3||"fontWeight"in t3?this.updateTextPadding():("width"in t3||"textOverflow"in t3)&&this.updateBoxSize()}return t2.prototype.css.call(this,e3)}destroy(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t2.prototype.destroy.call(this)}fillSetter(t3,e3){t3&&(this.needsBox=true),this.fill=t3,this.boxAttr(e3,t3)}getBBox(t3,e3){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:i3,height:s2=0,translateX:r2=0,translateY:o2=0,width:a2=0}=this,h2=n(this.paddingLeft,i3),l=e3??(this.rotation||0),d={width:a2,height:s2,x:r2+this.bBox.x-h2,y:o2+this.bBox.y-i3+this.baselineOffset};return l&&(d=this.getRotatedBox(d,l)),d}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t3){this.heightSetting=t3,this.doUpdate=true}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=false)}onAdd(){this.text.add(this),this.attr({text:n(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&i2(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t3,e3){r(t3)?t3!==this[e3]&&(this[e3]=t3,this.updateTextPadding()):this[e3]=void 0}rSetter(t3,e3){this.boxAttr(e3,t3)}strokeSetter(t3,e3){this.stroke=t3,this.boxAttr(e3,t3)}"stroke-widthSetter"(t3,e3){t3&&(this.needsBox=true),this["stroke-width"]=t3,this.boxAttr(e3,t3)}"text-alignSetter"(t3){this.textAlign=t3}textSetter(t3){void 0!==t3&&this.text.attr({text:t3}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t3;let e3=this.text,o2={},n2=this.padding,a2=this.bBox=(!r(this.widthSetting)||!r(this.heightSetting)||this.textAlign)&&i2(e3.textStr)?e3.getBBox(void 0,0):h.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a2.height||0)+2*n2;let l=this.renderer.fontMetrics(e3);if(this.baselineOffset=n2+Math.min((this.text.firstLineMetrics||l).b,a2.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-l.h)/2),this.needsBox&&!e3.textPath){if(!this.box){let t4=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t4.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t4.add(this)}t3=this.getCrispAdjust(),o2.x=t3,o2.y=(this.baseline?-this.baselineOffset:0)+t3,o2.width=Math.round(this.width),o2.height=Math.round(this.height),this.box.attr(s(o2,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t3=this.text;if(!t3.textPath){this.updateBoxSize();let e3=this.baseline?0:this.baselineOffset,s2=n(this.paddingLeft,this.padding);i2(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(s2+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(s2!==t3.x||e3!==t3.y)&&(t3.attr("x",s2),t3.hasBoxWidthChanged&&(this.bBox=t3.getBBox(true)),void 0!==e3&&t3.attr("y",e3)),t3.x=s2,t3.y=e3}}widthSetter(t3){this.widthSetting=r(t3)?t3:void 0,this.doUpdate=true}getPaddedWidth(){let t3=this.padding,e3=n(this.paddingLeft,t3),i3=n(this.paddingRight,t3);return(this.widthSetting||this.bBox.width||0)+e3+i3}xSetter(t3){this.x=t3,this.alignFactor&&(t3-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=true),this.xSetting=Math.round(t3),this.attr("translateX",this.xSetting)}ySetter(t3){this.ySetting=this.y=Math.round(t3),this.attr("translateY",this.ySetting)}}return h.emptyBBox={width:0,height:0,x:0,y:0},h.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],h})),i(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],(function(t2){let{defined:e2,isNumber:i2,pick:s}=t2;function r(t3,i3,r2,o2,n2){let a=[];if(n2){let h=n2.start||0,l=s(n2.r,r2),d=s(n2.r,o2||r2),c=2e-4/(n2.borderRadius?1:Math.max(l,1)),p=Math.abs((n2.end||0)-h-2*Math.PI)0&&d0)return c;if(t3+l>s2-h){if(d>e3+h&&de3+h&&d0){let i3=dr2&&lh&&c.splice(1,1,["L",l-6,e3],["L",l,e3-6],["L",l+6,e3],["L",s2-a,e3]);return c},circle:function(t3,e3,i3,s2){return r(t3+i3/2,e3+s2/2,i3/2,s2/2,{start:.5*Math.PI,end:2.5*Math.PI,open:false})},diamond:function(t3,e3,i3,s2){return[["M",t3+i3/2,e3],["L",t3+i3,e3+s2/2],["L",t3+i3/2,e3+s2],["L",t3,e3+s2/2],["Z"]]},rect:o,roundedRect:n,square:o,triangle:function(t3,e3,i3,s2){return[["M",t3+i3/2,e3],["L",t3+i3,e3+s2],["L",t3,e3+s2],["Z"]]},"triangle-down":function(t3,e3,i3,s2){return[["M",t3,e3],["L",t3+i3,e3],["L",t3+i3/2,e3+s2],["Z"]]}}})),i(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{doc:s,SVG_NS:r,win:o}=e2,{attr:n,extend:a,fireEvent:h,isString:l,objectEach:d,pick:c}=i2;return class{constructor(t3){let e3=t3.styles;this.renderer=t3.renderer,this.svgElement=t3,this.width=t3.textWidth,this.textLineHeight=e3&&e3.lineHeight,this.textOutline=e3&&e3.textOutline,this.ellipsis=!!(e3&&"ellipsis"===e3.textOverflow),this.noWrap=!!(e3&&"nowrap"===e3.whiteSpace)}buildSVG(){let e3=this.svgElement,i3=e3.element,r2=e3.renderer,o2=c(e3.textStr,"").toString(),n2=-1!==o2.indexOf("<"),a2=i3.childNodes,h2=!e3.added&&r2.box,d2=[o2,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e3.getStyle("font-size"),this.width].join(",");if(d2!==e3.textCache){e3.textCache=d2,delete e3.actualWidth;for(let t3=a2.length;t3--;)i3.removeChild(a2[t3]);if(n2||this.ellipsis||this.width||e3.textPath||-1!==o2.indexOf(" ")&&(!this.noWrap||//g.test(o2))){if(""!==o2){h2&&h2.appendChild(i3);let s2=new t2(o2);this.modifyTree(s2.nodes),s2.addToDOM(i3),this.modifyDOM(),this.ellipsis&&-1!==(i3.textContent||"").indexOf("…")&&e3.attr("title",this.unescapeEntities(e3.textStr||"",["<",">"])),h2&&h2.removeChild(i3)}}else i3.appendChild(s.createTextNode(this.unescapeEntities(o2)));l(this.textOutline)&&e3.applyTextOutline&&e3.applyTextOutline(this.textOutline)}}modifyDOM(){let t3;let e3=this.svgElement,i3=n(e3.element,"x");for(e3.firstLineMetrics=void 0;t3=e3.element.firstChild;)if(/^[\s\u200B]*$/.test(t3.textContent||" "))e3.element.removeChild(t3);else break;[].forEach.call(e3.element.querySelectorAll("tspan.highcharts-br"),((t4,s2)=>{t4.nextSibling&&t4.previousSibling&&(0===s2&&1===t4.previousSibling.nodeType&&(e3.firstLineMetrics=e3.renderer.fontMetrics(t4.previousSibling)),n(t4,{dy:this.getLineHeight(t4.nextSibling),x:i3}))}));let a2=this.width||0;if(!a2)return;let h2=(t4,o2)=>{let h3=t4.textContent||"",l3=h3.replace(/([^\^])-/g,"$1- ").split(" "),d2=!this.noWrap&&(l3.length>1||e3.element.childNodes.length>1),c2=this.getLineHeight(o2),p=0,u=e3.actualWidth;if(this.ellipsis)h3&&this.truncate(t4,h3,void 0,0,Math.max(0,a2-.8*c2),((t5,e4)=>t5.substring(0,e4)+"…"));else if(d2){let h4=[],d3=[];for(;o2.firstChild&&o2.firstChild!==t4;)d3.push(o2.firstChild),o2.removeChild(o2.firstChild);for(;l3.length;)l3.length&&!this.noWrap&&p>0&&(h4.push(t4.textContent||""),t4.textContent=l3.join(" ").replace(/- /g,"-")),this.truncate(t4,void 0,l3,0===p&&u||0,a2,((t5,e4)=>l3.slice(0,e4).join(" ").replace(/- /g,"-"))),u=e3.actualWidth,p++;d3.forEach((e4=>{o2.insertBefore(e4,t4)})),h4.forEach((e4=>{o2.insertBefore(s.createTextNode(e4),t4);let a3=s.createElementNS(r,"tspan");a3.textContent="​",n(a3,{dy:c2,x:i3}),o2.insertBefore(a3,t4)}))}},l2=t4=>{[].slice.call(t4.childNodes).forEach((i4=>{i4.nodeType===o.Node.TEXT_NODE?h2(i4,t4):(-1!==i4.className.baseVal.indexOf("highcharts-br")&&(e3.actualWidth=0),l2(i4))}))};l2(e3.element)}getLineHeight(t3){let e3=t3.nodeType===o.Node.TEXT_NODE?t3.parentElement:t3;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e3||this.svgElement.element).h}modifyTree(t3){let e3=(i3,s2)=>{let{attributes:r2={},children:o2,style:n2={},tagName:h2}=i3,l2=this.renderer.styledMode;if("b"===h2||"strong"===h2?l2?r2.class="highcharts-strong":n2.fontWeight="bold":("i"===h2||"em"===h2)&&(l2?r2.class="highcharts-emphasized":n2.fontStyle="italic"),n2&&n2.color&&(n2.fill=n2.color),"br"===h2){r2.class="highcharts-br",i3.textContent="​";let e4=t3[s2+1];e4&&e4.textContent&&(e4.textContent=e4.textContent.replace(/^ +/gm,""))}else"a"===h2&&o2&&o2.some((t4=>"#text"===t4.tagName))&&(i3.children=[{children:o2,tagName:"tspan"}]);"#text"!==h2&&"a"!==h2&&(i3.tagName="tspan"),a(i3,{attributes:r2,style:n2}),o2&&o2.filter((t4=>"#text"!==t4.tagName)).forEach(e3)};t3.forEach(e3),h(this.svgElement,"afterModifyTree",{nodes:t3})}truncate(t3,e3,i3,s2,r2,o2){let n2,a2;let h2=this.svgElement,{rotation:l2}=h2,d2=[],c2=i3?1:0,p=(e3||i3||"").length,u=p,g=function(e4,r3){let o3=r3||e4,n3=t3.parentNode;if(n3&&void 0===d2[o3]&&n3.getSubStringLength)try{d2[o3]=s2+n3.getSubStringLength(0,i3?o3+1:o3)}catch(t4){}return d2[o3]};if(h2.rotation=0,s2+(a2=g(t3.textContent.length))>r2){for(;c2<=p;)u=Math.ceil((c2+p)/2),i3&&(n2=o2(i3,u)),a2=g(u,n2&&n2.length-1),c2===p?c2=p+1:a2>r2?p=u-1:c2=u;0===p?t3.textContent="":e3&&p===e3.length-1||(t3.textContent=n2||o2(e3||i3,u))}i3&&i3.splice(0,u),h2.actualWidth=a2,h2.rotation=l2}unescapeEntities(t3,e3){return d(this.renderer.escapes,(function(i3,s2){e3&&-1!==e3.indexOf(i3)||(t3=t3.toString().replace(RegExp(i3,"g"),s2))})),t3}}})),i(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Defaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o,n,a,h,l){let d;let{defaultOptions:c}=e2,{charts:p,deg2rad:u,doc:g,isFirefox:f,isMS:m,isWebKit:x,noop:y,SVG_NS:b,symbolSizes:v,win:S}=s,{addEvent:C,attr:k,createElement:M,crisp:w2,css:T,defined:A,destroyObjectProperties:P,extend:L,isArray:O,isNumber:D,isObject:E,isString:I,merge:j,pick:B,pInt:R,replaceNested:z,uniqueKey:N}=l;class W{constructor(t3,e3,i3,s2,r2,o2,n2){let a2,h2;let l2=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d2=l2.element;n2||l2.css(this.getStyle(s2||{})),t3.appendChild(d2),k(t3,"dir","ltr"),-1===t3.innerHTML.indexOf("xmlns")&&k(d2,"xmlns",this.SVG_NS),this.box=d2,this.boxWrapper=l2,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=o2,this.forExport=r2,this.styledMode=n2,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=l2.getStyle("font-size"),this.setSize(e3,i3,false),f&&t3.getBoundingClientRect&&((a2=function(){T(t3,{left:0,top:0}),h2=t3.getBoundingClientRect(),T(t3,{left:Math.ceil(h2.left)-h2.left+"px",top:Math.ceil(h2.top)-h2.top+"px"})})(),this.unSubPixelFix=C(S,"resize",a2))}definition(e3){return new t2([e3]).addToDOM(this.defs.element)}getReferenceURL(){if((f||x)&&g.getElementsByTagName("base").length){if(!A(d)){let e3=N(),i3=new t2([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e3},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${e3})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(g.body);T(i3,{position:"fixed",top:0,left:0,zIndex:9e5});let s2=g.elementFromPoint(6,6);d="hitme"===(s2&&s2.id),g.body.removeChild(i3)}if(d)return z(S.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t3){return this.style=L({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},t3),this.style}setStyle(t3){this.boxWrapper.css(this.getStyle(t3))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t3=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),P(this.gradients||{}),this.gradients=null,this.defs=t3.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t3){return new this.Element(this,t3)}getRadialAttr(t3,e3){return{cx:t3[0]-t3[2]/2+(e3.cx||0)*t3[2],cy:t3[1]-t3[2]/2+(e3.cy||0)*t3[2],r:(e3.r||0)*t3[2]}}shadowDefinition(t3){let e3=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t3).map((e4=>`${e4}-${t3[e4]}`))].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i3=j({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t3);return this.defs.element.querySelector(`#${e3}`)||this.definition({tagName:"filter",attributes:{id:e3,filterUnits:i3.filterUnits},children:this.getShadowFilterContent(i3)}),e3}getShadowFilterContent(t3){return[{tagName:"feDropShadow",attributes:{dx:t3.offsetX,dy:t3.offsetY,"flood-color":t3.color,"flood-opacity":Math.min(5*t3.opacity,1),stdDeviation:t3.width/2}}]}buildText(t3){new h(t3).buildSVG()}getContrast(t3){let e3=i2.parse(t3).rgba.map((t4=>{let e4=t4/255;return e4<=.03928?e4/12.92:Math.pow((e4+.055)/1.055,2.4)})),s2=.2126*e3[0]+.7152*e3[1]+.0722*e3[2];return 1.05/(s2+.05)>(s2+.05)/.05?"#FFFFFF":"#000000"}button(e3,i3,s2,r2,o2={},n2,a2,h2,l2,d2){let p2=this.label(e3,i3,s2,l2,void 0,void 0,d2,void 0,"button"),u2=this.styledMode,g2=arguments,f2=0;o2=j(c.global.buttonTheme,o2),u2&&(delete o2.fill,delete o2.stroke,delete o2["stroke-width"]);let x2=o2.states||{},y2=o2.style||{};delete o2.states,delete o2.style;let b2=[t2.filterUserAttributes(o2)],v2=[y2];return u2||["hover","select","disabled"].forEach(((e4,i4)=>{b2.push(j(b2[0],t2.filterUserAttributes(g2[i4+5]||x2[e4]||{}))),v2.push(b2[i4+1].style),delete b2[i4+1].style})),C(p2.element,m?"mouseover":"mouseenter",(function(){3!==f2&&p2.setState(1)})),C(p2.element,m?"mouseout":"mouseleave",(function(){3!==f2&&p2.setState(f2)})),p2.setState=(t3=0)=>{if(1!==t3&&(p2.state=f2=t3),p2.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t3]),!u2){p2.attr(b2[t3]);let e4=v2[t3];E(e4)&&p2.css(e4)}},p2.attr(b2[0]),!u2&&(p2.css(L({cursor:"default"},y2)),d2&&p2.text.css({pointerEvents:"none"})),p2.on("touchstart",(t3=>t3.stopPropagation())).on("click",(function(t3){3!==f2&&r2.call(p2,t3)}))}crispLine(t3,e3){let[i3,s2]=t3;return A(i3[1])&&i3[1]===s2[1]&&(i3[1]=s2[1]=w2(i3[1],e3)),A(i3[2])&&i3[2]===s2[2]&&(i3[2]=s2[2]=w2(i3[2],e3)),t3}path(t3){let e3=this.styledMode?{}:{fill:"none"};return O(t3)?e3.d=t3:E(t3)&&L(e3,t3),this.createElement("path").attr(e3)}circle(t3,e3,i3){let s2=E(t3)?t3:void 0===t3?{}:{x:t3,y:e3,r:i3},r2=this.createElement("circle");return r2.xSetter=r2.ySetter=function(t4,e4,i4){i4.setAttribute("c"+e4,t4)},r2.attr(s2)}arc(t3,e3,i3,s2,r2,o2){let n2;E(t3)?(e3=(n2=t3).y,i3=n2.r,s2=n2.innerR,r2=n2.start,o2=n2.end,t3=n2.x):n2={innerR:s2,start:r2,end:o2};let a2=this.symbol("arc",t3,e3,i3,i3,n2);return a2.r=i3,a2}rect(t3,e3,i3,s2,r2,o2){let n2=E(t3)?t3:void 0===t3?{}:{x:t3,y:e3,r:r2,width:Math.max(i3||0,0),height:Math.max(s2||0,0)},a2=this.createElement("rect");return this.styledMode||(void 0!==o2&&(n2["stroke-width"]=o2,L(n2,a2.crisp(n2))),n2.fill="none"),a2.rSetter=function(t4,e4,i4){a2.r=t4,k(i4,{rx:t4,ry:t4})},a2.rGetter=function(){return a2.r||0},a2.attr(n2)}roundedRect(t3){return this.symbol("roundedRect").attr(t3)}setSize(t3,e3,i3){this.width=t3,this.height=e3,this.boxWrapper.animate({width:t3,height:e3},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:B(i3,true)?void 0:0}),this.alignElements()}g(t3){let e3=this.createElement("g");return t3?e3.attr({class:"highcharts-"+t3}):e3}image(t3,e3,i3,s2,r2,o2){let n2={preserveAspectRatio:"none"};D(e3)&&(n2.x=e3),D(i3)&&(n2.y=i3),D(s2)&&(n2.width=s2),D(r2)&&(n2.height=r2);let a2=this.createElement("image").attr(n2),h2=function(e4){a2.attr({href:t3}),o2.call(a2,e4)};if(o2){a2.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e4=new S.Image;C(e4,"load",h2),e4.src=t3,e4.complete&&h2({})}else a2.attr({href:t3});return a2}symbol(t3,e3,i3,s2,r2,o2){let n2,a2,h2,l2;let d2=this,c2=/^url\((.*?)\)$/,u2=c2.test(t3),f2=!u2&&(this.symbols[t3]?t3:"circle"),m2=f2&&this.symbols[f2];if(m2)"number"==typeof e3&&(a2=m2.call(this.symbols,e3||0,i3||0,s2||0,r2||0,o2)),n2=this.path(a2),d2.styledMode||n2.attr("fill","none"),L(n2,{symbolName:f2||void 0,x:e3,y:i3,width:s2,height:r2}),o2&&L(n2,o2);else if(u2){h2=t3.match(c2)[1];let s3=n2=this.image(h2);s3.imgwidth=B(o2&&o2.width,v[h2]&&v[h2].width),s3.imgheight=B(o2&&o2.height,v[h2]&&v[h2].height),l2=t4=>t4.attr({width:t4.width,height:t4.height}),["width","height"].forEach((t4=>{s3[`${t4}Setter`]=function(t5,e4){this[e4]=t5;let{alignByTranslate:i4,element:s4,width:r3,height:n3,imgwidth:a3,imgheight:h3}=this,l3="width"===e4?a3:h3,d3=1;o2&&"within"===o2.backgroundSize&&r3&&n3&&a3&&h3?(d3=Math.min(r3/a3,n3/h3),k(s4,{width:Math.round(a3*d3),height:Math.round(h3*d3)})):s4&&l3&&s4.setAttribute(e4,l3),!i4&&a3&&h3&&this.translate(((r3||0)-a3*d3)/2,((n3||0)-h3*d3)/2)}})),A(e3)&&s3.attr({x:e3,y:i3}),s3.isImg=true,s3.symbolUrl=t3,A(s3.imgwidth)&&A(s3.imgheight)?l2(s3):(s3.attr({width:0,height:0}),M("img",{onload:function(){let t4=p[d2.chartIndex];0===this.width&&(T(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this)),v[h2]={width:this.width,height:this.height},s3.imgwidth=this.width,s3.imgheight=this.height,s3.element&&l2(s3),this.parentNode&&this.parentNode.removeChild(this),d2.imgCount--,d2.imgCount||!t4||t4.hasLoaded||t4.onload()},src:h2}),this.imgCount++)}return n2}clipRect(t3,e3,i3,s2){return this.rect(t3,e3,i3,s2,0)}text(t3,e3,i3,s2){let r2={};if(s2&&(this.allowHTML||!this.forExport))return this.html(t3,e3,i3);r2.x=Math.round(e3||0),i3&&(r2.y=Math.round(i3)),A(t3)&&(r2.text=t3);let o2=this.createElement("text").attr(r2);return s2&&(!this.forExport||this.allowHTML)||(o2.xSetter=function(t4,e4,i4){let s3=i4.getElementsByTagName("tspan"),r3=i4.getAttribute(e4);for(let i5=0,o3;i5t3.align()))}}return L(W.prototype,{Element:o,SVG_NS:b,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:a,draw:y}),r.registerRendererType("svg",W,true),W})),i(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{composed:r}=e2,{attr:o,css:n,createElement:a,defined:h,extend:l,pInt:d,pushUnique:c}=s;function p(t3,e3,s2){var _a;let r2=((_a=this.div)==null?void 0:_a.style)||s2.style;i2.prototype[`${e3}Setter`].call(this,t3,e3,s2),r2&&(r2[e3]=t3)}let u=(t3,e3)=>{var _a;if(!t3.div){let s2=o(t3.element,"class"),r2=t3.css,n2=a("div",s2?{className:s2}:void 0,{position:"absolute",left:`${t3.translateX||0}px`,top:`${t3.translateY||0}px`,...t3.styles,display:t3.display,opacity:t3.opacity,visibility:t3.visibility},((_a=t3.parentGroup)==null?void 0:_a.div)||e3);t3.classSetter=(t4,e4,i3)=>{i3.setAttribute("class",t4),n2.className=t4},t3.translateXSetter=t3.translateYSetter=(e4,i3)=>{t3[i3]=e4,n2.style["translateX"===i3?"left":"top"]=`${e4}px`,t3.doTransform=true},t3.opacitySetter=t3.visibilitySetter=p,t3.css=e4=>(r2.call(t3,e4),e4.cursor&&(n2.style.cursor=e4.cursor),e4.pointerEvents&&(n2.style.pointerEvents=e4.pointerEvents),t3),t3.on=function(){return i2.prototype.on.apply({element:n2,onEvents:t3.onEvents},arguments),t3},t3.div=n2}return t3.div};class g extends i2{static compose(t3){c(r,this.compose)&&(t3.prototype.html=function(t4,e3,i3){return new g(this,"span").attr({text:t4,x:Math.round(e3),y:Math.round(i3)})})}constructor(t3,e3){super(t3,e3),this.css({position:"absolute",...t3.styledMode?{}:{fontFamily:t3.style.fontFamily,fontSize:t3.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t3,e3,i3){this.xCorr=-t3*i3,this.yCorr=-e3}css(t3){let e3;let{element:i3}=this,s2="SPAN"===i3.tagName&&t3&&"width"in t3,r2=s2&&t3.width;return s2&&(delete t3.width,this.textWidth=d(r2)||void 0,e3=true),(t3==null?void 0:t3.textOverflow)==="ellipsis"&&(t3.whiteSpace="nowrap",t3.overflow="hidden"),l(this.styles,t3),n(i3,t3),e3&&this.updateTransform(),this}htmlGetBBox(){let{element:t3}=this;return{x:t3.offsetLeft,y:t3.offsetTop,width:t3.offsetWidth,height:t3.offsetHeight}}updateTransform(){var _a;if(!this.added){this.alignOnAdd=true;return}let{element:t3,renderer:e3,rotation:i3,rotationOriginX:s2,rotationOriginY:r2,styles:o2,textAlign:a2="left",textWidth:l2,translateX:d2=0,translateY:c2=0,x:p2=0,y:u2=0}=this,g2={left:0,center:.5,right:1}[a2],f2=o2.whiteSpace;if(n(t3,{marginLeft:`${d2}px`,marginTop:`${c2}px`}),"SPAN"===t3.tagName){let o3=[i3,a2,t3.innerHTML,l2,this.textAlign].join(","),d3=-(((_a=this.parentGroup)==null?void 0:_a.padding)*1)||0,c3,m=false;if(l2!==this.oldTextWidth){let e4=this.textPxLength?this.textPxLength:(n(t3,{width:"",whiteSpace:f2||"nowrap"}),t3.offsetWidth),s3=l2||0;(s3>this.oldTextWidth||e4>s3)&&(/[ \-]/.test(t3.textContent||t3.innerText)||"ellipsis"===t3.style.textOverflow)&&(n(t3,{width:e4>s3||i3?l2+"px":"auto",display:"block",whiteSpace:f2||"normal"}),this.oldTextWidth=l2,m=true)}this.hasBoxWidthChanged=m,o3!==this.cTT&&(c3=e3.fontMetrics(t3).b,h(i3)&&(i3!==(this.oldRotation||0)||a2!==this.oldAlign)&&this.setSpanRotation(i3,d3,d3),this.getSpanCorrection(!h(i3)&&this.textPxLength||t3.offsetWidth,c3,g2));let{xCorr:x=0,yCorr:y=0}=this,b=(s2??p2)-x-p2-d3,v=(r2??u2)-y-u2-d3;n(t3,{left:`${p2+x}px`,top:`${u2+y}px`,transformOrigin:`${b}px ${v}px`}),this.cTT=o3,this.oldRotation=i3,this.oldAlign=a2}}setSpanRotation(t3,e3,i3){n(this.element,{transform:`rotate(${t3}deg)`,transformOrigin:`${e3}% ${i3}px`})}add(t3){let e3;let i3=this.renderer.box.parentNode,s2=[];if(this.parentGroup=t3,t3&&!(e3=t3.div)){let r2=t3;for(;r2;)s2.push(r2),r2=r2.parentGroup;for(let t4 of s2.reverse())e3=u(t4,i3)}return(e3||i3).appendChild(this.element),this.added=true,this.alignOnAdd&&this.updateTransform(),this}textSetter(e3){e3!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t2.setElementHTML(this.element,e3??""),this.textStr=e3,this.doTransform=true)}alignSetter(t3){this.alignValue=this.textAlign=t3,this.doTransform=true}xSetter(t3,e3){this[e3]=t3,this.doTransform=true}}let f=g.prototype;return f.visibilitySetter=f.opacitySetter=p,f.ySetter=f.rotationSetter=f.rotationOriginXSetter=f.rotationOriginYSetter=f.xSetter,g})),i(e,"Core/Axis/AxisDefaults.js",[],(function(){var t2,e2;return(e2=t2||(t2={})).xAxis={alignTicks:true,allowDecimals:void 0,panningEnabled:true,zIndex:2,zoomEnabled:true,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:false},second:{main:"%H:%M:%S",range:false},minute:{main:"%H:%M",range:false},hour:{main:"%H:%M",range:false},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:false,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:true,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:false,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:false,showEmpty:true,showFirstLabel:true,showLastLabel:true,startOfWeek:1,startOnTick:false,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:false,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:true,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},e2.yAxis={reversedStacks:true,endOnTick:true,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:true,labels:{x:void 0},startOnTick:true,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:false,enabled:false,crop:true,overflow:"justify",formatter:function(){let{numberFormatter:t3}=this.axis.chart;return t3(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t2})),i(e,"Core/Foundation.js",[e["Core/Utilities.js"]],(function(t2){var e2;let{addEvent:i2,isFunction:s,objectEach:r,removeEvent:o}=t2;return(e2||(e2={})).registerEventOptions=function(t3,e3){t3.eventOptions=t3.eventOptions||{},r(e3.events,(function(e4,r2){t3.eventOptions[r2]!==e4&&(t3.eventOptions[r2]&&(o(t3,r2,t3.eventOptions[r2]),delete t3.eventOptions[r2]),s(e4)&&(t3.eventOptions[r2]=e4,i2(t3,r2,e4,{order:0})))}))},e2})),i(e,"Core/Axis/Tick.js",[e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{deg2rad:s}=e2,{clamp:r,correctFloat:o,defined:n,destroyObjectProperties:a,extend:h,fireEvent:l,isNumber:d,merge:c,objectEach:p,pick:u}=i2;return class{constructor(t3,e3,i3,s2,r2){this.isNew=true,this.isNewLabel=true,this.axis=t3,this.pos=e3,this.type=i3||"",this.parameters=r2||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i3||s2||this.addLabel()}addLabel(){let e3=this,i3=e3.axis,s2=i3.options,r2=i3.chart,a2=i3.categories,c2=i3.logarithmic,p2=i3.names,g=e3.pos,f=u(e3.options&&e3.options.labels,s2.labels),m=i3.tickPositions,x=g===m[0],y=g===m[m.length-1],b=(!f.step||1===f.step)&&1===i3.tickInterval,v=m.info,S=e3.label,C,k,M,w2=this.parameters.category||(a2?u(a2[g],p2[g],g):g);c2&&d(w2)&&(w2=o(c2.lin2log(w2))),i3.dateTime&&(v?C=(k=r2.time.resolveDTLFormat(s2.dateTimeLabelFormats[!s2.grid&&v.higherRanks[g]||v.unitName])).main:d(w2)&&(C=i3.dateTime.getXDateFormat(w2,s2.dateTimeLabelFormats||{}))),e3.isFirst=x,e3.isLast=y;let T={axis:i3,chart:r2,dateTimeLabelFormat:C,isFirst:x,isLast:y,pos:g,tick:e3,tickPositionInfo:v,value:w2};l(this,"labelFormat",T);let A=e4=>f.formatter?f.formatter.call(e4,e4):f.format?(e4.text=i3.defaultLabelFormatter.call(e4),t2.format(f.format,e4,r2)):i3.defaultLabelFormatter.call(e4),P=A.call(T,T),L=k&&k.list;L?e3.shortenLabel=function(){for(M=0;M0&&r2+c2*p2>h2&&(v=Math.round((o2-r2)/Math.cos(d2*s))):(y=r2-c2*p2,b=r2+(1-c2)*p2,yh2&&(m=h2-t3.x+m*c2,x=-1),(m=Math.min(g,m))m||e3.autoRotation&&(l2.styles||{}).width)&&(v=m)),v&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(v)+"px",(i3.style||{}).textOverflow||(f.textOverflow="ellipsis"),l2.css(f)))}moveLabel(t3,e3){let i3=this,s2=i3.label,r2=i3.axis,o2=false,n2;s2&&s2.textStr===t3?(i3.movedLabel=s2,o2=true,delete i3.label):p(r2.ticks,(function(e4){o2||e4.isNew||e4===i3||!e4.label||e4.label.textStr!==t3||(i3.movedLabel=e4.label,o2=true,e4.labelPos=i3.movedLabel.xy,delete e4.label)})),!o2&&(i3.labelPos||s2)&&(n2=i3.labelPos||s2.xy,i3.movedLabel=i3.createLabel(t3,e3,n2),i3.movedLabel&&i3.movedLabel.attr({opacity:0}))}render(t3,e3,i3){let s2=this.axis,r2=s2.horiz,n2=this.pos,a2=u(this.tickmarkOffset,s2.tickmarkOffset),h2=this.getPosition(r2,n2,a2,e3),d2=h2.x,c2=h2.y,p2=s2.pos,g=p2+s2.len,f=r2?d2:c2;!s2.chart.polar&&this.isNew&&(o(f)g)&&(i3=0);let m=u(i3,this.label&&this.label.newOpacity,1);i3=u(i3,1),this.isActive=true,this.renderGridLine(e3,i3),this.renderMark(h2,i3),this.renderLabel(h2,e3,m,t3),this.isNew=false,l(this,"afterRender")}renderGridLine(t3,e3){let i3=this.axis,s2=i3.options,r2={},o2=this.pos,n2=this.type,a2=u(this.tickmarkOffset,i3.tickmarkOffset),h2=i3.chart.renderer,l2=this.gridLine,d2,c2=s2.gridLineWidth,p2=s2.gridLineColor,g=s2.gridLineDashStyle;"minor"===this.type&&(c2=s2.minorGridLineWidth,p2=s2.minorGridLineColor,g=s2.minorGridLineDashStyle),l2||(i3.chart.styledMode||(r2.stroke=p2,r2["stroke-width"]=c2||0,r2.dashstyle=g),n2||(r2.zIndex=1),t3&&(e3=0),this.gridLine=l2=h2.path().attr(r2).addClass("highcharts-"+(n2?n2+"-":"")+"grid-line").add(i3.gridGroup)),l2&&(d2=i3.getPlotLinePath({value:o2+a2,lineWidth:l2.strokeWidth(),force:"pass",old:t3,acrossPanes:false}))&&l2[t3||this.isNew?"attr":"animate"]({d:d2,opacity:e3})}renderMark(t3,e3){let i3=this.axis,s2=i3.options,r2=i3.chart.renderer,o2=this.type,n2=i3.tickSize(o2?o2+"Tick":"tick"),a2=t3.x,h2=t3.y,l2=u(s2["minor"!==o2?"tickWidth":"minorTickWidth"],!o2&&i3.isXAxis?1:0),d2=s2["minor"!==o2?"tickColor":"minorTickColor"],c2=this.mark,p2=!c2;n2&&(i3.opposite&&(n2[0]=-n2[0]),c2||(this.mark=c2=r2.path().addClass("highcharts-"+(o2?o2+"-":"")+"tick").add(i3.axisGroup),i3.chart.styledMode||c2.attr({stroke:d2,"stroke-width":l2})),c2[p2?"attr":"animate"]({d:this.getMarkPath(a2,h2,n2[0],c2.strokeWidth(),i3.horiz,r2),opacity:e3}))}renderLabel(t3,e3,i3,s2){let r2=this.axis,o2=r2.horiz,n2=r2.options,a2=this.label,h2=n2.labels,l2=h2.step,c2=u(this.tickmarkOffset,r2.tickmarkOffset),p2=t3.x,g=t3.y,f=true;a2&&d(p2)&&(a2.xy=t3=this.getLabelPosition(p2,g,a2,o2,h2,c2,s2,l2),(!this.isFirst||this.isLast||n2.showFirstLabel)&&(!this.isLast||this.isFirst||n2.showLastLabel)?!o2||h2.step||h2.rotation||e3||0===i3||this.handleOverflow(t3):f=false,l2&&s2%l2&&(f=false),f&&d(t3.y)?(t3.opacity=i3,a2[this.isNewLabel?"attr":"animate"](t3).show(true),this.isNewLabel=false):(a2.hide(),this.isNewLabel=true))}replaceMovedLabel(){let t3=this.label,e3=this.axis;t3&&!this.isNew&&(t3.animate({opacity:0},void 0,t3.destroy),delete this.label),e3.isDirty=true,this.label=this.movedLabel,delete this.movedLabel}}})),i(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o,n,a){let{animObject:h}=t2,{xAxis:l,yAxis:d}=e2,{defaultOptions:c}=s,{registerEventOptions:p}=r,{deg2rad:u}=o,{arrayMax:g,arrayMin:f,clamp:m,correctFloat:x,defined:y,destroyObjectProperties:b,erase:v,error:S,extend:C,fireEvent:k,getClosestDistance:M,insertItem:w2,isArray:T,isNumber:A,isString:P,merge:L,normalizeTickInterval:O,objectEach:D,pick:E,relativeLength:I,removeEvent:j,splat:B,syncTimeout:R}=a,z=(t3,e3)=>O(e3,void 0,void 0,E(t3.options.allowDecimals,e3<.5||void 0!==t3.tickAmount),!!t3.tickAmount);C(c,{xAxis:l,yAxis:L(l,d)});class N{constructor(t3,e3,i3){this.init(t3,e3,i3)}init(t3,e3,i3=this.coll){let s2="xAxis"===i3,r2=this.isZAxis||(t3.inverted?!s2:s2);this.chart=t3,this.horiz=r2,this.isXAxis=s2,this.coll=i3,k(this,"init",{userOptions:e3}),this.opposite=E(e3.opposite,this.opposite),this.side=E(e3.side,this.side,r2?this.opposite?0:2:this.opposite?1:3),this.setOptions(e3);let o2=this.options,n2=o2.labels;this.type??(this.type=o2.type||"linear"),this.uniqueNames??(this.uniqueNames=o2.uniqueNames??true),k(this,"afterSetType"),this.userOptions=e3,this.minPixelPadding=0,this.reversed=E(o2.reversed,this.reversed),this.visible=o2.visible,this.zoomEnabled=o2.zoomEnabled,this.hasNames="category"===this.type||true===o2.categories,this.categories=T(o2.categories)&&o2.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=y(o2.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=o2.minRange||o2.maxZoom,this.range=o2.range,this.offset=o2.offset||0,this.max=void 0,this.min=void 0;let a2=E(o2.crosshair,B(t3.options.tooltip.crosshairs)[s2?0:1]);this.crosshair=true===a2?{}:a2,-1===t3.axes.indexOf(this)&&(s2?t3.axes.splice(t3.xAxis.length,0,this):t3.axes.push(this),w2(this,t3[this.coll])),t3.orderItems(this.coll),this.series=this.series||[],t3.inverted&&!this.isZAxis&&s2&&!y(this.reversed)&&(this.reversed=true),this.labelRotation=A(n2.rotation)?n2.rotation:void 0,p(this,o2),k(this,"afterInit")}setOptions(t3){let e3=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=L(e3,c[this.coll],t3),k(this,"afterSetOptions",{userOptions:t3})}defaultLabelFormatter(){let t3=this.axis,{numberFormatter:e3}=this.chart,i3=A(this.value)?this.value:NaN,s2=t3.chart.time,r2=t3.categories,o2=this.dateTimeLabelFormat,n2=c.lang,a2=n2.numericSymbols,h2=n2.numericSymbolMagnitude||1e3,l2=t3.logarithmic?Math.abs(i3):t3.tickInterval,d2=a2&&a2.length,p2,u2;if(r2)u2=`${this.value}`;else if(o2)u2=s2.dateFormat(o2,i3);else if(d2&&a2&&l2>=1e3)for(;d2--&&void 0===u2;)l2>=(p2=Math.pow(h2,d2+1))&&10*i3%p2==0&&null!==a2[d2]&&0!==i3&&(u2=e3(i3/p2,-1)+a2[d2]);return void 0===u2&&(u2=Math.abs(i3)>=1e4?e3(i3,-1):e3(i3,-1,void 0,"")),u2}getSeriesExtremes(){let t3;let e3=this;k(this,"getSeriesExtremes",null,(function(){e3.hasVisibleSeries=false,e3.dataMin=e3.dataMax=e3.threshold=void 0,e3.softThreshold=!e3.isXAxis,e3.series.forEach((i3=>{if(i3.reserveSpace()){let s2=i3.options,r2,o2=s2.threshold,n2,a2;if(e3.hasVisibleSeries=true,e3.positiveValuesOnly&&0>=(o2||0)&&(o2=void 0),e3.isXAxis)(r2=i3.xData)&&r2.length&&(r2=e3.logarithmic?r2.filter((t4=>t4>0)):r2,n2=(t3=i3.getXExtremes(r2)).min,a2=t3.max,A(n2)||n2 instanceof Date||(r2=r2.filter(A),n2=(t3=i3.getXExtremes(r2)).min,a2=t3.max),r2.length&&(e3.dataMin=Math.min(E(e3.dataMin,n2),n2),e3.dataMax=Math.max(E(e3.dataMax,a2),a2)));else{let t4=i3.applyExtremes();A(t4.dataMin)&&(n2=t4.dataMin,e3.dataMin=Math.min(E(e3.dataMin,n2),n2)),A(t4.dataMax)&&(a2=t4.dataMax,e3.dataMax=Math.max(E(e3.dataMax,a2),a2)),y(o2)&&(e3.threshold=o2),(!s2.softThreshold||e3.positiveValuesOnly)&&(e3.softThreshold=false)}}}))})),k(this,"afterGetSeriesExtremes")}translate(t3,e3,i3,s2,r2,o2){var _a;let n2=this.linkedParent||this,a2=s2&&n2.old?n2.old.min:n2.min;if(!A(a2))return NaN;let h2=n2.minPixelPadding,l2=(n2.isOrdinal||((_a=n2.brokenAxis)==null?void 0:_a.hasBreaks)||n2.logarithmic&&r2)&&n2.lin2val,d2=1,c2=0,p2=s2&&n2.old?n2.old.transA:n2.transA,u2=0;return p2||(p2=n2.transA),i3&&(d2*=-1,c2=n2.len),n2.reversed&&(d2*=-1,c2-=d2*(n2.sector||n2.len)),e3?(u2=(t3=t3*d2+c2-h2)/p2+a2,l2&&(u2=n2.lin2val(u2))):(l2&&(t3=n2.val2lin(t3)),u2=d2*(t3-a2)*p2+c2+d2*h2+(A(o2)?p2*o2:0),n2.isRadial||(u2=x(u2))),u2}toPixels(t3,e3){return this.translate(t3,false,!this.horiz,void 0,true)+(e3?0:this.pos)}toValue(t3,e3){return this.translate(t3-(e3?0:this.pos),true,!this.horiz,void 0,true)}getPlotLinePath(t3){let e3=this,i3=e3.chart,s2=e3.left,r2=e3.top,o2=t3.old,n2=t3.value,a2=t3.lineWidth,h2=o2&&i3.oldChartHeight||i3.chartHeight,l2=o2&&i3.oldChartWidth||i3.chartWidth,d2=e3.transB,c2=t3.translatedValue,p2=t3.force,u2,g2,f2,x2,y2;function b2(t4,e4,i4){return"pass"!==p2&&(t4i4)&&(p2?t4=m(t4,e4,i4):y2=true),t4}let v2={value:n2,lineWidth:a2,old:o2,force:p2,acrossPanes:t3.acrossPanes,translatedValue:c2};return k(this,"getPlotLinePath",v2,(function(t4){u2=f2=(c2=m(c2=E(c2,e3.translate(n2,void 0,void 0,o2)),-1e9,1e9))+d2,g2=x2=h2-c2-d2,A(c2)?e3.horiz?(g2=r2,x2=h2-e3.bottom+(e3.options.isInternal?0:i3.scrollablePixelsY||0),u2=f2=b2(u2,s2,s2+e3.width)):(u2=s2,f2=l2-e3.right+(i3.scrollablePixelsX||0),g2=x2=b2(g2,r2,r2+e3.height)):(y2=true,p2=false),t4.path=y2&&!p2?void 0:i3.renderer.crispLine([["M",u2,g2],["L",f2,x2]],a2||1)})),v2.path}getLinearTickPositions(t3,e3,i3){let s2,r2,o2;let n2=x(Math.floor(e3/t3)*t3),a2=x(Math.ceil(i3/t3)*t3),h2=[];if(x(n2+t3)===n2&&(o2=20),this.single)return[e3];for(s2=n2;s2<=a2&&(h2.push(s2),(s2=x(s2+t3,o2))!==r2);)r2=s2;return h2}getMinorTickInterval(){let{minorTicks:t3,minorTickInterval:e3}=this.options;return true===t3?E(e3,"auto"):false!==t3?e3:void 0}getMinorTickPositions(){let t3=this.options,e3=this.tickPositions,i3=this.minorTickInterval,s2=this.pointRangePadding||0,r2=(this.min||0)-s2,o2=(this.max||0)+s2,n2=o2-r2,a2=[],h2;if(n2&&n2/i3{var _a;return(t4.xIncrement?(_a=t4.xData)==null?void 0:_a.slice(0,2):t4.xData)||[]})))||0),this.dataMax-this.dataMin)),A(i3)&&A(s2)&&A(r2)&&i3-s2=r2,o2=(r2-i3+s2)/2,a2=[s2-o2,E(t3.min,s2-o2)],n2&&(a2[2]=e3?e3.log2lin(this.dataMin):this.dataMin),h2=[(s2=g(a2))+r2,E(t3.max,s2+r2)],n2&&(h2[2]=e3?e3.log2lin(this.dataMax):this.dataMax),(i3=f(h2))-s2t4-e4)),t3=M([i3]))}return t3&&e3?Math.min(t3,e3):t3||e3}nameToX(t3){let e3=T(this.options.categories),i3=e3?this.categories:this.names,s2=t3.options.x,r2;return t3.series.requireSorting=false,y(s2)||(s2=this.uniqueNames&&i3?e3?i3.indexOf(t3.name):E(i3.keys[t3.name],-1):t3.series.autoIncrement()),-1===s2?!e3&&i3&&(r2=i3.length):r2=s2,void 0!==r2?(this.names[r2]=t3.name,this.names.keys[t3.name]=r2):t3.x&&(r2=t3.x),r2}updateNames(){let t3=this,e3=this.names;e3.length>0&&(Object.keys(e3.keys).forEach((function(t4){delete e3.keys[t4]})),e3.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((e4=>{e4.xIncrement=null,(!e4.points||e4.isDirtyData)&&(t3.max=Math.max(t3.max,e4.xData.length-1),e4.processData(),e4.generatePoints()),e4.data.forEach((function(i3,s2){let r2;(i3==null?void 0:i3.options)&&void 0!==i3.name&&void 0!==(r2=t3.nameToX(i3))&&r2!==i3.x&&(i3.x=r2,e4.xData[s2]=r2)}))})))}setAxisTranslation(){let t3=this,e3=t3.max-t3.min,i3=t3.linkedParent,s2=!!t3.categories,r2=t3.isXAxis,o2=t3.axisPointRange||0,n2,a2=0,h2=0,l2,d2=t3.transA;(r2||s2||o2)&&(n2=t3.getClosest(),i3?(a2=i3.minPointOffset,h2=i3.pointRangePadding):t3.series.forEach((function(e4){let i4=s2?1:r2?E(e4.options.pointRange,n2,0):t3.axisPointRange||0,l3=e4.options.pointPlacement;if(o2=Math.max(o2,i4),!t3.single||s2){let t4=e4.is("xrange")?!r2:r2;a2=Math.max(a2,t4&&P(l3)?0:i4/2),h2=Math.max(h2,t4&&"on"===l3?0:i4)}})),l2=t3.ordinal&&t3.ordinal.slope&&n2?t3.ordinal.slope/n2:1,t3.minPointOffset=a2*=l2,t3.pointRangePadding=h2*=l2,t3.pointRange=Math.min(o2,t3.single&&s2?1:e3),r2&&n2&&(t3.closestPointRange=n2)),t3.translationSlope=t3.transA=d2=t3.staticScale||t3.len/(e3+h2||1),t3.transB=t3.horiz?t3.left:t3.bottom,t3.minPixelPadding=d2*a2,k(this,"afterSetAxisTranslation")}minFromRange(){let{max:t3,min:e3}=this;return A(t3)&&A(e3)&&t3-e3||void 0}setTickInterval(t3){var _a,_b,_c,_d;let{categories:e3,chart:i3,dataMax:s2,dataMin:r2,dateTime:o2,isXAxis:n2,logarithmic:a2,options:h2,softThreshold:l2}=this,d2=A(this.threshold)?this.threshold:void 0,c2=this.minRange||0,{ceiling:p2,floor:u2,linkedTo:g2,softMax:f2,softMin:m2}=h2,b2=A(g2)&&((_a=i3[this.coll])==null?void 0:_a[g2]),v2=h2.tickPixelInterval,C2=h2.maxPadding,M2=h2.minPadding,w3=0,T2,P2=A(h2.tickInterval)&&h2.tickInterval>=0?h2.tickInterval:void 0,L2,O2,D2,I2;if(o2||e3||b2||this.getTickAmount(),D2=E(this.userMin,h2.min),I2=E(this.userMax,h2.max),b2?(this.linkedParent=b2,T2=b2.getExtremes(),this.min=E(T2.min,T2.dataMin),this.max=E(T2.max,T2.dataMax),this.type!==b2.type&&S(11,true,i3)):(l2&&y(d2)&&A(s2)&&A(r2)&&(r2>=d2?(L2=d2,M2=0):s2<=d2&&(O2=d2,C2=0)),this.min=E(D2,L2,r2),this.max=E(I2,O2,s2)),A(this.max)&&A(this.min)&&(a2&&(this.positiveValuesOnly&&!t3&&0>=Math.min(this.min,E(r2,this.min))&&S(10,true,i3),this.min=x(a2.log2lin(this.min),16),this.max=x(a2.log2lin(this.max),16)),this.range&&A(r2)&&(this.userMin=this.min=D2=Math.max(r2,this.minFromRange()||0),this.userMax=I2=this.max,this.range=void 0)),k(this,"foundExtremes"),this.adjustForMinRange(),A(this.min)&&A(this.max)){if(!A(this.userMin)&&A(m2)&&m2this.max&&(this.max=I2=f2),e3||this.axisPointRange||((_b=this.stacking)==null?void 0:_b.usePercentage)||b2||!(w3=this.max-this.min)||(!y(D2)&&M2&&(this.min-=w3*M2),y(I2)||!C2||(this.max+=w3*C2)),!A(this.userMin)&&A(u2)&&(this.min=Math.max(this.min,u2)),!A(this.userMax)&&A(p2)&&(this.max=Math.min(this.max,p2)),l2&&A(r2)&&A(s2)){let t4=d2||0;!y(D2)&&this.min=t4?this.min=h2.minRange?Math.min(t4,this.max-c2):t4:!y(I2)&&this.max>t4&&s2<=t4&&(this.max=h2.minRange?Math.max(t4,this.min+c2):t4)}!i3.polar&&this.min>this.max&&(y(h2.min)?this.max=this.min:y(h2.max)&&(this.min=this.max)),w3=this.max-this.min}if(this.min!==this.max&&A(this.min)&&A(this.max)?b2&&!P2&&v2===b2.options.tickPixelInterval?this.tickInterval=P2=b2.tickInterval:this.tickInterval=E(P2,this.tickAmount?w3/Math.max(this.tickAmount-1,1):void 0,e3?1:w3*v2/Math.max(this.len,v2)):this.tickInterval=1,n2&&!t3){let t4=this.min!==((_c=this.old)==null?void 0:_c.min)||this.max!==((_d=this.old)==null?void 0:_d.max);this.series.forEach((function(e4){var _a2;e4.forceCrop=(_a2=e4.forceCropping)==null?void 0:_a2.call(e4),e4.processData(t4)})),k(this,"postProcessData",{hasExtremesChanged:t4})}this.setAxisTranslation(),k(this,"initialAxisTranslation"),this.pointRange&&!P2&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let j2=E(h2.minTickInterval,o2&&!this.series.some((t4=>t4.noSharedTooltip))?this.closestPointRange:0);!P2&&this.tickIntervalMath.max(2*this.len,200))a2=[this.min,this.max],S(19,false,this.chart);else if(this.dateTime)a2=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t3.units),this.min,this.max,t3.startOfWeek,(_b=this.ordinal)==null?void 0:_b.positions,this.closestPointRange,true);else if(this.logarithmic)a2=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let t4=this.tickInterval,e4=t4;for(;e4<=2*t4;)if(a2=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&a2.length>this.tickAmount)this.tickInterval=z(this,e4*=1.1);else break}a2.length>this.len&&(a2=[a2[0],a2[a2.length-1]])[0]===a2[1]&&(a2.length=1),i3&&(this.tickPositions=a2,(h2=i3.apply(this,[this.min,this.max]))&&(a2=h2))}this.tickPositions=a2,this.minorTickInterval="auto"===s2&&this.tickInterval?this.tickInterval/t3.minorTicksPerMajor:s2,this.paddedTicks=a2.slice(0),this.trimTicks(a2,o2,n2),!this.isLinked&&A(this.min)&&A(this.max)&&(this.single&&a2.length<2&&!this.categories&&!this.series.some((t4=>t4.is("heatmap")&&"between"===t4.options.pointPlacement))&&(this.min-=.5,this.max+=.5),e3||h2||this.adjustTickAmount()),k(this,"afterSetTickPositions")}trimTicks(t3,e3,i3){let s2=t3[0],r2=t3[t3.length-1],o2=!this.isOrdinal&&this.minPointOffset||0;if(k(this,"trimTicks"),!this.isLinked){if(e3&&s2!==-1/0)this.min=s2;else for(;this.min-o2>t3[0];)t3.shift();if(i3)this.max=r2;else for(;this.max+o2{let{horiz:e4,options:i4}=t4;return[e4?i4.left:i4.top,i4.width,i4.height,i4.pane].join(",")},o3=r3(this);i3[this.coll].forEach((function(i4){let{series:n3}=i4;n3.length&&n3.some((t4=>t4.visible))&&i4!==e3&&r3(i4)===o3&&(t3=true,s2.push(i4))}))}if(t3&&n2){s2.forEach((t5=>{let i4=t5.getThresholdAlignment(e3);A(i4)&&a2.push(i4)}));let t4=a2.length>1?a2.reduce(((t5,e4)=>t5+=e4),0)/a2.length:void 0;s2.forEach((e4=>{e4.thresholdAlignment=t4}))}return t3}getThresholdAlignment(t3){if((!A(this.dataMin)||this!==t3&&this.series.some((t4=>t4.isDirty||t4.isDirtyData)))&&this.getSeriesExtremes(),A(this.threshold)){let t4=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t4=1-t4),t4}}getTickAmount(){let t3=this.options,e3=t3.tickPixelInterval,i3=t3.tickAmount;y(t3.tickInterval)||i3||!(this.leno2.push(x(o2[o2.length-1]+p2)),f2=()=>o2.unshift(x(o2[0]-p2));if(A(a2)&&(u2=a2<.5?Math.ceil(a2*(n2-1)):Math.floor(a2*(n2-1)),r2.reversed&&(u2=n2-1-u2)),t3.hasData()&&A(s2)&&A(i3)){let a3=()=>{t3.transA*=(h2-1)/(n2-1),t3.min=r2.startOnTick?o2[0]:Math.min(s2,o2[0]),t3.max=r2.endOnTick?o2[o2.length-1]:Math.max(i3,o2[o2.length-1])};if(A(u2)&&A(t3.threshold)){for(;o2[u2]!==l2||o2.length!==n2||o2[0]>s2||o2[o2.length-1]t3.threshold?f2():g2();if(p2>8*t3.tickInterval)break;p2*=2}a3()}else if(h20&&c2{i3=i3||t4.isDirtyData||t4.isDirty,s2=s2||t4.xAxis&&t4.xAxis.isDirty||false})),this.setAxisSize();let r2=this.len!==(this.old&&this.old.len);r2||i3||s2||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(e3&&"yAxis"===t3&&e3.buildStacks(),this.forceRedraw=false,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e3&&"xAxis"===t3&&e3.buildStacks(),this.isDirty||(this.isDirty=r2||this.min!==((_a=this.old)==null?void 0:_a.min)||this.max!==((_b=this.old)==null?void 0:_b.max))):e3&&e3.cleanStacks(),i3&&delete this.allExtremes,k(this,"afterSetScale")}setExtremes(t3,e3,i3=true,s2,r2){this.series.forEach((t4=>{delete t4.kdTree})),k(this,"setExtremes",r2=C(r2,{min:t3,max:e3}),(t4=>{this.userMin=t4.min,this.userMax=t4.max,this.eventArgs=t4,i3&&this.chart.redraw(s2)}))}setAxisSize(){let t3=this.chart,e3=this.options,i3=e3.offsets||[0,0,0,0],s2=this.horiz,r2=this.width=Math.round(I(E(e3.width,t3.plotWidth-i3[3]+i3[1]),t3.plotWidth)),o2=this.height=Math.round(I(E(e3.height,t3.plotHeight-i3[0]+i3[2]),t3.plotHeight)),n2=this.top=Math.round(I(E(e3.top,t3.plotTop+i3[0]),t3.plotHeight,t3.plotTop)),a2=this.left=Math.round(I(E(e3.left,t3.plotLeft+i3[3]),t3.plotWidth,t3.plotLeft));this.bottom=t3.chartHeight-o2-n2,this.right=t3.chartWidth-r2-a2,this.len=Math.max(s2?r2:o2,0),this.pos=s2?a2:n2}getExtremes(){let t3=this.logarithmic;return{min:t3?x(t3.lin2log(this.min)):this.min,max:t3?x(t3.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t3){let e3=this.logarithmic,i3=e3?e3.lin2log(this.min):this.min,s2=e3?e3.lin2log(this.max):this.max;return null===t3||t3===-1/0?t3=i3:t3===1/0?t3=s2:i3>t3?t3=i3:s215&&e3<165?t4.align="right":e3>195&&e3<345&&(t4.align="left")})),i3.align}tickSize(t3){let e3=this.options,i3=E(e3["tick"===t3?"tickWidth":"minorTickWidth"],"tick"===t3&&this.isXAxis&&!this.categories?1:0),s2=e3["tick"===t3?"tickLength":"minorTickLength"],r2;i3&&s2&&("inside"===e3[t3+"Position"]&&(s2=-s2),r2=[s2,i3]);let o2={tickSize:r2};return k(this,"afterTickSize",o2),o2.tickSize}labelMetrics(){let t3=this.chart.renderer,e3=this.ticks,i3=e3[Object.keys(e3)[0]]||{};return this.chart.renderer.fontMetrics(i3.label||i3.movedLabel||t3.box)}unsquish(){let t3=this.options.labels,e3=t3.padding||0,i3=this.horiz,s2=this.tickInterval,r2=this.len/(((this.categories?1:0)+this.max-this.min)/s2),o2=t3.rotation,n2=x(.8*this.labelMetrics().h),a2=Math.max(this.max-this.min,0),h2=function(t4){let i4=(t4+2*e3)/(r2||1);return(i4=i4>1?Math.ceil(i4):1)*s2>a2&&t4!==1/0&&r2!==1/0&&a2&&(i4=Math.ceil(a2/s2)),x(i4*s2)},l2=s2,d2,c2=Number.MAX_VALUE,p2;if(i3){if(!t3.staggerLines&&(A(o2)?p2=[o2]:r2=-90&&i4<=90)&&(e4=(t4=h2(Math.abs(n2/Math.sin(u*i4))))+Math.abs(i4/360))g2&&(g2=e4.label.textPxLength)})),this.maxLabelLength=g2,this.autoRotation)g2>h2&&g2>d2.h?l2.rotation=this.labelRotation:this.labelRotation=0;else if(a2&&(p2=h2,!c2))for(u2="clip",m2=i3.length;!n2&&m2--;)(f2=s2[i3[m2]].label)&&("ellipsis"===f2.styles.textOverflow?f2.css({textOverflow:"clip"}):f2.textPxLength>a2&&f2.css({width:a2+"px"}),f2.getBBox().height>this.len/i3.length-(d2.h-d2.f)&&(f2.specificTextOverflow="ellipsis"));l2.rotation&&(p2=g2>.5*t3.chartHeight?.33*t3.chartHeight:g2,c2||(u2="ellipsis")),this.labelAlign=r2.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(l2.align=this.labelAlign),i3.forEach((function(t4){let e4=s2[t4],i4=e4&&e4.label,r3=o2.width,n3={};i4&&(i4.attr(l2),e4.shortenLabel?e4.shortenLabel():p2&&!r3&&"nowrap"!==o2.whiteSpace&&(p2r2.g(e4).attr({zIndex:n2}).addClass(`highcharts-${i3.toLowerCase()}${o3} `+(this.isRadial?`highcharts-radial-axis${o3} `:"")+(s2.className||"")).add(t3);this.axisGroup||(this.gridGroup=o2("grid","-grid",s2.gridZIndex),this.axisGroup=o2("axis","",s2.zIndex),this.labelGroup=o2("axis-labels","-labels",s2.labels.zIndex))}getOffset(){let t3=this,{chart:e3,horiz:i3,options:s2,side:r2,ticks:o2,tickPositions:n2,coll:a2}=t3,h2=e3.inverted&&!t3.isZAxis?[1,0,3,2][r2]:r2,l2=t3.hasData(),d2=s2.title,c2=s2.labels,p2=A(s2.crossing),u2=e3.axisOffset,g2=e3.clipOffset,f2=[-1,1,1,-1][r2],m2,x2=0,b2,v2=0,S2=0,C2,M2;if(t3.showAxis=m2=l2||s2.showEmpty,t3.staggerLines=t3.horiz&&c2.staggerLines||void 0,t3.createGroups(),l2||t3.isLinked?(n2.forEach((function(e4){t3.generateTick(e4)})),t3.renderUnsquish(),t3.reserveSpaceDefault=0===r2||2===r2||{1:"left",3:"right"}[r2]===t3.labelAlign,E(c2.reserveSpace,!p2&&null,"center"===t3.labelAlign||null,t3.reserveSpaceDefault)&&n2.forEach((function(t4){S2=Math.max(o2[t4].getLabelSize(),S2)})),t3.staggerLines&&(S2*=t3.staggerLines),t3.labelOffset=S2*(t3.opposite?-1:1)):D(o2,(function(t4,e4){t4.destroy(),delete o2[e4]})),(d2==null?void 0:d2.text)&&false!==d2.enabled&&(t3.addTitle(m2),m2&&!p2&&false!==d2.reserveSpace&&(t3.titleOffset=x2=t3.axisTitle.getBBox()[i3?"height":"width"],v2=y(b2=d2.offset)?0:E(d2.margin,i3?5:10))),t3.renderLine(),t3.offset=f2*E(s2.offset,u2[r2]?u2[r2]+(s2.margin||0):0),t3.tickRotCorr=t3.tickRotCorr||{x:0,y:0},M2=0===r2?-t3.labelMetrics().h:2===r2?t3.tickRotCorr.y:0,C2=Math.abs(S2)+v2,S2&&(C2-=M2,C2+=f2*(i3?E(c2.y,t3.tickRotCorr.y+f2*c2.distance):E(c2.x,f2*c2.distance))),t3.axisTitleMargin=E(b2,C2),t3.getMaxLabelDimensions&&(t3.maxLabelDimensions=t3.getMaxLabelDimensions(o2,n2)),"colorAxis"!==a2&&g2){let e4=this.tickSize("tick");u2[r2]=Math.max(u2[r2],(t3.axisTitleMargin||0)+x2+f2*t3.offset,C2,n2&&n2.length&&e4?e4[0]+f2*t3.offset:0);let i4=!t3.axisLine||s2.offset?0:t3.axisLine.strokeWidth()/2;g2[h2]=Math.max(g2[h2],i4)}k(this,"afterGetOffset")}getLinePath(t3){let e3=this.chart,i3=this.opposite,s2=this.offset,r2=this.horiz,o2=this.left+(i3?this.width:0)+s2,n2=e3.chartHeight-this.bottom-(i3?this.height:0)+s2;return i3&&(t3*=-1),e3.renderer.crispLine([["M",r2?this.left:o2,r2?n2:this.top],["L",r2?e3.chartWidth-this.right:o2,r2?n2:e3.chartHeight-this.bottom]],t3)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(t3){let e3=this.horiz,i3=this.left,s2=this.top,r2=this.len,o2=this.options.title,n2=e3?i3:s2,a2=this.opposite,h2=this.offset,l2=o2.x,d2=o2.y,c2=this.chart.renderer.fontMetrics(t3),p2=t3?Math.max(t3.getBBox(false,0).height-c2.h-1,0):0,u2={low:n2+(e3?0:r2),middle:n2+r2/2,high:n2+(e3?r2:0)}[o2.align],g2=(e3?s2+this.height:i3)+(e3?1:-1)*(a2?-1:1)*(this.axisTitleMargin||0)+[-p2,p2,c2.f,-p2][this.side],f2={x:e3?u2+l2:g2+(a2?this.width:0)+h2+l2,y:e3?g2+d2-(a2?this.height:0)+h2:u2+d2};return k(this,"afterGetTitlePosition",{titlePosition:f2}),f2}renderMinorTick(t3,e3){let i3=this.minorTicks;i3[t3]||(i3[t3]=new n(this,t3,"minor")),e3&&i3[t3].isNew&&i3[t3].render(null,true),i3[t3].render(null,false,1)}renderTick(t3,e3,i3){let s2=this.isLinked,r2=this.ticks;(!s2||t3>=this.min&&t3<=this.max||this.grid&&this.grid.isColumn)&&(r2[t3]||(r2[t3]=new n(this,t3)),i3&&r2[t3].isNew&&r2[t3].render(e3,true,-1),r2[t3].render(e3))}render(){let t3,e3;let i3=this,s2=i3.chart,r2=i3.logarithmic,a2=s2.renderer,l2=i3.options,d2=i3.isLinked,c2=i3.tickPositions,p2=i3.axisTitle,u2=i3.ticks,g2=i3.minorTicks,f2=i3.alternateBands,m2=l2.stackLabels,x2=l2.alternateGridColor,y2=l2.crossing,b2=i3.tickmarkOffset,v2=i3.axisLine,S2=i3.showAxis,C2=h(a2.globalAnimation);if(i3.labelEdge.length=0,i3.overlap=false,[u2,g2,f2].forEach((function(t4){D(t4,(function(t5){t5.isActive=false}))})),A(y2)){let t4=this.isXAxis?s2.yAxis[0]:s2.xAxis[0],e4=[1,-1,-1,1][this.side];if(t4){let s3=t4.toPixels(y2,true);i3.horiz&&(s3=t4.len-s3),i3.offset=e4*s3}}if(i3.hasData()||d2){let a3=i3.chart.hasRendered&&i3.old&&A(i3.old.min);i3.minorTickInterval&&!i3.categories&&i3.getMinorTickPositions().forEach((function(t4){i3.renderMinorTick(t4,a3)})),c2.length&&(c2.forEach((function(t4,e4){i3.renderTick(t4,e4,a3)})),b2&&(0===i3.min||i3.single)&&(u2[-1]||(u2[-1]=new n(i3,-1,null,true)),u2[-1].render(-1))),x2&&c2.forEach((function(n2,a4){e3=void 0!==c2[a4+1]?c2[a4+1]+b2:i3.max-b2,a4%2==0&&n2=.5)t4=Math.round(t4),l=n2.getLinearTickPositions(t4,e4,i3);else if(t4>=.08){let s2,r2,n3,a2,h2,d,c;let p=Math.floor(e4);for(s2=t4>.3?[1,2,4]:t4>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],r2=p;r2e4&&(!o2||d<=i3)&&void 0!==d&&l.push(d),d>i3&&(c=true),d=h2}else{let d=this.lin2log(e4),c=this.lin2log(i3),p=o2?n2.getMinorTickInterval():h.tickInterval,u=h.tickPixelInterval/(o2?5:1),g=o2?a/n2.tickPositions.length:a;t4=s(t4=r("auto"===p?null:p,this.minorAutoInterval,(c-d)*u/(g||1))),l=n2.getLinearTickPositions(t4,d,c).map(this.log2lin),o2||(this.minorAutoInterval=t4/5)}return o2||(n2.tickInterval=t4),l}lin2log(t4){return Math.pow(10,t4)}log2lin(t4){return Math.log(t4)/Math.LN10}}t3.Additions=n}(e2||(e2={})),e2})),i(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],(function(t2){var e2;let{erase:i2,extend:s,isNumber:r}=t2;return function(t3){let e3;function o(t4){return this.addPlotBandOrLine(t4,"plotBands")}function n(t4,i3){let s2=this.userOptions,r2=new e3(this,t4);if(this.visible&&(r2=r2.render()),r2){if(this._addedPlotLB||(this._addedPlotLB=true,(s2.plotLines||[]).concat(s2.plotBands||[]).forEach((t5=>{this.addPlotBandOrLine(t5)}))),i3){let e4=s2[i3]||[];e4.push(t4),s2[i3]=e4}this.plotLinesAndBands.push(r2)}return r2}function a(t4){return this.addPlotBandOrLine(t4,"plotLines")}function h(t4,e4,i3){i3=i3||this.options;let s2=this.getPlotLinePath({value:e4,force:true,acrossPanes:i3.acrossPanes}),o2=[],n2=this.horiz,a2=!r(this.min)||!r(this.max)||t4this.max&&e4>this.max,h2=this.getPlotLinePath({value:t4,force:true,acrossPanes:i3.acrossPanes}),l2,d2=1,c2;if(h2&&s2)for(a2&&(c2=h2.toString()===s2.toString(),d2=0),l2=0;l2{var _a;let t3=[];for(let e4 of this.axes)for(let{label:i3,options:s3}of e4.plotLinesAndBands)i3&&!((_a=s3==null?void 0:s3.label)==null?void 0:_a.allowOverlap)&&t3.push(i3);return t3}))})),t2.compose(p,s2)}constructor(t3,e3){this.axis=t3,this.options=e3,this.id=e3.id}render(){h(this,"render");let{axis:t3,options:e3}=this,{horiz:i3,logarithmic:s2}=t3,{color:r2,events:n2,zIndex:a2=0}=e3,p2={},u=t3.chart.renderer,g=e3.to,f=e3.from,m=e3.value,x=e3.borderWidth,y=e3.label,{label:b,svgElem:v}=this,S=[],C,k=o(f)&&o(g),M=o(m),w2=!v,T={class:"highcharts-plot-"+(k?"band ":"line ")+(e3.className||"")},A=k?"bands":"lines";if(!t3.chart.styledMode&&(M?(T.stroke=r2||"#999999",T["stroke-width"]=c(e3.width,1),e3.dashStyle&&(T.dashstyle=e3.dashStyle)):k&&(T.fill=r2||"#e6e9ff",x&&(T.stroke=e3.borderColor,T["stroke-width"]=x))),p2.zIndex=a2,A+="-"+a2,(C=t3.plotLinesAndBandsGroups[A])||(t3.plotLinesAndBandsGroups[A]=C=u.g("plot-"+A).attr(p2).add()),v||(this.svgElem=v=u.path().attr(T).add(C)),o(m))S=t3.getPlotLinePath({value:(s2==null?void 0:s2.log2lin(m))??m,lineWidth:v.strokeWidth(),acrossPanes:e3.acrossPanes});else{if(!(o(f)&&o(g)))return;S=t3.getPlotBandPath((s2==null?void 0:s2.log2lin(f))??f,(s2==null?void 0:s2.log2lin(g))??g,e3)}return!this.eventsAdded&&n2&&(d(n2,((t4,e4)=>{v==null?void 0:v.on(e4,(t5=>{n2[e4].apply(this,[t5])}))})),this.eventsAdded=true),(w2||!v.d)&&(S==null?void 0:S.length)?v.attr({d:S}):v&&(S?(v.show(),v.animate({d:S})):v.d&&(v.hide(),b&&(this.label=b=b.destroy()))),y&&(o(y.text)||o(y.formatter))&&(S==null?void 0:S.length)&&t3.width>0&&t3.height>0&&!S.isFlat?(y=l({align:i3&&k?"center":void 0,x:i3?!k&&4:10,verticalAlign:!i3&&k?"middle":void 0,y:i3?k?16:10:k?6:-4,rotation:i3&&!k?90:0,...k?{inside:true}:{}},y),this.renderLabel(y,S,k,a2)):b&&b.hide(),this}renderLabel(t3,e3,i3,n2){var _a;let a2=this.axis,h2=a2.chart.renderer,d2=t3.inside,c2=this.label;c2||(this.label=c2=h2.text(this.getLabelText(t3),0,0,t3.useHTML).attr({align:t3.textAlign||t3.align,rotation:t3.rotation,class:"highcharts-plot-"+(i3?"band":"line")+"-label "+(t3.className||""),zIndex:n2}),a2.chart.styledMode||c2.css(l({fontSize:"0.8em",textOverflow:i3&&!d2?"":"ellipsis"},t3.style)),c2.add());let p2=e3.xBounds||[e3[0][1],e3[1][1],i3?e3[2][1]:e3[0][1]],u=e3.yBounds||[e3[0][2],e3[1][2],i3?e3[2][2]:e3[0][2]],g=r(p2),f=r(u),m=s(p2)-g;c2.align(t3,false,{x:g,y:f,width:m,height:s(u)-f}),(!c2.alignValue||"left"===c2.alignValue||o(d2))&&c2.css({width:(((_a=t3.style)==null?void 0:_a.width)||(i3&&d2?m:90===c2.rotation?a2.height-(c2.alignAttr.y-a2.top):(t3.clip?a2.width:a2.chart.chartWidth)-(c2.alignAttr.x-a2.left)))+"px"}),c2.show(true)}getLabelText(t3){return o(t3.formatter)?t3.formatter.call(this):t3.text}destroy(){a(this.axis.plotLinesAndBands,this),delete this.axis,n(this)}}return p})),i(e,"Core/Tooltip.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o){var n;let{animObject:a}=t2,{format:h}=e2,{composed:l,doc:d,isSafari:c}=i2,{distribute:p}=s,{addEvent:u,clamp:g,css:f,discardElement:m,extend:x,fireEvent:y,isArray:b,isNumber:v,isString:S,merge:C,pick:k,pushUnique:M,splat:w2,syncTimeout:T}=o;class A{constructor(t3,e3,i3){this.allowShared=true,this.crosshairs=[],this.distance=0,this.isHidden=true,this.isSticky=false,this.options={},this.outside=false,this.chart=t3,this.init(t3,e3),this.pointer=i3}bodyFormatter(t3){return t3.map((function(t4){let e3=t4.series.tooltipOptions;return(e3[(t4.point.formatPrefix||"point")+"Formatter"]||t4.point.tooltipFormatter).call(t4.point,e3[(t4.point.formatPrefix||"point")+"Format"]||"")}))}cleanSplit(t3){this.chart.series.forEach((function(e3){let i3=e3&&e3.tt;i3&&(!i3.isActive||t3?e3.tt=i3.destroy():i3.isActive=false)}))}defaultFormatter(t3){let e3;let i3=this.points||w2(this);return(e3=(e3=[t3.tooltipFooterHeaderFormatter(i3[0])]).concat(t3.bodyFormatter(i3))).push(t3.tooltipFooterHeaderFormatter(i3[0],true)),e3}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(true),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),m(this.container)),o.clearTimeout(this.hideTimer)}getAnchor(t3,e3){let i3;let{chart:s2,pointer:r2}=this,o2=s2.inverted,n2=s2.plotTop,a2=s2.plotLeft;if((t3=w2(t3))[0].series&&t3[0].series.yAxis&&!t3[0].series.yAxis.options.reversedStacks&&(t3=t3.slice().reverse()),this.followPointer&&e3)void 0===e3.chartX&&(e3=r2.normalize(e3)),i3=[e3.chartX-a2,e3.chartY-n2];else if(t3[0].tooltipPos)i3=t3[0].tooltipPos;else{let s3=0,r3=0;t3.forEach((function(t4){let e4=t4.pos(true);e4&&(s3+=e4[0],r3+=e4[1])})),s3/=t3.length,r3/=t3.length,this.shared&&t3.length>1&&e3&&(o2?s3=e3.chartX:r3=e3.chartY),i3=[s3-a2,r3-n2]}return i3.map(Math.round)}getClassName(t3,e3,i3){let s2=this.options,r2=t3.series,o2=r2.options;return[s2.className,"highcharts-label",i3&&"highcharts-tooltip-header",e3?"highcharts-tooltip-box":"highcharts-tooltip",!i3&&"highcharts-color-"+k(t3.colorIndex,r2.colorIndex),o2&&o2.className].filter(S).join(" ")}getLabel({anchorX:t3,anchorY:e3}={anchorX:0,anchorY:0}){let s2=this,o2=this.chart.styledMode,n2=this.options,a2=this.split&&this.allowShared,h2=this.container,l2=this.chart.renderer;if(this.label){let t4=!this.label.hasClass("highcharts-label");(!a2&&t4||a2&&!t4)&&this.destroy()}if(!this.label){if(this.outside){let t4=this.chart.options.chart.style,e4=r.getRendererType();this.container=h2=i2.doc.createElement("div"),h2.className="highcharts-tooltip-container",f(h2,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(t4&&t4.zIndex||0)+3)}),this.renderer=l2=new e4(h2,0,0,t4,void 0,void 0,l2.styledMode)}if(a2?this.label=l2.g("tooltip"):(this.label=l2.label("",t3,e3,n2.shape,void 0,void 0,n2.useHTML,void 0,"tooltip").attr({padding:n2.padding,r:n2.borderRadius}),o2||this.label.attr({fill:n2.backgroundColor,"stroke-width":n2.borderWidth||0}).css(n2.style).css({pointerEvents:n2.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),s2.outside){let t4=this.label;[t4.xSetter,t4.ySetter].forEach(((e4,i3)=>{t4[i3?"ySetter":"xSetter"]=r2=>{e4.call(t4,s2.distance),t4[i3?"y":"x"]=r2,h2&&(h2.style[i3?"top":"left"]=`${r2}px`)}}))}this.label.attr({zIndex:8}).shadow(n2.shadow).add()}return h2&&!h2.parentElement&&i2.doc.body.appendChild(h2),this.label}getPlayingField(){let{body:t3,documentElement:e3}=d,{chart:i3,distance:s2,outside:r2}=this;return{width:r2?Math.max(t3.scrollWidth,e3.scrollWidth,t3.offsetWidth,e3.offsetWidth,e3.clientWidth)-2*s2:i3.chartWidth,height:r2?Math.max(t3.scrollHeight,e3.scrollHeight,t3.offsetHeight,e3.offsetHeight,e3.clientHeight):i3.chartHeight}}getPosition(t3,e3,i3){var _a,_b;let{distance:s2,chart:r2,outside:o2,pointer:n2}=this,{inverted:a2,plotLeft:h2,plotTop:l2,polar:d2}=r2,{plotX:c2=0,plotY:p2=0}=i3,u2={},g2=a2&&i3.h||0,{height:f2,width:m2}=this.getPlayingField(),x2=n2.getChartPosition(),y2=t4=>t4*x2.scaleX,b2=t4=>t4*x2.scaleY,v2=i4=>{let n3="x"===i4;return[i4,n3?m2:f2,n3?t3:e3].concat(o2?[n3?y2(t3):b2(e3),n3?x2.left-s2+y2(c2+h2):x2.top-s2+b2(p2+l2),0,n3?m2:f2]:[n3?t3:e3,n3?c2+h2:p2+l2,n3?h2:l2,n3?h2+r2.plotWidth:l2+r2.plotHeight])},S2=v2("y"),C2=v2("x"),M2,w3=!!i3.negative;!d2&&((_b=(_a=r2.hoverSeries)==null?void 0:_a.yAxis)==null?void 0:_b.reversed)&&(w3=!w3);let T2=!this.followPointer&&k(i3.ttBelow,!d2&&!a2===w3),A2=function(t4,e4,i4,r3,n3,a3,h3){let l3=o2?"y"===t4?b2(s2):y2(s2):s2,d3=(i4-r3)/2,c3=r3e4?m3:m3+g2)}},P=function(t4,e4,i4,r3,o3){if(o3e4-s2)return false;o3e4-r3/2?u2[t4]=e4-r3-2:u2[t4]=o3-i4/2},L=function(t4){[S2,C2]=[C2,S2],M2=t4},O=()=>{false!==A2.apply(0,S2)?false!==P.apply(0,C2)||M2||(L(true),O()):M2?u2.x=u2.y=0:(L(true),O())};return(a2&&!d2||this.len>1)&&L(),O(),u2}hide(t3){let e3=this;o.clearTimeout(this.hideTimer),t3=k(t3,this.options.hideDelay),this.isHidden||(this.hideTimer=T((function(){let i3=e3.getLabel();e3.getLabel().animate({opacity:0},{duration:t3?150:t3,complete:()=>{i3.hide(),e3.container&&e3.container.remove()}}),e3.isHidden=true}),t3))}init(t3,e3){this.chart=t3,this.options=e3,this.crosshairs=[],this.isHidden=true,this.split=e3.split&&!t3.inverted&&!t3.polar,this.shared=e3.shared||this.split,this.outside=k(e3.outside,!!(t3.scrollablePixelsX||t3.scrollablePixelsY))}shouldStickOnContact(t3){return!!(!this.followPointer&&this.options.stickOnContact&&(!t3||this.pointer.inClass(t3.target,"highcharts-tooltip")))}move(t3,e3,i3,s2){let r2=this,o2=a(!r2.isHidden&&r2.options.animation),n2=r2.followPointer||(r2.len||0)>1,h2={x:t3,y:e3};n2||(h2.anchorX=i3,h2.anchorY=s2),o2.step=()=>r2.drawTracker(),r2.getLabel().animate(h2,o2)}refresh(t3,e3){let{chart:i3,options:s2,pointer:r2,shared:n2}=this,a2=w2(t3),l2=a2[0],d2=[],c2=s2.format,p2=s2.formatter||this.defaultFormatter,u2=i3.styledMode,f2={},m2=this.allowShared;if(!s2.enabled||!l2.series)return;o.clearTimeout(this.hideTimer),this.allowShared=!(!b(t3)&&t3.series&&t3.series.noSharedTooltip),m2=m2&&!this.allowShared,this.followPointer=!this.split&&l2.series.tooltipOptions.followPointer;let x2=this.getAnchor(t3,e3),v2=x2[0],C2=x2[1];n2&&this.allowShared?(r2.applyInactiveState(a2),a2.forEach((function(t4){t4.setState("hover"),d2.push(t4.getLabelConfig())})),(f2=l2.getLabelConfig()).points=d2):f2=l2.getLabelConfig(),this.len=d2.length;let M2=S(c2)?h(c2,f2,i3):p2.call(f2,this),T2=l2.series;if(this.distance=k(T2.tooltipOptions.distance,16),false===M2)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(M2,a2);else{let t4=v2,o2=C2;if(e3&&r2.isDirectTouch&&(t4=e3.chartX-i3.plotLeft,o2=e3.chartY-i3.plotTop),i3.polar||false===T2.options.clip||a2.some((e4=>r2.isDirectTouch||e4.series.shouldShowTooltip(t4,o2)))){let t5=this.getLabel(m2&&this.tt||{});(!s2.style.width||u2)&&t5.css({width:(this.outside?this.getPlayingField():i3.spacingBox).width+"px"}),t5.attr({class:this.getClassName(l2),text:M2&&M2.join?M2.join(""):M2}),this.outside&&t5.attr({x:g(t5.x||0,0,this.getPlayingField().width-(t5.width||0))}),u2||t5.attr({stroke:s2.borderColor||l2.color||T2.color||"#666666"}),this.updatePosition({plotX:v2,plotY:C2,negative:l2.negative,ttBelow:l2.ttBelow,h:x2[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=false}y(this,"refresh")}renderSplit(t3,e3){var _a;let i3=this,{chart:s2,chart:{chartWidth:r2,chartHeight:o2,plotHeight:n2,plotLeft:a2,plotTop:h2,scrollablePixelsY:l2=0,scrollablePixelsX:u2,styledMode:f2},distance:m2,options:y2,options:{positioner:b2},pointer:v2}=i3,{scrollLeft:C2=0,scrollTop:M2=0}=((_a=s2.scrollablePlotArea)==null?void 0:_a.scrollingContainer)||{},w3=i3.outside&&"number"!=typeof u2?d.documentElement.getBoundingClientRect():{left:C2,right:C2+r2,top:M2,bottom:M2+o2},T2=i3.getLabel(),A2=this.renderer||s2.renderer,P=!!(s2.xAxis[0]&&s2.xAxis[0].opposite),{left:L,top:O}=v2.getChartPosition(),D=h2+M2,E=0,I=n2-l2;function j(t4,e4,s3,r3,o3=true){let n3,a3;return s3?(n3=P?0:I,a3=g(t4-r3/2,w3.left,w3.right-r3-(i3.outside?L:0))):(n3=e4-D,a3=g(a3=o3?t4-r3-m2:t4+m2,o3?a3:w3.left,w3.right)),{x:a3,y:n3}}S(t3)&&(t3=[false,t3]);let B=t3.slice(0,e3.length+1).reduce((function(t4,s3,r3){if(false!==s3&&""!==s3){let o3=e3[r3-1]||{isHeader:true,plotX:e3[0].plotX,plotY:n2,series:{}},l3=o3.isHeader,d2=l3?i3:o3.series,c2=d2.tt=function(t5,e4,s4){let r4=t5,{isHeader:o4,series:n3}=e4;if(!r4){let t6={padding:y2.padding,r:y2.borderRadius};f2||(t6.fill=y2.backgroundColor,t6["stroke-width"]=y2.borderWidth??1),r4=A2.label("",0,0,y2[o4?"headerShape":"shape"],void 0,void 0,y2.useHTML).addClass(i3.getClassName(e4,true,o4)).attr(t6).add(T2)}return r4.isActive=true,r4.attr({text:s4}),f2||r4.css(y2.style).attr({stroke:y2.borderColor||e4.color||n3.color||"#333333"}),r4}(d2.tt,o3,s3.toString()),p2=c2.getBBox(),u3=p2.width+c2.strokeWidth();l3&&(E=p2.height,I+=E,P&&(D-=E));let{anchorX:x2,anchorY:v3}=function(t5){let e4,i4;let{isHeader:s4,plotX:r4=0,plotY:o4=0,series:l4}=t5;if(s4)e4=Math.max(a2+r4,a2),i4=h2+n2/2;else{let{xAxis:t6,yAxis:s5}=l4;e4=t6.pos+g(r4,-m2,t6.len+m2),l4.shouldShowTooltip(0,s5.pos-h2+o4,{ignoreX:true})&&(i4=s5.pos+o4)}return{anchorX:e4=g(e4,w3.left-m2,w3.right+m2),anchorY:i4}}(o3);if("number"==typeof v3){let e4=p2.height+1,s4=b2?b2.call(i3,u3,e4,o3):j(x2,v3,l3,u3);t4.push({align:b2?0:void 0,anchorX:x2,anchorY:v3,boxWidth:u3,point:o3,rank:k(s4.rank,l3?1:0),size:e4,target:s4.y,tt:c2,x:s4.x})}else c2.isActive=false}return t4}),[]);!b2&&B.some((t4=>{let{outside:e4}=i3,s3=(e4?L:0)+t4.anchorX;return s3s3}))&&(B=B.map((t4=>{let{x:e4,y:i4}=j(t4.anchorX,t4.anchorY,t4.point.isHeader,t4.boxWidth,false);return x(t4,{target:i4,x:e4})}))),i3.cleanSplit(),p(B,I);let R={left:L,right:L};B.forEach((function(t4){let{x:e4,boxWidth:s3,isHeader:r3}=t4;!r3&&(i3.outside&&L+e4R.right&&(R.right=L+e4))})),B.forEach((function(t4){let{x:e4,anchorX:s3,anchorY:r3,pos:o3,point:{isHeader:n3}}=t4,a3={visibility:void 0===o3?"hidden":"inherit",x:e4,y:(o3||0)+D,anchorX:s3,anchorY:r3};if(i3.outside&&e40&&(n3||(a3.x=e4+t5,a3.anchorX=s3+t5),n3&&(a3.x=(R.right-R.left)/2,a3.anchorX=s3+t5))}t4.tt.attr(a3)}));let{container:z,outside:N,renderer:W}=i3;if(N&&z&&W){let{width:t4,height:e4,x:i4,y:s3}=T2.getBBox();W.setSize(t4+i4,e4+s3,false),z.style.left=R.left+"px",z.style.top=O+"px"}c&&T2.attr({opacity:1===T2.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let t3=this.chart,e3=this.label,i3=this.shared?t3.hoverPoints:t3.hoverPoint;if(!e3||!i3)return;let s2={x:0,y:0,width:0,height:0},r2=this.getAnchor(i3),o2=e3.getBBox();r2[0]+=t3.plotLeft-(e3.translateX||0),r2[1]+=t3.plotTop-(e3.translateY||0),s2.x=Math.min(0,r2[0]),s2.y=Math.min(0,r2[1]),s2.width=r2[0]<0?Math.max(Math.abs(r2[0]),o2.width-r2[0]):Math.max(Math.abs(r2[0]),o2.width),s2.height=r2[1]<0?Math.max(Math.abs(r2[1]),o2.height-Math.abs(r2[1])):Math.max(Math.abs(r2[1]),o2.height),this.tracker?this.tracker.attr(s2):(this.tracker=e3.renderer.rect(s2).addClass("highcharts-tracker").add(e3),t3.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(t3){return t3.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(t3,e3){let i3=t3.series,s2=i3.tooltipOptions,r2=i3.xAxis,o2=r2&&r2.dateTime,n2={isFooter:e3,labelConfig:t3},a2=s2.xDateFormat,l2=s2[e3?"footerFormat":"headerFormat"];return y(this,"headerFormatter",n2,(function(e4){o2&&!a2&&v(t3.key)&&(a2=o2.getXDateFormat(t3.key,s2.dateTimeLabelFormats)),o2&&a2&&(t3.point&&t3.point.tooltipDateKeys||["key"]).forEach((function(t4){l2=l2.replace("{point."+t4+"}","{point."+t4+":"+a2+"}")})),i3.chart.styledMode&&(l2=this.styledModeFormat(l2)),e4.text=h(l2,{point:t3,series:i3},this.chart)})),n2.text}update(t3){this.destroy(),this.init(this.chart,C(true,this.options,t3))}updatePosition(t3){let{chart:e3,container:i3,distance:s2,options:r2,pointer:o2,renderer:n2}=this,{height:a2=0,width:h2=0}=this.getLabel(),{left:l2,top:d2,scaleX:c2,scaleY:p2}=o2.getChartPosition(),u2=(r2.positioner||this.getPosition).call(this,h2,a2,t3),g2=(t3.plotX||0)+e3.plotLeft,m2=(t3.plotY||0)+e3.plotTop,x2;n2&&i3&&(r2.positioner&&(u2.x+=l2-s2,u2.y+=d2-s2),x2=(r2.borderWidth||0)+2*s2+2,n2.setSize(h2+x2,a2+x2,false),(1!==c2||1!==p2)&&(f(i3,{transform:`scale(${c2}, ${p2})`}),g2*=c2,m2*=p2),g2+=l2-u2.x,m2+=d2-u2.y),this.move(Math.round(u2.x),Math.round(u2.y||0),g2,m2)}}return(n=A||(A={})).compose=function(t3){M(l,"Core.Tooltip")&&u(t3,"afterInit",(function(){let t4=this.chart;t4.options.tooltip&&(t4.tooltip=new n(t4,t4.options.tooltip,this))}))},A})),i(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r){let{animObject:o}=e2,{defaultOptions:n}=i2,{format:a}=s,{addEvent:h,crisp:l,erase:d,extend:c,fireEvent:p,getNestedProperty:u,isArray:g,isFunction:f,isNumber:m,isObject:x,merge:y,pick:b,syncTimeout:v,removeEvent:S,uniqueKey:C}=r;class k{animateBeforeDestroy(){let t3=this,e3={x:t3.startXPos,opacity:0},i3=t3.getGraphicalProps();i3.singular.forEach((function(i4){t3[i4]=t3[i4].animate("dataLabel"===i4?{x:t3[i4].startXPos,y:t3[i4].startYPos,opacity:0}:e3)})),i3.plural.forEach((function(e4){t3[e4].forEach((function(e5){e5.element&&e5.animate(c({x:t3.startXPos},e5.startYPos?{x:e5.startXPos,y:e5.startYPos}:{}))}))}))}applyOptions(t3,e3){let i3=this.series,s2=i3.options.pointValKey||i3.pointValKey;return c(this,t3=k.prototype.optionsToObject.call(this,t3)),this.options=this.options?c(this.options,t3):t3,t3.group&&delete this.group,t3.dataLabels&&delete this.dataLabels,s2&&(this.y=k.prototype.getNestedProperty.call(this,s2)),this.selected&&(this.state="select"),"name"in this&&void 0===e3&&i3.xAxis&&i3.xAxis.hasNames&&(this.x=i3.xAxis.nameToX(this)),void 0===this.x&&i3?this.x=e3??i3.autoIncrement():m(t3.x)&&i3.options.relativeXValue&&(this.x=i3.autoIncrement(t3.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t3=this,e3=t3.series,i3=e3.chart,s2=e3.options.dataSorting,r2=i3.hoverPoints,n2=o(t3.series.chart.renderer.globalAnimation),a2=()=>{for(let e4 in(t3.graphic||t3.graphics||t3.dataLabel||t3.dataLabels)&&(S(t3),t3.destroyElements()),t3)delete t3[e4]};t3.legendItem&&i3.legend.destroyItem(t3),r2&&(t3.setState(),d(r2,t3),r2.length||(i3.hoverPoints=null)),t3===i3.hoverPoint&&t3.onMouseOut(),s2&&s2.enabled?(this.animateBeforeDestroy(),v(a2,n2.duration)):a2(),i3.pointCount--}this.destroyed=true}destroyElements(t3){let e3=this,i3=e3.getGraphicalProps(t3);i3.singular.forEach((function(t4){e3[t4]=e3[t4].destroy()})),i3.plural.forEach((function(t4){e3[t4].forEach((function(t5){t5&&t5.element&&t5.destroy()})),delete e3[t4]}))}firePointEvent(t3,e3,i3){let s2=this,r2=this.series.options;s2.manageEvent(t3),"click"===t3&&r2.allowPointSelect&&(i3=function(t4){!s2.destroyed&&s2.select&&s2.select(null,t4.ctrlKey||t4.metaKey||t4.shiftKey)}),p(s2,t3,e3,i3)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t3){let e3,i3;let s2=this,r2=[],o2={singular:[],plural:[]};for((t3=t3||{graphic:1,dataLabel:1}).graphic&&r2.push("graphic","connector"),t3.dataLabel&&r2.push("dataLabel","dataLabelPath","dataLabelUpper"),i3=r2.length;i3--;)s2[e3=r2[i3]]&&o2.singular.push(e3);return["graphic","dataLabel"].forEach((function(e4){let i4=e4+"s";t3[e4]&&s2[i4]&&o2.plural.push(i4)})),o2}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(t3){return t3?0===t3.indexOf("custom.")?u(t3,this.options):this[t3]:void 0}getZone(){let t3=this.series,e3=t3.zones,i3=t3.zoneAxis||"y",s2,r2=0;for(s2=e3[0];this[i3]>=s2.value;)s2=e3[++r2];return this.nonZonedColor||(this.nonZonedColor=this.color),s2&&s2.color&&!this.options.color?this.color=s2.color:this.color=this.nonZonedColor,s2}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(t3,e3,i3){this.formatPrefix="point",this.visible=true,this.series=t3,this.applyOptions(e3,i3),this.id??(this.id=C()),this.resolveColor(),t3.chart.pointCount++,p(this,"afterInit")}isValid(){return(m(this.x)||this.x instanceof Date)&&m(this.y)}optionsToObject(t3){let e3=this.series,i3=e3.options.keys,s2=i3||e3.pointArrayMap||["y"],r2=s2.length,o2={},n2,a2=0,h2=0;if(m(t3)||null===t3)o2[s2[0]]=t3;else if(g(t3))for(!i3&&t3.length>r2&&("string"==(n2=typeof t3[0])?o2.name=t3[0]:"number"===n2&&(o2.x=t3[0]),a2++);h20?k.prototype.setNestedProperty(o2,t3[a2],s2[h2]):o2[s2[h2]]=t3[a2]),a2++,h2++;else"object"==typeof t3&&(o2=t3,t3.dataLabels&&(e3.hasDataLabels=()=>true),t3.marker&&(e3._hasPointMarkers=true));return o2}pos(t3,e3=this.plotY){if(!this.destroyed){let{plotX:i3,series:s2}=this,{chart:r2,xAxis:o2,yAxis:n2}=s2,a2=0,h2=0;if(m(i3)&&m(e3))return t3&&(a2=o2?o2.pos:r2.plotLeft,h2=n2?n2.pos:r2.plotTop),r2.inverted&&o2&&n2?[n2.len-e3+h2,o2.len-i3+a2]:[i3+a2,e3+h2]}}resolveColor(){let t3=this.series,e3=t3.chart.options.chart,i3=t3.chart.styledMode,s2,r2,o2=e3.colorCount,n2;delete this.nonZonedColor,t3.options.colorByPoint?(i3||(s2=(r2=t3.options.colors||t3.chart.options.colors)[t3.colorCounter],o2=r2.length),n2=t3.colorCounter,t3.colorCounter++,t3.colorCounter===o2&&(t3.colorCounter=0)):(i3||(s2=t3.color),n2=t3.colorIndex),this.colorIndex=b(this.options.colorIndex,n2),this.color=b(this.options.color,s2)}setNestedProperty(t3,e3,i3){return i3.split(".").reduce((function(t4,i4,s2,r2){let o2=r2.length-1===s2;return t4[i4]=o2?e3:x(t4[i4],true)?t4[i4]:{},t4[i4]}),t3),t3}shouldDraw(){return!this.isNull}tooltipFormatter(t3){let e3=this.series,i3=e3.tooltipOptions,s2=b(i3.valueDecimals,""),r2=i3.valuePrefix||"",o2=i3.valueSuffix||"";return e3.chart.styledMode&&(t3=e3.chart.tooltip.styledModeFormat(t3)),(e3.pointArrayMap||["y"]).forEach((function(e4){e4="{point."+e4,(r2||o2)&&(t3=t3.replace(RegExp(e4+"}","g"),r2+e4+"}"+o2)),t3=t3.replace(RegExp(e4+"}","g"),e4+":,."+s2+"f}")})),a(t3,{point:this,series:this.series},e3.chart)}update(t3,e3,i3,s2){let r2;let o2=this,n2=o2.series,a2=o2.graphic,h2=n2.chart,l2=n2.options;function d2(){o2.applyOptions(t3);let s3=a2&&o2.hasMockGraphic,d3=null===o2.y?!s3:s3;a2&&d3&&(o2.graphic=a2.destroy(),delete o2.hasMockGraphic),x(t3,true)&&(a2&&a2.element&&t3&&t3.marker&&void 0!==t3.marker.symbol&&(o2.graphic=a2.destroy()),(t3==null?void 0:t3.dataLabels)&&o2.dataLabel&&(o2.dataLabel=o2.dataLabel.destroy())),r2=o2.index,n2.updateParallelArrays(o2,r2),l2.data[r2]=x(l2.data[r2],true)||x(t3,true)?o2.options:b(t3,l2.data[r2]),n2.isDirty=n2.isDirtyData=true,!n2.fixedBox&&n2.hasCartesianSeries&&(h2.isDirtyBox=true),"point"===l2.legendType&&(h2.isDirtyLegend=true),e3&&h2.redraw(i3)}e3=b(e3,true),false===s2?d2():o2.firePointEvent("update",{options:t3},d2)}remove(t3,e3){this.series.removePoint(this.series.data.indexOf(this),t3,e3)}select(t3,e3){let i3=this,s2=i3.series,r2=s2.chart;t3=b(t3,!i3.selected),this.selectedStaging=t3,i3.firePointEvent(t3?"select":"unselect",{accumulate:e3},(function(){i3.selected=i3.options.selected=t3,s2.options.data[s2.data.indexOf(i3)]=i3.options,i3.setState(t3&&"select"),e3||r2.getSelectedPoints().forEach((function(t4){let e4=t4.series;t4.selected&&t4!==i3&&(t4.selected=t4.options.selected=false,e4.options.data[e4.data.indexOf(t4)]=t4.options,t4.setState(r2.hoverPoints&&e4.options.inactiveOtherPoints?"inactive":""),t4.firePointEvent("unselect"))}))})),delete this.selectedStaging}onMouseOver(t3){let{inverted:e3,pointer:i3}=this.series.chart;i3&&(t3=t3?i3.normalize(t3):i3.getChartCoordinatesFromPoint(this,e3),i3.runPointActions(t3,this))}onMouseOut(){let t3=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t3.hoverPoints||[]).forEach((function(t4){t4.setState()})),t3.hoverPoints=t3.hoverPoint=null}manageEvent(t3){var _a,_b,_c,_d,_e,_f;let e3=y(this.series.options.point,this.options),i3=(_a=e3.events)==null?void 0:_a[t3];f(i3)&&(!((_b=this.hcEvents)==null?void 0:_b[t3])||((_d=(_c=this.hcEvents)==null?void 0:_c[t3])==null?void 0:_d.map((t4=>t4.fn)).indexOf(i3))===-1)?((_e=this.importedUserEvent)==null?void 0:_e.call(this),this.importedUserEvent=h(this,t3,i3)):this.importedUserEvent&&!i3&&((_f=this.hcEvents)==null?void 0:_f[t3])&&(S(this,t3),delete this.hcEvents[t3],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(e3,i3){var _a;let s2=this.series,r2=this.state,o2=s2.options.states[e3||"normal"]||{},a2=n.plotOptions[s2.type].marker&&s2.options.marker,h2=a2&&false===a2.enabled,l2=a2&&a2.states&&a2.states[e3||"normal"]||{},d2=false===l2.enabled,u2=this.marker||{},g2=s2.chart,f2=a2&&s2.markerAttribs,x2=s2.halo,y2,v2,S2,C2=s2.stateMarkerGraphic,k2;if((e3=e3||"")===this.state&&!i3||this.selected&&"select"!==e3||false===o2.enabled||e3&&(d2||h2&&false===l2.enabled)||e3&&u2.states&&u2.states[e3]&&false===u2.states[e3].enabled)return;if(this.state=e3,f2&&(y2=s2.markerAttribs(this,e3)),this.graphic&&!this.hasMockGraphic){if(r2&&this.graphic.removeClass("highcharts-point-"+r2),e3&&this.graphic.addClass("highcharts-point-"+e3),!g2.styledMode){v2=s2.pointAttribs(this,e3),S2=b(g2.options.chart.animation,o2.animation);let t3=v2.opacity;s2.options.inactiveOtherPoints&&m(t3)&&(this.dataLabels||[]).forEach((function(e4){e4&&!e4.hasClass("highcharts-data-label-hidden")&&(e4.animate({opacity:t3},S2),e4.connector&&e4.connector.animate({opacity:t3},S2))})),this.graphic.animate(v2,S2)}y2&&this.graphic.animate(y2,b(g2.options.chart.animation,l2.animation,a2.animation)),C2&&C2.hide()}else e3&&l2&&(k2=u2.symbol||s2.symbol,C2&&C2.currentSymbol!==k2&&(C2=C2.destroy()),y2&&(C2?C2[i3?"animate":"attr"]({x:y2.x,y:y2.y}):k2&&(s2.stateMarkerGraphic=C2=g2.renderer.symbol(k2,y2.x,y2.y,y2.width,y2.height).add(s2.markerGroup),C2.currentSymbol=k2)),!g2.styledMode&&C2&&"inactive"!==this.state&&C2.attr(s2.pointAttribs(this,e3))),C2&&(C2[e3&&this.isInside?"show":"hide"](),C2.element.point=this,C2.addClass(this.getClassName(),true));let M=o2.halo,w2=this.graphic||C2,T=w2&&w2.visibility||"inherit";M&&M.size&&w2&&"hidden"!==T&&!this.isCluster?(x2||(s2.halo=x2=g2.renderer.path().add(w2.parentGroup)),x2.show()[i3?"animate":"attr"]({d:this.haloPath(M.size)}),x2.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s2.colorIndex)+(this.className?" "+this.className:""),visibility:T,zIndex:-1}),x2.point=this,g2.styledMode||x2.attr(c({fill:this.color||s2.color,"fill-opacity":M.opacity},t2.filterUserAttributes(M.attributes||{})))):((_a=x2==null?void 0:x2.point)==null?void 0:_a.haloPath)&&!x2.point.destroyed&&x2.animate({d:x2.point.haloPath(0)},null,x2.hide),p(this,"afterSetState",{state:e3})}haloPath(t3){let e3=this.pos();return e3?this.series.chart.renderer.symbols.circle(l(e3[0],1)-t3,e3[1]-t3,2*t3,2*t3):[]}}return k})),i(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){var s;let{parse:r}=t2,{charts:o,composed:n,isTouchDevice:a}=e2,{addEvent:h,attr:l,css:d,extend:c,find:p,fireEvent:u,isNumber:g,isObject:f,objectEach:m,offset:x,pick:y,pushUnique:b,splat:v}=i2;class S{applyInactiveState(t3){let e3=[],i3;(t3||[]).forEach((function(t4){i3=t4.series,e3.push(i3),i3.linkedParent&&e3.push(i3.linkedParent),i3.linkedSeries&&(e3=e3.concat(i3.linkedSeries)),i3.navigatorSeries&&e3.push(i3.navigatorSeries)})),this.chart.series.forEach((function(t4){-1===e3.indexOf(t4)?t4.setState("inactive",true):t4.options.inactiveOtherPoints&&t4.setAllPointsToState("inactive")}))}destroy(){let t3=this;this.eventsToUnbind.forEach((t4=>t4())),this.eventsToUnbind=[],!e2.chartCount&&(S.unbindDocumentMouseUp&&S.unbindDocumentMouseUp.forEach((t4=>t4())),S.unbindDocumentTouchEnd&&(S.unbindDocumentTouchEnd=S.unbindDocumentTouchEnd())),clearInterval(t3.tooltipTimeout),m(t3,(function(e3,i3){t3[i3]=void 0}))}getSelectionMarkerAttrs(t3,e3){let i3={args:{chartX:t3,chartY:e3},attrs:{},shapeType:"rect"};return u(this,"getSelectionMarkerAttrs",i3,(i4=>{let s2;let{chart:r2,zoomHor:o2,zoomVert:n2}=this,{mouseDownX:a2=0,mouseDownY:h2=0}=r2,l2=i4.attrs;l2.x=r2.plotLeft,l2.y=r2.plotTop,l2.width=o2?1:r2.plotWidth,l2.height=n2?1:r2.plotHeight,o2&&(s2=t3-a2,l2.width=Math.max(1,Math.abs(s2)),l2.x=(s2>0?0:s2)+a2),n2&&(s2=e3-h2,l2.height=Math.max(1,Math.abs(s2)),l2.y=(s2>0?0:s2)+h2)})),i3}drag(t3){let{chart:e3}=this,{mouseDownX:i3=0,mouseDownY:s2=0}=e3,{panning:o2,panKey:n2,selectionMarkerFill:a2}=e3.options.chart,h2=e3.plotLeft,l2=e3.plotTop,d2=e3.plotWidth,c2=e3.plotHeight,p2=f(o2)?o2.enabled:o2,u2=n2&&t3[`${n2}Key`],g2=t3.chartX,m2=t3.chartY,x2,y2=this.selectionMarker;if((!y2||!y2.touch)&&(g2h2+d2&&(g2=h2+d2),m2l2+c2&&(m2=l2+c2),this.hasDragged=Math.sqrt(Math.pow(i3-g2,2)+Math.pow(s2-m2,2)),this.hasDragged>10)){x2=e3.isInsidePlot(i3-h2,s2-l2,{visiblePlotOnly:true});let{shapeType:n3,attrs:d3}=this.getSelectionMarkerAttrs(g2,m2);(e3.hasCartesianSeries||e3.mapView)&&this.hasZoom&&x2&&!u2&&!y2&&(this.selectionMarker=y2=e3.renderer[n3](),y2.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e3.styledMode||y2.attr({fill:a2||r("#334eff").setOpacity(.25).get()})),y2&&y2.attr(d3),x2&&!y2&&p2&&e3.pan(t3,o2)}}dragStart(t3){let e3=this.chart;e3.mouseIsDown=t3.type,e3.cancelClick=false,e3.mouseDownX=t3.chartX,e3.mouseDownY=t3.chartY}getSelectionBox(t3){let e3={args:{marker:t3},result:t3.getBBox()};return u(this,"getSelectionBox",e3),e3.result}drop(t3){let e3;let{chart:i3,selectionMarker:s2}=this;for(let t4 of i3.axes)t4.isPanning&&(t4.isPanning=false,(t4.options.startOnTick||t4.options.endOnTick||t4.series.some((t5=>t5.boosted)))&&(t4.forceRedraw=true,t4.setExtremes(t4.userMin,t4.userMax,false),e3=true));if(e3&&i3.redraw(),s2&&t3){if(this.hasDragged){let e4=this.getSelectionBox(s2);i3.transform({axes:i3.axes.filter((t4=>t4.zoomEnabled&&("xAxis"===t4.coll&&this.zoomX||"yAxis"===t4.coll&&this.zoomY))),selection:{originalEvent:t3,xAxis:[],yAxis:[],...e4},from:e4})}g(i3.index)&&(this.selectionMarker=s2.destroy())}i3&&g(i3.index)&&(d(i3.container,{cursor:i3._cursor}),i3.cancelClick=this.hasDragged>10,i3.mouseIsDown=false,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(t3,e3,i3){let s2;return t3.forEach((function(t4){let r2=!(t4.noSharedTooltip&&e3)&&0>t4.options.findNearestPointBy.indexOf("y"),o2=t4.searchPoint(i3,r2);f(o2,true)&&o2.series&&(!f(s2,true)||function(t5,i4){var _a,_b;let s3=t5.distX-i4.distX,r3=t5.dist-i4.dist,o3=((_a=i4.series.group)==null?void 0:_a.zIndex)-((_b=t5.series.group)==null?void 0:_b.zIndex);return 0!==s3&&e3?s3:0!==r3?r3:0!==o3?o3:t5.series.index>i4.series.index?-1:1}(s2,o2)>0)&&(s2=o2)})),s2}getChartCoordinatesFromPoint(t3,e3){let{xAxis:i3,yAxis:s2}=t3.series,r2=t3.shapeArgs;if(i3&&s2){let o2=t3.clientX??t3.plotX??0,n2=t3.plotY||0;return t3.isNode&&r2&&g(r2.x)&&g(r2.y)&&(o2=r2.x,n2=r2.y),e3?{chartX:s2.len+s2.pos-n2,chartY:i3.len+i3.pos-o2}:{chartX:o2+i3.pos,chartY:n2+s2.pos}}if(r2&&r2.x&&r2.y)return{chartX:r2.x,chartY:r2.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t3}=this.chart,e3=x(t3);this.chartPosition={left:e3.left,top:e3.top,scaleX:1,scaleY:1};let{offsetHeight:i3,offsetWidth:s2}=t3;return s2>2&&i3>2&&(this.chartPosition.scaleX=e3.width/s2,this.chartPosition.scaleY=e3.height/i3),this.chartPosition}getCoordinates(t3){let e3={xAxis:[],yAxis:[]};for(let i3 of this.chart.axes)e3[i3.isXAxis?"xAxis":"yAxis"].push({axis:i3,value:i3.toValue(t3[i3.horiz?"chartX":"chartY"])});return e3}getHoverData(t3,e3,i3,s2,r2,o2){let n2=[],a2=function(t4){return t4.visible&&!(!r2&&t4.directTouch)&&y(t4.options.enableMouseTracking,true)},h2=e3,l2,d2={chartX:o2?o2.chartX:void 0,chartY:o2?o2.chartY:void 0,shared:r2};u(this,"beforeGetHoverData",d2),l2=h2&&!h2.stickyTracking?[h2]:i3.filter((t4=>t4.stickyTracking&&(d2.filter||a2)(t4)));let c2=s2&&t3||!o2?t3:this.findNearestKDPoint(l2,r2,o2);return h2=c2&&c2.series,c2&&(r2&&!h2.noSharedTooltip?(l2=i3.filter((function(t4){return d2.filter?d2.filter(t4):a2(t4)&&!t4.noSharedTooltip}))).forEach((function(t4){let e4=p(t4.points,(function(t5){return t5.x===c2.x&&!t5.isNull}));f(e4)&&(t4.boosted&&t4.boost&&(e4=t4.boost.getPoint(e4)),n2.push(e4))})):n2.push(c2)),u(this,"afterGetHoverData",d2={hoverPoint:c2}),{hoverPoint:d2.hoverPoint,hoverSeries:h2,hoverPoints:n2}}getPointFromEvent(t3){let e3=t3.target,i3;for(;e3&&!i3;)i3=e3.point,e3=e3.parentNode;return i3}onTrackerMouseOut(t3){let e3=this.chart,i3=t3.relatedTarget,s2=e3.hoverSeries;this.isDirectTouch=false,!s2||!i3||s2.stickyTracking||this.inClass(i3,"highcharts-tooltip")||this.inClass(i3,"highcharts-series-"+s2.index)&&this.inClass(i3,"highcharts-tracker")||s2.onMouseOut()}inClass(t3,e3){let i3=t3,s2;for(;i3;){if(s2=l(i3,"class")){if(-1!==s2.indexOf(e3))return true;if(-1!==s2.indexOf("highcharts-container"))return false}i3=i3.parentElement}}constructor(t3,e3){var _a;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e3,this.chart=t3,this.runChartClick=!!((_a=e3.chart.events)==null?void 0:_a.click),this.pinchDown=[],this.setDOMEvents(),u(this,"afterInit")}normalize(t3,e3){let i3=t3.touches,s2=i3?i3.length?i3.item(0):y(i3.changedTouches,t3.changedTouches)[0]:t3;e3||(e3=this.getChartPosition());let r2=s2.pageX-e3.left,o2=s2.pageY-e3.top;return c(t3,{chartX:Math.round(r2/=e3.scaleX),chartY:Math.round(o2/=e3.scaleY)})}onContainerClick(t3){let e3=this.chart,i3=e3.hoverPoint,s2=this.normalize(t3),r2=e3.plotLeft,o2=e3.plotTop;!e3.cancelClick&&(i3&&this.inClass(s2.target,"highcharts-tracker")?(u(i3.series,"click",c(s2,{point:i3})),e3.hoverPoint&&i3.firePointEvent("click",s2)):(c(s2,this.getCoordinates(s2)),e3.isInsidePlot(s2.chartX-r2,s2.chartY-o2,{visiblePlotOnly:true})&&u(e3,"click",s2)))}onContainerMouseDown(t3){var _a;let i3=(1&(t3.buttons||t3.button))==1;t3=this.normalize(t3),e2.isFirefox&&0!==t3.button&&this.onContainerMouseMove(t3),(void 0===t3.button||i3)&&(this.zoomOption(t3),i3&&((_a=t3.preventDefault)==null?void 0:_a.call(t3)),this.dragStart(t3))}onContainerMouseLeave(t3){let{pointer:e3}=o[y(S.hoverChartIndex,-1)]||{};t3=this.normalize(t3),this.onContainerMouseMove(t3),e3&&!this.inClass(t3.relatedTarget,"highcharts-tooltip")&&(e3.reset(),e3.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t3){let e3=this.chart,i3=e3.tooltip,s2=this.normalize(t3);this.setHoverChartIndex(t3),("mousedown"===e3.mouseIsDown||this.touchSelect(s2))&&this.drag(s2),!e3.openMenu&&(this.inClass(s2.target,"highcharts-tracker")||e3.isInsidePlot(s2.chartX-e3.plotLeft,s2.chartY-e3.plotTop,{visiblePlotOnly:true}))&&!(i3&&i3.shouldStickOnContact(s2))&&(this.inClass(s2.target,"highcharts-no-tooltip")?this.reset(false,0):this.runPointActions(s2))}onDocumentTouchEnd(t3){this.onDocumentMouseUp(t3)}onContainerTouchMove(t3){this.touchSelect(t3)?this.onContainerMouseMove(t3):this.touch(t3)}onContainerTouchStart(t3){this.touchSelect(t3)?this.onContainerMouseDown(t3):(this.zoomOption(t3),this.touch(t3,true))}onDocumentMouseMove(t3){let e3=this.chart,i3=e3.tooltip,s2=this.chartPosition,r2=this.normalize(t3,s2);!s2||e3.isInsidePlot(r2.chartX-e3.plotLeft,r2.chartY-e3.plotTop,{visiblePlotOnly:true})||i3&&i3.shouldStickOnContact(r2)||r2.target!==e3.container.ownerDocument&&this.inClass(r2.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t3){var _a,_b;(_b=(_a=o[y(S.hoverChartIndex,-1)])==null?void 0:_a.pointer)==null?void 0:_b.drop(t3)}pinch(t3){let e3=this,{chart:i3,hasZoom:s2,lastTouches:r2}=e3,o2=[].map.call(t3.touches||[],(t4=>e3.normalize(t4))),n2=o2.length,a2=1===n2&&(e3.inClass(t3.target,"highcharts-tracker")&&i3.runTrackerClick||e3.runChartClick),h2=i3.tooltip,l2=1===n2&&y(h2==null?void 0:h2.options.followTouchMove,true);n2>1?e3.initiated=true:l2&&(e3.initiated=false),s2&&e3.initiated&&!a2&&false!==t3.cancelable&&t3.preventDefault(),"touchstart"===t3.type?(e3.pinchDown=o2,e3.res=true,i3.mouseDownX=t3.chartX):l2?this.runPointActions(e3.normalize(t3)):r2&&(u(i3,"touchpan",{originalEvent:t3,touches:o2},(()=>{let e4=t4=>{let e5=t4[0],i4=t4[1]||e5;return{x:e5.chartX,y:e5.chartY,width:i4.chartX-e5.chartX,height:i4.chartY-e5.chartY}};i3.transform({axes:i3.axes.filter((t4=>t4.zoomEnabled&&(this.zoomHor&&t4.horiz||this.zoomVert&&!t4.horiz))),to:e4(o2),from:e4(r2),trigger:t3.type})})),e3.res&&(e3.res=false,this.reset(false,0))),e3.lastTouches=o2}reset(t3,e3){let i3=this.chart,s2=i3.hoverSeries,r2=i3.hoverPoint,o2=i3.hoverPoints,n2=i3.tooltip,a2=n2&&n2.shared?o2:r2;t3&&a2&&v(a2).forEach((function(e4){e4.series.isCartesian&&void 0===e4.plotX&&(t3=false)})),t3?n2&&a2&&v(a2).length&&(n2.refresh(a2),n2.shared&&o2?o2.forEach((function(t4){t4.setState(t4.state,true),t4.series.isCartesian&&(t4.series.xAxis.crosshair&&t4.series.xAxis.drawCrosshair(null,t4),t4.series.yAxis.crosshair&&t4.series.yAxis.drawCrosshair(null,t4))})):r2&&(r2.setState(r2.state,true),i3.axes.forEach((function(t4){t4.crosshair&&r2.series[t4.coll]===t4&&t4.drawCrosshair(null,r2)})))):(r2&&r2.onMouseOut(),o2&&o2.forEach((function(t4){t4.setState()})),s2&&s2.onMouseOut(),n2&&n2.hide(e3),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i3.axes.forEach((function(t4){t4.hideCrosshair()})),i3.hoverPoints=i3.hoverPoint=void 0)}runPointActions(t3,e3,i3){let s2=this.chart,r2=s2.series,n2=s2.tooltip&&s2.tooltip.options.enabled?s2.tooltip:void 0,a2=!!n2&&n2.shared,l2=e3||s2.hoverPoint,d2=l2&&l2.series||s2.hoverSeries,c2=(!t3||"touchmove"!==t3.type)&&(!!e3||d2&&d2.directTouch&&this.isDirectTouch),u2=this.getHoverData(l2,d2,r2,c2,a2,t3);l2=u2.hoverPoint,d2=u2.hoverSeries;let g2=u2.hoverPoints,f2=d2&&d2.tooltipOptions.followPointer&&!d2.tooltipOptions.split,m2=a2&&d2&&!d2.noSharedTooltip;if(l2&&(i3||l2!==s2.hoverPoint||n2&&n2.isHidden)){if((s2.hoverPoints||[]).forEach((function(t4){-1===g2.indexOf(t4)&&t4.setState()})),s2.hoverSeries!==d2&&d2.onMouseOver(),this.applyInactiveState(g2),(g2||[]).forEach((function(t4){t4.setState("hover")})),s2.hoverPoint&&s2.hoverPoint.firePointEvent("mouseOut"),!l2.series)return;s2.hoverPoints=g2,s2.hoverPoint=l2,l2.firePointEvent("mouseOver",void 0,(()=>{n2&&l2&&n2.refresh(m2?g2:l2,t3)}))}else if(f2&&n2&&!n2.isHidden){let e4=n2.getAnchor([{}],t3);s2.isInsidePlot(e4[0],e4[1],{visiblePlotOnly:true})&&n2.updatePosition({plotX:e4[0],plotY:e4[1]})}this.unDocMouseMove||(this.unDocMouseMove=h(s2.container.ownerDocument,"mousemove",(t4=>{var _a,_b;return(_b=(_a=o[S.hoverChartIndex??-1])==null?void 0:_a.pointer)==null?void 0:_b.onDocumentMouseMove(t4)})),this.eventsToUnbind.push(this.unDocMouseMove)),s2.axes.forEach((function(e4){let i4;let r3=y((e4.crosshair||{}).snap,true);!r3||(i4=s2.hoverPoint)&&i4.series[e4.coll]===e4||(i4=p(g2,(t4=>t4.series&&t4.series[e4.coll]===e4))),i4||!r3?e4.drawCrosshair(t3,i4):e4.hideCrosshair()}))}setDOMEvents(){let t3=this.chart.container,e3=t3.ownerDocument;t3.onmousedown=this.onContainerMouseDown.bind(this),t3.onmousemove=this.onContainerMouseMove.bind(this),t3.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(h(t3,"mouseenter",this.onContainerMouseEnter.bind(this)),h(t3,"mouseleave",this.onContainerMouseLeave.bind(this))),S.unbindDocumentMouseUp||(S.unbindDocumentMouseUp=[]),S.unbindDocumentMouseUp.push(h(e3,"mouseup",this.onDocumentMouseUp.bind(this)));let i3=this.chart.renderTo.parentElement;for(;i3&&"BODY"!==i3.tagName;)this.eventsToUnbind.push(h(i3,"scroll",(()=>{delete this.chartPosition}))),i3=i3.parentElement;this.eventsToUnbind.push(h(t3,"touchstart",this.onContainerTouchStart.bind(this),{passive:false}),h(t3,"touchmove",this.onContainerTouchMove.bind(this),{passive:false})),S.unbindDocumentTouchEnd||(S.unbindDocumentTouchEnd=h(e3,"touchend",this.onDocumentTouchEnd.bind(this),{passive:false})),this.setPointerCapture(),h(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var _a,_b;if(!a)return;let t3=this.pointerCaptureEventsToUnbind,e3=this.chart,i3=e3.container,s2=y((_a=e3.options.tooltip)==null?void 0:_a.followTouchMove,true)&&e3.series.some((t4=>t4.options.findNearestPointBy.indexOf("y")>-1));!this.hasPointerCapture&&s2?(t3.push(h(i3,"pointerdown",(t4=>{var _a2,_b2;((_a2=t4.target)==null?void 0:_a2.hasPointerCapture(t4.pointerId))&&((_b2=t4.target)==null?void 0:_b2.releasePointerCapture(t4.pointerId))})),h(i3,"pointermove",(t4=>{var _a2,_b2;(_b2=(_a2=e3.pointer)==null?void 0:_a2.getPointFromEvent(t4))==null?void 0:_b2.onMouseOver(t4)}))),e3.styledMode||d(i3,{"touch-action":"none"}),i3.className+=" highcharts-no-touch-action",this.hasPointerCapture=true):this.hasPointerCapture&&!s2&&(t3.forEach((t4=>t4())),t3.length=0,e3.styledMode||d(i3,{"touch-action":y((_b=e3.options.chart.style)==null?void 0:_b["touch-action"],"manipulation")}),i3.className=i3.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=false)}setHoverChartIndex(t3){var _a;let i3=this.chart,s2=e2.charts[y(S.hoverChartIndex,-1)];if(s2&&s2!==i3){let e3={relatedTarget:i3.container};t3&&!(t3==null?void 0:t3.relatedTarget)&&(t3={...e3,...t3}),(_a=s2.pointer)==null?void 0:_a.onContainerMouseLeave(t3||e3)}s2&&s2.mouseIsDown||(S.hoverChartIndex=i3.index)}touch(t3,e3){let i3;let{chart:s2,pinchDown:r2=[]}=this;this.setHoverChartIndex(),1===(t3=this.normalize(t3)).touches.length?s2.isInsidePlot(t3.chartX-s2.plotLeft,t3.chartY-s2.plotTop,{visiblePlotOnly:true})&&!s2.openMenu?(e3&&this.runPointActions(t3),"touchmove"===t3.type&&(i3=!!r2[0]&&Math.pow(r2[0].chartX-t3.chartX,2)+Math.pow(r2[0].chartY-t3.chartY,2)>=16),y(i3,true)&&this.pinch(t3)):e3&&this.reset():2===t3.touches.length&&this.pinch(t3)}touchSelect(t3){return!!(this.chart.zooming.singleTouch&&t3.touches&&1===t3.touches.length)}zoomOption(t3){let e3=this.chart,i3=e3.inverted,s2=e3.zooming.type||"",r2,o2;/touch/.test(t3.type)&&(s2=y(e3.zooming.pinchType,s2)),this.zoomX=r2=/x/.test(s2),this.zoomY=o2=/y/.test(s2),this.zoomHor=r2&&!i3||o2&&i3,this.zoomVert=o2&&!i3||r2&&i3,this.hasZoom=r2||o2}}return(s=S||(S={})).compose=function(t3){b(n,"Core.Pointer")&&h(t3,"beforeRender",(function(){this.pointer=new s(this,this.options)}))},S})),i(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],(function(t2){var e2;let{extend:i2,merge:s,pick:r}=t2;return function(t3){function e3(t4,e4,o){var _a,_b;let n=this.legendItem=this.legendItem||{},{chart:a,options:h}=this,{baseline:l=0,symbolWidth:d,symbolHeight:c}=t4,p=this.symbol||"circle",u=c/2,g=a.renderer,f=n.group,m=l-Math.round((((_a=t4.fontMetrics)==null?void 0:_a.b)||c)*(o?.4:.3)),x={},y,b=h.marker,v=0;if(a.styledMode||(x["stroke-width"]=Math.min(h.lineWidth||0,24),h.dashStyle?x.dashstyle=h.dashStyle:"square"===h.linecap||(x["stroke-linecap"]="round")),n.line=g.path().addClass("highcharts-graph").attr(x).add(f),o&&(n.area=g.path().addClass("highcharts-area").add(f)),x["stroke-linecap"]&&(v=Math.min(n.line.strokeWidth(),d)/2),d){let t5=[["M",v,m],["L",d-v,m]];n.line.attr({d:t5}),(_b=n.area)==null?void 0:_b.attr({d:[...t5,["L",d-v,l],["L",v,l]]})}if(b&&false!==b.enabled&&d){let t5=Math.min(r(b.radius,u),u);0===p.indexOf("url")&&(b=s(b,{width:c,height:c}),t5=0),n.symbol=y=g.symbol(p,d/2-t5,m-t5,2*t5,2*t5,i2({context:"legend"},b)).addClass("highcharts-point").add(f),y.isMarker=true}}t3.areaMarker=function(t4,i3){e3.call(this,t4,i3,true)},t3.lineMarker=e3,t3.rectangle=function(t4,e4){let i3=e4.legendItem||{},s2=t4.options,o=t4.symbolHeight,n=s2.squareSymbol,a=n?o:t4.symbolWidth;i3.symbol=this.chart.renderer.rect(n?(t4.symbolWidth-o)/2:0,t4.baseline-o+1,a,o,r(t4.options.symbolRadius,o/2)).addClass("highcharts-point").attr({zIndex:3}).add(i3.group)}}(e2||(e2={})),e2})),i(e,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:false,crisp:true,showCheckbox:false,animation:{duration:1e3},enableMouseTracking:true,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:true},hover:{animation:{duration:150},enabled:true,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:true,formatter:function(){let{numberFormatter:t2}=this.series.chart;return"number"!=typeof this.y?"":t2(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:true,states:{normal:{animation:true},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:true,turboThreshold:1e3,findNearestPointBy:"x"}})),i(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Defaults.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){var r;let{defaultOptions:o}=e2,{extend:n,extendClass:a,merge:h}=s;return function(e3){function s2(t3,s3){let r2=o.plotOptions||{},n2=s3.defaultOptions,a2=s3.prototype;return a2.type=t3,a2.pointClass||(a2.pointClass=i2),!e3.seriesTypes[t3]&&(n2&&(r2[t3]=n2),e3.seriesTypes[t3]=s3,true)}e3.seriesTypes=t2.seriesTypes,e3.registerSeriesType=s2,e3.seriesType=function(t3,r2,l,d,c){let p=o.plotOptions||{};if(r2=r2||"",p[t3]=h(p[r2],l),delete e3.seriesTypes[t3],s2(t3,a(e3.seriesTypes[r2]||function(){},d)),e3.seriesTypes[t3].prototype.type=t3,c){class s3 extends i2{}n(s3.prototype,c),e3.seriesTypes[t3].prototype.pointClass=s3}return e3.seriesTypes[t3]}}(r||(r={})),r})),i(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o,n,a,h,l){let{animObject:d,setAnimation:c}=t2,{defaultOptions:p}=e2,{registerEventOptions:u}=i2,{svg:g,win:f}=s,{seriesTypes:m}=a,{arrayMax:x,arrayMin:y,clamp:b,correctFloat:v,crisp:S,defined:C,destroyObjectProperties:k,diffObjects:M,erase:w2,error:T,extend:A,find:P,fireEvent:L,getClosestDistance:O,getNestedProperty:D,insertItem:E,isArray:I,isNumber:j,isString:B,merge:R,objectEach:z,pick:N,removeEvent:W,splat:G,syncTimeout:H}=l;class X{constructor(){this.zoneAxis="y"}init(t3,e3){let i3;L(this,"init",{options:e3});let s2=this,r2=t3.series;this.eventsToUnbind=[],s2.chart=t3,s2.options=s2.setOptions(e3);let o2=s2.options,n2=false!==o2.visible;s2.linkedSeries=[],s2.bindAxes(),A(s2,{name:o2.name,state:"",visible:n2,selected:true===o2.selected}),u(this,o2);let a2=o2.events;(a2&&a2.click||o2.point&&o2.point.events&&o2.point.events.click||o2.allowPointSelect)&&(t3.runTrackerClick=true),s2.getColor(),s2.getSymbol(),s2.parallelArrays.forEach((function(t4){s2[t4+"Data"]||(s2[t4+"Data"]=[])})),s2.isCartesian&&(t3.hasCartesianSeries=true),r2.length&&(i3=r2[r2.length-1]),s2._i=N(i3&&i3._i,-1)+1,s2.opacity=s2.options.opacity,t3.orderItems("series",E(this,r2)),o2.dataSorting&&o2.dataSorting.enabled?s2.setDataSortingOptions():s2.points||s2.data||s2.setData(o2.data,false),L(this,"afterInit")}is(t3){return m[t3]&&this instanceof m[t3]}bindAxes(){let t3;let e3=this,i3=e3.options,s2=e3.chart;L(this,"bindAxes",null,(function(){(e3.axisTypes||[]).forEach((function(r2){(s2[r2]||[]).forEach((function(s3){t3=s3.options,(N(i3[r2],0)===s3.index||void 0!==i3[r2]&&i3[r2]===t3.id)&&(E(e3,s3.series),e3[r2]=s3,s3.isDirty=true)})),e3[r2]||e3.optionalAxis===r2||T(18,true,s2)}))})),L(this,"afterBindAxes")}updateParallelArrays(t3,e3,i3){let s2=t3.series,r2=j(e3)?function(i4){let r3="y"===i4&&s2.toYData?s2.toYData(t3):t3[i4];s2[i4+"Data"][e3]=r3}:function(t4){Array.prototype[e3].apply(s2[t4+"Data"],i3)};s2.parallelArrays.forEach(r2)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(t3,e3){let i3=t3.marker,s2=e3.marker||{};return i3&&(s2.enabled&&!i3.enabled||s2.symbol!==i3.symbol||s2.height!==i3.height||s2.width!==i3.width)}autoIncrement(t3){let e3=this.options,i3=e3.pointIntervalUnit,s2=e3.relativeXValue,r2=this.chart.time,o2=this.xIncrement,n2,a2;return(o2=N(o2,e3.pointStart,0),this.pointInterval=a2=N(this.pointInterval,e3.pointInterval,1),s2&&j(t3)&&(a2*=t3),i3&&(n2=new r2.Date(o2),"day"===i3?r2.set("Date",n2,r2.get("Date",n2)+a2):"month"===i3?r2.set("Month",n2,r2.get("Month",n2)+a2):"year"===i3&&r2.set("FullYear",n2,r2.get("FullYear",n2)+a2),a2=n2.getTime()-o2),s2&&j(t3))?o2+a2:(this.xIncrement=o2+a2,o2)}setDataSortingOptions(){let t3=this.options;A(this,{requireSorting:false,sorted:false,enabledDataSorting:true,allowDG:false}),C(t3.pointRange)||(t3.pointRange=1)}setOptions(t3){var _a,_b;let e3;let i3=this.chart,s2=i3.options.plotOptions,r2=i3.userOptions||{},o2=R(t3),n2=i3.styledMode,a2={plotOptions:s2,userOptions:o2};L(this,"setOptions",a2);let h2=a2.plotOptions[this.type],l2=r2.plotOptions||{},d2=l2.series||{},c2=p.plotOptions[this.type]||{},u2=l2[this.type]||{};this.userOptions=a2.userOptions;let g2=R(h2,s2.series,u2,o2);this.tooltipOptions=R(p.tooltip,(_a=p.plotOptions.series)==null?void 0:_a.tooltip,c2==null?void 0:c2.tooltip,i3.userOptions.tooltip,(_b=l2.series)==null?void 0:_b.tooltip,u2.tooltip,o2.tooltip),this.stickyTracking=N(o2.stickyTracking,u2.stickyTracking,d2.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g2.stickyTracking),null===h2.marker&&delete g2.marker,this.zoneAxis=g2.zoneAxis||"y";let f2=this.zones=(g2.zones||[]).map((t4=>({...t4})));return(g2.negativeColor||g2.negativeFillColor)&&!g2.zones&&(e3={value:g2[this.zoneAxis+"Threshold"]||g2.threshold||0,className:"highcharts-negative"},n2||(e3.color=g2.negativeColor,e3.fillColor=g2.negativeFillColor),f2.push(e3)),f2.length&&C(f2[f2.length-1].value)&&f2.push(n2?{}:{color:this.color,fillColor:this.fillColor}),L(this,"afterSetOptions",{options:g2}),g2}getName(){return N(this.options.name,"Series "+(this.index+1))}getCyclic(t3,e3,i3){let s2,r2;let o2=this.chart,n2=`${t3}Index`,a2=`${t3}Counter`,h2=(i3==null?void 0:i3.length)||o2.options.chart.colorCount;!e3&&(C(r2=N("color"===t3?this.options.colorIndex:void 0,this[n2]))?s2=r2:(o2.series.length||(o2[a2]=0),s2=o2[a2]%h2,o2[a2]+=1),i3&&(e3=i3[s2])),void 0!==s2&&(this[n2]=s2),this[t3]=e3}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||p.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t3=this.options.marker;this.getCyclic("symbol",t3.symbol,this.chart.options.symbols)}findPointIndex(t3,e3){let i3,s2,r2;let n2=t3.id,a2=t3.x,h2=this.points,l2=this.options.dataSorting;if(n2){let t4=this.chart.get(n2);t4 instanceof o&&(i3=t4)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let e4=e5=>!e5.touched&&e5.index===t3.index;if(l2&&l2.matchByName?e4=e5=>!e5.touched&&e5.name===t3.name:this.options.relativeXValue&&(e4=e5=>!e5.touched&&e5.options.x===t3.x),!(i3=P(h2,e4)))return}return i3&&void 0!==(r2=i3&&i3.index)&&(s2=true),void 0===r2&&j(a2)&&(r2=this.xData.indexOf(a2,e3)),-1!==r2&&void 0!==r2&&this.cropped&&(r2=r2>=this.cropStart?r2-this.cropStart:r2),!s2&&j(r2)&&h2[r2]&&h2[r2].touched&&(r2=void 0),r2}updateData(t3,e3){let i3=this.options,s2=i3.dataSorting,r2=this.points,o2=[],n2=this.requireSorting,a2=t3.length===r2.length,h2,l2,d2,c2,p2=true;if(this.xIncrement=null,t3.forEach((function(t4,e4){let l3;let d3=C(t4)&&this.pointClass.prototype.optionsToObject.call({series:this},t4)||{},p3=d3.x;d3.id||j(p3)?(-1===(l3=this.findPointIndex(d3,c2))||void 0===l3?o2.push(t4):r2[l3]&&t4!==i3.data[l3]?(r2[l3].update(t4,false,null,false),r2[l3].touched=true,n2&&(c2=l3+1)):r2[l3]&&(r2[l3].touched=true),(!a2||e4!==l3||s2&&s2.enabled||this.hasDerivedData)&&(h2=true)):o2.push(t4)}),this),h2)for(l2=r2.length;l2--;)(d2=r2[l2])&&!d2.touched&&d2.remove&&d2.remove(false,e3);else!a2||s2&&s2.enabled?p2=false:(t3.forEach((function(t4,e4){t4===r2[e4].y||r2[e4].destroyed||r2[e4].update(t4,false,null,false)})),o2.length=0);return r2.forEach((function(t4){t4&&(t4.touched=false)})),!!p2&&(o2.forEach((function(t4){this.addPoint(t4,false,null,null,false)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),true)}setData(t3,e3=true,i3,s2){var _a;let r2=this,o2=r2.points,n2=o2&&o2.length||0,a2=r2.options,h2=r2.chart,l2=a2.dataSorting,d2=r2.xAxis,c2=a2.turboThreshold,p2=this.xData,u2=this.yData,g2=r2.pointArrayMap,f2=g2&&g2.length,m2=a2.keys,x2,y2,b2,v2=0,S2=1,C2;h2.options.chart.allowMutatingData||(a2.data&&delete r2.options.data,r2.userOptions.data&&delete r2.userOptions.data,C2=R(true,t3));let k2=(t3=C2||t3||[]).length;if(l2&&l2.enabled&&(t3=this.sortData(t3)),h2.options.chart.allowMutatingData&&false!==s2&&k2&&n2&&!r2.cropped&&!r2.hasGroupedData&&r2.visible&&!r2.boosted&&(b2=this.updateData(t3,i3)),!b2){r2.xIncrement=null,r2.colorCounter=0,this.parallelArrays.forEach((function(t4){r2[t4+"Data"].length=0}));let e4=c2&&k2>c2;if(e4){let i4=r2.getFirstValidPoint(t3),s3=r2.getFirstValidPoint(t3,k2-1,-1),o3=t4=>!!(I(t4)&&(m2||j(t4[0])));if(j(i4)&&j(s3))for(x2=0;x2=0?v2:0,S2=S2>=0?S2:1),1===i4.length&&(S2=0),v2===S2)for(x2=0;x2{let s3=D(i3,t4),r2=D(i3,e4);return r2s3?1:0})).forEach((function(t4,e4){t4.x=e4}),this),e3.linkedSeries&&e3.linkedSeries.forEach((function(e4){let i4=e4.options,r2=i4.data;i4.dataSorting&&i4.dataSorting.enabled||!r2||(r2.forEach((function(i5,o2){r2[o2]=s2(e4,i5),t3[o2]&&(r2[o2].x=t3[o2].x,r2[o2].index=o2)})),e4.setData(r2,false))})),t3}getProcessedData(t3){let e3=this,i3=e3.xAxis,s2=e3.options.cropThreshold,r2=i3==null?void 0:i3.logarithmic,o2=e3.isCartesian,n2,a2,h2=0,l2,d2,c2,p2=e3.xData,u2=e3.yData,g2=false,f2=p2.length;i3&&(d2=(l2=i3.getExtremes()).min,c2=l2.max,g2=!!(i3.categories&&!i3.names.length)),o2&&e3.sorted&&!t3&&(!s2||f2>s2||e3.forceCrop)&&(p2[f2-1]c2?(p2=[],u2=[]):e3.yData&&(p2[0]c2)&&(p2=(n2=this.cropData(e3.xData,e3.yData,d2,c2)).xData,u2=n2.yData,h2=n2.start,a2=true));let m2=O([r2?p2.map(r2.log2lin):p2],(()=>e3.requireSorting&&!g2&&T(15,false,e3.chart)));return{xData:p2,yData:u2,cropped:a2,cropStart:h2,closestPointRange:m2}}processData(t3){let e3=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e3.isDirty&&!this.yAxis.isDirty&&!t3)return false;let i3=this.getProcessedData();this.cropped=i3.cropped,this.cropStart=i3.cropStart,this.processedXData=i3.xData,this.processedYData=i3.yData,this.closestPointRange=this.basePointRange=i3.closestPointRange,L(this,"afterProcessData")}cropData(t3,e3,i3,s2){let r2=t3.length,o2,n2,a2=0,h2=r2;for(o2=0;o2=i3){a2=Math.max(0,o2-1);break}for(n2=o2;n2s2){h2=n2+1;break}return{xData:t3.slice(a2,h2),yData:e3.slice(a2,h2),start:a2,end:h2}}generatePoints(){let t3=this.options,e3=this.processedData||t3.data,i3=this.processedXData,s2=this.processedYData,r2=this.pointClass,o2=i3.length,n2=this.cropStart||0,a2=this.hasGroupedData,h2=t3.keys,l2=[],d2=t3.dataGrouping&&t3.dataGrouping.groupAll?n2:0,c2,p2,u2,g2,f2=this.data;if(!f2&&!a2){let t4=[];t4.length=e3.length,f2=this.data=t4}for(h2&&a2&&(this.options.keys=false),g2=0;g20:g2.length)||!n2),p2=e3||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i3||(k2[f2+o2]||u2)>=b2&&(k2[f2-o2]||u2)<=v2,c2&&p2){if(m2=g2.length)for(;m2--;)j(g2[m2])&&(r2[S2++]=g2[m2]);else r2[S2++]=g2}let M2={activeYData:r2,dataMin:y(r2),dataMax:x(r2)};return L(this,"afterGetExtremes",{dataExtremes:M2}),M2}applyExtremes(){let t3=this.getExtremes();return this.dataMin=t3.dataMin,this.dataMax=t3.dataMax,t3}getFirstValidPoint(t3,e3=0,i3=1){let s2=t3.length,r2=e3;for(;r2>=0&&r21)&&(o2.step=function(t5,e4){i4&&i4.apply(e4,arguments),"width"===e4.prop&&(h2==null?void 0:h2.element)&&h2.attr(r2?"height":"width",t5+99)}),a2.addClass("highcharts-animating").animate(t4,o2)}}afterAnimate(){this.setClip(),z(this.chart.sharedClips,((t3,e3,i3)=>{t3&&!this.chart.container.querySelector(`[clip-path="url(#${t3.id})"]`)&&(t3.destroy(),delete i3[e3])})),this.finishedAnimating=true,L(this,"afterAnimate")}drawPoints(t3=this.points){let e3,i3,s2,r2,o2,n2,a2;let h2=this.chart,l2=h2.styledMode,{colorAxis:d2,options:c2}=this,p2=c2.marker,u2=this[this.specialGroup||"markerGroup"],g2=this.xAxis,f2=N(p2.enabled,!g2||!!g2.isRadial||null,this.closestPointRangePx>=p2.enabledThreshold*p2.radius);if(false!==p2.enabled||this._hasPointMarkers)for(e3=0;e30||i3.hasImage)&&(i3.graphic=s2=h2.renderer.symbol(t4,a2.x,a2.y,a2.width,a2.height,n2?o2:p2).add(u2),this.enabledDataSorting&&h2.hasRendered&&(s2.attr({x:i3.startXPos}),r2="animate")),s2&&"animate"===r2&&s2[e4?"show":"hide"](e4).animate(a2),s2){let t5=this.pointAttribs(i3,l2||!i3.selected?void 0:"select");l2?d2&&s2.css({fill:t5.fill}):s2[r2](t5)}s2&&s2.addClass(i3.getClassName(),true)}else s2&&(i3.graphic=s2.destroy())}markerAttribs(t3,e3){let i3=this.options,s2=i3.marker,r2=t3.marker||{},o2=r2.symbol||s2.symbol,n2={},a2,h2,l2=N(r2.radius,s2&&s2.radius);e3&&(a2=s2.states[e3],l2=N((h2=r2.states&&r2.states[e3])&&h2.radius,a2&&a2.radius,l2&&l2+(a2&&a2.radiusPlus||0))),t3.hasImage=o2&&0===o2.indexOf("url"),t3.hasImage&&(l2=0);let d2=t3.pos();return j(l2)&&d2&&(i3.crisp&&(d2[0]=S(d2[0],t3.hasImage?0:"rect"===o2?(s2==null?void 0:s2.lineWidth)||0:1)),n2.x=d2[0]-l2,n2.y=d2[1]-l2),l2&&(n2.width=n2.height=2*l2),n2}pointAttribs(t3,e3){let i3=this.options.marker,s2=t3&&t3.options,r2=s2&&s2.marker||{},o2=s2&&s2.color,n2=t3&&t3.color,a2=t3&&t3.zone&&t3.zone.color,h2,l2,d2=this.color,c2,p2,u2=N(r2.lineWidth,i3.lineWidth),g2=1;return d2=o2||a2||n2||d2,c2=r2.fillColor||i3.fillColor||d2,p2=r2.lineColor||i3.lineColor||d2,e3=e3||"normal",h2=i3.states[e3]||{},u2=N((l2=r2.states&&r2.states[e3]||{}).lineWidth,h2.lineWidth,u2+N(l2.lineWidthPlus,h2.lineWidthPlus,0)),c2=l2.fillColor||h2.fillColor||c2,{stroke:p2=l2.lineColor||h2.lineColor||p2,"stroke-width":u2,fill:c2,opacity:g2=N(l2.opacity,h2.opacity,g2)}}destroy(t3){let e3,i3,s2;let r2=this,o2=r2.chart,n2=/AppleWebKit\/533/.test(f.navigator.userAgent),a2=r2.data||[];for(L(r2,"destroy",{keepEventsForUpdate:t3}),this.removeEvents(t3),(r2.axisTypes||[]).forEach((function(t4){(s2=r2[t4])&&s2.series&&(w2(s2.series,r2),s2.isDirty=s2.forceRedraw=true)})),r2.legendItem&&r2.chart.legend.destroyItem(r2),e3=a2.length;e3--;)(i3=a2[e3])&&i3.destroy&&i3.destroy();for(let t4 of r2.zones)k(t4,void 0,true);l.clearTimeout(r2.animationTimeout),z(r2,(function(t4,e4){t4 instanceof h&&!t4.survive&&t4[n2&&"group"===e4?"hide":"destroy"]()})),o2.hoverSeries===r2&&(o2.hoverSeries=void 0),w2(o2.series,r2),o2.orderItems("series"),z(r2,(function(e4,i4){t3&&"hcEvents"===i4||delete r2[i4]}))}applyZones(){let{area:t3,chart:e3,graph:i3,zones:s2,points:r2,xAxis:o2,yAxis:n2,zoneAxis:a2}=this,{inverted:h2,renderer:l2}=e3,d2=this[`${a2}Axis`],{isXAxis:c2,len:p2=0}=d2||{},u2=((i3==null?void 0:i3.strokeWidth())||0)/2+1,g2=(t4,e4=0,i4=0)=>{h2&&(i4=p2-i4);let{translated:s3=0,lineClip:r3}=t4,o3=i4-s3;r3==null?void 0:r3.push(["L",e4,Math.abs(o3){t4.forEach(((e5,i4)=>{("M"===e5[0]||"L"===e5[0])&&(t4[i4]=[e5[0],c2?p2-e5[1]:e5[1],c2?e5[2]:p2-e5[2]])}))};if(s2.forEach((t4=>{t4.lineClip=[],t4.translated=b(d2.toPixels(N(t4.value,e4),true)||0,0,p2)})),i3&&!this.showLine&&i3.hide(),t3&&t3.hide(),"y"===a2&&r2.length{var _a,_b;let s3=e5.lineClip||[],r3=Math.round(e5.translated||0);o2.reversed&&s3.reverse();let{clip:a3,simpleClip:d3}=e5,p3=0,g3=0,x2=o2.len,y2=n2.len;c2?(p3=r3,x2=m2):(g3=r3,y2=m2);let b2=[["M",p3,g3],["L",x2,g3],["L",x2,y2],["L",p3,y2],["Z"]],v2=[b2[0],...s3,b2[1],b2[2],...f2,b2[3],b2[4]];f2=s3.reverse(),m2=r3,h2&&(u3(v2),t3&&u3(b2)),a3?(a3.animate({d:v2}),d3==null?void 0:d3.animate({d:b2})):(a3=e5.clip=l2.path(v2),t3&&(d3=e5.simpleClip=l2.path(b2))),i3&&((_a=e5.graph)==null?void 0:_a.clip(a3)),t3&&((_b=e5.area)==null?void 0:_b.clip(d3))}))}else this.visible&&(i3&&i3.show(),t3&&t3.show())}plotGroup(t3,e3,i3,s2,r2){let o2=this[t3],n2=!o2,a2={visibility:i3,zIndex:s2||.1};return C(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a2.opacity=this.opacity),o2||(this[t3]=o2=this.chart.renderer.g().add(r2)),o2.addClass("highcharts-"+e3+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(C(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o2.hasClass("highcharts-tracker")?" highcharts-tracker":""),true),o2.attr(a2)[n2?"attr":"animate"](this.getPlotBox(e3)),o2}getPlotBox(t3){let e3=this.xAxis,i3=this.yAxis,s2=this.chart,r2=s2.inverted&&!s2.polar&&e3&&this.invertible&&"series"===t3;return s2.inverted&&(e3=i3,i3=this.xAxis),{translateX:e3?e3.left:s2.plotLeft,translateY:i3?i3.top:s2.plotTop,rotation:r2?90:0,rotationOriginX:r2?(e3.len-i3.len)/2:0,rotationOriginY:r2?(e3.len+i3.len)/2:0,scaleX:r2?-1:1,scaleY:1}}removeEvents(t3){let{eventsToUnbind:e3}=this;t3||W(this),e3.length&&(e3.forEach((t4=>{t4()})),e3.length=0)}render(){var _a,_b,_c,_d,_e;let t3=this,{chart:e3,options:i3,hasRendered:s2}=t3,r2=d(i3.animation),o2=t3.visible?"inherit":"hidden",n2=i3.zIndex,a2=e3.seriesGroup,h2=t3.finishedAnimating?0:r2.duration;L(this,"render"),t3.plotGroup("group","series",o2,n2,a2),t3.markerGroup=t3.plotGroup("markerGroup","markers",o2,n2,a2),false!==i3.clip&&t3.setClip(),h2&&((_a=t3.animate)==null?void 0:_a.call(t3,true)),t3.drawGraph&&(t3.drawGraph(),t3.applyZones()),t3.visible&&t3.drawPoints(),(_b=t3.drawDataLabels)==null?void 0:_b.call(t3),(_c=t3.redrawPoints)==null?void 0:_c.call(t3),i3.enableMouseTracking&&((_d=t3.drawTracker)==null?void 0:_d.call(t3)),h2&&((_e=t3.animate)==null?void 0:_e.call(t3)),s2||(h2&&r2.defer&&(h2+=r2.defer),t3.animationTimeout=H((()=>{t3.afterAnimate()}),h2||0)),t3.isDirty=false,t3.hasRendered=true,L(t3,"afterRender")}redraw(){let t3=this.isDirty||this.isDirtyData;this.translate(),this.render(),t3&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t3,e3){let{xAxis:i3,yAxis:s2}=this,r2=this.chart.inverted;return this.searchKDTree({clientX:r2?i3.len-t3.chartY+i3.pos:t3.chartX-i3.pos,plotY:r2?s2.len-t3.chartX+s2.pos:t3.chartY-s2.pos},e3,t3)}buildKDTree(t3){this.buildingKdTree=true;let e3=this,i3=e3.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e3.kdTree,H((function(){e3.kdTree=function t4(i4,s2,r2){let o2,n2;let a2=i4==null?void 0:i4.length;if(a2)return o2=e3.kdAxisArray[s2%r2],i4.sort(((t5,e4)=>(t5[o2]||0)-(e4[o2]||0))),{point:i4[n2=Math.floor(a2/2)],left:t4(i4.slice(0,n2),s2+1,r2),right:t4(i4.slice(n2+1),s2+1,r2)}}(e3.getValidPoints(void 0,!e3.directTouch),i3,i3),e3.buildingKdTree=false}),e3.options.kdNow||(t3==null?void 0:t3.type)==="touchstart"?0:1)}searchKDTree(t3,e3,i3){let s2=this,[r2,o2]=this.kdAxisArray,n2=e3?"distX":"dist",a2=(s2.options.findNearestPointBy||"").indexOf("y")>-1?2:1,h2=!!s2.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(i3),this.kdTree)return function t4(e4,i4,a3,l2){var _a;let d2=i4.point,c2=s2.kdAxisArray[a3%l2],p2,u2,g2=d2;!function(t5,e5){var _a2;let i5=t5[r2],s3=e5[r2],n3=C(i5)&&C(s3)?i5-s3:null,a4=t5[o2],l3=e5[o2],d3=C(a4)&&C(l3)?a4-l3:0,c3=h2&&((_a2=e5.marker)==null?void 0:_a2.radius)||0;e5.dist=Math.sqrt((n3&&n3*n3||0)+d3*d3)-c3,e5.distX=C(n3)?Math.abs(n3)-c3:Number.MAX_VALUE}(e4,d2);let f2=(e4[c2]||0)-(d2[c2]||0)+(h2&&((_a=d2.marker)==null?void 0:_a.radius)||0),m2=f2<0?"left":"right",x2=f2<0?"right":"left";return i4[m2]&&(g2=(p2=t4(e4,i4[m2],a3+1,l2))[n2]=0&&o2<=(s2?s2.len:e3.plotHeight)&&r2>=0&&r2<=(i3?i3.len:e3.plotWidth)}drawTracker(){var _a;let t3=this,e3=t3.options,i3=e3.trackByArea,s2=[].concat((i3?t3.areaPath:t3.graphPath)||[]),r2=t3.chart,o2=r2.pointer,n2=r2.renderer,a2=((_a=r2.options.tooltip)==null?void 0:_a.snap)||0,h2=()=>{e3.enableMouseTracking&&r2.hoverSeries!==t3&&t3.onMouseOver()},l2="rgba(192,192,192,"+(g?1e-4:.002)+")",d2=t3.tracker;d2?d2.attr({d:s2}):t3.graph&&(t3.tracker=d2=n2.path(s2).attr({visibility:t3.visible?"inherit":"hidden",zIndex:2}).addClass(i3?"highcharts-tracker-area":"highcharts-tracker-line").add(t3.group),r2.styledMode||d2.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:l2,fill:i3?l2:"none","stroke-width":t3.graph.strokeWidth()+(i3?0:2*a2)}),[t3.tracker,t3.markerGroup,t3.dataLabelsGroup].forEach((t4=>{t4&&(t4.addClass("highcharts-tracker").on("mouseover",h2).on("mouseout",(t5=>{o2==null?void 0:o2.onTrackerMouseOut(t5)})),e3.cursor&&!r2.styledMode&&t4.css({cursor:e3.cursor}),t4.on("touchstart",h2))}))),L(this,"afterDrawTracker")}addPoint(t3,e3,i3,s2,r2){let o2,n2;let a2=this.options,h2=this.data,l2=this.chart,d2=this.xAxis,c2=d2&&d2.hasNames&&d2.names,p2=a2.data,u2=this.xData;e3=N(e3,true);let g2={series:this};this.pointClass.prototype.applyOptions.apply(g2,[t3]);let f2=g2.x;if(n2=u2.length,this.requireSorting&&f2f2;)n2--;this.updateParallelArrays(g2,"splice",[n2,0,0]),this.updateParallelArrays(g2,n2),c2&&g2.name&&(c2[f2]=g2.name),p2.splice(n2,0,t3),(o2||this.processedData)&&(this.data.splice(n2,0,null),this.processData()),"point"===a2.legendType&&this.generatePoints(),i3&&(h2[0]&&h2[0].remove?h2[0].remove(false):(h2.shift(),this.updateParallelArrays(g2,"shift"),p2.shift())),false!==r2&&L(this,"addPoint",{point:g2}),this.isDirty=true,this.isDirtyData=true,e3&&l2.redraw(s2)}removePoint(t3,e3,i3){let s2=this,r2=s2.data,o2=r2[t3],n2=s2.points,a2=s2.chart,h2=function(){n2&&n2.length===r2.length&&n2.splice(t3,1),r2.splice(t3,1),s2.options.data.splice(t3,1),s2.updateParallelArrays(o2||{series:s2},"splice",[t3,1]),o2&&o2.destroy(),s2.isDirty=true,s2.isDirtyData=true,e3&&a2.redraw()};c(i3,a2),e3=N(e3,true),o2?o2.firePointEvent("remove",null,h2):h2()}remove(t3,e3,i3,s2){let r2=this,o2=r2.chart;function n2(){r2.destroy(s2),o2.isDirtyLegend=o2.isDirtyBox=true,o2.linkSeries(s2),N(t3,true)&&o2.redraw(e3)}false!==i3?L(r2,"remove",null,n2):n2()}update(t3,e3){var _a,_b,_c;L(this,"update",{options:t3=M(t3,this.userOptions)});let i3=this,s2=i3.chart,r2=i3.userOptions,o2=i3.initialType||i3.type,n2=s2.options.plotOptions,a2=m[o2].prototype,h2=i3.finishedAnimating&&{animation:false},l2={},d2,c2,p2=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],u2=t3.type||r2.type||s2.options.chart.type,g2=!(this.hasDerivedData||u2&&u2!==this.type||void 0!==t3.pointStart||void 0!==t3.pointInterval||void 0!==t3.relativeXValue||t3.joinBy||t3.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some((t4=>i3.hasOptionChanged(t4))));u2=u2||o2,g2&&(p2.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),false!==t3.visible&&p2.push("area","graph"),i3.parallelArrays.forEach((function(t4){p2.push(t4+"Data")})),t3.data&&(t3.dataSorting&&A(i3.options.dataSorting,t3.dataSorting),this.setData(t3.data,false))),t3=R(r2,{index:void 0===r2.index?i3.index:r2.index,pointStart:((_a=n2==null?void 0:n2.series)==null?void 0:_a.pointStart)??r2.pointStart??((_b=i3.xData)==null?void 0:_b[0])},!g2&&{data:i3.options.data},t3,h2),g2&&t3.data&&(t3.data=i3.options.data),(p2=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p2)).forEach((function(t4){p2[t4]=i3[t4],delete i3[t4]}));let f2=false;if(m[u2]){if(f2=u2!==i3.type,i3.remove(false,false,false,true),f2){if(s2.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i3,m[u2].prototype);else{let t4=Object.hasOwnProperty.call(i3,"hcEvents")&&i3.hcEvents;for(c2 in a2)i3[c2]=void 0;A(i3,m[u2].prototype),t4?i3.hcEvents=t4:delete i3.hcEvents}}}else T(17,true,s2,{missingModuleFor:u2});if(p2.forEach((function(t4){i3[t4]=p2[t4]})),i3.init(s2,t3),g2&&this.points)for(let t4 of(false===(d2=i3.options).visible?(l2.graphic=1,l2.dataLabel=1):(this.hasMarkerChanged(d2,r2)&&(l2.graphic=1),((_c=i3.hasDataLabels)==null?void 0:_c.call(i3))||(l2.dataLabel=1)),this.points))t4&&t4.series&&(t4.resolveColor(),Object.keys(l2).length&&t4.destroyElements(l2),false===d2.showInLegend&&t4.legendItem&&s2.legend.destroyItem(t4));i3.initialType=o2,s2.linkSeries(),s2.setSortedData(),f2&&i3.linkedSeries.length&&(i3.isDirtyData=true),L(this,"afterUpdate"),N(e3,true)&&s2.redraw(!!g2&&void 0)}setName(t3){this.name=this.options.name=this.userOptions.name=t3,this.chart.isDirtyLegend=true}hasOptionChanged(t3){var _a,_b;let e3=this.chart,i3=this.options[t3],s2=e3.options.plotOptions,r2=this.userOptions[t3],o2=N((_a=s2==null?void 0:s2[this.type])==null?void 0:_a[t3],(_b=s2==null?void 0:s2.series)==null?void 0:_b[t3]);return r2&&!C(o2)?i3!==r2:i3!==N(o2,i3)}onMouseOver(){let t3=this.chart,e3=t3.hoverSeries,i3=t3.pointer;i3==null?void 0:i3.setHoverChartIndex(),e3&&e3!==this&&e3.onMouseOut(),this.options.events.mouseOver&&L(this,"mouseOver"),this.setState("hover"),t3.hoverSeries=this}onMouseOut(){let t3=this.options,e3=this.chart,i3=e3.tooltip,s2=e3.hoverPoint;e3.hoverSeries=null,s2&&s2.onMouseOut(),this&&t3.events.mouseOut&&L(this,"mouseOut"),i3&&!this.stickyTracking&&(!i3.shared||this.noSharedTooltip)&&i3.hide(),e3.series.forEach((function(t4){t4.setState("",true)}))}setState(t3,e3){let i3=this,s2=i3.options,r2=i3.graph,o2=s2.inactiveOtherPoints,n2=s2.states,a2=N(n2[t3||"normal"]&&n2[t3||"normal"].animation,i3.chart.options.chart.animation),h2=s2.lineWidth,l2=s2.opacity;if(t3=t3||"",i3.state!==t3&&([i3.group,i3.markerGroup,i3.dataLabelsGroup].forEach((function(e4){e4&&(i3.state&&e4.removeClass("highcharts-series-"+i3.state),t3&&e4.addClass("highcharts-series-"+t3))})),i3.state=t3,!i3.chart.styledMode)){if(n2[t3]&&false===n2[t3].enabled)return;if(t3&&(h2=n2[t3].lineWidth||h2+(n2[t3].lineWidthPlus||0),l2=N(n2[t3].opacity,l2)),r2&&!r2.dashstyle&&j(h2))for(let t4 of[r2,...this.zones.map((t5=>t5.graph))])t4==null?void 0:t4.animate({"stroke-width":h2},a2);o2||[i3.group,i3.markerGroup,i3.dataLabelsGroup,i3.labelBySeries].forEach((function(t4){t4&&t4.animate({opacity:l2},a2)}))}e3&&o2&&i3.points&&i3.setAllPointsToState(t3||void 0)}setAllPointsToState(t3){this.points.forEach((function(e3){e3.setState&&e3.setState(t3)}))}setVisible(t3,e3){var _a;let i3=this,s2=i3.chart,r2=s2.options.chart.ignoreHiddenSeries,o2=i3.visible;i3.visible=t3=i3.options.visible=i3.userOptions.visible=void 0===t3?!o2:t3;let n2=t3?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((t4=>{var _a2;(_a2=i3[t4])==null?void 0:_a2[n2]()})),(s2.hoverSeries===i3||((_a=s2.hoverPoint)==null?void 0:_a.series)===i3)&&i3.onMouseOut(),i3.legendItem&&s2.legend.colorizeItem(i3,t3),i3.isDirty=true,i3.options.stacking&&s2.series.forEach((t4=>{t4.options.stacking&&t4.visible&&(t4.isDirty=true)})),i3.linkedSeries.forEach((e4=>{e4.setVisible(t3,false)})),r2&&(s2.isDirtyBox=true),L(i3,n2),false!==e3&&s2.redraw()}show(){this.setVisible(true)}hide(){this.setVisible(false)}select(t3){this.selected=t3=this.options.selected=void 0===t3?!this.selected:t3,this.checkbox&&(this.checkbox.checked=t3),L(this,t3?"select":"unselect")}shouldShowTooltip(t3,e3,i3={}){return i3.series=this,i3.visiblePlotOnly=true,this.chart.isInsidePlot(t3,e3,i3)}drawLegendSymbol(t3,e3){var _a;(_a=r[this.options.legendSymbol||"rectangle"])==null?void 0:_a.call(this,t3,e3)}}return X.defaultOptions=n,X.types=a.seriesTypes,X.registerType=a.registerSeriesType,A(X.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:false,invertible:true,isCartesian:true,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:true,sorted:true}),a.series=X,X})),i(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o,n,a){var h;let{animObject:l,setAnimation:d}=t2,{registerEventOptions:c}=e2,{composed:p,marginNames:u}=i2,{distribute:g}=o,{format:f}=n,{addEvent:m,createElement:x,css:y,defined:b,discardElement:v,find:S,fireEvent:C,isNumber:k,merge:M,pick:w2,pushUnique:T,relativeLength:A,stableSort:P,syncTimeout:L}=a;class O{constructor(t3,e3){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t3,this.setOptions(e3),e3.enabled&&(this.render(),c(this,e3),m(this.chart,"endResize",(function(){this.legend.positionCheckboxes()}))),m(this.chart,"render",(()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(t3){let e3=w2(t3.padding,8);this.options=t3,this.chart.styledMode||(this.itemStyle=t3.itemStyle,this.itemHiddenStyle=M(this.itemStyle,t3.itemHiddenStyle)),this.itemMarginTop=t3.itemMarginTop,this.itemMarginBottom=t3.itemMarginBottom,this.padding=e3,this.initialItemY=e3-5,this.symbolWidth=w2(t3.symbolWidth,16),this.pages=[],this.proximate="proximate"===t3.layout&&!this.chart.inverted,this.baseline=void 0}update(t3,e3){let i3=this.chart;this.setOptions(M(true,this.options,t3)),"events"in this.options&&c(this,this.options),this.destroy(),i3.isDirtyLegend=i3.isDirtyBox=true,w2(e3,true)&&i3.redraw(),C(this,"afterUpdate",{redraw:e3})}colorizeItem(t3,e3){let{area:i3,group:s2,label:r2,line:o2,symbol:n2}=t3.legendItem||{};if(s2==null?void 0:s2[e3?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:s3={}}=this,a2=s3.color,{fillColor:h2,fillOpacity:l2,lineColor:d2,marker:c2}=t3.options,p2=t4=>(!e3&&(t4.fill&&(t4.fill=a2),t4.stroke&&(t4.stroke=a2)),t4);r2==null?void 0:r2.css(M(e3?this.itemStyle:s3)),o2==null?void 0:o2.attr(p2({stroke:d2||t3.color})),n2&&n2.attr(p2(c2&&n2.isMarker?t3.pointAttribs():{fill:t3.color})),i3==null?void 0:i3.attr(p2({fill:h2||t3.color,"fill-opacity":h2?1:l2??.75}))}C(this,"afterColorizeItem",{item:t3,visible:e3})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t3){let{group:e3,x:i3=0,y:s2=0}=t3.legendItem||{},r2=this.options,o2=r2.symbolPadding,n2=!r2.rtl,a2=t3.checkbox;if(e3&&e3.element){let r3={translateX:n2?i3:this.legendWidth-i3-2*o2-4,translateY:s2};e3[b(e3.translateY)?"animate":"attr"](r3,void 0,(()=>{C(this,"afterPositionItem",{item:t3})}))}a2&&(a2.x=i3,a2.y=s2)}destroyItem(t3){let e3=t3.checkbox,i3=t3.legendItem||{};for(let t4 of["group","label","line","symbol"])i3[t4]&&(i3[t4]=i3[t4].destroy());e3&&v(e3),t3.legendItem=void 0}destroy(){for(let t3 of this.getAllItems())this.destroyItem(t3);for(let t3 of["clipRect","up","down","pager","nav","box","title","group"])this[t3]&&(this[t3]=this[t3].destroy());this.display=null}positionCheckboxes(){let t3;let e3=this.group&&this.group.alignAttr,i3=this.clipHeight||this.legendHeight,s2=this.titleHeight;e3&&(t3=e3.translateY,this.allItems.forEach((function(r2){let o2;let n2=r2.checkbox;n2&&(o2=t3+s2+n2.y+(this.scrollOffset||0)+3,y(n2,{left:e3.translateX+r2.checkboxOffset+n2.x-20+"px",top:o2+"px",display:this.proximate||o2>t3-6&&o21.5*S2?v2.height:S2))}layoutItem(t3){let e3=this.options,i3=this.padding,s2="horizontal"===e3.layout,r2=t3.itemHeight,o2=this.itemMarginBottom,n2=this.itemMarginTop,a2=s2?w2(e3.itemDistance,20):0,h2=this.maxLegendWidth,l2=e3.alignColumns&&this.totalItemWidth>h2?this.maxItemWidth:t3.itemWidth,d2=t3.legendItem||{};s2&&this.itemX-i3+l2>h2&&(this.itemX=i3,this.lastLineHeight&&(this.itemY+=n2+this.lastLineHeight+o2),this.lastLineHeight=0),this.lastItemY=n2+this.itemY+o2,this.lastLineHeight=Math.max(r2,this.lastLineHeight),d2.x=this.itemX,d2.y=this.itemY,s2?this.itemX+=l2:(this.itemY+=n2+r2+o2,this.lastLineHeight=r2),this.offsetWidth=this.widthOption||Math.max((s2?this.itemX-i3-(t3.checkbox?0:a2):l2)+i3,this.offsetWidth)}getAllItems(){let t3=[];return this.chart.series.forEach((function(e3){let i3=e3&&e3.options;e3&&w2(i3.showInLegend,!b(i3.linkedTo)&&void 0,true)&&(t3=t3.concat((e3.legendItem||{}).labels||("point"===i3.legendType?e3.data:e3)))})),C(this,"afterGetAllItems",{allItems:t3}),t3}getAlignment(){let t3=this.options;return this.proximate?t3.align.charAt(0)+"tv":t3.floating?"":t3.align.charAt(0)+t3.verticalAlign.charAt(0)+t3.layout.charAt(0)}adjustMargins(t3,e3){let i3=this.chart,s2=this.options,r2=this.getAlignment();r2&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o2,n2){o2.test(r2)&&!b(t3[n2])&&(i3[u[n2]]=Math.max(i3[u[n2]],i3.legend[(n2+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n2]*s2[n2%2?"x":"y"]+w2(s2.margin,12)+e3[n2]+(i3.titleOffset[n2]||0)))}))}proximatePositions(){let t3;let e3=this.chart,i3=[],s2="left"===this.options.align;for(let r2 of(this.allItems.forEach((function(t4){let r3,o2,n2=s2,a2,h2;t4.yAxis&&(t4.xAxis.options.reversed&&(n2=!n2),t4.points&&(r3=S(n2?t4.points:t4.points.slice(0).reverse(),(function(t5){return k(t5.plotY)}))),o2=this.itemMarginTop+t4.legendItem.label.getBBox().height+this.itemMarginBottom,h2=t4.yAxis.top-e3.plotTop,a2=t4.visible?(r3?r3.plotY:t4.yAxis.height)+(h2-.3*o2):h2+t4.yAxis.height,i3.push({target:a2,size:o2,item:t4}))}),this),g(i3,e3.plotHeight)))t3=r2.item.legendItem||{},k(r2.pos)&&(t3.y=e3.plotTop-e3.spacing[0]+r2.pos)}render(){let t3=this.chart,e3=t3.renderer,i3=this.options,s2=this.padding,r2=this.getAllItems(),o2,n2,a2,h2=this.group,l2,d2=this.box;this.itemX=s2,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=A(i3.width,t3.spacingBox.width-s2),l2=t3.spacingBox.width-2*s2-i3.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(l2/=2),this.maxLegendWidth=this.widthOption||l2,h2||(this.group=h2=e3.g("legend").addClass(i3.className||"").attr({zIndex:7}).add(),this.contentGroup=e3.g().attr({zIndex:1}).add(h2),this.scrollGroup=e3.g().add(this.contentGroup)),this.renderTitle(),P(r2,((t4,e4)=>(t4.options&&t4.options.legendIndex||0)-(e4.options&&e4.options.legendIndex||0))),i3.reversed&&r2.reverse(),this.allItems=r2,this.display=o2=!!r2.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,r2.forEach(this.renderItem,this),r2.forEach(this.layoutItem,this),n2=(this.widthOption||this.offsetWidth)+s2,a2=this.lastItemY+this.lastLineHeight+this.titleHeight,a2=this.handleOverflow(a2)+s2,d2||(this.box=d2=e3.rect().addClass("highcharts-legend-box").attr({r:i3.borderRadius}).add(h2)),t3.styledMode||d2.attr({stroke:i3.borderColor,"stroke-width":i3.borderWidth||0,fill:i3.backgroundColor||"none"}).shadow(i3.shadow),n2>0&&a2>0&&d2[d2.placed?"animate":"attr"](d2.crisp.call({},{x:0,y:0,width:n2,height:a2},d2.strokeWidth())),h2[o2?"show":"hide"](),t3.styledMode&&"none"===h2.getStyle("display")&&(n2=a2=0),this.legendWidth=n2,this.legendHeight=a2,o2&&this.align(),this.proximate||this.positionItems(),C(this,"afterRender")}align(t3=this.chart.spacingBox){let e3=this.chart,i3=this.options,s2=t3.y;/(lth|ct|rth)/.test(this.getAlignment())&&e3.titleOffset[0]>0?s2+=e3.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e3.titleOffset[2]>0&&(s2-=e3.titleOffset[2]),s2!==t3.y&&(t3=M(t3,{y:s2})),e3.hasRendered||(this.group.placed=false),this.group.align(M(i3,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i3.verticalAlign}),true,t3)}handleOverflow(t3){let e3=this,i3=this.chart,s2=i3.renderer,r2=this.options,o2=r2.y,n2="top"===r2.verticalAlign,a2=this.padding,h2=r2.maxHeight,l2=r2.navigation,d2=w2(l2.animation,true),c2=l2.arrowSize||12,p2=this.pages,u2=this.allItems,g2=function(t4){"number"==typeof t4?S2.attr({height:t4}):S2&&(e3.clipRect=S2.destroy(),e3.contentGroup.clip()),e3.contentGroup.div&&(e3.contentGroup.div.style.clip=t4?"rect("+a2+"px,9999px,"+(a2+t4)+"px,0)":"auto")},f2=function(t4){return e3[t4]=s2.circle(0,0,1.3*c2).translate(c2/2,c2/2).add(v2),i3.styledMode||e3[t4].attr("fill","rgba(0,0,0,0.0001)"),e3[t4]},m2,x2,y2,b2=i3.spacingBox.height+(n2?-o2:o2)-a2,v2=this.nav,S2=this.clipRect;return"horizontal"!==r2.layout||"middle"===r2.verticalAlign||r2.floating||(b2/=2),h2&&(b2=Math.min(b2,h2)),p2.length=0,t3&&b2>0&&t3>b2&&false!==l2.enabled?(this.clipHeight=m2=Math.max(b2-20-this.titleHeight-a2,0),this.currentPage=w2(this.currentPage,1),this.fullHeight=t3,u2.forEach(((t4,e4)=>{let i4=(y2=t4.legendItem||{}).y||0,s3=Math.round(y2.label.getBBox().height),r3=p2.length;(!r3||i4-p2[r3-1]>m2&&(x2||i4)!==p2[r3-1])&&(p2.push(x2||i4),r3++),y2.pageIx=r3-1,x2&&((u2[e4-1].legendItem||{}).pageIx=r3-1),e4===u2.length-1&&i4+s3-p2[r3-1]>m2&&i4>p2[r3-1]&&(p2.push(i4),y2.pageIx=r3),i4!==x2&&(x2=i4)})),S2||(S2=e3.clipRect=s2.clipRect(0,a2-2,9999,0),e3.contentGroup.clip(S2)),g2(m2),v2||(this.nav=v2=s2.g().attr({zIndex:1}).add(this.group),this.up=s2.symbol("triangle",0,0,c2,c2).add(v2),f2("upTracker").on("click",(function(){e3.scroll(-1,d2)})),this.pager=s2.text("",15,10).addClass("highcharts-legend-navigation"),!i3.styledMode&&l2.style&&this.pager.css(l2.style),this.pager.add(v2),this.down=s2.symbol("triangle-down",0,0,c2,c2).add(v2),f2("downTracker").on("click",(function(){e3.scroll(1,d2)}))),e3.scroll(0),t3=b2):v2&&(g2(),this.nav=v2.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t3}scroll(t3,e3){let i3=this.chart,s2=this.pages,r2=s2.length,o2=this.clipHeight,n2=this.options.navigation,a2=this.pager,h2=this.padding,c2=this.currentPage+t3;c2>r2&&(c2=r2),c2>0&&(void 0!==e3&&d(e3,i3),this.nav.attr({translateX:h2,translateY:o2+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(t4){t4.attr({class:1===c2?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),a2.attr({text:c2+"/"+r2}),[this.down,this.downTracker].forEach((function(t4){t4.attr({x:18+this.pager.getBBox().width,class:c2===r2?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),i3.styledMode||(this.up.attr({fill:1===c2?n2.inactiveColor:n2.activeColor}),this.upTracker.css({cursor:1===c2?"default":"pointer"}),this.down.attr({fill:c2===r2?n2.inactiveColor:n2.activeColor}),this.downTracker.css({cursor:c2===r2?"default":"pointer"})),this.scrollOffset=-s2[c2-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c2,this.positionCheckboxes(),L((()=>{C(this,"afterScroll",{currentPage:c2})}),l(w2(e3,i3.renderer.globalAnimation,true)).duration))}setItemEvents(t3,e3,i3){let o2=this,n2=t3.legendItem||{},a2=o2.chart.renderer.boxWrapper,h2=t3 instanceof r,l2=t3 instanceof s,d2="highcharts-legend-"+(h2?"point":"series")+"-active",c2=o2.chart.styledMode,p2=i3?[e3,n2.symbol]:[n2.group],u2=e4=>{o2.allItems.forEach((i4=>{t3!==i4&&[i4].concat(i4.linkedSeries||[]).forEach((t4=>{t4.setState(e4,!h2)}))}))};for(let i4 of p2)i4&&i4.on("mouseover",(function(){t3.visible&&u2("inactive"),t3.setState("hover"),t3.visible&&a2.addClass(d2),c2||e3.css(o2.options.itemHoverStyle)})).on("mouseout",(function(){o2.chart.styledMode||e3.css(M(t3.visible?o2.itemStyle:o2.itemHiddenStyle)),u2(""),a2.removeClass(d2),t3.setState()})).on("click",(function(e4){let i5=function(){t3.setVisible&&t3.setVisible(),u2(t3.visible?"inactive":"")};a2.removeClass(d2),C(o2,"itemClick",{browserEvent:e4,legendItem:t3},i5),h2?t3.firePointEvent("legendItemClick",{browserEvent:e4}):l2&&C(t3,"legendItemClick",{browserEvent:e4})}))}createCheckboxForItem(t3){t3.checkbox=x("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t3.selected,defaultChecked:t3.selected},this.options.itemCheckboxStyle,this.chart.container),m(t3.checkbox,"click",(function(e3){let i3=e3.target;C(t3.series||t3,"checkboxClick",{checked:i3.checked,item:t3},(function(){t3.select()}))}))}}return(h=O||(O={})).compose=function(t3){T(p,"Core.Legend")&&m(t3,"beforeMargins",(function(){this.legend=new h(this,this.options.legend)}))},O})),i(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Axis/Tick.js"]],(function(t2,e2,i2,s,r,o,n,a,h,l,d,c,p,u){let{animate:g,animObject:f,setAnimation:m}=t2,{defaultOptions:x,defaultTime:y}=i2,{numberFormat:b}=s,{registerEventOptions:v}=r,{charts:S,doc:C,marginNames:k,svg:M,win:w2}=o,{seriesTypes:T}=h,{addEvent:A,attr:P,createElement:L,css:O,defined:D,diffObjects:E,discardElement:I,erase:j,error:B,extend:R,find:z,fireEvent:N,getStyle:W,isArray:G,isNumber:H,isObject:X,isString:F,merge:Y,objectEach:U,pick:V,pInt:$,relativeLength:Z,removeEvent:_,splat:q,syncTimeout:K,uniqueKey:J}=c;class Q{static chart(t3,e3,i3){return new Q(t3,e3,i3)}constructor(t3,e3,i3){this.sharedClips={};let s2=[...arguments];(F(t3)||t3.nodeName)&&(this.renderTo=s2.shift()),this.init(s2[0],s2[1])}setZoomOptions(){let t3=this.options.chart,e3=t3.zooming;this.zooming={...e3,type:V(t3.zoomType,e3.type),key:V(t3.zoomKey,e3.key),pinchType:V(t3.pinchType,e3.pinchType),singleTouch:V(t3.zoomBySingleTouch,e3.singleTouch,false),resetButton:Y(e3.resetButton,t3.resetZoomButton)}}init(t3,e3){N(this,"init",{args:arguments},(function(){let i3=Y(x,t3),s2=i3.chart;this.userOptions=R({},t3),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e3,this.isResizing=0,this.options=i3,this.axes=[],this.series=[],this.time=t3.time&&Object.keys(t3.time).length?new d(t3.time):o.time,this.numberFormatter=s2.numberFormatter||b,this.styledMode=s2.styledMode,this.hasCartesianSeries=s2.showAxes,this.index=S.length,S.push(this),o.chartCount++,v(this,s2),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),N(this,"afterInit"),this.firstRender()}))}initSeries(t3){let e3=this.options.chart,i3=t3.type||e3.type,s2=T[i3];s2||B(17,true,this,{missingModuleFor:i3});let r2=new s2;return"function"==typeof r2.init&&r2.init(this,t3),r2}setSortedData(){this.getSeriesOrderByLinks().forEach((function(t3){t3.points||t3.data||!t3.enabledDataSorting||t3.setData(t3.options.data,false)}))}getSeriesOrderByLinks(){return this.series.concat().sort((function(t3,e3){return t3.linkedSeries.length||e3.linkedSeries.length?e3.linkedSeries.length-t3.linkedSeries.length:0}))}orderItems(t3,e3=0){let i3=this[t3],s2=this.options[t3]=q(this.options[t3]).slice(),r2=this.userOptions[t3]=this.userOptions[t3]?q(this.userOptions[t3]).slice():[];if(this.hasRendered&&(s2.splice(e3),r2.splice(e3)),i3)for(let t4=e3,o2=i3.length;t4=Math.max(h2+o2,t4.pos)&&e4<=Math.min(h2+o2+c2.width,t4.pos+t4.len)||(g2.isInsidePlot=false)}if(!i3.ignoreY&&g2.isInsidePlot){let t4=!s2&&i3.axis&&!i3.axis.isXAxis&&i3.axis||d2&&(s2?d2.xAxis:d2.yAxis)||{pos:n2,len:1/0},e4=i3.paneCoordinates?t4.pos+u2:n2+u2;e4>=Math.max(l2+n2,t4.pos)&&e4<=Math.min(l2+n2+c2.height,t4.pos+t4.len)||(g2.isInsidePlot=false)}return N(this,"afterIsInsidePlot",g2),g2.isInsidePlot}redraw(t3){N(this,"beforeRedraw");let e3=this.hasCartesianSeries?this.axes:this.colorAxis||[],i3=this.series,s2=this.pointer,r2=this.legend,o2=this.userOptions.legend,n2=this.renderer,a2=n2.isHidden(),h2=[],l2,d2,c2,p2=this.isDirtyBox,u2=this.isDirtyLegend,g2;for(n2.rootFontSize=n2.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(false),m(!!this.hasRendered&&t3,this),a2&&this.temporaryDisplay(),this.layOutTitles(false),c2=i3.length;c2--;)if(((g2=i3[c2]).options.stacking||g2.options.centerInCategory)&&(d2=true,g2.isDirty)){l2=true;break}if(l2)for(c2=i3.length;c2--;)(g2=i3[c2]).options.stacking&&(g2.isDirty=true);i3.forEach((function(t4){t4.isDirty&&("point"===t4.options.legendType?("function"==typeof t4.updateTotals&&t4.updateTotals(),u2=true):o2&&(o2.labelFormatter||o2.labelFormat)&&(u2=true)),t4.isDirtyData&&N(t4,"updatedData")})),u2&&r2&&r2.options.enabled&&(r2.render(),this.isDirtyLegend=false),d2&&this.getStacks(),e3.forEach((function(t4){t4.updateNames(),t4.setScale()})),this.getMargins(),e3.forEach((function(t4){t4.isDirty&&(p2=true)})),e3.forEach((function(t4){let e4=t4.min+","+t4.max;t4.extKey!==e4&&(t4.extKey=e4,h2.push((function(){N(t4,"afterSetExtremes",R(t4.eventArgs,t4.getExtremes())),delete t4.eventArgs}))),(p2||d2)&&t4.redraw()})),p2&&this.drawChartBox(),N(this,"predraw"),i3.forEach((function(t4){(p2||t4.isDirty)&&t4.visible&&t4.redraw(),t4.isDirtyData=false})),s2&&s2.reset(true),n2.draw(),N(this,"redraw"),N(this,"render"),a2&&this.temporaryDisplay(true),h2.forEach((function(t4){t4.call()}))}get(t3){let e3=this.series;function i3(e4){return e4.id===t3||e4.options&&e4.options.id===t3}let s2=z(this.axes,i3)||z(this.series,i3);for(let t4=0;!s2&&t4(e3.getPointsCollection().forEach((e4=>{V(e4.selectedStaging,e4.selected)&&t3.push(e4)})),t3)),[])}getSelectedSeries(){return this.series.filter((function(t3){return t3.selected}))}setTitle(t3,e3,i3){this.applyDescription("title",t3),this.applyDescription("subtitle",e3),this.applyDescription("caption",void 0),this.layOutTitles(i3)}applyDescription(t3,e3){let i3=this,s2=this.options[t3]=Y(this.options[t3],e3),r2=this[t3];r2&&e3&&(this[t3]=r2=r2.destroy()),s2&&!r2&&((r2=this.renderer.text(s2.text,0,0,s2.useHTML).attr({align:s2.align,class:"highcharts-"+t3,zIndex:s2.zIndex||4}).add()).update=function(e4,s3){i3.applyDescription(t3,e4),i3.layOutTitles(s3)},this.styledMode||r2.css(R("title"===t3?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s2.style)),this[t3]=r2)}layOutTitles(t3=true){let e3=[0,0,0],i3=this.renderer,s2=this.spacingBox;["title","subtitle","caption"].forEach((function(t4){let r3=this[t4],o2=this.options[t4],n2=o2.verticalAlign||"top",a2="title"===t4?"top"===n2?-3:0:"top"===n2?e3[0]+2:0;if(r3){r3.css({width:(o2.width||s2.width+(o2.widthAdjust||0))+"px"});let t5=i3.fontMetrics(r3).b,h2=Math.round(r3.getBBox(o2.useHTML).height);r3.align(R({y:"bottom"===n2?t5:a2+t5,height:h2},o2),false,"spacingBox"),o2.floating||("top"===n2?e3[0]=Math.ceil(e3[0]+h2):"bottom"===n2&&(e3[2]=Math.ceil(e3[2]+h2)))}}),this),e3[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e3[0]+=this.options.title.margin),e3[2]&&"bottom"===this.options.caption.verticalAlign&&(e3[2]+=this.options.caption.margin);let r2=!this.titleOffset||this.titleOffset.join(",")!==e3.join(",");this.titleOffset=e3,N(this,"afterLayOutTitles"),!this.isDirtyBox&&r2&&(this.isDirtyBox=this.isDirtyLegend=r2,this.hasRendered&&t3&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t3=[].map.call(this.renderTo.children,(t4=>{if(t4!==this.container){let e4=t4.style.display;return t4.style.display="none",[t4,e4]}})),e3={width:W(this.renderTo,"width",true)||0,height:W(this.renderTo,"height",true)||0};return t3.filter(Boolean).forEach((([t4,e4])=>{t4.style.display=e4})),e3}getChartSize(){var _a;let t3=this.options.chart,e3=t3.width,i3=t3.height,s2=this.getContainerBox(),r2=s2.height>1&&!(!((_a=this.renderTo.parentElement)==null?void 0:_a.style.height)&&"100%"===this.renderTo.style.height);this.chartWidth=Math.max(0,e3||s2.width||600),this.chartHeight=Math.max(0,Z(i3,this.chartWidth)||(r2?s2.height:400)),this.containerBox=s2}temporaryDisplay(t3){let e3=this.renderTo,i3;if(t3)for(;e3&&e3.style;)e3.hcOrigStyle&&(O(e3,e3.hcOrigStyle),delete e3.hcOrigStyle),e3.hcOrigDetached&&(C.body.removeChild(e3),e3.hcOrigDetached=false),e3=e3.parentNode;else for(;e3&&e3.style&&(C.body.contains(e3)||e3.parentNode||(e3.hcOrigDetached=true,C.body.appendChild(e3)),("none"===W(e3,"display",false)||e3.hcOricDetached)&&(e3.hcOrigStyle={display:e3.style.display,height:e3.style.height,overflow:e3.style.overflow},i3={display:"block",overflow:"hidden"},e3!==this.renderTo&&(i3.height=0),O(e3,i3),e3.offsetWidth||e3.style.setProperty("display","block","important")),(e3=e3.parentNode)!==C.body););}setClassName(t3){this.container.className="highcharts-container "+(t3||"")}getContainer(){var _a;let t3=this.options,e3=t3.chart,i3="data-highcharts-chart",s2=J(),r2,o2=this.renderTo;o2||(this.renderTo=o2=e3.renderTo),F(o2)&&(this.renderTo=o2=C.getElementById(o2)),o2||B(13,true,this);let a2=$(P(o2,i3));H(a2)&&S[a2]&&S[a2].hasRendered&&S[a2].destroy(),P(o2,i3,this.index),o2.innerHTML=p.emptyHTML,e3.skipClone||o2.offsetWidth||this.temporaryDisplay(),this.getChartSize();let h2=this.chartHeight,d2=this.chartWidth;O(o2,{overflow:"hidden"}),this.styledMode||(r2=R({position:"relative",overflow:"hidden",width:d2+"px",height:h2+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},e3.style||{}));let c2=L("div",{id:s2},r2,o2);this.container=c2,this.getChartSize(),d2===this.chartWidth||(d2=this.chartWidth,this.styledMode||O(c2,{width:V((_a=e3.style)==null?void 0:_a.width,d2+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c2.style.cursor;let u2=e3.renderer||!M?n.getRendererType(e3.renderer):l;if(this.renderer=new u2(c2,d2,h2,void 0,e3.forExport,t3.exporting&&t3.exporting.allowHTML,this.styledMode),m(void 0,this),this.setClassName(e3.className),this.styledMode)for(let e4 in t3.defs)this.renderer.definition(t3.defs[e4]);else this.renderer.setStyle(e3.style);this.renderer.chartIndex=this.index,N(this,"afterGetContainer")}getMargins(t3){let{spacing:e3,margin:i3,titleOffset:s2}=this;this.resetMargins(),s2[0]&&!D(i3[0])&&(this.plotTop=Math.max(this.plotTop,s2[0]+e3[0])),s2[2]&&!D(i3[2])&&(this.marginBottom=Math.max(this.marginBottom,s2[2]+e3[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i3,e3),N(this,"getMargins"),t3||this.getAxisMargins()}getAxisMargins(){let t3=this,e3=t3.axisOffset=[0,0,0,0],i3=t3.colorAxis,s2=t3.margin,r2=function(t4){t4.forEach((function(t5){t5.visible&&t5.getOffset()}))};t3.hasCartesianSeries?r2(t3.axes):i3&&i3.length&&r2(i3),k.forEach((function(i4,r3){D(s2[r3])||(t3[i4]+=e3[r3])})),t3.setChartSize()}getOptions(){return E(this.userOptions,x)}reflow(t3){var _a;let e3=this,i3=e3.containerBox,s2=e3.getContainerBox();(_a=e3.pointer)==null?true:delete _a.chartPosition,!e3.isPrinting&&!e3.isResizing&&i3&&s2.width&&((s2.width!==i3.width||s2.height!==i3.height)&&(c.clearTimeout(e3.reflowTimeout),e3.reflowTimeout=K((function(){e3.container&&e3.setSize(void 0,void 0,false)}),t3?100:0)),e3.containerBox=s2)}setReflow(){let t3=this,e3=e4=>{var _a;((_a=t3.options)==null?void 0:_a.chart.reflow)&&t3.hasLoaded&&t3.reflow(e4)};if("function"==typeof ResizeObserver)new ResizeObserver(e3).observe(t3.renderTo);else{let t4=A(w2,"resize",e3);A(this,"destroy",t4)}}setSize(t3,e3,i3){let s2=this,r2=s2.renderer;s2.isResizing+=1,m(i3,s2);let o2=r2.globalAnimation;s2.oldChartHeight=s2.chartHeight,s2.oldChartWidth=s2.chartWidth,void 0!==t3&&(s2.options.chart.width=t3),void 0!==e3&&(s2.options.chart.height=e3),s2.getChartSize();let{chartWidth:n2,chartHeight:a2,scrollablePixelsX:h2=0,scrollablePixelsY:l2=0}=s2;(s2.isDirtyBox||n2!==s2.oldChartWidth||a2!==s2.oldChartHeight)&&(s2.styledMode||(o2?g:O)(s2.container,{width:`${n2+h2}px`,height:`${a2+l2}px`},o2),s2.setChartSize(true),r2.setSize(n2,a2,o2),s2.axes.forEach((function(t4){t4.isDirty=true,t4.setScale()})),s2.isDirtyLegend=true,s2.isDirtyBox=true,s2.layOutTitles(),s2.getMargins(),s2.redraw(o2),s2.oldChartHeight=void 0,N(s2,"resize"),setTimeout((()=>{s2&&N(s2,"endResize")}),f(o2).duration)),s2.isResizing-=1}setChartSize(t3){let e3,i3,s2,r2;let{chartHeight:o2,chartWidth:n2,inverted:a2,spacing:h2,renderer:l2}=this,d2=this.clipOffset,c2=Math[a2?"floor":"round"];this.plotLeft=e3=Math.round(this.plotLeft),this.plotTop=i3=Math.round(this.plotTop),this.plotWidth=s2=Math.max(0,Math.round(n2-e3-this.marginRight)),this.plotHeight=r2=Math.max(0,Math.round(o2-i3-this.marginBottom)),this.plotSizeX=a2?r2:s2,this.plotSizeY=a2?s2:r2,this.spacingBox=l2.spacingBox={x:h2[3],y:h2[0],width:n2-h2[3]-h2[1],height:o2-h2[0]-h2[2]},this.plotBox=l2.plotBox={x:e3,y:i3,width:s2,height:r2},d2&&(this.clipBox={x:c2(d2[3]),y:c2(d2[0]),width:c2(this.plotSizeX-d2[1]-d2[3]),height:c2(this.plotSizeY-d2[0]-d2[2])}),t3||(this.axes.forEach((function(t4){t4.setAxisSize(),t4.setAxisTranslation()})),l2.alignElements()),N(this,"afterSetChartSize",{skipAxes:t3})}resetMargins(){N(this,"resetMargins");let t3=this,e3=t3.options.chart,i3=e3.plotBorderWidth||0,s2=i3/2;["margin","spacing"].forEach((function(i4){let s3=e3[i4],r2=X(s3)?s3:[s3,s3,s3,s3];["Top","Right","Bottom","Left"].forEach((function(s4,o2){t3[i4][o2]=V(e3[i4+s4],r2[o2])}))})),k.forEach((function(e4,i4){t3[e4]=V(t3.margin[i4],t3.spacing[i4])})),t3.axisOffset=[0,0,0,0],t3.clipOffset=[s2,s2,s2,s2],t3.plotBorderWidth=i3}drawChartBox(){let t3=this.options.chart,e3=this.renderer,i3=this.chartWidth,s2=this.chartHeight,r2=this.styledMode,o2=this.plotBGImage,n2=t3.backgroundColor,a2=t3.plotBackgroundColor,h2=t3.plotBackgroundImage,l2=this.plotLeft,d2=this.plotTop,c2=this.plotWidth,p2=this.plotHeight,u2=this.plotBox,g2=this.clipRect,f2=this.clipBox,m2=this.chartBackground,x2=this.plotBackground,y2=this.plotBorder,b2,v2,S2,C2="animate";m2||(this.chartBackground=m2=e3.rect().addClass("highcharts-background").add(),C2="attr"),r2?b2=v2=m2.strokeWidth():(v2=(b2=t3.borderWidth||0)+(t3.shadow?8:0),S2={fill:n2||"none"},(b2||m2["stroke-width"])&&(S2.stroke=t3.borderColor,S2["stroke-width"]=b2),m2.attr(S2).shadow(t3.shadow)),m2[C2]({x:v2/2,y:v2/2,width:i3-v2-b2%2,height:s2-v2-b2%2,r:t3.borderRadius}),C2="animate",x2||(C2="attr",this.plotBackground=x2=e3.rect().addClass("highcharts-plot-background").add()),x2[C2](u2),!r2&&(x2.attr({fill:a2||"none"}).shadow(t3.plotShadow),h2&&(o2?(h2!==o2.attr("href")&&o2.attr("href",h2),o2.animate(u2)):this.plotBGImage=e3.image(h2,l2,d2,c2,p2).add())),g2?g2.animate({width:f2.width,height:f2.height}):this.clipRect=e3.clipRect(f2),C2="animate",y2||(C2="attr",this.plotBorder=y2=e3.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r2||y2.attr({stroke:t3.plotBorderColor,"stroke-width":t3.plotBorderWidth||0,fill:"none"}),y2[C2](y2.crisp({x:l2,y:d2,width:c2,height:p2},-y2.strokeWidth())),this.isDirtyBox=false,N(this,"afterDrawChartBox")}propFromSeries(){let t3,e3,i3;let s2=this,r2=s2.options.chart,o2=s2.options.series;["inverted","angular","polar"].forEach((function(n2){for(e3=T[r2.type],i3=r2[n2]||e3&&e3.prototype[n2],t3=o2&&o2.length;!i3&&t3--;)(e3=T[o2[t3].type])&&e3.prototype[n2]&&(i3=true);s2[n2]=i3}))}linkSeries(t3){let e3=this,i3=e3.series;i3.forEach((function(t4){t4.linkedSeries.length=0})),i3.forEach((function(t4){let{linkedTo:i4}=t4.options;if(F(i4)){let s2;(s2=":previous"===i4?e3.series[t4.index-1]:e3.get(i4))&&s2.linkedParent!==t4&&(s2.linkedSeries.push(t4),t4.linkedParent=s2,s2.enabledDataSorting&&t4.setDataSortingOptions(),t4.visible=V(t4.options.visible,s2.options.visible,t4.visible))}})),N(this,"afterLinkSeries",{isUpdating:t3})}renderSeries(){this.series.forEach((function(t3){t3.translate(),t3.render()}))}render(){var _a;let t3=this.axes,e3=this.colorAxis,i3=this.renderer,s2=this.options.chart.axisLayoutRuns||2,r2=t4=>{t4.forEach((t5=>{t5.visible&&t5.render()}))},o2=0,n2=true,a2,h2=0;for(let e4 of(this.setTitle(),N(this,"beforeMargins"),(_a=this.getStacks)==null?void 0:_a.call(this),this.getMargins(true),this.setChartSize(),t3)){let{options:t4}=e4,{labels:i4}=t4;if(this.hasCartesianSeries&&e4.horiz&&e4.visible&&i4.enabled&&e4.series.length&&"colorAxis"!==e4.coll&&!this.polar){o2=t4.tickLength,e4.createGroups();let s3=new u(e4,0,"",true),r3=s3.createLabel("x",i4);if(s3.destroy(),r3&&V(i4.reserveSpace,!H(t4.crossing))&&(o2=r3.getBBox().height+i4.distance+Math.max(t4.offset||0,0)),o2){r3==null?void 0:r3.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o2,0);(n2||a2||s2>1)&&h2(h2?1:1.1),a2=i4/this.plotHeight>(h2?1:1.05),h2++}this.drawChartBox(),this.hasCartesianSeries?r2(t3):e3&&e3.length&&r2(e3),this.seriesGroup||(this.seriesGroup=i3.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=true}addCredits(t3){let e3=this,i3=Y(true,this.options.credits,t3);i3.enabled&&!this.credits&&(this.credits=this.renderer.text(i3.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){i3.href&&(w2.location.href=i3.href)})).attr({align:i3.position.align,zIndex:8}),e3.styledMode||this.credits.css(i3.style),this.credits.add().align(i3.position),this.credits.update=function(t4){e3.credits=e3.credits.destroy(),e3.addCredits(t4)})}destroy(){let t3;let e3=this,i3=e3.axes,s2=e3.series,r2=e3.container,n2=r2&&r2.parentNode;for(N(e3,"destroy"),e3.renderer.forExport?j(S,e3):S[e3.index]=void 0,o.chartCount--,e3.renderTo.removeAttribute("data-highcharts-chart"),_(e3),t3=i3.length;t3--;)i3[t3]=i3[t3].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t3=s2.length;t3--;)s2[t3]=s2[t3].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach((function(t4){let i4=e3[t4];i4&&i4.destroy&&(e3[t4]=i4.destroy())})),r2&&(r2.innerHTML=p.emptyHTML,_(r2),n2&&I(r2)),U(e3,(function(t4,i4){delete e3[i4]}))}firstRender(){var _a;let t3=this,e3=t3.options;t3.getContainer(),t3.resetMargins(),t3.setChartSize(),t3.propFromSeries(),t3.getAxes();let i3=G(e3.series)?e3.series:[];e3.series=[],i3.forEach((function(e4){t3.initSeries(e4)})),t3.linkSeries(),t3.setSortedData(),N(t3,"beforeRender"),t3.render(),(_a=t3.pointer)==null?void 0:_a.getChartPosition(),t3.renderer.imgCount||t3.hasLoaded||t3.onload(),t3.temporaryDisplay(true)}onload(){this.callbacks.concat([this.callback]).forEach((function(t3){t3&&void 0!==this.index&&t3.apply(this,[this])}),this),N(this,"load"),N(this,"render"),D(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=true}warnIfA11yModuleNotLoaded(){let{options:t3,title:e3}=this;!t3||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e3&&e3.element.textContent||"").replace(/this.transform({reset:true,trigger:"zoom"})))}pan(t3,e3){let i3=this,s2="object"==typeof e3?e3:{enabled:e3,type:"x"},r2=s2.type,o2=r2&&i3[{x:"xAxis",xy:"axes",y:"yAxis"}[r2]].filter((t4=>t4.options.panningEnabled&&!t4.options.isInternal)),n2=i3.options.chart;(n2==null?void 0:n2.panning)&&(n2.panning=s2),N(this,"pan",{originalEvent:t3},(()=>{i3.transform({axes:o2,event:t3,to:{x:t3.chartX-(i3.mouseDownX||0),y:t3.chartY-(i3.mouseDownY||0)},trigger:"pan"}),O(i3.container,{cursor:"move"})}))}transform(t3){var _a;let{axes:e3=this.axes,event:i3,from:s2={},reset:r2,selection:o2,to:n2={},trigger:a2}=t3,{inverted:h2}=this,l2=false,d2,c2;for(let t4 of((_a=this.hoverPoints)==null?void 0:_a.forEach((t5=>t5.setState())),e3)){let{horiz:e4,len:p2,minPointOffset:u2=0,options:g2,reversed:f2}=t4,m2=e4?"width":"height",x2=e4?"x":"y",y2=V(n2[m2],t4.len),b2=V(s2[m2],t4.len),v2=10>Math.abs(y2)?1:y2/b2,S2=(s2[x2]||0)+b2/2-t4.pos,C2=S2-((n2[x2]??t4.pos)+y2/2-t4.pos)/v2,k2=f2&&!h2||!f2&&h2?-1:1;if(!r2&&(S2<0||S2>t4.len))continue;let M2=t4.toValue(C2,true)+(o2||t4.isOrdinal?0:u2*k2),w3=t4.toValue(C2+p2/v2,true)-(o2||t4.isOrdinal?0:u2*k2||0),T2=t4.allExtremes;if(M2>w3&&([M2,w3]=[w3,M2]),1===v2&&!r2&&"yAxis"===t4.coll&&!T2){for(let e5 of t4.series){let t5=e5.getExtremes(e5.getProcessedData(true).yData,true);T2??(T2={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),H(t5.dataMin)&&H(t5.dataMax)&&(T2.dataMin=Math.min(t5.dataMin,T2.dataMin),T2.dataMax=Math.max(t5.dataMax,T2.dataMax))}t4.allExtremes=T2}let{dataMin:A2,dataMax:P2,min:L2,max:O2}=R(t4.getExtremes(),T2||{}),E2=A2??g2.min,I2=P2??g2.max,j2=w3-M2,B2=t4.categories?0:Math.min(j2,I2-E2),z2=E2-B2*(D(g2.min)?0:g2.minPadding),N2=I2+B2*(D(g2.max)?0:g2.maxPadding),W2=t4.allowZoomOutside||1===v2||"zoom"!==a2&&v2>1,G2=Math.min(g2.min??z2,z2,W2?L2:z2),X2=Math.max(g2.max??N2,N2,W2?O2:N2);(!t4.isOrdinal||t4.options.overscroll||1!==v2||r2)&&(M2=1&&(w3=M2+j2)),w3>X2&&(w3=X2,v2>=1&&(M2=w3-j2)),(r2||t4.series.length&&(M2!==L2||w3!==O2)&&M2>=G2&&w3<=X2)&&(o2?o2[t4.coll].push({axis:t4,min:M2,max:w3}):(t4.isPanning="zoom"!==a2,t4.isPanning&&(c2=true),t4.setExtremes(r2?void 0:M2,r2?void 0:w3,false,false,{move:C2,trigger:a2,scale:v2}),!r2&&(M2>G2||w3{delete t3.selection,t3.trigger="zoom",this.transform(t3)})):(!d2||c2||this.resetZoomButton?!d2&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===a2&&(this.options.chart.animation??this.pointCount<100)))),l2}}return R(Q.prototype,{callbacks:[],collectionsWithInit:{xAxis:[Q.prototype.addAxis,[true]],yAxis:[Q.prototype.addAxis,[false]],series:[Q.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),Q})),i(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{stop:r}=t2,{composed:o}=e2,{addEvent:n,createElement:a,css:h,defined:l,merge:d,pushUnique:c}=s;function p(){let t3=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t3&&(this.scrollablePlotArea=t3=new g(this)),t3==null?void 0:t3.applyFixed()}function u(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=true)}class g{static compose(t3,e3,i3){c(o,this.compose)&&(n(t3,"afterInit",u),n(e3,"afterSetChartSize",(t4=>this.afterSetSize(t4.target,t4))),n(e3,"render",p),n(i3,"show",u))}static afterSetSize(t3,e3){let i3,s2,r2;let{minWidth:o2,minHeight:n2}=t3.options.chart.scrollablePlotArea||{},{clipBox:a2,plotBox:h2,inverted:c2,renderer:p2}=t3;if(!p2.forExport&&(o2?(t3.scrollablePixelsX=i3=Math.max(0,o2-t3.chartWidth),i3&&(t3.scrollablePlotBox=d(t3.plotBox),h2.width=t3.plotWidth+=i3,a2[c2?"height":"width"]+=i3,r2=true)):n2&&(t3.scrollablePixelsY=s2=Math.max(0,n2-t3.chartHeight),l(s2)&&(t3.scrollablePlotBox=d(t3.plotBox),h2.height=t3.plotHeight+=s2,a2[c2?"width":"height"]+=s2,r2=false)),l(r2)&&!e3.skipAxes))for(let e4 of t3.axes)e4.horiz===r2&&(e4.setAxisSize(),e4.setAxisTranslation())}constructor(t3){var _a;let e3;let s2=t3.options.chart,r2=i2.getRendererType(),o2=s2.scrollablePlotArea||{},l2=this.moveFixedElements.bind(this),d2={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t3.scrollablePixelsX&&(d2.overflowX="auto"),t3.scrollablePixelsY&&(d2.overflowY="auto"),this.chart=t3;let c2=this.parentDiv=a("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t3.renderTo),p2=this.scrollingContainer=a("div",{className:"highcharts-scrolling"},d2,c2),u2=this.innerContainer=a("div",{className:"highcharts-inner-container"},void 0,p2),g2=this.fixedDiv=a("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((_a=s2.style)==null?void 0:_a.zIndex)||0)+2,top:0},void 0,true),f=this.fixedRenderer=new r2(g2,t3.chartWidth,t3.chartHeight,s2.style);this.mask=f.path().attr({fill:s2.backgroundColor||"#fff","fill-opacity":o2.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),p2.parentNode.insertBefore(g2,p2),h(t3.renderTo,{overflow:"visible"}),n(t3,"afterShowResetZoom",l2),n(t3,"afterApplyDrilldown",l2),n(t3,"afterLayOutTitles",l2),n(p2,"scroll",(()=>{let{pointer:i3,hoverPoint:s3}=t3;i3&&(delete i3.chartPosition,s3&&(e3=s3),i3.runPointActions(void 0,e3,true))})),u2.appendChild(t3.container)}applyFixed(){var _a;let{chart:t3,fixedRenderer:e3,isDirty:i3,scrollingContainer:s2}=this,{axisOffset:o2,chartWidth:n2,chartHeight:a2,container:d2,plotHeight:c2,plotLeft:p2,plotTop:u2,plotWidth:g2,scrollablePixelsX:f=0,scrollablePixelsY:m=0}=t3,{scrollPositionX:x=0,scrollPositionY:y=0}=t3.options.chart.scrollablePlotArea||{},b=n2+f,v=a2+m;e3.setSize(n2,a2),(i3??true)&&(this.isDirty=false,this.moveFixedElements()),r(t3.container),h(d2,{width:`${b}px`,height:`${v}px`}),t3.renderer.boxWrapper.attr({width:b,height:v,viewBox:[0,0,b,v].join(" ")}),(_a=t3.chartBackground)==null?void 0:_a.attr({width:b,height:v}),h(s2,{width:`${n2}px`,height:`${a2}px`}),l(i3)||(s2.scrollLeft=f*x,s2.scrollTop=m*y);let S=u2-o2[0]-1,C=p2-o2[3]-1,k=u2+c2+o2[2]+1,M=p2+g2+o2[1]+1,w2=p2+g2-f,T=u2+c2-m,A=[["M",0,0]];f?A=[["M",0,S],["L",p2-1,S],["L",p2-1,k],["L",0,k],["Z"],["M",w2,S],["L",n2,S],["L",n2,k],["L",w2,k],["Z"]]:m&&(A=[["M",C,0],["L",C,u2-1],["L",M,u2-1],["L",M,0],["Z"],["M",C,T],["L",C,a2],["L",M,a2],["L",M,T],["Z"]]),"adjustHeight"!==t3.redrawTrigger&&this.mask.attr({d:A})}moveFixedElements(){let t3;let{container:e3,inverted:i3,scrollablePixelsX:s2,scrollablePixelsY:r2}=this.chart,o2=this.fixedRenderer,n2=g.fixedSelectors;for(let a2 of(s2&&!i3?t3=".highcharts-yaxis":s2&&i3?t3=".highcharts-xaxis":r2&&!i3?t3=".highcharts-xaxis":r2&&i3&&(t3=".highcharts-yaxis"),t3&&n2.push(`${t3}:not(.highcharts-radial-axis)`,`${t3}-labels:not(.highcharts-radial-axis-labels)`),n2))[].forEach.call(e3.querySelectorAll(a2),(t4=>{(t4.namespaceURI===o2.SVG_NS?o2.box:o2.box.parentNode).appendChild(t4),t4.style.pointerEvents="auto"}))}}return g.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],g})),i(e,"Core/Axis/Stacking/StackItem.js",[e["Core/Templating.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{format:s}=t2,{series:r}=e2,{destroyObjectProperties:o,fireEvent:n,isNumber:a,pick:h}=i2;return class{constructor(t3,e3,i3,s2,r2){let o2=t3.chart.inverted,n2=t3.reversed;this.axis=t3;let a2=this.isNegative=!!i3!=!!n2;this.options=e3=e3||{},this.x=s2,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=false,this.stack=r2,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e3.align||(o2?a2?"left":"right":"center"),verticalAlign:e3.verticalAlign||(o2?"middle":a2?"bottom":"top"),y:e3.y,x:e3.x},this.textAlign=e3.textAlign||(o2?a2?"right":"left":"center")}destroy(){o(this,this.axis)}render(t3){let e3=this.axis.chart,i3=this.options,r2=i3.format,o2=r2?s(r2,this,e3):i3.formatter.call(this);if(this.label)this.label.attr({text:o2,visibility:"hidden"});else{this.label=e3.renderer.label(o2,null,void 0,i3.shape,void 0,void 0,i3.useHTML,false,"stack-labels");let s2={r:i3.borderRadius||0,text:o2,padding:h(i3.padding,5),visibility:"hidden"};e3.styledMode||(s2.fill=i3.backgroundColor,s2.stroke=i3.borderColor,s2["stroke-width"]=i3.borderWidth,this.label.css(i3.style||{})),this.label.attr(s2),this.label.added||this.label.add(t3)}this.label.labelrank=e3.plotSizeY,n(this,"afterRender")}setOffset(t3,e3,i3,s2,o2,l){let{alignOptions:d,axis:c,label:p,options:u,textAlign:g}=this,f=c.chart,m=this.getStackBox({xOffset:t3,width:e3,boxBottom:i3,boxTop:s2,defaultX:o2,xAxis:l}),{verticalAlign:x}=d;if(p&&m){let t4=p.getBBox(void 0,0),e4=p.padding,i4="justify"===h(u.overflow,"justify"),s3;d.x=u.x||0,d.y=u.y||0;let{x:o3,y:n2}=this.adjustStackPosition({labelBox:t4,verticalAlign:x,textAlign:g});m.x-=o3,m.y-=n2,p.align(d,false,m),(s3=f.isInsidePlot(p.alignAttr.x+d.x+o3,p.alignAttr.y+d.y+n2))||(i4=false),i4&&r.prototype.justifyDataLabel.call(c,p,d,p.alignAttr,t4,m),p.attr({x:p.alignAttr.x,y:p.alignAttr.y,rotation:u.rotation,rotationOriginX:t4.width*{left:0,center:.5,right:1}[u.textAlign||"center"],rotationOriginY:t4.height/2}),h(!i4&&u.crop,true)&&(s3=a(p.x)&&a(p.y)&&f.isInsidePlot(p.x-e4+(p.width||0),p.y)&&f.isInsidePlot(p.x+e4,p.y)),p[s3?"show":"hide"]()}n(this,"afterSetOffset",{xOffset:t3,width:e3})}adjustStackPosition({labelBox:t3,verticalAlign:e3,textAlign:i3}){let s2={bottom:0,middle:1,top:2,right:1,center:0,left:-1},r2=s2[e3],o2=s2[i3];return{x:t3.width/2+t3.width/2*o2,y:t3.height/2*r2}}getStackBox(t3){let e3=this.axis,i3=e3.chart,{boxTop:s2,defaultX:r2,xOffset:o2,width:n2,boxBottom:l}=t3,d=e3.stacking.usePercentage?100:h(s2,this.total,0),c=e3.toPixels(d),p=t3.xAxis||i3.xAxis[0],u=h(r2,p.translate(this.x))+o2,g=Math.abs(c-e3.toPixels(l||a(e3.min)&&e3.logarithmic&&e3.logarithmic.lin2log(e3.min)||0)),f=i3.inverted,m=this.isNegative;return f?{x:(m?c:c-g)-i3.plotLeft,y:p.height-u-n2+p.top-i3.plotTop,width:g,height:n2}:{x:u+p.transB-i3.plotLeft,y:(m?c-g:c)-i3.plotTop,width:n2,height:g}}}})),i(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r){var o;let{getDeferredAnimation:n}=t2,{series:{prototype:a}}=i2,{addEvent:h,correctFloat:l,defined:d,destroyObjectProperties:c,fireEvent:p,isArray:u,isNumber:g,objectEach:f,pick:m}=r;function x(){let t3=this.inverted;this.axes.forEach((t4=>{t4.stacking&&t4.stacking.stacks&&t4.hasVisibleSeries&&(t4.stacking.oldStacks=t4.stacking.stacks)})),this.series.forEach((e3=>{let i3=e3.xAxis&&e3.xAxis.options||{};e3.options.stacking&&e3.reserveSpace()&&(e3.stackKey=[e3.type,m(e3.options.stack,""),t3?i3.top:i3.left,t3?i3.height:i3.width].join(","))}))}function y(){var _a;let t3=this.stacking;if(t3){let e3=t3.stacks;f(e3,((t4,i3)=>{c(t4),delete e3[i3]})),(_a=t3.stackTotalGroup)==null?void 0:_a.destroy()}}function b(){this.stacking||(this.stacking=new w2(this))}function v(t3,e3,i3,s2){return!d(t3)||t3.x!==e3||s2&&t3.stackKey!==s2?t3={x:e3,index:0,key:s2,stackKey:s2}:t3.index++,t3.key=[i3,e3,t3.index].join(","),t3}function S(){let t3;let e3=this,i3=e3.yAxis,s2=e3.stackKey||"",r2=i3.stacking.stacks,o2=e3.processedXData,n2=e3.options.stacking,a2=e3[n2+"Stacker"];a2&&[s2,"-"+s2].forEach((i4=>{var _a;let s3=o2.length,n3,h2,l2;for(;s3--;)n3=o2[s3],t3=e3.getStackIndicator(t3,n3,e3.index,i4),h2=(_a=r2[i4])==null?void 0:_a[n3],(l2=h2==null?void 0:h2.points[t3.key||""])&&a2.call(e3,l2,h2,s3)}))}function C(t3,e3,i3){let s2=e3.total?100/e3.total:0;t3[0]=l(t3[0]*s2),t3[1]=l(t3[1]*s2),this.stackedYData[i3]=t3[1]}function k(t3){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?a.setStackedPoints.call(this,t3,"group"):t3.stacking.resetStacks())}function M(t3,e3){var _a,_b;let i3,r2,o2,n2,a2,h2,c2,p2,g2;let f2=e3||this.options.stacking;if(!f2||!this.reserveSpace()||({group:"xAxis"}[f2]||"yAxis")!==t3.coll)return;let x2=this.processedXData,y2=this.processedYData,b2=[],v2=y2.length,S2=this.options,C2=S2.threshold||0,k2=S2.startFromThreshold?C2:0,M2=S2.stack,w3=e3?`${this.type},${f2}`:this.stackKey||"",T="-"+w3,A=this.negStacks,P=t3.stacking,L=P.stacks,O=P.oldStacks;for(P.stacksTouched+=1,c2=0;c20&&false===this.singleStacks&&(o2.points[h2][0]=o2.points[this.index+","+p2+",0"][0])):(delete o2.points[h2],delete o2.points[this.index]);let e4=o2.total||0;"percent"===f2?(n2=r2?w3:T,e4=A&&((_b=L[n2])==null?void 0:_b[p2])?(n2=L[n2][p2]).total=Math.max(n2.total||0,e4)+Math.abs(g2)||0:l(e4+(Math.abs(g2)||0))):"group"===f2?(u(g2)&&(g2=g2[0]),null!==g2&&e4++):e4=l(e4+(g2||0)),"group"===f2?o2.cumulative=(e4||1)-1:o2.cumulative=l(m(o2.cumulative,k2)+(g2||0)),o2.total=e4,null!==g2&&(o2.points[h2].push(o2.cumulative),b2[c2]=o2.cumulative,o2.hasValidPoints=true)}"percent"===f2&&(P.usePercentage=true),"group"!==f2&&(this.stackedYData=b2),P.oldStacks={}}class w2{constructor(t3){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t3}buildStacks(){let t3,e3;let i3=this.axis,s2=i3.series,r2="xAxis"===i3.coll,o2=i3.options.reversedStacks,n2=s2.length;for(this.resetStacks(),this.usePercentage=false,e3=n2;e3--;)t3=s2[o2?e3:n2-e3-1],r2&&t3.setGroupedPoints(i3),t3.setStackedPoints(i3);if(!r2)for(e3=0;e3{f(t3,(t4=>{t4.cumulative=t4.total}))})))}resetStacks(){f(this.stacks,(t3=>{f(t3,((e3,i3)=>{g(e3.touched)&&e3.touched{f(t4,(t5=>{t5.render(o2)}))})),o2.animate({opacity:1},r2)}}return(o||(o={})).compose=function(t3,e3,i3){let s2=e3.prototype,r2=i3.prototype;s2.getStacks||(h(t3,"init",b),h(t3,"destroy",y),s2.getStacks=x,r2.getStackIndicator=v,r2.modifyStacks=S,r2.percentStacker=C,r2.setGroupedPoints=k,r2.setStackedPoints=M)},o})),i(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{defined:s,merge:r,isObject:o}=i2;class n extends t2{drawGraph(){let t3=this.options,e3=(this.gappedPath||this.getGraphPath).call(this),i3=this.chart.styledMode;[this,...this.zones].forEach(((s2,n2)=>{let a,h=s2.graph,l=h?"animate":"attr",d=s2.dashStyle||t3.dashStyle;h?(h.endX=this.preventGraphAnimation?null:e3.xMap,h.animate({d:e3})):e3.length&&(s2.graph=h=this.chart.renderer.path(e3).addClass("highcharts-graph"+(n2?` highcharts-zone-graph-${n2-1} `:" ")+(n2&&s2.className||"")).attr({zIndex:1}).add(this.group)),h&&!i3&&(a={stroke:!n2&&t3.lineColor||s2.color||this.color||"#cccccc","stroke-width":t3.lineWidth||0,fill:this.fillGraph&&this.color||"none"},d?a.dashstyle=d:"square"!==t3.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),h[l](a).shadow(n2<2&&t3.shadow&&r({filterUnits:"userSpaceOnUse"},o(t3.shadow)?t3.shadow:{}))),h&&(h.startX=e3.xMap,h.isArea=e3.isArea)}))}getGraphPath(t3,e3,i3){let r2=this,o2=r2.options,n2=[],a=[],h,l=o2.step,d=(t3=t3||r2.points).reversed;return d&&t3.reverse(),(l={right:1,center:2}[l]||l&&3)&&d&&(l=4-l),(t3=this.getValidPoints(t3,false,!(o2.connectNulls&&!e3&&!i3))).forEach((function(d2,c){let p;let u=d2.plotX,g=d2.plotY,f=t3[c-1],m=d2.isNull||"number"!=typeof g;(d2.leftCliff||f&&f.rightCliff)&&!i3&&(h=true),m&&!s(e3)&&c>0?h=!o2.connectNulls:m&&!e3?h=true:(0===c||h?p=[["M",d2.plotX,d2.plotY]]:r2.getPointSpline?p=[r2.getPointSpline(t3,d2,c)]:l?(p=1===l?[["L",f.plotX,g]]:2===l?[["L",(f.plotX+u)/2,f.plotY],["L",(f.plotX+u)/2,g]]:[["L",u,f.plotY]]).push(["L",u,g]):p=[["L",u,g]],a.push(d2.x),l&&(a.push(d2.x),2===l&&a.push(d2.x)),n2.push.apply(n2,p),h=false)})),n2.xMap=a,r2.graphPath=n2,n2}}return n.defaultOptions=r(t2.defaultOptions,{legendSymbol:"lineMarker"}),e2.registerSeriesType("line",n),n})),i(e,"Series/Area/AreaSeriesDefaults.js",[],(function(){return{threshold:0,legendSymbol:"areaMarker"}})),i(e,"Series/Area/AreaSeries.js",[e["Series/Area/AreaSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{seriesTypes:{line:s}}=e2,{extend:r,merge:o,objectEach:n,pick:a}=i2;class h extends s{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t3,options:e3}=this;[this,...this.zones].forEach(((i3,s2)=>{let r2={},o2=i3.fillColor||e3.fillColor,n2=i3.area,a2=n2?"animate":"attr";n2?(n2.endX=this.preventGraphAnimation?null:t3.xMap,n2.animate({d:t3})):(r2.zIndex=0,(n2=i3.area=this.chart.renderer.path(t3).addClass("highcharts-area"+(s2?` highcharts-zone-area-${s2-1} `:" ")+(s2&&i3.className||"")).add(this.group)).isArea=true),this.chart.styledMode||(r2.fill=o2||i3.color||this.color,r2["fill-opacity"]=o2?1:e3.fillOpacity??.75,n2.css({pointerEvents:this.stickyTracking?"none":"auto"})),n2[a2](r2),n2.startX=t3.xMap,n2.shiftUnit=e3.step?2:1}))}getGraphPath(t3){let e3,i3,r2;let o2=s.prototype.getGraphPath,n2=this.options,h2=n2.stacking,l=this.yAxis,d=[],c=[],p=this.index,u=l.stacking.stacks[this.stackKey],g=n2.threshold,f=Math.round(l.getThreshold(n2.threshold)),m=a(n2.connectNulls,"percent"===h2),x=function(i4,s2,r3){let o3=t3[i4],n3=h2&&u[o3.x].points[p],a2=o3[r3+"Null"]||0,m2=o3[r3+"Cliff"]||0,x2,y2,b2=true;m2||a2?(x2=(a2?n3[0]:n3[1])+m2,y2=n3[0]+m2,b2=!!a2):!h2&&t3[s2]&&t3[s2].isNull&&(x2=y2=g),void 0!==x2&&(c.push({plotX:e3,plotY:null===x2?f:l.getThreshold(x2),isNull:b2,isCliff:true}),d.push({plotX:e3,plotY:null===y2?f:l.getThreshold(y2),doCurve:false}))};t3=t3||this.points,h2&&(t3=this.getStackPoints(t3));for(let s2=0,o3=t3.length;s21&&h2&&c.some((t4=>t4.isCliff))&&(S.hasStackedCliffs=C.hasStackedCliffs=true),S.xMap=y.xMap,this.areaPath=S,C}getStackPoints(t3){let e3=this,i3=[],s2=[],r2=this.xAxis,o2=this.yAxis,h2=o2.stacking.stacks[this.stackKey],l={},d=o2.series,c=d.length,p=o2.options.reversedStacks?1:-1,u=d.indexOf(e3);if(t3=t3||this.points,this.options.stacking){for(let e4=0;e4t4.visible));s2.forEach((function(t4,n2){let f=0,m,x;if(l[t4]&&!l[t4].isNull)i3.push(l[t4]),[-1,1].forEach((function(i4){let r3=1===i4?"rightNull":"leftNull",o3=h2[s2[n2+i4]],a2=0;if(o3){let i5=u;for(;i5>=0&&i5=0&&e4i4&&o2>l?(o2=Math.max(i4,l),a=2*l-o2):o2p2&&a>l?(a=Math.max(p2,l),o2=2*l-a):a1){let r2=this.xAxis.series.filter((t4=>t4.visible)).map((t4=>t4.index)),o2=0,n2=0;b((_a=this.xAxis.stacking)==null?void 0:_a.stacks,(t4=>{if("number"==typeof i3.x){let e4=t4[i3.x.toString()];if(e4&&f(e4.points[this.index])){let t5=Object.keys(e4.points).filter((t6=>!t6.match(",")&&e4.points[t6]&&e4.points[t6].length>1)).map(parseFloat).filter((t6=>-1!==r2.indexOf(t6))).sort(((t6,e5)=>e5-t6));o2=t5.indexOf(this.index),n2=t5.length}}})),o2=this.xAxis.reversed?n2-1-o2:o2;let a2=(n2-1)*s2.paddedWidth+e3;t3=(i3.plotX||0)+a2/2-e3-o2*s2.paddedWidth}return t3}translate(){let t3=this,e3=t3.chart,i3=t3.options,s2=t3.dense=t3.closestPointRange*t3.xAxis.transA<2,o2=t3.borderWidth=y(i3.borderWidth,s2?0:1),n2=t3.xAxis,a2=t3.yAxis,h2=i3.threshold,l2=y(i3.minPointLength,5),c2=t3.getColumnMetrics(),u2=c2.width,f2=t3.pointXOffset=c2.offset,x2=t3.dataMin,b2=t3.dataMax,v2=t3.translatedThreshold=a2.getThreshold(h2),S=t3.barW=Math.max(u2,1+2*o2);i3.pointPadding&&(S=Math.ceil(S)),r.prototype.translate.apply(t3),t3.points.forEach((function(s3){let r2=y(s3.yBottom,v2),o3=999+Math.abs(r2),g2=s3.plotX||0,C=d(s3.plotY,-o3,a2.len+o3),k,M=Math.min(C,r2),w2=Math.max(C,r2)-M,T=u2,A=g2+f2,P=S;l2&&Math.abs(w2)l2?r2-l2:v2-(k?l2:0)),p(s3.options.pointWidth)&&(A-=Math.round(((T=P=Math.ceil(s3.options.pointWidth))-u2)/2)),i3.centerInCategory&&!i3.stacking&&(A=t3.adjustForMissingColumns(A,T,s3,c2)),s3.barX=A,s3.pointWidth=T,s3.tooltipPos=e3.inverted?[d(a2.len+a2.pos-e3.plotLeft-C,a2.pos-e3.plotLeft,a2.len+a2.pos-e3.plotLeft),n2.len+n2.pos-e3.plotTop-A-P/2,w2]:[n2.left-e3.plotLeft+A+P/2,d(C+a2.pos-e3.plotTop,a2.pos-e3.plotTop,a2.len+a2.pos-e3.plotTop),w2],s3.shapeType=t3.pointClass.prototype.shapeType||"roundedRect",s3.shapeArgs=t3.crispCol(A,s3.isNull?v2:M,P,s3.isNull?0:w2)})),g(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t3,e3){let i3=this.options,s2=this.pointAttrToOptions||{},r2=s2.stroke||"borderColor",o2=s2["stroke-width"]||"borderWidth",n2,a2,l2,d2=t3&&t3.color||this.color,c2=t3&&t3[r2]||i3[r2]||d2,p2=t3&&t3.options.dashStyle||i3.dashStyle,u2=t3&&t3[o2]||i3[o2]||this[o2]||0,g2=y(t3&&t3.opacity,i3.opacity,1);t3&&this.zones.length&&(a2=t3.getZone(),d2=t3.options.color||a2&&(a2.color||t3.nonZonedColor)||this.color,a2&&(c2=a2.borderColor||c2,p2=a2.dashStyle||p2,u2=a2.borderWidth||u2)),e3&&t3&&(l2=(n2=x(i3.states[e3],t3.options.states&&t3.options.states[e3]||{})).brightness,d2=n2.color||void 0!==l2&&h(d2).brighten(n2.brightness).get()||d2,c2=n2[r2]||c2,u2=n2[o2]||u2,p2=n2.dashStyle||p2,g2=y(n2.opacity,g2));let f2={fill:d2,stroke:c2,"stroke-width":u2,opacity:g2};return p2&&(f2.dashstyle=p2),f2}drawPoints(t3=this.points){let e3;let i3=this,s2=this.chart,r2=i3.options,o2=s2.renderer,n2=r2.animationLimit||250;t3.forEach((function(t4){let a2=t4.plotY,h2=t4.graphic,l2=!!h2,d2=h2&&s2.pointCountt4==null?void 0:t4.enabled))}function i3(t4,e4,i4,s3,r2){var _a;let{chart:o2,enabledDataSorting:h2}=this,l2=this.isCartesian&&o2.inverted,d2=t4.plotX,p2=t4.plotY,g2=i4.rotation||0,f2=n(d2)&&n(p2)&&o2.isInsidePlot(d2,Math.round(p2),{inverted:l2,paneCoordinates:true,series:this}),m2=0===g2&&"justify"===u(i4.overflow,h2?"none":"justify"),x2=this.visible&&false!==t4.visible&&n(d2)&&(t4.series.forceDL||h2&&!m2||f2||u(i4.inside,!!this.options.stacking)&&s3&&o2.isInsidePlot(d2,l2?s3.x+1:s3.y+s3.height-1,{inverted:l2,paneCoordinates:true,series:this})),y2=t4.pos();if(x2&&y2){var b2;let n2=e4.getBBox(),d3=e4.getBBox(void 0,0),p3={right:1,center:.5}[i4.align||0]||0,v2={bottom:1,middle:.5}[i4.verticalAlign||0]||0;if(s3=a({x:y2[0],y:Math.round(y2[1]),width:0,height:0},s3||{}),"plotEdges"===i4.alignTo&&this.isCartesian&&(s3[l2?"x":"y"]=0,s3[l2?"width":"height"]=((_a=this.yAxis)==null?void 0:_a.len)||0),a(i4,{width:n2.width,height:n2.height}),b2=s3,h2&&this.xAxis&&!m2&&this.setDataLabelStartPos(t4,e4,r2,f2,b2),e4.align(c(i4,{width:d3.width,height:d3.height}),false,s3,false),e4.alignAttr.x+=p3*(d3.width-n2.width),e4.alignAttr.y+=v2*(d3.height-n2.height),e4[e4.placed?"animate":"attr"]({x:e4.alignAttr.x+(n2.width-d3.width)/2,y:e4.alignAttr.y+(n2.height-d3.height)/2,rotationOriginX:(e4.width||0)/2,rotationOriginY:(e4.height||0)/2}),m2&&s3.height>=0)this.justifyDataLabel(e4,i4,e4.alignAttr,n2,s3,r2);else if(u(i4.crop,true)){let{x:t5,y:i5}=e4.alignAttr;x2=o2.isInsidePlot(t5,i5,{paneCoordinates:true,series:this})&&o2.isInsidePlot(t5+n2.width-1,i5+n2.height-1,{paneCoordinates:true,series:this})}i4.shape&&!g2&&e4[r2?"attr":"animate"]({anchorX:y2[0],anchorY:y2[1]})}r2&&h2&&(e4.placed=false),x2||h2&&!m2?(e4.show(),e4.placed=true):(e4.hide(),e4.placed=false)}function s2(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function m(t4){let e4=this.hasRendered||0,i4=this.initDataLabelsGroup().attr({opacity:+e4});return!e4&&i4&&(this.visible&&i4.show(),this.options.animation?i4.animate({opacity:1},t4):i4.attr({opacity:1})),i4}function x(t4){var _a;let e4;t4=t4||this.points;let i4=this,s3=i4.chart,a2=i4.options,l2=s3.renderer,{backgroundColor:c2,plotBackgroundColor:m2}=s3.options.chart,x2=l2.getContrast(d(m2)&&m2||d(c2)&&c2||"#000000"),y2=v(i4),{animation:S2,defer:C}=y2[0],k=C?r(s3,S2,i4):{defer:0,duration:0};h(this,"drawDataLabels"),((_a=i4.hasDataLabels)==null?void 0:_a.call(i4))&&(e4=this.initDataLabels(k),t4.forEach((t5=>{var _a2,_b;let r2=t5.dataLabels||[];f(b(y2,t5.dlOptions||((_a2=t5.options)==null?void 0:_a2.dataLabels))).forEach(((c4,f2)=>{let m3=c4.enabled&&(t5.visible||t5.dataLabelOnHidden)&&(!t5.isNull||t5.dataLabelOnNull)&&function(t6,e5){let i5=e5.filter;if(i5){let e6=i5.operator,s4=t6[i5.property],r3=i5.value;return">"===e6&&s4>r3||"<"===e6&&s4="===e6&&s4>=r3||"<="===e6&&s4<=r3||"=="===e6&&s4==r3||"==="===e6&&s4===r3||"!="===e6&&s4!=r3||"!=="===e6&&s4!==r3}return true}(t5,c4),{backgroundColor:y3,borderColor:b2,distance:v2,style:S3={}}=c4,C2,k2,M,w2,T={},A=r2[f2],P=!A,L;m3&&(k2=u(c4[t5.formatPrefix+"Format"],c4.format),C2=t5.getLabelConfig(),M=n(k2)?o(k2,C2,s3):(c4[t5.formatPrefix+"Formatter"]||c4.formatter).call(C2,c4),w2=c4.rotation,!s3.styledMode&&(S3.color=u(c4.color,S3.color,d(i4.color)?i4.color:void 0,"#000000"),"contrast"===S3.color?("none"!==y3&&(L=y3),t5.contrastColor=l2.getContrast("auto"!==L&&L||t5.color||i4.color),S3.color=L||!n(v2)&&c4.inside||0>g(v2||0)||a2.stacking?t5.contrastColor:x2):delete t5.contrastColor,a2.cursor&&(S3.cursor=a2.cursor)),T={r:c4.borderRadius||0,rotation:w2,padding:c4.padding,zIndex:1},s3.styledMode||(T.fill="auto"===y3?t5.color:y3,T.stroke="auto"===b2?t5.color:b2,T["stroke-width"]=c4.borderWidth),p(T,((t6,e5)=>{void 0===t6&&delete T[e5]}))),!A||m3&&n(M)&&!!A.div==!!c4.useHTML&&(A.rotation&&c4.rotation||A.rotation===c4.rotation)||(A=void 0,P=true),m3&&n(M)&&(A?T.text=M:(A=l2.label(M,0,0,c4.shape,void 0,void 0,c4.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t5.colorIndex+" "+(c4.className||"")+(c4.useHTML?" highcharts-tracker":"")),A&&(A.options=c4,A.attr(T),s3.styledMode?S3.width&&A.css({width:S3.width,textOverflow:S3.textOverflow}):A.css(S3).shadow(c4.shadow),h(A,"beforeAddingDataLabel",{labelOptions:c4,point:t5}),A.added||A.add(e4),i4.alignDataLabel(t5,A,c4,void 0,P),A.isActive=true,r2[f2]&&r2[f2]!==A&&r2[f2].destroy(),r2[f2]=A))}));let c3=r2.length;for(;c3--;)r2[c3]&&r2[c3].isActive?r2[c3].isActive=false:((_b=r2[c3])==null?void 0:_b.destroy(),r2.splice(c3,1));t5.dataLabel=r2[0],t5.dataLabels=r2}))),h(this,"afterDrawDataLabels")}function y(t4,e4,i4,s3,r2,o2){let n2=this.chart,a2=e4.align,h2=e4.verticalAlign,l2=t4.box?0:t4.padding||0,d2=n2.inverted?this.yAxis:this.xAxis,c2=d2?d2.left-n2.plotLeft:0,p2=n2.inverted?this.xAxis:this.yAxis,u2=p2?p2.top-n2.plotTop:0,{x:g2=0,y:f2=0}=e4,m2,x2;return(m2=(i4.x||0)+l2+c2)<0&&("right"===a2&&g2>=0?(e4.align="left",e4.inside=true):g2-=m2,x2=true),(m2=(i4.x||0)+s3.width-l2+c2)>n2.plotWidth&&("left"===a2&&g2<=0?(e4.align="right",e4.inside=true):g2+=n2.plotWidth-m2,x2=true),(m2=i4.y+l2+u2)<0&&("bottom"===h2&&f2>=0?(e4.verticalAlign="top",e4.inside=true):f2-=m2,x2=true),(m2=(i4.y||0)+s3.height-l2+u2)>n2.plotHeight&&("top"===h2&&f2<=0?(e4.verticalAlign="bottom",e4.inside=true):f2+=n2.plotHeight-m2,x2=true),x2&&(e4.x=g2,e4.y=f2,t4.placed=!o2,t4.align(e4,void 0,r2)),x2}function b(t4,e4){let i4=[],s3;if(l(t4)&&!l(e4))i4=t4.map((function(t5){return c(t5,e4)}));else if(l(e4)&&!l(t4))i4=e4.map((function(e5){return c(t4,e5)}));else if(l(t4)||l(e4)){if(l(t4)&&l(e4))for(s3=Math.max(t4.length,e4.length);s3--;)i4[s3]=c(t4[s3],e4[s3])}else i4=c(t4,e4);return i4}function v(t4){var _a,_b;let e4=t4.chart.options.plotOptions;return f(b(b((_a=e4==null?void 0:e4.series)==null?void 0:_a.dataLabels,(_b=e4==null?void 0:e4[t4.type])==null?void 0:_b.dataLabels),t4.options.dataLabels))}function S(t4,e4,i4,s3,r2){let o2=this.chart,n2=o2.inverted,a2=this.xAxis,h2=a2.reversed,l2=((n2?e4.height:e4.width)||0)/2,d2=t4.pointWidth,c2=d2?d2/2:0;e4.startXPos=n2?r2.x:h2?-l2-c2:a2.width-l2+c2,e4.startYPos=n2?h2?this.yAxis.height-l2+c2:-l2-c2:r2.y,s3?"hidden"===e4.visibility&&(e4.show(),e4.attr({opacity:0}).animate({opacity:1})):e4.attr({opacity:1}).animate({opacity:0},void 0,e4.hide),o2.hasRendered&&(i4&&e4.attr({x:e4.startXPos,y:e4.startYPos}),e4.placed=true)}t3.compose=function(t4){let r2=t4.prototype;r2.initDataLabels||(r2.initDataLabels=m,r2.initDataLabelsGroup=s2,r2.alignDataLabel=i3,r2.drawDataLabels=x,r2.justifyDataLabel=y,r2.setDataLabelStartPos=S,r2.hasDataLabels=e3)}}(s||(s={})),s})),i(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){var r;let{composed:o}=e2,{series:n}=i2,{merge:a,pick:h,pushUnique:l}=s;return function(e3){function i3(t3,e4,i4,s2,r2){let o2=this.chart.inverted,l2=t3.series,d=(l2.xAxis?l2.xAxis.len:this.chart.plotSizeX)||0,c=(l2.yAxis?l2.yAxis.len:this.chart.plotSizeY)||0,p=t3.dlBox||t3.shapeArgs,u=h(t3.below,t3.plotY>h(this.translatedThreshold,c)),g=h(i4.inside,!!this.options.stacking);if(p){if(s2=a(p),!("allow"===i4.overflow&&false===i4.crop)){s2.y<0&&(s2.height+=s2.y,s2.y=0);let t4=s2.y+s2.height-c;t4>0&&t4 {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}})),i(e,"Series/Scatter/ScatterSeries.js",[e["Series/Scatter/ScatterSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{column:s,line:r}=e2.seriesTypes,{addEvent:o,extend:n,merge:a}=i2;class h extends r{applyJitter(){let t3=this,e3=this.options.jitter,i3=this.points.length;e3&&this.points.forEach((function(s2,r2){["x","y"].forEach((function(o2,n2){if(e3[o2]&&!s2.isNull){let a2=`plot${o2.toUpperCase()}`,h2=t3[`${o2}Axis`],l=e3[o2]*h2.transA;if(h2&&!h2.logarithmic){let t4=Math.max(0,(s2[a2]||0)-l),e4=Math.min(h2.len,(s2[a2]||0)+l);s2[a2]=t4+(e4-t4)*function(t5){let e5=1e4*Math.sin(t5);return e5-Math.floor(e5)}(r2+n2*i3),"x"===o2&&(s2.clientX=s2.plotX)}}}))}))}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return h.defaultOptions=a(r.defaultOptions,t2),n(h.prototype,{drawTracker:s.prototype.drawTracker,sorted:false,requireSorting:false,noSharedTooltip:true,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),o(h,"afterTranslate",(function(){this.applyJitter()})),e2.registerSeriesType("scatter",h),h})),i(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){var s,r;let{deg2rad:o}=t2,{fireEvent:n,isNumber:a,pick:h,relativeLength:l}=i2;return(r=s||(s={})).getCenter=function(){let t3=this.options,i3=this.chart,s2=2*(t3.slicedOffset||0),r2=i3.plotWidth-2*s2,o2=i3.plotHeight-2*s2,d=t3.center,c=Math.min(r2,o2),p=t3.thickness,u,g=t3.size,f=t3.innerSize||0,m,x;"string"==typeof g&&(g=parseFloat(g)),"string"==typeof f&&(f=parseFloat(f));let y=[h(d[0],"50%"),h(d[1],"50%"),h(g&&g<0?void 0:t3.size,"100%"),h(f&&f<0?void 0:t3.innerSize||0,"0%")];for(!i3.angular||this instanceof e2||(y[3]=0),m=0;m<4;++m)x=y[m],u=m<2||2===m&&/%$/.test(x),y[m]=l(x,[r2,o2,c,y[2]][m])+(u?s2:0);return y[3]>y[2]&&(y[3]=y[2]),a(p)&&2*p0&&(y[3]=y[2]-2*p),n(this,"afterGetCenter",{positions:y}),y},r.getStartAndEndRadians=function(t3,e3){let i3=a(t3)?t3:0,s2=a(e3)&&e3>i3&&e3-i3<360?e3:i3+360;return{start:o*(i3+-90),end:o*(s2+-90)}},s})),i(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{setAnimation:s}=t2,{addEvent:r,defined:o,extend:n,isNumber:a,pick:h,relativeLength:l}=i2;class d extends e2{getConnectorPath(t3){let e3=t3.dataLabelPosition,i3=t3.options||{},s2=i3.connectorShape,r2=this.connectorShapes[s2]||s2;return e3&&r2.call(this,{...e3.computed,alignment:e3.alignment},e3.connectorPosition,i3)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t3){let e3=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e3.x,e3.y,e3.r+t3,e3.r+t3,{innerR:e3.r-1,start:e3.start,end:e3.end,borderRadius:e3.borderRadius})}constructor(t3,e3,i3){super(t3,e3,i3),this.half=0,this.name??(this.name="Slice");let s2=t4=>{this.slice("select"===t4.type)};r(this,"select",s2),r(this,"unselect",s2)}isValid(){return a(this.y)&&this.y>=0}setVisible(t3,e3=true){t3!==this.visible&&this.update({visible:t3??!this.visible},e3,void 0,false)}slice(t3,e3,i3){let r2=this.series;s(i3,r2.chart),e3=h(e3,true),this.sliced=this.options.sliced=t3=o(t3)?t3:!this.sliced,r2.options.data[r2.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return n(d.prototype,{connectorShapes:{fixedOffset:function(t3,e3,i3){let s2=e3.breakAt,r2=e3.touchingSliceAt,o2=i3.softConnector?["C",t3.x+("left"===t3.alignment?-5:5),t3.y,2*s2.x-r2.x,2*s2.y-r2.y,s2.x,s2.y]:["L",s2.x,s2.y];return[["M",t3.x,t3.y],o2,["L",r2.x,r2.y]]},straight:function(t3,e3){let i3=e3.touchingSliceAt;return[["M",t3.x,t3.y],["L",i3.x,i3.y]]},crookedLine:function(t3,e3,i3){let{breakAt:s2,touchingSliceAt:r2}=e3,{series:o2}=this,[n2,a2,h2]=o2.center,d2=h2/2,{plotLeft:c,plotWidth:p}=o2.chart,u="left"===t3.alignment,{x:g,y:f}=t3,m=s2.x;if(i3.crookDistance){let t4=l(i3.crookDistance,1);m=u?n2+d2+(p+c-n2-d2)*(1-t4):c+(n2-d2)*t4}else m=n2+(a2-f)*Math.tan((this.angle||0)-Math.PI/2);let x=[["M",g,f]];return(u?m<=g&&m>=s2.x:m>=g&&m<=s2.x)&&x.push(["L",m,f]),x.push(["L",s2.x,s2.y],["L",r2.x,r2.y]),x}}}),d})),i(e,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{borderRadius:3,center:[null,null],clip:false,colorByPoint:true,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:true,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:true,x:0},fillColor:void 0,ignoreHiddenPoint:true,inactiveOtherPoints:true,legendType:"point",marker:null,size:null,showInLegend:false,slicedOffset:10,stickyTracking:false,tooltip:{followPointer:true},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}})),i(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Series/Pie/PiePoint.js"],e["Series/Pie/PieSeriesDefaults.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o,n,a,h){let{getStartAndEndRadians:l}=t2,{noop:d}=i2,{clamp:c,extend:p,fireEvent:u,merge:g,pick:f}=h;class m extends o{animate(t3){let e3=this,i3=e3.points,s2=e3.startAngleRad;t3||i3.forEach((function(t4){let i4=t4.graphic,r2=t4.shapeArgs;i4&&r2&&(i4.attr({r:f(t4.startR,e3.center&&e3.center[3]/2),start:s2,end:s2}),i4.animate({r:r2.r,start:r2.start,end:r2.end},e3.options.animation))}))}drawEmpty(){let t3,e3;let i3=this.startAngleRad,s2=this.endAngleRad,r2=this.options;0===this.total&&this.center?(t3=this.center[0],e3=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t3,e3,this.center[1]/2,0,i3,s2).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(t3,e3,this.center[2]/2,0,{start:i3,end:s2,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r2.borderWidth,fill:r2.fillColor||"none",stroke:r2.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t3=this.chart.renderer;this.points.forEach((function(e3){e3.graphic&&e3.hasNewShapeType()&&(e3.graphic=e3.graphic.destroy()),e3.graphic||(e3.graphic=t3[e3.shapeType](e3.shapeArgs).add(e3.series.group),e3.delayedRendering=true)}))}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t3,e3,i3,s2){let r2=this.center,o2=this.radii?this.radii[i3.index]||0:r2[2]/2,n2=s2.dataLabelPosition,a2=(n2==null?void 0:n2.distance)||0,h2=Math.asin(c((t3-r2[1])/(o2+a2),-1,1));return r2[0]+Math.cos(h2)*(o2+a2)*(e3?-1:1)+(a2>0?(e3?-1:1)*(s2.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let t3,e3,i3,s2;let r2=this,o2=r2.chart;this.drawEmpty(),r2.group&&!o2.styledMode&&r2.group.shadow(r2.options.shadow),r2.points.forEach((function(n2){let a2={};e3=n2.graphic,!n2.isNull&&e3?(s2=n2.shapeArgs,t3=n2.getTranslate(),o2.styledMode||(i3=r2.pointAttribs(n2,n2.selected&&"select")),n2.delayedRendering?(e3.setRadialReference(r2.center).attr(s2).attr(t3),o2.styledMode||e3.attr(i3).attr({"stroke-linejoin":"round"}),n2.delayedRendering=false):(e3.setRadialReference(r2.center),o2.styledMode||g(true,a2,i3),g(true,a2,s2,t3),e3.animate(a2)),e3.attr({visibility:n2.visible?"inherit":"hidden"}),e3.addClass(n2.getClassName(),true)):e3&&(n2.graphic=e3.destroy())}))}sortByAngle(t3,e3){t3.sort((function(t4,i3){return void 0!==t4.angle&&(i3.angle-t4.angle)*e3}))}translate(t3){u(this,"translate"),this.generatePoints();let e3=this.options,i3=e3.slicedOffset,s2=l(e3.startAngle,e3.endAngle),r2=this.startAngleRad=s2.start,o2=(this.endAngleRad=s2.end)-r2,n2=this.points,a2=e3.ignoreHiddenPoint,h2=n2.length,d2,c2,p2,g2,f2,m2,x,y=0;for(t3||(this.center=t3=this.getCenter()),m2=0;m21.5*Math.PI?p2-=2*Math.PI:p2<-Math.PI/2&&(p2+=2*Math.PI),x.slicedTranslation={translateX:Math.round(Math.cos(p2)*i3),translateY:Math.round(Math.sin(p2)*i3)},g2=Math.cos(p2)*t3[2]/2,f2=Math.sin(p2)*t3[2]/2,x.tooltipPos=[t3[0]+.7*g2,t3[1]+.7*f2],x.half=p2<-Math.PI/2||p2>Math.PI/2?1:0,x.angle=p2}u(this,"afterTranslate")}updateTotals(){let t3=this.points,e3=t3.length,i3=this.options.ignoreHiddenPoint,s2,r2,o2=0;for(s2=0;s20&&(r2.visible||!i3)?r2.y/o2*100:0,r2.total=o2}}return m.defaultOptions=g(o.defaultOptions,r),p(m.prototype,{axisTypes:[],directTouch:true,drawGraph:void 0,drawTracker:e2.prototype.drawTracker,getCenter:t2.getCenter,getSymbol:d,invertible:false,isCartesian:false,noSharedTooltip:true,pointAttribs:e2.prototype.pointAttribs,pointClass:s,requireSorting:false,searchPoint:d,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("pie",m),m})),i(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r){var o;let{composed:n,noop:a}=e2,{distribute:h}=i2,{series:l}=s,{arrayMax:d,clamp:c,defined:p,pick:u,pushUnique:g,relativeLength:f}=r;return function(e3){let i3={radialDistributionY:function(t3,e4){var _a;return(((_a=e4.dataLabelPosition)==null?void 0:_a.top)||0)+t3.distributeBox.pos},radialDistributionX:function(t3,e4,i4,s3,r3){let o3=r3.dataLabelPosition;return t3.getX(i4<((o3==null?void 0:o3.top)||0)+2||i4>((o3==null?void 0:o3.bottom)||0)-2?s3:i4,e4.half,e4,r3)},justify:function(t3,e4,i4,s3){var _a;return s3[0]+(t3.half?-1:1)*(i4+(((_a=e4.dataLabelPosition)==null?void 0:_a.distance)||0))},alignToPlotEdges:function(t3,e4,i4,s3){let r3=t3.getBBox().width;return e4?r3+s3:i4-r3-s3},alignToConnectors:function(t3,e4,i4,s3){let r3=0,o3;return t3.forEach((function(t4){(o3=t4.dataLabel.getBBox().width)>r3&&(r3=o3)})),e4?r3+s3:i4-r3-s3}};function s2(t3,e4){let{center:i4,options:s3}=this,r3=i4[2]/2,o3=t3.angle||0,n2=Math.cos(o3),a2=Math.sin(o3),h2=i4[0]+n2*r3,l2=i4[1]+a2*r3,d2=Math.min((s3.slicedOffset||0)+(s3.borderWidth||0),e4/5);return{natural:{x:h2+n2*e4,y:l2+a2*e4},computed:{},alignment:e4<0?"center":t3.half?"right":"left",connectorPosition:{breakAt:{x:h2+n2*d2,y:l2+a2*d2},touchingSliceAt:{x:h2,y:l2}},distance:e4}}function r2(){var _a;let t3=this,e4=t3.points,i4=t3.chart,s3=i4.plotWidth,r3=i4.plotHeight,o3=i4.plotLeft,n2=Math.round(i4.chartWidth/3),a2=t3.center,c2=a2[2]/2,g2=a2[1],m2=[[],[]],x=[0,0,0,0],y=t3.dataLabelPositioners,b,v,S,C=0;t3.visible&&((_a=t3.hasDataLabels)==null?void 0:_a.call(t3))&&(e4.forEach((t4=>{(t4.dataLabels||[]).forEach((t5=>{t5.shortened&&(t5.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t5.shortened=false)}))})),l.prototype.drawDataLabels.apply(t3),e4.forEach((t4=>{(t4.dataLabels||[]).forEach(((e5,i5)=>{var _a2;let s4=a2[2]/2,r4=e5.options,o4=f((r4==null?void 0:r4.distance)||0,s4);0===i5&&m2[t4.half].push(t4),!p((_a2=r4==null?void 0:r4.style)==null?void 0:_a2.width)&&e5.getBBox().width>n2&&(e5.css({width:Math.round(.7*n2)+"px"}),e5.shortened=true),e5.dataLabelPosition=this.getDataLabelPosition(t4,o4),C=Math.max(C,o4)}))})),m2.forEach(((e5,n3)=>{let l2=e5.length,d2=[],f2,m3,b2=0,k;l2&&(t3.sortByAngle(e5,n3-.5),C>0&&(f2=Math.max(0,g2-c2-C),m3=Math.min(g2+c2+C,i4.plotHeight),e5.forEach((t4=>{(t4.dataLabels||[]).forEach((e6=>{var _a2;let s4=e6.dataLabelPosition;s4&&s4.distance>0&&(s4.top=Math.max(0,g2-c2-s4.distance),s4.bottom=Math.min(g2+c2+s4.distance,i4.plotHeight),b2=e6.getBBox().height||21,e6.lineHeight=i4.renderer.fontMetrics(e6.text||e6).h+2*e6.padding,t4.distributeBox={target:(((_a2=e6.dataLabelPosition)==null?void 0:_a2.natural.y)||0)-s4.top+e6.lineHeight/2,size:b2,rank:t4.y},d2.push(t4.distributeBox))}))})),h(d2,k=m3+b2-f2,k/5)),e5.forEach((i5=>{(i5.dataLabels||[]).forEach((h2=>{let l3=h2.options||{},g3=i5.distributeBox,f3=h2.dataLabelPosition,m4=(f3==null?void 0:f3.natural.y)||0,b3=l3.connectorPadding||0,C2=h2.lineHeight||21,k2=(C2-h2.getBBox().height)/2,M=0,w2=m4,T="inherit";if(f3){if(d2&&p(g3)&&f3.distance>0&&(void 0===g3.pos?T="hidden":(S=g3.size,w2=y.radialDistributionY(i5,h2))),l3.justify)M=y.justify(i5,h2,c2,a2);else switch(l3.alignTo){case"connectors":M=y.alignToConnectors(e5,n3,s3,o3);break;case"plotEdges":M=y.alignToPlotEdges(h2,n3,s3,o3);break;default:M=y.radialDistributionX(t3,i5,w2-k2,m4,h2)}if(f3.attribs={visibility:T,align:f3.alignment},f3.posAttribs={x:M+(l3.x||0)+({left:b3,right:-b3}[f3.alignment]||0),y:w2+(l3.y||0)-C2/2},f3.computed.x=M,f3.computed.y=w2-k2,u(l3.crop,true)){let t4;M-(v=h2.getBBox().width)s3-b3&&0===n3&&(t4=Math.round(M+v-s3+b3),x[1]=Math.max(t4,x[1])),w2-S/2<0?x[0]=Math.max(Math.round(-w2+S/2),x[0]):w2+S/2>r3&&(x[2]=Math.max(Math.round(w2+S/2-r3),x[2])),f3.sideOverflow=t4}}}))})))})),(0===d(x)||this.verifyDataLabelOverflow(x))&&(this.placeDataLabels(),this.points.forEach((e5=>{(e5.dataLabels||[]).forEach((s4=>{var _a2;let{connectorColor:r4,connectorWidth:o4=1}=s4.options||{},n3=s4.dataLabelPosition;if(o4){let a3;b=s4.connector,n3&&n3.distance>0?(a3=!b,b||(s4.connector=b=i4.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e5.colorIndex+(e5.className?" "+e5.className:"")).add(t3.dataLabelsGroup)),i4.styledMode||b.attr({"stroke-width":o4,stroke:r4||e5.color||"#666666"}),b[a3?"attr":"animate"]({d:e5.getConnectorPath(s4)}),b.attr({visibility:(_a2=n3.attribs)==null?void 0:_a2.visibility})):b&&(s4.connector=b.destroy())}}))}))))}function o2(){this.points.forEach((t3=>{(t3.dataLabels||[]).forEach((t4=>{var _a;let e4=t4.dataLabelPosition;e4?(e4.sideOverflow&&(t4.css({width:Math.max(t4.getBBox().width-e4.sideOverflow,0)+"px",textOverflow:(((_a=t4.options)==null?void 0:_a.style)||{}).textOverflow||"ellipsis"}),t4.shortened=true),t4.attr(e4.attribs),t4[t4.moved?"animate":"attr"](e4.posAttribs),t4.moved=true):t4&&t4.attr({y:-9999})})),delete t3.distributeBox}),this)}function m(t3){let e4=this.center,i4=this.options,s3=i4.center,r3=i4.minSize||80,o3=r3,n2=null!==i4.size;return!n2&&(null!==s3[0]?o3=Math.max(e4[2]-Math.max(t3[1],t3[3]),r3):(o3=Math.max(e4[2]-t3[1]-t3[3],r3),e4[0]+=(t3[3]-t3[1])/2),null!==s3[1]?o3=c(o3,r3,e4[2]-Math.max(t3[0],t3[2])):(o3=c(o3,r3,e4[2]-t3[0]-t3[2]),e4[1]+=(t3[0]-t3[2])/2),o3(t4.x+=e4.x,t4.y+=e4.y,t4)),{x:0,y:0});return{x:e3.x/t3.length,y:e3.y/t3.length}},e2.getDistanceBetweenPoints=function(t3,e3){return Math.sqrt(Math.pow(e3.x-t3.x,2)+Math.pow(e3.y-t3.y,2))},e2.getAngleBetweenPoints=function(t3,e3){return Math.atan2(e3.x-t3.x,e3.y-t3.y)},e2.pointInPolygon=function({x:t3,y:e3},i2){let s=i2.length,r,o,n=false;for(r=0,o=s-1;re3!=l>e3&&t3<(h-s2)*(e3-a)/(l-a)+s2&&(n=!n)}return n},t2})),i(e,"Extensions/OverlappingDataLabels.js",[e["Core/Geometry/GeometryUtilities.js"],e["Core/Utilities.js"]],(function(t2,e2){let{pointInPolygon:i2}=t2,{addEvent:s,fireEvent:r,objectEach:o,pick:n}=e2;function a(t3){let e3=t3.length,s2=(t4,e4)=>!(e4.x>=t4.x+t4.width||e4.x+e4.width<=t4.x||e4.y>=t4.y+t4.height||e4.y+e4.height<=t4.y),o2=(t4,e4)=>{for(let s3 of t4)if(i2({x:s3[0],y:s3[1]},e4))return true;return false},n2,a2,l2,d,c,p=false;for(let i3=0;i3(e4.labelrank||0)-(t4.labelrank||0)));for(let i3=0;i3{o(t4,(t5=>{t5.label&&e3.push(t5.label)}))}));for(let i3 of t3.series||[])if(i3.visible&&((_a=i3.hasDataLabels)==null?void 0:_a.call(i3))){let s2=i4=>{for(let s3 of i4)s3.visible&&(s3.dataLabels||[]).forEach((i5=>{var _a2;let r2=i5.options||{};i5.labelrank=n(r2.labelrank,s3.labelrank,(_a2=s3.shapeArgs)==null?void 0:_a2.height),r2.allowOverlap??Number(r2.distance)>0?(i5.oldOpacity=i5.opacity,i5.newOpacity=1,h(i5,t3)):e3.push(i5)}))};s2(i3.nodes||[]),s2(i3.points)}this.hideOverlappingLabels(e3)}return{compose:function(t3){let e3=t3.prototype;e3.hideOverlappingLabels||(e3.hideOverlappingLabels=a,s(t3,"render",l))}}})),i(e,"Extensions/BorderRadius.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{defaultOptions:s}=t2,{noop:r}=e2,{addEvent:o,extend:n,isObject:a,merge:h,relativeLength:l}=i2,d={radius:0,scope:"stack",where:void 0},c=r,p=r;function u(t3,e3,i3,s2,r2={}){let o2=c(t3,e3,i3,s2,r2),{innerR:n2=0,r:a2=i3,start:h2=0,end:d2=0}=r2;if(r2.open||!r2.borderRadius)return o2;let p2=d2-h2,g2=Math.sin(p2/2),f2=Math.max(Math.min(l(r2.borderRadius||0,a2-n2),(a2-n2)/2,a2*g2/(1+g2)),0),m2=Math.min(f2,p2/Math.PI*2*n2),x2=o2.length-1;for(;x2--;)!function(t4,e4,i4){let s3,r3,o3;let n3=t4[e4],a3=t4[e4+1];if("Z"===a3[0]&&(a3=t4[0]),("M"===n3[0]||"L"===n3[0])&&"A"===a3[0]?(s3=n3,r3=a3,o3=true):"A"===n3[0]&&("M"===a3[0]||"L"===a3[0])&&(s3=a3,r3=n3),s3&&r3&&r3.params){let n4=r3[1],a4=r3[5],h3=r3.params,{start:l2,end:d3,cx:c2,cy:p3}=h3,u2=a4?n4-i4:n4+i4,g3=u2?Math.asin(i4/u2):0,f3=a4?g3:-g3,m3=Math.cos(g3)*u2;o3?(h3.start=l2+f3,s3[1]=c2+m3*Math.cos(l2),s3[2]=p3+m3*Math.sin(l2),t4.splice(e4+1,0,["A",i4,i4,0,0,1,c2+n4*Math.cos(h3.start),p3+n4*Math.sin(h3.start)])):(h3.end=d3-f3,r3[6]=c2+n4*Math.cos(h3.end),r3[7]=p3+n4*Math.sin(h3.end),t4.splice(e4+1,0,["A",i4,i4,0,0,1,c2+m3*Math.cos(d3),p3+m3*Math.sin(d3)])),r3[4]=Math.abs(h3.end-h3.start)1?m2:f2);return o2}function g(){var _a,_b;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:t3,yAxis:e3}=this,i3="percent"===t3.stacking,r2=(_b=(_a=s.plotOptions)==null?void 0:_a[this.type])==null?void 0:_b.borderRadius,o2=f(t3.borderRadius,a(r2)?r2:{}),h2=e3.options.reversed;for(let s2 of this.points){let{shapeArgs:r3}=s2;if("roundedRect"===s2.shapeType&&r3){let{width:a2=0,height:d2=0,y:c2=0}=r3,p2=c2,u2=d2;if("stack"===o2.scope&&s2.stackTotal){let r4=e3.translate(i3?100:s2.stackTotal,false,true,false,true),o3=e3.translate(t3.threshold||0,false,true,false,true),n2=this.crispCol(0,Math.min(r4,o3),0,Math.abs(r4-o3));p2=n2.y,u2=n2.height}let g2=(s2.negative?-1:1)*(h2?-1:1)==-1,f2=o2.where;!f2&&this.is("waterfall")&&Math.abs((s2.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(f2="all"),f2||(f2="end");let m2=Math.min(l(o2.radius,a2),a2/2,"all"===f2?d2/2:1/0)||0;"end"===f2&&(g2&&(p2-=m2),u2+=m2),n(r3,{brBoxHeight:u2,brBoxY:p2,r:m2})}}}}function f(t3,e3){return a(t3)||(t3={radius:t3||0}),h(d,e3,t3)}function m(){let t3=f(this.options.borderRadius);for(let e3 of this.points){let i3=e3.shapeArgs;i3&&(i3.borderRadius=l(t3.radius,(i3.r||0)-(i3.innerR||0)))}}function x(t3,e3,i3,s2,r2={}){let o2=p(t3,e3,i3,s2,r2),{r:n2=0,brBoxHeight:a2=s2,brBoxY:h2=e3}=r2,l2=e3-h2,d2=h2+a2-(e3+s2),c2=l2-n2>-.1?0:n2,u2=d2-n2>-.1?0:n2,g2=Math.max(c2&&l2,0),f2=Math.max(u2&&d2,0),m2=[t3+c2,e3],y=[t3+i3-c2,e3],b=[t3+i3,e3+c2],v=[t3+i3,e3+s2-u2],S=[t3+i3-u2,e3+s2],C=[t3+u2,e3+s2],k=[t3,e3+s2-u2],M=[t3,e3+c2],w2=(t4,e4)=>Math.sqrt(Math.pow(t4,2)-Math.pow(e4,2));if(g2){let t4=w2(c2,c2-g2);m2[0]-=t4,y[0]+=t4,b[1]=M[1]=e3+c2-g2}if(s2=n(i3.minWidth,0)&&this.chartHeight>=n(i3.minHeight,0)}).call(this)&&e4.push(t4._id)}function h(t4,e4){let s2=this.options.responsive,n2=this.currentResponsive,h2=[],l;!e4&&s2&&s2.rules&&s2.rules.forEach((t5=>{void 0===t5._id&&(t5._id=a()),this.matchResponsiveRule(t5,h2)}),this);let d=o(...h2.map((t5=>r((s2||{}).rules||[],(e5=>e5._id===t5)))).map((t5=>t5&&t5.chartOptions)));d.isResponsiveOptions=true,h2=h2.toString()||void 0;let c=n2&&n2.ruleIds;h2===c||(n2&&(this.currentResponsive=void 0,this.updatingResponsive=true,this.update(n2.undoOptions,t4,true),this.updatingResponsive=false),h2?((l=i2(d,this.options,true,this.collectionsWithUpdate)).isResponsiveOptions=true,this.currentResponsive={ruleIds:h2,mergedOptions:d,undoOptions:l},this.updatingResponsive||this.update(d,t4,true)):this.currentResponsive=void 0)}t3.compose=function(t4){let i3=t4.prototype;return i3.matchResponsiveRule||s(i3,{matchResponsiveRule:e3,setResponsive:h}),t4}}(e2||(e2={})),e2})),i(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Defaults.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Templating.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/Legend/Legend.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/Chart.js"],e["Extensions/ScrollablePlotArea.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Extensions/OverlappingDataLabels.js"],e["Extensions/BorderRadius.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],(function(t2,e2,i2,s,r,o,n,a,h,l,d,c,p,u,g,f,m,x,y,b,v,S,C,k,M,w2,T,A,P,L,O,D,E,I,j,B){return t2.AST=o,t2.Axis=p,t2.Chart=C,t2.Color=j,t2.DataLabel=O,t2.Fx=s,t2.HTMLElement=c,t2.Legend=v,t2.LegendSymbol=S,t2.OverlappingDataLabels=t2.OverlappingDataLabels||D,t2.PlotLineOrBand=f,t2.Point=y,t2.Pointer=b,t2.RendererRegistry=a,t2.Series=T,t2.SeriesRegistry=A,t2.StackItem=w2,t2.SVGElement=l,t2.SVGRenderer=d,t2.Templating=n,t2.Tick=m,t2.Time=B,t2.Tooltip=x,t2.animate=r.animate,t2.animObject=r.animObject,t2.chart=C.chart,t2.color=j.parse,t2.dateFormat=n.dateFormat,t2.defaultOptions=i2.defaultOptions,t2.distribute=h.distribute,t2.format=n.format,t2.getDeferredAnimation=r.getDeferredAnimation,t2.getOptions=i2.getOptions,t2.numberFormat=n.numberFormat,t2.seriesType=A.seriesType,t2.setAnimation=r.setAnimation,t2.setOptions=i2.setOptions,t2.stop=r.stop,t2.time=i2.defaultTime,t2.timers=s.timers,E.compose(t2.Series,t2.SVGElement,t2.SVGRenderer),P.compose(t2.Series.types.column),O.compose(t2.Series),u.compose(t2.Axis),c.compose(t2.SVGRenderer),v.compose(t2.Chart),g.compose(t2.Axis),D.compose(t2.Chart),L.compose(t2.Series.types.pie),f.compose(t2.Chart,t2.Axis),b.compose(t2.Chart),I.compose(t2.Chart),k.compose(t2.Axis,t2.Chart,t2.Series),M.compose(t2.Axis,t2.Chart,t2.Series),x.compose(t2.Pointer),e2.extend(t2,e2),t2})),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]}))})(highcharts);var highchartsExports=highcharts.exports;const Highcharts$1=getDefaultExportFromCjs(highchartsExports);const mapColors=array=>{const regex=/(data)\-[1-8]/;const newArray=array.map((item=>regex.test(item)?`${colors$1[`data_${item[item.length-1]}`]}`:item));return newArray};const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors2,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const buttonClassName=props=>{const{disabled:disabled=false,fullWidth:fullWidth=false,highlight:highlight,icon:icon,loading:loading=false,type:type="inline",variant:variant="primary",size:size=null}=props;let className="pb_button_kit";className+=`${variant!==null?`_${variant}`:""}`;className+=`${type!==null?`_${type}`:""}`;className+=`${fullWidth?"_block":""}`;className+=disabled?"_disabled":"_enabled";className+=loading?"_loading":"";className+=`${size!==null?` size_${size}`:""}`;className+=`${variant==="reaction"&&!isValidEmoji(icon)?` reaction_default`:""}`;className+=`${variant==="reaction"&&highlight?` active`:""}`;return className};const spinnerIcon=getAllIcons()["spinner"];const Button=props=>{const{aria:aria={},children:children,className:className,count:count2,data:data={},disabled:disabled,htmlOptions:htmlOptions={},icon:icon=null,iconRight:iconRight=false,id:id,loading:loading=false,onClick:onClick,tabIndex:tabIndex,link:link=null,newWindow:newWindow=false,target:target="",text:text,htmlType:htmlType="button",value:value,variant:variant,form:form=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(buttonClassName(props),globalProps(props),className);const loadingIcon=jsx$1("div",{className:"loading-icon",children:jsx$1(Icon,{className:"svg-inline--fa",customIcon:spinnerIcon.icon,fixedWidth:true,pulse:true})});const content=jsxs("span",{className:"pb_button_content",children:[icon&&!iconRight&&jsx$1(Icon,{className:"button_with_icon",icon:icon}),jsx$1("span",{children:text||children}),icon&&iconRight&&jsx$1(Icon,{className:"button_with_icon_right",icon:icon})]});const ifLoading=()=>{if(loading){return jsx$1(Fragment,{children:loadingIcon})}else{return content}};const getTargetAttribute=()=>{if(target&&link){return target}else if(newWindow){return"_blank"}return null};const displayButton=()=>{if(link){return jsx$1("a",{...ariaProps,...dataProps,...htmlProps,className:css4,href:link,id:id,rel:target!=="child"?"noreferrer":null,role:"link",tabIndex:tabIndex,target:getTargetAttribute(),children:ifLoading()})}else if(variant==="reaction"){return jsxs("button",{...ariaProps,...dataProps,...htmlProps,className:css4,disabled:disabled,form:form,id:id,onClick:onClick,role:"button",tabIndex:tabIndex,type:htmlType,value:value,children:[icon&&isValidEmoji(icon)&&jsxs(Flex,{align:"center",children:[jsx$1(Icon,{icon:icon}),count2&&jsx$1(Caption,{paddingLeft:"xxs",size:"xs",children:count2})]}),!isValidEmoji(icon)&&jsx$1(Icon,{icon:icon?icon:"face-smile-plus"})]})}else{return jsx$1("button",{...ariaProps,...dataProps,...htmlProps,className:css4,disabled:disabled,form:form,id:id,onClick:onClick,role:"button",tabIndex:tabIndex,type:htmlType,value:value,children:ifLoading()})}};return jsx$1(Fragment,{children:displayButton()})};const Checkbox=props=>{const{aria:aria={},checked:checked=false,children:children,className:className,dark:dark=false,data:data={},disabled:disabled=false,error:error=false,htmlOptions:htmlOptions={},id:id,indeterminate:indeterminate=false,name:name2="",onChange:onChange2=()=>{},tabIndex:tabIndex,text:text="",value:value=""}=props;const checkRef=useRef(null);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_checkbox_kit",checked?"checked":null,error?"error":null,indeterminate?"indeterminate":null),globalProps(props),className);useEffect((()=>{if(checkRef.current){checkRef.current.checked=checked;checkRef.current.indeterminate=indeterminate}}),[indeterminate,checked]);const checkboxChildren=()=>{if(children)return children;else return jsx$1("input",{defaultChecked:checked,disabled:disabled,name:name2,onChange:onChange2,ref:checkRef,tabIndex:tabIndex,type:"checkbox",value:value})};return jsxs("label",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[jsx$1(Fragment,{children:checkboxChildren()}),!indeterminate&&jsx$1("span",{className:"pb_checkbox_checkmark",children:jsx$1(Icon,{className:"check_icon",fixedWidth:true,icon:"check"})}),indeterminate&&jsx$1("span",{className:"pb_checkbox_indeterminate",children:jsx$1(Icon,{className:"indeterminate_icon",fixedWidth:true,icon:"minus"})}),jsx$1(Body$1,{className:"pb_checkbox_label",dark:dark,status:error?"negative":null,variant:null,children:text})]})};var highchartsMore$1={exports:{}};(function(module){!function(t){module.exports?(t.default=t,module.exports=t):t("undefined"!=typeof Highcharts?Highcharts:void 0)}((function(t){var e=t?t._modules:{};function i(e2,i2,s,o){e2.hasOwnProperty(i2)||(e2[i2]=o.apply(null,s),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i2,module:e2[i2]}})))}i(e,"Extensions/Pane/PaneComposition.js",[e["Core/Utilities.js"]],(function(t2){let{addEvent:e2,correctFloat:i2,defined:s,pick:o}=t2;function a(t3){let e3;let i3=this;return t3&&i3.pane.forEach((s2=>{r(t3.chartX-i3.plotLeft,t3.chartY-i3.plotTop,s2.center)&&(e3=s2)})),e3}function r(t3,e3,o2,a2,r2){let n2=true,l2=o2[0],h2=o2[1],p=Math.sqrt(Math.pow(t3-l2,2)+Math.pow(e3-h2,2));if(s(a2)&&s(r2)){let s2=Math.atan2(i2(e3-h2,8),i2(t3-l2,8));r2!==a2&&(n2=a2>r2?s2>=a2&&s2<=Math.PI||s2<=r2&&s2>=-Math.PI:s2>=a2&&s2<=i2(r2,8))}return p<=Math.ceil(o2[2]/2)&&n2}function n(t3){this.polar&&(t3.options.inverted&&([t3.x,t3.y]=[t3.y,t3.x]),t3.isInsidePlot=this.pane.some((e3=>r(t3.x,t3.y,e3.center,e3.axis&&e3.axis.normalizedStartAngleRad,e3.axis&&e3.axis.normalizedEndAngleRad))))}function l(t3){let e3=this.chart;t3.hoverPoint&&t3.hoverPoint.plotX&&t3.hoverPoint.plotY&&e3.hoverPane&&!r(t3.hoverPoint.plotX,t3.hoverPoint.plotY,e3.hoverPane.center)&&(t3.hoverPoint=void 0)}function h(t3){let e3=this.chart;e3.polar?(e3.hoverPane=e3.getHoverPane(t3),t3.filter=function(i3){return i3.visible&&!(!t3.shared&&i3.directTouch)&&o(i3.options.enableMouseTracking,true)&&(!e3.hoverPane||i3.xAxis.pane===e3.hoverPane)}):e3.hoverPane=void 0}return{compose:function(t3,i3){let s2=t3.prototype;s2.getHoverPane||(s2.collectionsWithUpdate.push("pane"),s2.getHoverPane=a,e2(t3,"afterIsInsidePlot",n),e2(i3,"afterGetHoverData",l),e2(i3,"beforeGetHoverData",h))}}})),i(e,"Extensions/Pane/PaneDefaults.js",[],(function(){return{pane:{center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},background:{shape:"circle",borderRadius:0,borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}}})),i(e,"Extensions/Pane/Pane.js",[e["Series/CenteredUtilities.js"],e["Extensions/Pane/PaneComposition.js"],e["Extensions/Pane/PaneDefaults.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{extend:o,merge:a,splat:r}=s;class n{constructor(t3,e3){this.coll="pane",this.init(t3,e3)}init(t3,e3){this.chart=e3,this.background=[],e3.pane.push(this),this.setOptions(t3)}setOptions(t3){this.options=t3=a(i2.pane,this.chart.angular?{background:{}}:void 0,t3)}render(){let t3=this.options,e3=this.chart.renderer;this.group||(this.group=e3.g("pane-group").attr({zIndex:t3.zIndex||0}).add()),this.updateCenter();let s2=this.options.background;if(s2){let t4=Math.max((s2=r(s2)).length,this.background.length||0);for(let e4=0;e4a3,e3.y=e3.high,e3._plotY=e3.plotY,e3.plotY=o3,l2[t3]=e3.dataLabel,e3.dataLabel=e3.dataLabelUpper,e3.below=i3,c2?s2.align||(s2.align=i3?"right":"left"):s2.verticalAlign||(s2.verticalAlign=i3?"top":"bottom")}for(this.options.dataLabels=s2,r.drawDataLabels&&r.drawDataLabels.apply(this,arguments),t3=n2;t3--;)(e3=a2[t3])&&(e3.dataLabelUpper=e3.dataLabel,e3.dataLabel=l2[t3],delete e3.dataLabels,e3.y=e3.low,e3.plotY=e3._plotY)}if(o2.enabled||((_b=this.hasDataLabels)==null?void 0:_b.call(this))){for(t3=n2;t3--;)if(e3=a2[t3]){let{plotHigh:t4=0,plotLow:s3=0}=e3;i3=o2.inside?t4s3,e3.below=!i3,c2?o2.align||(o2.align=i3?"left":"right"):o2.verticalAlign||(o2.verticalAlign=i3?"bottom":"top")}this.options.dataLabels=o2,r.drawDataLabels&&r.drawDataLabels.apply(this,arguments)}if(s2.enabled)for(t3=n2;t3--;)(e3=a2[t3])&&(e3.dataLabels=[e3.dataLabelUpper,e3.dataLabel].filter((function(t4){return!!t4})));this.options.dataLabels=h2}}alignDataLabel(){n.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let t3={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:t4,lowMarker:e3}}=this;this.options.marker=g(t4,e3),e3.symbol&&(this.symbol=e3.symbol)}return t3}restoreMarkerSettings(t3){this.options.marker=t3.marker,this.symbol=t3.symbol}drawPoints(){let t3,e3;let i3=this.points.length,s2=this.modifyMarkerSettings();for(r.drawPoints.apply(this,arguments),this.restoreMarkerSettings(s2),t3=0;t3=0&&e3.plotY<=this.yAxis.len&&e3.plotX>=0&&e3.plotX<=this.xAxis.len),t3++;for(r.drawPoints.apply(this,arguments),t3=0;t3● {series.name}: {point.low} - {point.high}
'},trackByArea:true,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),l(f,"afterTranslate",(function(){"low,high"===this.pointArrayMap.join(",")&&this.points.forEach((t3=>{let e3=t3.high,i3=t3.plotY;t3.isNull?t3.plotY=void 0:(t3.plotLow=i3,t3.plotHigh=c(e3)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(e3):e3,false,true,void 0,true):void 0,this.dataModify&&(t3.yBottom=t3.plotHigh))}))}),{order:0}),l(f,"afterTranslate",(function(){this.points.forEach((t3=>{if(this.chart.polar)this.highToXY(t3),t3.plotLow=t3.plotY,t3.tooltipPos=[((t3.plotHighX||0)+(t3.plotLowX||0))/2,((t3.plotHigh||0)+(t3.plotLow||0))/2];else{let e3=t3.pos(false,t3.plotLow),i3=t3.pos(false,t3.plotHigh);e3&&i3&&(e3[0]=(e3[0]+i3[0])/2,e3[1]=(e3[1]+i3[1])/2),t3.tooltipPos=e3}}))}),{order:3}),p(f.prototype,{deferTranslatePolar:true,pointArrayMap:["low","high"],pointClass:t2,pointValKey:"low",setStackedPoints:o}),i2.registerSeriesType("arearange",f),f})),i(e,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[e["Series/AreaRange/AreaRangeSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{spline:{prototype:s}}=e2.seriesTypes,{merge:o,extend:a}=i2;class r extends t2{}return r.defaultOptions=o(t2.defaultOptions),a(r.prototype,{getPointSpline:s.getPointSpline}),e2.registerSeriesType("areasplinerange",r),r})),i(e,"Series/BoxPlot/BoxPlotSeriesDefaults.js",[],(function(){return{threshold:null,tooltip:{pointFormat:' {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}})),i(e,"Series/BoxPlot/BoxPlotSeries.js",[e["Series/BoxPlot/BoxPlotSeriesDefaults.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,o){let{noop:a}=i2,{crisp:r,extend:n,merge:l,pick:h}=o;class p extends e2{pointAttribs(){return{}}translate(){let t3=this.yAxis,e3=this.pointArrayMap;super.translate.apply(this),this.points.forEach((function(i3){e3.forEach((function(e4){null!==i3[e4]&&(i3[e4+"Plot"]=t3.translate(i3[e4],0,1,0,1))})),i3.plotHigh=i3.highPlot}))}drawPoints(){let t3,e3,i3,s2,o2,a2,n2,l2,p2,d,c,u,g;let f=this.points,b=this.options,m=this.chart,y=m.renderer,x=false!==this.doQuartiles,P=this.options.whiskerLength;for(let S of f){let f2=(l2=S.graphic)?"animate":"attr",M=S.shapeArgs,L={},C={},k={},v={},A=S.color||this.color;if(void 0!==S.plotY){let w2;p2=M.width,c=(d=M.x)+p2,u=p2/2,t3=x?S.q1Plot:S.lowPlot,e3=x?S.q3Plot:S.lowPlot,i3=S.highPlot,s2=S.lowPlot,l2||(S.graphic=l2=y.g("point").add(this.group),S.stem=y.path().addClass("highcharts-boxplot-stem").add(l2),P&&(S.whiskers=y.path().addClass("highcharts-boxplot-whisker").add(l2)),x&&(S.box=y.path(n2).addClass("highcharts-boxplot-box").add(l2)),S.medianShape=y.path(a2).addClass("highcharts-boxplot-median").add(l2)),m.styledMode||(C.stroke=S.stemColor||b.stemColor||A,C["stroke-width"]=h(S.stemWidth,b.stemWidth,b.lineWidth),C.dashstyle=S.stemDashStyle||b.stemDashStyle||b.dashStyle,S.stem.attr(C),P&&(k.stroke=S.whiskerColor||b.whiskerColor||A,k["stroke-width"]=h(S.whiskerWidth,b.whiskerWidth,b.lineWidth),k.dashstyle=S.whiskerDashStyle||b.whiskerDashStyle||b.dashStyle,S.whiskers.attr(k)),x&&(L.fill=S.fillColor||b.fillColor||A,L.stroke=b.lineColor||A,L["stroke-width"]=b.lineWidth||0,L.dashstyle=S.boxDashStyle||b.boxDashStyle||b.dashStyle,S.box.attr(L)),v.stroke=S.medianColor||b.medianColor||A,v["stroke-width"]=h(S.medianWidth,b.medianWidth,b.lineWidth),v.dashstyle=S.medianDashStyle||b.medianDashStyle||b.dashStyle,S.medianShape.attr(v));let T=r((S.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,S.stem.strokeWidth());if(w2=[["M",T,e3],["L",T,i3],["M",T,t3],["L",T,s2]],S.stem[f2]({d:w2}),x){let i4=S.box.strokeWidth();t3=r(t3,i4),e3=r(e3,i4),w2=[["M",d=r(d,i4),e3],["L",d,t3],["L",c=r(c,i4),t3],["L",c,e3],["L",d,e3],["Z"]],S.box[f2]({d:w2})}if(P){let t4=S.whiskers.strokeWidth();i3=r(S.highPlot,t4),s2=r(S.lowPlot,t4),w2=[["M",r(T-(g="string"==typeof P&&/%$/.test(P)?u*parseFloat(P)/100:Number(P)/2)),i3],["L",r(T+g),i3],["M",r(T-g),s2],["L",r(T+g),s2]],S.whiskers[f2]({d:w2})}w2=[["M",d,o2=r(S.medianPlot,S.medianShape.strokeWidth())],["L",c,o2]],S.medianShape[f2]({d:w2})}}}toYData(t3){return[t3.low,t3.q1,t3.median,t3.q3,t3.high]}}return p.defaultOptions=l(e2.defaultOptions,t2),n(p.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:a,setStackedPoints:a}),s.registerSeriesType("boxplot",p),p})),i(e,"Series/Bubble/BubbleLegendDefaults.js",[],(function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:false,labels:{className:void 0,allowOverlap:false,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:false,zIndex:1,zThreshold:0}})),i(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{parse:o}=t2,{noop:a}=i2,{arrayMax:r,arrayMin:n,isNumber:l,merge:h,pick:p,stableSort:d}=s;return class{constructor(t3,e3){this.setState=a,this.init(t3,e3)}init(t3,e3){this.options=t3,this.visible=true,this.chart=e3.chart,this.legend=e3}addToLegend(t3){t3.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t3){let e3;let i3=p(t3.options.itemDistance,20),s2=this.legendItem||{},o2=this.options,a2=o2.ranges,r2=o2.connectorDistance;if(!a2||!a2.length||!l(a2[0].value)){t3.options.bubbleLegend.autoRanges=true;return}d(a2,(function(t4,e4){return e4.value-t4.value})),this.ranges=a2,this.setOptions(),this.render();let n2=this.getMaxLabelSize(),h2=this.ranges[0].radius,c=2*h2;e3=(e3=r2-h2+n2.width)>0?e3:0,this.maxLabel=n2,this.movementX="left"===o2.labels.align?e3:0,s2.labelWidth=c+e3+i3,s2.labelHeight=c+n2.height/2}setOptions(){let t3=this.ranges,e3=this.options,i3=this.chart.series[e3.seriesIndex],s2=this.legend.baseline,a2={zIndex:e3.zIndex,"stroke-width":e3.borderWidth},r2={zIndex:e3.zIndex,"stroke-width":e3.connectorWidth},n2={align:this.legend.options.rtl||"left"===e3.labels.align?"right":"left",zIndex:e3.zIndex},l2=i3.options.marker.fillOpacity,d2=this.chart.styledMode;t3.forEach((function(c,u){d2||(a2.stroke=p(c.borderColor,e3.borderColor,i3.color),a2.fill=p(c.color,e3.color,1!==l2?o(i3.color).setOpacity(l2).get("rgba"):i3.color),r2.stroke=p(c.connectorColor,e3.connectorColor,i3.color)),t3[u].radius=this.getRangeRadius(c.value),t3[u]=h(t3[u],{center:t3[0].radius-t3[u].radius+s2}),d2||h(true,t3[u],{bubbleAttribs:h(a2),connectorAttribs:h(r2),labelAttribs:n2})}),this)}getRangeRadius(t3){let e3=this.options,i3=this.options.seriesIndex,s2=this.chart.series[i3],o2=e3.ranges[0].value,a2=e3.ranges[e3.ranges.length-1].value,r2=e3.minSize,n2=e3.maxSize;return s2.getRadius.call(this,a2,o2,r2,n2,t3)}render(){let t3=this.legendItem||{},e3=this.chart.renderer,i3=this.options.zThreshold;for(let s2 of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t3.symbol=e3.g("bubble-legend"),t3.label=e3.g("bubble-legend-item").css(this.legend.itemStyle||{}),t3.symbol.translateX=0,t3.symbol.translateY=0,t3.symbol.add(t3.label),t3.label.add(t3.group),this.ranges))s2.value>=i3&&this.renderRange(s2);this.hideOverlappingLabels()}renderRange(t3){let e3=this.ranges[0],i3=this.legend,s2=this.options,o2=s2.labels,a2=this.chart,r2=a2.series[s2.seriesIndex],n2=a2.renderer,l2=this.symbols,h2=l2.labels,p2=t3.center,d2=Math.abs(t3.radius),c=s2.connectorDistance||0,u=o2.align,g=i3.options.rtl,f=s2.borderWidth,b=s2.connectorWidth,m=e3.radius||0,y=p2-d2-f/2+b/2,x=(y%1?1:.5)-(b%2?0:.5),P=n2.styledMode,S=g||"left"===u?-c:c;"center"===u&&(S=0,s2.connectorDistance=0,t3.labelAttribs.align="center"),l2.bubbleItems.push(n2.circle(m,p2+x,d2).attr(P?{}:t3.bubbleAttribs).addClass((P?"highcharts-color-"+r2.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(s2.className||"")).add(this.legendItem.symbol)),l2.connectors.push(n2.path(n2.crispLine([["M",m,y],["L",m+S,y]],s2.connectorWidth)).attr(P?{}:t3.connectorAttribs).addClass((P?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(s2.connectorClassName||"")).add(this.legendItem.symbol));let M=n2.text(this.formatLabel(t3)).attr(P?{}:t3.labelAttribs).css(P?{}:o2.style).addClass("highcharts-bubble-legend-labels "+(s2.labels.className||"")).add(this.legendItem.symbol),L={x:m+S+s2.labels.x,y:y+s2.labels.y+.4*M.getBBox().height};M.attr(L),h2.push(M),M.placed=true,M.alignAttr=L}getMaxLabelSize(){let t3,e3;return this.symbols.labels.forEach((function(i3){e3=i3.getBBox(true),t3=t3?e3.width>t3.width?e3:t3:e3})),t3||{}}formatLabel(t3){let i3=this.options,s2=i3.labels.formatter,o2=i3.labels.format,{numberFormatter:a2}=this.chart;return o2?e2.format(o2,t3):s2?s2.call(t3):a2(t3.value,1)}hideOverlappingLabels(){let t3=this.chart,e3=this.options.labels.allowOverlap,i3=this.symbols;!e3&&i3&&(t3.hideOverlappingLabels(i3.labels),i3.labels.forEach((function(t4,e4){t4.newOpacity?t4.newOpacity!==t4.oldOpacity&&i3.connectors[e4].show():i3.connectors[e4].hide()})))}getRanges(){let t3=this.legend.bubbleLegend,e3=t3.chart.series,i3=t3.options.ranges,s2,o2,a2=Number.MAX_VALUE,d2=-Number.MAX_VALUE;return e3.forEach((function(t4){t4.isBubble&&!t4.ignoreSeries&&(o2=t4.zData.filter(l)).length&&(a2=p(t4.options.zMin,Math.min(a2,Math.max(n(o2),false===t4.options.displayNegative?t4.options.zThreshold:-Number.MAX_VALUE))),d2=p(t4.options.zMax,Math.max(d2,r(o2))))})),s2=a2===d2?[{value:d2}]:[{value:a2},{value:(a2+d2)/2},{value:d2,autoRanges:true}],i3.length&&i3[0].radius&&s2.reverse(),s2.forEach((function(t4,e4){i3&&i3[e4]&&(s2[e4]=h(i3[e4],t4))})),s2}predictBubbleSizes(){let t3=this.chart,e3=t3.legend.options,i3=e3.floating,s2="horizontal"===e3.layout,o2=s2?t3.legend.lastLineHeight:0,a2=t3.plotSizeX,r2=t3.plotSizeY,n2=t3.series[this.options.seriesIndex],l2=n2.getPxExtremes(),h2=Math.ceil(l2.minPxSize),p2=Math.ceil(l2.maxPxSize),d2=Math.min(r2,a2),c,u=n2.options.maxSize;return i3||!/%$/.test(u)?c=p2:(c=(d2+o2)*(u=parseFloat(u))/100/(u/100+1),(s2&&r2-c>=a2||!s2&&a2-c>=r2)&&(c=p2)),[h2,Math.ceil(c)]}updateRanges(t3,e3){let i3=this.legend.options.bubbleLegend;i3.minSize=t3,i3.maxSize=e3,i3.ranges=this.getRanges()}correctSizes(){let t3=this.legend,e3=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e3.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e3.maxPxSize),t3.render())}}})),i(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,o){let{setOptions:a}=i2,{composed:r}=s,{addEvent:n,objectEach:l,pushUnique:h,wrap:p}=o;function d(t3,e3,i3){let s2,o2,a2;let r2=this.legend,n2=c(this)>=0;r2&&r2.options.enabled&&r2.bubbleLegend&&r2.options.bubbleLegend.autoRanges&&n2?(s2=r2.bubbleLegend.options,o2=r2.bubbleLegend.predictBubbleSizes(),r2.bubbleLegend.updateRanges(o2[0],o2[1]),s2.placed||(r2.group.placed=false,r2.allItems.forEach((t4=>{(a2=t4.legendItem||{}).group&&(a2.group.translateY=void 0)}))),r2.render(),s2.placed||(this.getMargins(),this.axes.forEach((function(t4){t4.visible&&t4.render(),s2.placed||(t4.setScale(),t4.updateNames(),l(t4.ticks,(function(t5){t5.isNew=true,t5.isNewLabel=true})))})),this.getMargins()),s2.placed=true,t3.call(this,e3,i3),r2.bubbleLegend.correctSizes(),b(r2,u(r2))):(t3.call(this,e3,i3),r2&&r2.options.enabled&&r2.bubbleLegend&&(r2.render(),b(r2,u(r2))))}function c(t3){let e3=t3.series,i3=0;for(;i3o2.height&&(o2.height=e3[l2].itemHeight);o2.step=n2}return i3}function g(t3){let i3=this.bubbleLegend,s2=this.options,o2=s2.bubbleLegend,a2=c(this.chart);i3&&i3.ranges&&i3.ranges.length&&(o2.ranges.length&&(o2.autoRanges=!!o2.ranges[0].autoRanges),this.destroyItem(i3)),a2>=0&&s2.enabled&&o2.enabled&&(o2.seriesIndex=a2,this.bubbleLegend=new e2(o2,this),this.bubbleLegend.addToLegend(t3.allItems))}function f(t3){let e3;if(t3.defaultPrevented)return false;let i3=t3.legendItem,s2=this.chart,o2=i3.visible;this&&this.bubbleLegend&&(i3.visible=!o2,i3.ignoreSeries=o2,e3=c(s2)>=0,this.bubbleLegend.visible!==e3&&(this.update({bubbleLegend:{enabled:e3}}),this.bubbleLegend.visible=e3),i3.visible=o2)}function b(t3,e3){let i3=t3.allItems,s2=t3.options.rtl,o2,a2,r2,n2,l2=0;i3.forEach(((t4,i4)=>{(n2=t4.legendItem||{}).group&&(o2=n2.group.translateX||0,a2=n2.y||0,((r2=t4.movementX)||s2&&t4.ranges)&&(r2=s2?o2-t4.options.maxSize/2:o2+r2,n2.group.attr({translateX:r2})),i4>e3[l2].step&&l2++,n2.group.attr({translateY:Math.round(a2+e3[l2].height/2)}),n2.y=a2+e3[l2].height/2)}))}return{compose:function(e3,i3){h(r,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:t2}}),p(e3.prototype,"drawChartBox",d),n(i3,"afterGetAllItems",g),n(i3,"itemClick",f))}}})),i(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{seriesTypes:{scatter:{prototype:{pointClass:s}}}}=e2,{extend:o}=i2;class a extends s{haloPath(e3){let i3=(e3&&this.marker&&this.marker.radius||0)+e3;if(this.series.chart.inverted){let t3=this.pos()||[0,0],{xAxis:e4,yAxis:s2,chart:o2}=this.series;return o2.renderer.symbols.circle(e4.len-t3[1]-i3,s2.len-t3[0]-i3,2*i3,2*i3)}return t2.prototype.haloPath.call(this,i3)}}return o(a.prototype,{ttBelow:false}),a})),i(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,o,a){let{parse:r}=i2,{composed:n,noop:l}=s,{series:h,seriesTypes:{column:{prototype:p},scatter:d}}=o,{addEvent:c,arrayMax:u,arrayMin:g,clamp:f,extend:b,isNumber:m,merge:y,pick:x,pushUnique:P}=a;function S(){let t3=this.len,{coll:e3,isXAxis:i3,min:s2}=this,o2=i3?"xData":"yData",a2=(this.max||0)-(s2||0),r2=0,n2=t3,l2=t3/a2,h2;("xAxis"===e3||"yAxis"===e3)&&(this.series.forEach((t4=>{if(t4.bubblePadding&&t4.reserveSpace()){this.allowZoomOutside=true,h2=true;let e4=t4[o2];if(i3&&((t4.onPoint||t4).getRadii(0,0,t4),t4.onPoint&&(t4.radii=t4.onPoint.radii)),a2>0){let i4=e4.length;for(;i4--;)if(m(e4[i4])&&this.dataMin<=e4[i4]&&e4[i4]<=this.max){let o3=t4.radii&&t4.radii[i4]||0;r2=Math.min((e4[i4]-s2)*l2-o3,r2),n2=Math.max((e4[i4]-s2)*l2+o3,n2)}}}})),h2&&a2>0&&!this.logarithmic&&(n2-=t3,l2*=(t3+Math.max(0,r2)-Math.min(n2,t3))/t3,[["min","userMin",r2],["max","userMax",n2]].forEach((t4=>{void 0===x(this.options[t4[0]],this[t4[1]])&&(this[t4[0]]+=t4[2]/l2)}))))}class M extends d{static compose(e3,i3,s2){t2.compose(i3,s2),P(n,"Series.Bubble")&&c(e3,"foundExtremes",S)}animate(t3){!t3&&this.points.length{if(s3.bubblePadding&&s3.reserveSpace()){let o3=(s3.onPoint||s3).getZExtremes();o3&&(e4=Math.min(x(e4,o3.zMin),o3.zMin),i4=Math.max(x(i4,o3.zMax),o3.zMax),t4=true)}})),t4?(r2={zMin:e4,zMax:i4},this.chart.bubbleZExtremes=r2):r2={zMin:0,zMax:0}}for(o2=0,s2=t3.length;o20&&(p2=(o2-t3)/h2)}return n2&&p2>=0&&(p2=Math.sqrt(p2)),Math.ceil(i3+p2*(s2-i3))/2}hasData(){return!!this.processedXData.length}markerAttribs(t3,e3){let i3=super.markerAttribs(t3,e3),{height:s2=0,width:o2=0}=i3;return this.chart.inverted?b(i3,{x:(t3.plotX||0)-o2/2,y:(t3.plotY||0)-s2/2}):i3}pointAttribs(t3,e3){let i3=this.options.marker.fillOpacity,s2=h.prototype.pointAttribs.call(this,t3,e3);return 1!==i3&&(s2.fill=r(s2.fill).setOpacity(i3).get("rgba")),s2}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:t3,options:e3,radii:i3}=this,{minPxSize:s2}=this.getPxExtremes(),o2=t3.length;for(;o2--;){let a2=t3[o2],r2=i3?i3[o2]:0;"z"===this.zoneAxis&&(a2.negative=(a2.z||0)<(e3.zThreshold||0)),m(r2)&&r2>=s2/2?(a2.marker=b(a2.marker,{radius:r2,width:2*r2,height:2*r2}),a2.dlBox={x:a2.plotX-r2,y:a2.plotY-r2,width:2*r2,height:2*r2}):(a2.shapeArgs=a2.plotY=a2.dlBox=void 0,a2.isInside=false)}}getPxExtremes(){let t3=Math.min(this.chart.plotWidth,this.chart.plotHeight),e3=e4=>{let i4;return"string"==typeof e4&&(i4=/%$/.test(e4),e4=parseInt(e4,10)),i4?t3*e4/100:e4},i3=e3(x(this.options.minSize,8)),s2=Math.max(e3(x(this.options.maxSize,"20%")),i3);return{minPxSize:i3,maxPxSize:s2}}getZExtremes(){let t3=this.options,e3=(this.zData||[]).filter(m);if(e3.length){let i3=x(t3.zMin,f(g(e3),false===t3.displayNegative?t3.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),s2=x(t3.zMax,u(e3));if(m(i3)&&m(s2))return{zMin:i3,zMax:s2}}}}return M.defaultOptions=y(d.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t3}=this.series.chart,{z:e3}=this.point;return m(e3)?t3(e3,-1):""},inside:true,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:false,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),b(M.prototype,{alignDataLabel:p.alignDataLabel,applyZones:l,bubblePadding:true,isBubble:true,pointArrayMap:["y","z"],pointClass:e2,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),c(M,"updatedData",(t3=>{delete t3.target.chart.bubbleZExtremes})),c(M,"remove",(t3=>{delete t3.target.chart.bubbleZExtremes})),o.registerSeriesType("bubble",M),M})),i(e,"Series/ColumnRange/ColumnRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2){let{seriesTypes:{column:{prototype:{pointClass:{prototype:i2}}},arearange:{prototype:{pointClass:s}}}}=t2,{extend:o,isNumber:a}=e2;class r extends s{isValid(){return a(this.low)}}return o(r.prototype,{setState:i2.setState}),r})),i(e,"Series/ColumnRange/ColumnRangeSeries.js",[e["Series/ColumnRange/ColumnRangePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{noop:o}=e2,{seriesTypes:{arearange:a,column:r,column:{prototype:n}}}=i2,{addEvent:l,clamp:h,extend:p,isNumber:d,merge:c,pick:u}=s;class g extends a{setOptions(){return c(true,arguments[0],{stacking:void 0}),a.prototype.setOptions.apply(this,arguments)}translate(){return n.translate.apply(this)}pointAttribs(){return n.pointAttribs.apply(this,arguments)}translate3dPoints(){return n.translate3dPoints.apply(this,arguments)}translate3dShapes(){return n.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let t3,e3,i3,s2;let o2=this.yAxis,a2=this.xAxis,r2=a2.startAngleRad,n2=this.chart,l2=this.xAxis.isRadial,p2=Math.max(n2.chartWidth,n2.chartHeight)+999;this.points.forEach((g2=>{let f=g2.shapeArgs||{},b=this.options.minPointLength,m=g2.plotY,y=o2.translate(g2.high,0,1,0,1);if(d(y)&&d(m)){if(g2.plotHigh=h(y,-p2,p2),g2.plotLow=h(m,-p2,p2),s2=g2.plotHigh,Math.abs(t3=u(g2.rectPlotY,g2.plotY)-g2.plotHigh)● {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}})),i(e,"Series/ErrorBar/ErrorBarSeries.js",[e["Series/BoxPlot/BoxPlotSeries.js"],e["Series/Column/ColumnSeries.js"],e["Series/ErrorBar/ErrorBarSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,o){let{arearange:a}=s.seriesTypes,{addEvent:r,merge:n,extend:l}=o;class h extends t2{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||e2.prototype.getColumnMetrics.call(this)}drawDataLabels(){let t3=this.pointValKey;if(a)for(let e3 of(a.prototype.drawDataLabels.call(this),this.points))e3.y=e3[t3]}toYData(t3){return[t3.low,t3.high]}}return h.defaultOptions=n(t2.defaultOptions,i2),r(h,"afterTranslate",(function(){for(let t3 of this.points)t3.plotLow=t3.plotY}),{order:0}),l(h.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:false}),s.registerSeriesType("errorbar",h),h})),i(e,"Series/Gauge/GaugePoint.js",[e["Core/Series/SeriesRegistry.js"]],(function(t2){let{series:{prototype:{pointClass:e2}}}=t2;return class extends e2{setState(t3){this.state=t3}}})),i(e,"Series/Gauge/GaugeSeries.js",[e["Series/Gauge/GaugePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{noop:o}=e2,{series:a,seriesTypes:{column:r}}=i2,{clamp:n,isNumber:l,extend:h,merge:p,pick:d,pInt:c,defined:u}=s;class g extends a{translate(){let t3=this.yAxis,e3=this.options,i3=t3.center;this.generatePoints(),this.points.forEach((s2=>{let o2=p(e3.dial,s2.dial),a2=c(o2.radius)*i3[2]/200,r2=c(o2.baseLength)*a2/100,h2=c(o2.rearLength)*a2/100,d2=o2.baseWidth,g2=o2.topWidth,f=e3.overshoot,b=t3.startAngleRad+t3.translate(s2.y,void 0,void 0,void 0,true);(l(f)||false===e3.wrap)&&(f=l(f)?f/180*Math.PI:0,b=n(b,t3.startAngleRad-f,t3.endAngleRad+f)),b=180*b/Math.PI,s2.shapeType="path";let m=o2.path||[["M",-h2,-d2/2],["L",r2,-d2/2],["L",a2,-g2/2],["L",a2,g2/2],["L",r2,d2/2],["L",-h2,d2/2],["Z"]];s2.shapeArgs={d:m,translateX:i3[0],translateY:i3[1],rotation:b},s2.plotX=i3[0],s2.plotY=i3[1],u(s2.y)&&t3.max-t3.min&&(s2.percentage=(s2.y-t3.min)/(t3.max-t3.min)*100)}))}drawPoints(){let t3=this,e3=t3.chart,i3=t3.yAxis.center,s2=t3.pivot,o2=t3.options,a2=o2.pivot,r2=e3.renderer;t3.points.forEach((i4=>{let s3=i4.graphic,a3=i4.shapeArgs,n2=a3.d,l2=p(o2.dial,i4.dial);s3?(s3.animate(a3),a3.d=n2):i4.graphic=r2[i4.shapeType](a3).addClass("highcharts-dial").add(t3.group),e3.styledMode||i4.graphic[s3?"animate":"attr"]({stroke:l2.borderColor,"stroke-width":l2.borderWidth,fill:l2.backgroundColor})})),s2?s2.animate({translateX:i3[0],translateY:i3[1]}):a2&&(t3.pivot=r2.circle(0,0,a2.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(i3[0],i3[1]).add(t3.group),e3.styledMode||t3.pivot.attr({fill:a2.backgroundColor,stroke:a2.borderColor,"stroke-width":a2.borderWidth}))}animate(t3){let e3=this;t3||e3.points.forEach((t4=>{let i3=t4.graphic;i3&&(i3.attr({rotation:180*e3.yAxis.startAngleRad/Math.PI}),i3.animate({rotation:t4.shapeArgs.rotation},e3.options.animation))}))}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),a.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(t3,e3){a.prototype.setData.call(this,t3,false),this.processData(),this.generatePoints(),d(e3,true)&&this.chart.redraw()}hasData(){return!!this.points.length}}return g.defaultOptions=p(a.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:false,defer:false,enabled:true,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:false}),h(g.prototype,{angular:true,directTouch:true,drawGraph:o,drawTracker:r.prototype.drawTracker,fixedBox:true,forceDL:true,noSharedTooltip:true,pointClass:t2,trackerGroups:["group","dataLabelsGroup"]}),i2.registerSeriesType("gauge",g),g})),i(e,"Series/DragNodesComposition.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2){let{composed:i2}=t2,{addEvent:s,pushUnique:o}=e2;function a(){let t3,e3,i3;let o2=this;o2.container&&(t3=s(o2.container,"mousedown",(t4=>{let a2=o2.hoverPoint;a2&&a2.series&&a2.series.hasDraggableNodes&&a2.series.options.draggable&&(a2.series.onMouseDown(a2,t4),e3=s(o2.container,"mousemove",(t5=>a2&&a2.series&&a2.series.onMouseMove(a2,t5))),i3=s(o2.container.ownerDocument,"mouseup",(t5=>(e3(),i3(),a2&&a2.series&&a2.series.onMouseUp(a2,t5)))))}))),s(o2,"destroy",(function(){t3()}))}return{compose:function(t3){o(i2,"DragNodes")&&s(t3,"load",a)},onMouseDown:function(t3,e3){var _a;let i3=((_a=this.chart.pointer)==null?void 0:_a.normalize(e3))||e3;t3.fixedPosition={chartX:i3.chartX,chartY:i3.chartY,plotX:t3.plotX,plotY:t3.plotY},t3.inDragMode=true},onMouseMove:function(t3,e3){var _a;if(t3.fixedPosition&&t3.inDragMode){let i3,s2;let o2=this.chart,a2=((_a=o2.pointer)==null?void 0:_a.normalize(e3))||e3,r=t3.fixedPosition.chartX-a2.chartX,n=t3.fixedPosition.chartY-a2.chartY,l=o2.graphLayoutsLookup;(Math.abs(r)>5||Math.abs(n)>5)&&(i3=t3.fixedPosition.plotX-r,s2=t3.fixedPosition.plotY-n,o2.isInsidePlot(i3,s2)&&(t3.plotX=i3,t3.plotY=s2,t3.hasDragged=true,this.redrawHalo(t3),l.forEach((t4=>{t4.restartSimulation()}))))}},onMouseUp:function(t3){t3.fixedPosition&&(t3.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t3.inDragMode=t3.hasDragged=false,this.options.fixedDraggable||delete t3.fixedPosition)},redrawHalo:function(t3){t3&&this.halo&&this.halo.attr({d:t3.haloPath(this.options.states.hover.halo.size)})}}})),i(e,"Series/GraphLayoutComposition.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{setAnimation:s}=t2,{composed:o}=e2,{addEvent:a,pushUnique:r}=i2;function n(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((t3=>{t3.updateSimulation()})),this.redraw())}function l(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((t3=>{t3.updateSimulation(false)})),this.redraw())}function h(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach((t3=>{t3.stop()}))}function p(){let t3,e3=false,i3=i4=>{i4.maxIterations--&&isFinite(i4.temperature)&&!i4.isStable()&&!i4.enableSimulation&&(i4.beforeStep&&i4.beforeStep(),i4.step(),t3=false,e3=true)};if(this.graphLayoutsLookup){for(s(false,this),this.graphLayoutsLookup.forEach((t4=>t4.start()));!t3;)t3=true,this.graphLayoutsLookup.forEach(i3);e3&&this.series.forEach((t4=>{t4&&t4.layout&&t4.render()}))}}return{compose:function(t3){r(o,"GraphLayout")&&(a(t3,"afterPrint",n),a(t3,"beforePrint",l),a(t3,"predraw",h),a(t3,"render",p))},integrations:{},layouts:{}}})),i(e,"Series/PackedBubble/PackedBubblePoint.js",[e["Core/Chart/Chart.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"]],(function(t2,e2,i2){let{seriesTypes:{bubble:{prototype:{pointClass:s}}}}=i2;return class extends s{destroy(){var _a;return((_a=this.series)==null?void 0:_a.layout)&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),e2.prototype.destroy.apply(this,arguments)}firePointEvent(){let t3=this.series.options;if(this.isParentNode&&t3.parentNode){let i3=t3.allowPointSelect;t3.allowPointSelect=t3.parentNode.allowPointSelect,e2.prototype.firePointEvent.apply(this,arguments),t3.allowPointSelect=i3}else e2.prototype.firePointEvent.apply(this,arguments)}select(){let i3=this.series.chart;this.isParentNode?(i3.getSelectedPoints=i3.getSelectedParentNodes,e2.prototype.select.apply(this,arguments),i3.getSelectedPoints=t2.prototype.getSelectedPoints):e2.prototype.select.apply(this,arguments)}}})),i(e,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[e["Core/Utilities.js"]],(function(t2){let{isNumber:e2}=t2;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:false,tooltip:{pointFormat:"Value: {point.value}"},draggable:true,useSimulation:true,parentNode:{allowPointSelect:false},dataLabels:{formatter:function(){let{numberFormatter:t3}=this.series.chart,{value:i2}=this.point;return e2(i2)?t3(i2,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:true},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:false,seriesInteraction:true,dragBetweenSeries:false,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:true,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:true,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:false,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}})),i(e,"Series/Networkgraph/VerletIntegration.js",[],(function(){return{attractive:function(t2,e2,i2){let s=t2.getMass(),o=-i2.x*e2*this.diffTemperature,a=-i2.y*e2*this.diffTemperature;t2.fromNode.fixedPosition||(t2.fromNode.plotX-=o*s.fromNode/t2.fromNode.degree,t2.fromNode.plotY-=a*s.fromNode/t2.fromNode.degree),t2.toNode.fixedPosition||(t2.toNode.plotX+=o*s.toNode/t2.toNode.degree,t2.toNode.plotY+=a*s.toNode/t2.toNode.degree)},attractiveForceFunction:function(t2,e2){return(e2-t2)/t2},barycenter:function(){let t2=this.options.gravitationalConstant||0,e2=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*t2,i2=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*t2;this.nodes.forEach((function(t3){t3.fixedPosition||(t3.plotX-=e2/t3.mass/t3.degree,t3.plotY-=i2/t3.mass/t3.degree)}))},getK:function(t2){return Math.pow(t2.box.width*t2.box.height/t2.nodes.length,.5)},integrate:function(t2,e2){let i2=-t2.options.friction,s=t2.options.maxSpeed,o=e2.prevX,a=e2.prevY,r=(e2.plotX+e2.dispX-o)*i2,n=(e2.plotY+e2.dispY-a)*i2,l=Math.abs,h=l(r)/(r||1),p=l(n)/(n||1),d=h*Math.min(s,Math.abs(r)),c=p*Math.min(s,Math.abs(n));e2.prevX=e2.plotX+e2.dispX,e2.prevY=e2.plotY+e2.dispY,e2.plotX+=d,e2.plotY+=c,e2.temperature=t2.vectorLength({x:d,y:c})},repulsive:function(t2,e2,i2){let s=e2*this.diffTemperature/t2.mass/t2.degree;t2.fixedPosition||(t2.plotX+=i2.x*s,t2.plotY+=i2.y*s)},repulsiveForceFunction:function(t2,e2){return(e2-t2)/t2*(e2>t2?1:0)}}})),i(e,"Series/PackedBubble/PackedBubbleIntegration.js",[e["Core/Globals.js"],e["Series/Networkgraph/VerletIntegration.js"]],(function(t2,e2){let{noop:i2}=t2;return{barycenter:function(){let t3,e3;let i3=this.options.gravitationalConstant,s=this.box,o=this.nodes;for(let a of o)this.options.splitSeries&&!a.isParentNode?(t3=a.series.parentNode.plotX,e3=a.series.parentNode.plotY):(t3=s.width/2,e3=s.height/2),a.fixedPosition||(a.plotX-=(a.plotX-t3)*i3/(a.mass*Math.sqrt(o.length)),a.plotY-=(a.plotY-e3)*i3/(a.mass*Math.sqrt(o.length)))},getK:i2,integrate:e2.integrate,repulsive:function(t3,e3,i3,s){let o=e3*this.diffTemperature/t3.mass/t3.degree,a=i3.x*o,r=i3.y*o;t3.fixedPosition||(t3.plotX+=a,t3.plotY+=r),s.fixedPosition||(s.plotX-=a,s.plotY-=r)},repulsiveForceFunction:function(t3,e3,i3,s){return Math.min(t3,(i3.marker.radius+s.marker.radius)/2)}}})),i(e,"Series/Networkgraph/EulerIntegration.js",[],(function(){return{attractive:function(t2,e2,i2,s){let o=t2.getMass(),a=i2.x/s*e2,r=i2.y/s*e2;t2.fromNode.fixedPosition||(t2.fromNode.dispX-=a*o.fromNode/t2.fromNode.degree,t2.fromNode.dispY-=r*o.fromNode/t2.fromNode.degree),t2.toNode.fixedPosition||(t2.toNode.dispX+=a*o.toNode/t2.toNode.degree,t2.toNode.dispY+=r*o.toNode/t2.toNode.degree)},attractiveForceFunction:function(t2,e2){return t2*t2/e2},barycenter:function(){let t2=this.options.gravitationalConstant,e2=this.barycenter.xFactor,i2=this.barycenter.yFactor;this.nodes.forEach((function(s){if(!s.fixedPosition){let o=s.getDegree(),a=o*(1+o/2);s.dispX+=(e2-s.plotX)*t2*a/s.degree,s.dispY+=(i2-s.plotY)*t2*a/s.degree}}))},getK:function(t2){return Math.pow(t2.box.width*t2.box.height/t2.nodes.length,.3)},integrate:function(t2,e2){e2.dispX+=e2.dispX*t2.options.friction,e2.dispY+=e2.dispY*t2.options.friction;let i2=e2.temperature=t2.vectorLength({x:e2.dispX,y:e2.dispY});0!==i2&&(e2.plotX+=e2.dispX/i2*Math.min(Math.abs(e2.dispX),t2.temperature),e2.plotY+=e2.dispY/i2*Math.min(Math.abs(e2.dispY),t2.temperature))},repulsive:function(t2,e2,i2,s){t2.dispX+=i2.x/s*e2/t2.degree,t2.dispY+=i2.y/s*e2/t2.degree},repulsiveForceFunction:function(t2,e2){return e2*e2/t2}}})),i(e,"Series/Networkgraph/QuadTreeNode.js",[],(function(){class t2{constructor(t3){this.body=false,this.isEmpty=false,this.isInternal=false,this.nodes=[],this.box=t3,this.boxSize=Math.min(t3.width,t3.height)}divideBox(){let e2=this.box.width/2,i2=this.box.height/2;this.nodes[0]=new t2({left:this.box.left,top:this.box.top,width:e2,height:i2}),this.nodes[1]=new t2({left:this.box.left+e2,top:this.box.top,width:e2,height:i2}),this.nodes[2]=new t2({left:this.box.left+e2,top:this.box.top+i2,width:e2,height:i2}),this.nodes[3]=new t2({left:this.box.left,top:this.box.top+i2,width:e2,height:i2})}getBoxPosition(t3){let e2=t3.plotXthis.step()))):(this.simulation=false,this.series.forEach((t4=>{p(t4,"afterSimulation")})))}}stop(){this.simulation&&r.cancelAnimationFrame(this.simulation)}setArea(t3,e3,i3,s2){this.box={left:t3,top:e3,width:i3,height:s2}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(t3,e3){for(let i3 of t3)-1===e3.indexOf(i3)&&e3.push(i3)}removeElementFromCollection(t3,e3){let i3=e3.indexOf(t3);-1!==i3&&e3.splice(i3,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=false,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(false),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(true))}setMaxIterations(t3){this.maxIterations=d(t3,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(t3){this.initialRendering=t3}createQuadTree(){this.quadTree=new s(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let t3=this.options.initialPositions;if(h(t3))for(let e3 of(t3.call(this),this.nodes))l(e3.prevX)||(e3.prevX=e3.plotX),l(e3.prevY)||(e3.prevY=e3.plotY),e3.dispX=0,e3.dispY=0;else"circle"===t3?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let t3;let e3=this.box,i3=this.nodes,s2=2*Math.PI/(i3.length+1),o2=i3.filter((function(t4){return 0===t4.linksTo.length})),a2={},r2=this.options.initialPositionRadius,n2=t4=>{for(let e4 of t4.linksFrom||[])a2[e4.toNode.id]||(a2[e4.toNode.id]=true,l2.push(e4.toNode),n2(e4.toNode))},l2=[];for(let t4 of o2)l2.push(t4),n2(t4);if(l2.length)for(let t4 of i3)-1===l2.indexOf(t4)&&l2.push(t4);else l2=i3;for(let i4=0,o3=l2.length;i4{let e4=t4*t4/Math.PI;return e4-Math.floor(e4)};for(let a2=0,r2=i3.length;a2this.barnesHutApproximation(t3,e3)));else{let t3,e3,i3;for(let s2 of this.nodes)for(let o2 of this.nodes)s2===o2||s2.fixedPosition||(i3=this.getDistXY(s2,o2),0!==(e3=this.vectorLength(i3))&&(t3=this.repulsiveForce(e3,this.k),this.force("repulsive",s2,t3*o2.mass,i3,e3)))}}attractiveForces(){let t3,e3,i3;for(let s2 of this.links)s2.fromNode&&s2.toNode&&(t3=this.getDistXY(s2.fromNode,s2.toNode),0!==(e3=this.vectorLength(t3))&&(i3=this.attractiveForce(e3,this.k),this.force("attractive",s2,i3,t3,e3)))}applyLimits(){for(let t3 of this.nodes)t3.fixedPosition||(this.integration.integrate(this,t3),this.applyLimitBox(t3,this.box),t3.dispX=0,t3.dispY=0)}applyLimitBox(t3,e3){let i3=t3.radius;t3.plotX=n(t3.plotX,e3.left+i3,e3.width-i3),t3.plotY=n(t3.plotY,e3.top+i3,e3.height-i3)}coolDown(t3,e3,i3){return t3-e3*i3}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let t3=0;for(let e3 of this.nodes)t3+=e3.temperature;return t3}vectorLength(t3){return Math.sqrt(t3.x*t3.x+t3.y*t3.y)}getDistR(t3,e3){let i3=this.getDistXY(t3,e3);return this.vectorLength(i3)}getDistXY(t3,e3){let i3=t3.plotX-e3.plotX,s2=t3.plotY-e3.plotY;return{x:i3,y:s2,absX:Math.abs(i3),absY:Math.abs(s2)}}}return c})),i(e,"Series/PackedBubble/PackedBubbleLayout.js",[e["Series/GraphLayoutComposition.js"],e["Series/PackedBubble/PackedBubbleIntegration.js"],e["Series/Networkgraph/ReingoldFruchtermanLayout.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{addEvent:o,pick:a}=s;function r(){let t3=this.series,e3=[];return t3.forEach((t4=>{t4.parentNode&&t4.parentNode.selected&&e3.push(t4.parentNode)})),e3}function n(){this.allDataPoints&&delete this.allDataPoints}class l extends i2{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(s2){i2.compose(s2),t2.integrations.packedbubble=e2,t2.layouts.packedbubble=l;let a2=s2.prototype;a2.getSelectedParentNodes||(o(s2,"beforeRedraw",n),a2.getSelectedParentNodes=r)}beforeStep(){this.options.marker&&this.series.forEach((t3=>{t3&&t3.calculateParentRadius()}))}isStable(){let t3=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&t3<1e-5||this.temperature<=0}setCircularPositions(){let t3=this.box,e3=this.nodes,i3=2*Math.PI/(e3.length+1),s2=this.options.initialPositionRadius,o2,r2,n2=0;for(let l2 of e3)this.options.splitSeries&&!l2.isParentNode?(o2=l2.series.parentNode.plotX,r2=l2.series.parentNode.plotY):(o2=t3.width/2,r2=t3.height/2),l2.plotX=l2.prevX=a(l2.plotX,o2+s2*Math.cos(l2.index||n2*i3)),l2.plotY=l2.prevY=a(l2.plotY,r2+s2*Math.sin(l2.index||n2*i3)),l2.dispX=0,l2.dispY=0,n2++}repulsiveForces(){let t3,e3,i3;let s2=this,o2=s2.options.bubblePadding,a2=s2.nodes;a2.forEach((r2=>{r2.degree=r2.mass,r2.neighbours=0,a2.forEach((a3=>{t3=0,r2!==a3&&!r2.fixedPosition&&(s2.options.seriesInteraction||r2.series===a3.series)&&(i3=s2.getDistXY(r2,a3),(e3=s2.vectorLength(i3)-(r2.marker.radius+a3.marker.radius+o2))<0&&(r2.degree+=.01,r2.neighbours++,t3=s2.repulsiveForce(-e3/Math.sqrt(r2.neighbours),s2.k,r2,a3)),s2.force("repulsive",r2,t3*a3.mass,i3,a3,e3))}))}))}applyLimitBox(t3,e3){let i3,s2;this.options.splitSeries&&!t3.isParentNode&&this.options.parentNodeLimit&&(i3=this.getDistXY(t3,t3.series.parentNode),(s2=t3.series.parentNodeRadius-t3.marker.radius-this.vectorLength(i3))<0&&s2>-2*t3.marker.radius&&(t3.plotX-=.01*i3.x,t3.plotY-=.01*i3.y)),super.applyLimitBox(t3,e3)}}return t2.layouts.packedbubble=l,l})),i(e,"Series/SimulationSeriesUtilities.js",[e["Core/Utilities.js"],e["Core/Animation/AnimationUtilities.js"]],(function(t2,e2){let{merge:i2,syncTimeout:s}=t2,{animObject:o}=e2;return{initDataLabels:function(){let t3=this.options.dataLabels;if(!this.dataLabelsGroup){let e3=this.initDataLabelsGroup();return!this.chart.styledMode&&(t3==null?void 0:t3.style)&&e3.css(t3.style),e3.attr({opacity:0}),this.visible&&e3.show(),e3}return this.dataLabelsGroup.attr(i2({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){var _a;let t3=this.options.dataLabels;(t3==null?void 0:t3.defer)&&((_a=this.options.layoutAlgorithm)==null?void 0:_a.enableSimulation)?s((()=>{this.deferDataLabels=false}),t3?o(t3.animation).defer:0):this.deferDataLabels=false}}})),i(e,"Extensions/TextPath.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2){let{deg2rad:i2}=t2,{addEvent:s,merge:o,uniqueKey:a,defined:r,extend:n}=e2;function l(t3,e3){e3=o(true,{enabled:true,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e3);let i3=this.renderer.url,l2=this.text||this,h2=l2.textPath,{attributes:p2,enabled:d}=e3;if(t3=t3||h2&&h2.path,h2&&h2.undo(),t3&&d){let e4=s(l2,"afterModifyTree",(e5=>{if(t3&&d){let s2=t3.attr("id");s2||t3.attr("id",s2=a());let o2={x:0,y:0};r(p2.dx)&&(o2.dx=p2.dx,delete p2.dx),r(p2.dy)&&(o2.dy=p2.dy,delete p2.dy),l2.attr(o2),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let h3=e5.nodes.slice(0);e5.nodes.length=0,e5.nodes[0]={tagName:"textPath",attributes:n(p2,{"text-anchor":p2.textAnchor,href:`${i3}#${s2}`}),children:h3}}}));l2.textPath={path:t3,undo:e4}}else l2.attr({dx:0,dy:0}),delete l2.textPath;return this.added&&(l2.textCache="",this.renderer.buildText(l2)),this}function h(t3){var _a;let e3=t3.bBox,s2=(_a=this.element)==null?void 0:_a.querySelector("textPath");if(s2){let t4=[],{b:o2,h:a2}=this.renderer.fontMetrics(this.element),r2=a2-o2,n2=RegExp('(|]*>|<\\/tspan>)',"g"),l2=s2.innerHTML.replace(n2,"").split(/]*>/),h2=l2.length,p2=(t5,e4)=>{let{x:a3,y:n3}=e4,l3=(s2.getRotationOfChar(t5)-90)*i2,h3=Math.cos(l3),p3=Math.sin(l3);return[[a3-r2*h3,n3-r2*p3],[a3+o2*h3,n3+o2*p3]]};for(let e4=0,i3=0;i3{t4.mass=2,t4.degree=1,t4.collisionNmb=1})),r2.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),r2.addElementsToCollection([this],r2.series),r2.addElementsToCollection(this.points,r2.nodes)}addSeriesLayout(){let t3=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e3=t3.type||"packedbubble",s2=this.chart.graphLayoutsStorage,o2=this.chart.graphLayoutsLookup,a2=k(t3,t3.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),r2=s2[e3+"-series"];r2||(s2[e3+"-series"]=r2=new i2.layouts[e3],r2.init(a2),o2.splice(r2.index,0,r2)),this.parentNodeLayout=r2,this.createParentNodes()}calculateParentRadius(){let t3=this.seriesBox();this.parentNodeRadius=x(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t3?Math.max(Math.sqrt(Math.pow(t3.width,2)+Math.pow(t3.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let t3=this.chart.series,e3=this.options.zMin,i3=this.options.zMax,s2=1/0,o2=-1/0;return e3&&i3?[e3,i3]:(t3.forEach((t4=>{t4.yData.forEach((t5=>{P(t5)&&(t5>o2&&(o2=t5),t5{this.parentNodeMass+=Math.PI*Math.pow(t4.marker.radius,2)})),this.calculateParentRadius(),i3.nodes.forEach((t4=>{t4.seriesIndex===this.index&&(o2=true)})),i3.setArea(0,0,e3.plotWidth,e3.plotHeight),o2||(a2||(a2=new t3(this,{mass:this.parentNodeRadius/2,marker:r2,dataLabels:{inside:false},states:{normal:{marker:r2},hover:{marker:r2}},dataLabelOnNull:true,degree:this.parentNodeRadius,isParentNode:true,seriesIndex:this.index})),this.parentNode&&(a2.plotX=this.parentNode.plotX,a2.plotY=this.parentNode.plotY),this.parentNode=a2,i3.addElementsToCollection([this],i3.series),i3.addElementsToCollection([a2],i3.nodes))}deferLayout(){let t3=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t3.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach((t3=>{t3.removeElementFromCollection(this,t3.series)}),this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),g.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(g.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",g.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){var _a;if(!this.layout||!this.layout.options.splitSeries)return;let t3=this.chart,e3=this.layout.options.parentNodeOptions.marker,i3={fill:e3.fillColor||c(this.color).brighten(.4).get(),opacity:e3.fillOpacity,stroke:e3.lineColor||this.color,"stroke-width":v(e3.lineWidth,this.options.lineWidth)},s2={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t3.seriesGroup),(_a=this.group)==null?void 0:_a.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&P(this.parentNode.plotX)&&P(this.parentNode.plotY)&&P(this.parentNodeRadius)&&(s2=k({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},i3),this.parentNode.graphic||(this.graph=this.parentNode.graphic=t3.renderer.symbol(i3.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(s2))}drawTracker(){let t3;let e3=this.parentNode;super.drawTracker(),e3&&(t3=L(e3.dataLabels)?e3.dataLabels:e3.dataLabel?[e3.dataLabel]:[],e3.graphic&&(e3.graphic.element.point=e3),t3.forEach((t4=>{(t4.div||t4.element).point=e3})))}getPointRadius(){let t3,e3,i3,s2;let o2=this.chart,a2=o2.plotWidth,r2=o2.plotHeight,n2=this.options,l2=n2.useSimulation,h2=Math.min(a2,r2),p2={},d2=[],c2=o2.allDataPoints||[],u2=c2.length;["minSize","maxSize"].forEach((t4=>{let e4=parseInt(n2[t4],10),i4=/%$/.test(n2[t4]);p2[t4]=i4?h2*e4/100:e4*Math.sqrt(u2)})),o2.minRadius=t3=p2.minSize/Math.sqrt(u2),o2.maxRadius=e3=p2.maxSize/Math.sqrt(u2);let g2=l2?this.calculateZExtremes():[t3,e3];c2.forEach(((o3,a3)=>{i3=l2?x(o3[2],g2[0],g2[1]):o3[2],0===(s2=this.getRadius(g2[0],g2[1],t3,e3,i3))&&(s2=null),c2[a3][2]=s2,d2.push(s2)})),this.radii=d2}init(){return g.init.apply(this,arguments),m.call(this),this.eventsToUnbind.push(y(this,"updatedData",(function(){this.chart.series.forEach((t3=>{t3.type===this.type&&(t3.isDirty=true)}),this)}))),this}onMouseUp(t3){if(t3.fixedPosition&&!t3.removed){let i3;let s2=this.layout,o2=this.parentNodeLayout;o2&&s2.options.dragBetweenSeries&&o2.nodes.forEach((e3=>{t3&&t3.marker&&e3!==t3.series.parentNode&&(i3=s2.getDistXY(t3,e3),s2.vectorLength(i3)-e3.marker.radius-t3.marker.radius<0&&(e3.series.addPoint(k(t3.options,{plotX:t3.plotX,plotY:t3.plotY}),false),s2.removeElementFromCollection(t3,s2.nodes),t3.remove()))})),e2.onMouseUp.apply(this,arguments)}}placeBubbles(t3){let e3=this.checkOverlap,i3=this.positionBubble,s2=[],o2=1,a2=0,r2=0,n2,l2=[],h2,p2=t3.sort(((t4,e4)=>e4[2]-t4[2]));if(p2.length){if(s2.push([[0,0,p2[0][2],p2[0][3],p2[0][4]]]),p2.length>1)for(s2.push([[0,0-p2[1][2]-p2[0][2],p2[1][2],p2[1][3],p2[1][4]]]),h2=2;h21&&s2[o2-1][r2+1]&&e3(n2,s2[o2-1][r2+1])?(r2++,s2[o2].push(i3(s2[o2][a2],s2[o2-1][r2],p2[h2])),a2++):(a2++,s2[o2].push(n2));this.chart.stages=s2,this.chart.rawPositions=[].concat.apply([],s2),this.resizeRadius(),l2=this.chart.rawPositions}return l2}pointAttribs(t3,e3){let i3=this.options,s2=t3&&t3.isParentNode,o2=i3.marker;s2&&i3.layoutAlgorithm&&i3.layoutAlgorithm.parentNodeOptions&&(o2=i3.layoutAlgorithm.parentNodeOptions.marker);let a2=o2.fillOpacity,r2=g.pointAttribs.call(this,t3,e3);return 1!==a2&&(r2["fill-opacity"]=a2),r2}positionBubble(t3,e3,i3){let s2=Math.asin,o2=Math.acos,a2=Math.pow,r2=Math.abs,n2=(0,Math.sqrt)(a2(t3[0]-e3[0],2)+a2(t3[1]-e3[1],2)),l2=o2((a2(n2,2)+a2(i3[2]+e3[2],2)-a2(i3[2]+t3[2],2))/(2*(i3[2]+e3[2])*n2)),h2=s2(r2(t3[0]-e3[0])/n2),p2=(t3[1]-e3[1]<0?0:Math.PI)+l2+h2*((t3[0]-e3[0])*(t3[1]-e3[1])<0?1:-1),d2=Math.cos(p2),c2=Math.sin(p2);return[e3[0]+(e3[2]+i3[2])*c2,e3[1]-(e3[2]+i3[2])*d2,i3[2],i3[3],i3[4]]}render(){let t3=[];g.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach((e3=>{L(e3.dataLabels)&&e3.dataLabels.forEach((e4=>{t3.push(e4)}))})),this.options.useSimulation&&this.chart.hideOverlappingLabels(t3))}resizeRadius(){let t3,e3,i3,s2,o2;let a2=this.chart,r2=a2.rawPositions,n2=Math.min,l2=Math.max,h2=a2.plotLeft,p2=a2.plotTop,d2=a2.plotHeight,c2=a2.plotWidth;for(let a3 of(t3=i3=Number.POSITIVE_INFINITY,e3=s2=Number.NEGATIVE_INFINITY,r2))o2=a3[2],t3=n2(t3,a3[0]-o2),e3=l2(e3,a3[0]+o2),i3=n2(i3,a3[1]-o2),s2=l2(s2,a3[1]+o2);let u2=[e3-t3,s2-i3],g2=[(c2-h2)/u2[0],(d2-p2)/u2[1]],f2=n2.apply([],g2);if(Math.abs(f2-1)>1e-10){for(let t4 of r2)t4[2]*=f2;this.placeBubbles(r2)}else a2.diffY=d2/2+p2-i3-(s2-i3)/2,a2.diffX=c2/2+h2-t3-(e3-t3)/2}seriesBox(){let t3;let e3=this.chart,i3=this.data,s2=Math.max,o2=Math.min,a2=[e3.plotLeft,e3.plotLeft+e3.plotWidth,e3.plotTop,e3.plotTop+e3.plotHeight];return i3.forEach((e4=>{P(e4.plotX)&&P(e4.plotY)&&e4.marker.radius&&(t3=e4.marker.radius,a2[0]=o2(a2[0],e4.plotX-t3),a2[1]=s2(a2[1],e4.plotX+t3),a2[2]=o2(a2[2],e4.plotY-t3),a2[3]=s2(a2[3],e4.plotY+t3))})),C(a2.width/a2.height)?a2:null}setVisible(){let t3=this;g.setVisible.apply(t3,arguments),t3.parentNodeLayout&&t3.graph?t3.visible?(t3.graph.show(),t3.parentNode.dataLabel&&t3.parentNode.dataLabel.show()):(t3.graph.hide(),t3.parentNodeLayout.removeElementFromCollection(t3.parentNode,t3.parentNodeLayout.nodes),t3.parentNode.dataLabel&&t3.parentNode.dataLabel.hide()):t3.layout&&(t3.visible?t3.layout.addElementsToCollection(t3.points,t3.layout.nodes):t3.points.forEach((e3=>{t3.layout.removeElementFromCollection(e3,t3.layout.nodes)})))}translate(){let t3,e3,i3;let s2=this.chart,o2=this.data,a2=this.index,r2=this.options.useSimulation;for(let n2 of(this.processedXData=this.xData,this.generatePoints(),P(s2.allDataPoints)||(s2.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),r2?i3=s2.allDataPoints:(i3=this.placeBubbles(s2.allDataPoints),this.options.draggable=false),i3))n2[3]===a2&&(t3=o2[n2[4]],e3=v(n2[2],void 0),r2||(t3.plotX=n2[0]-s2.plotLeft+s2.diffX,t3.plotY=n2[1]-s2.plotTop+s2.diffY),C(e3)&&(t3.marker=S(t3.marker,{radius:e3,width:2*e3,height:2*e3}),t3.radius=e3));r2&&this.deferLayout(),M(this,"afterTranslate")}}return A.defaultOptions=k(f.defaultOptions,a),S(A.prototype,{pointClass:o,axisTypes:[],directTouch:true,forces:["barycenter","repulsive"],hasDraggableNodes:true,invertible:false,isCartesian:false,noSharedTooltip:true,pointArrayMap:["value"],pointValKey:"value",requireSorting:false,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:b,alignDataLabel:g.alignDataLabel,indexateNodes:u,onMouseDown:e2.onMouseDown,onMouseMove:e2.onMouseMove,redrawHalo:e2.redrawHalo,searchPoint:u}),n.registerSeriesType("packedbubble",A),A})),i(e,"Series/Polygon/PolygonSeriesDefaults.js",[],(function(){return{marker:{enabled:false,states:{hover:{enabled:false}}},stickyTracking:false,tooltip:{followPointer:true,pointFormat:""},trackByArea:true,legendSymbol:"rectangle"}})),i(e,"Series/Polygon/PolygonSeries.js",[e["Core/Globals.js"],e["Series/Polygon/PolygonSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{noop:o}=t2,{area:a,line:r,scatter:n}=i2.seriesTypes,{extend:l,merge:h}=s;class p extends n{getGraphPath(){let t3=r.prototype.getGraphPath.call(this),e3=t3.length+1;for(;e3--;)(e3===t3.length||"M"===t3[e3][0])&&e3>0&&t3.splice(e3,0,["Z"]);return this.areaPath=t3,t3}drawGraph(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)}}return p.defaultOptions=h(n.defaultOptions,e2),l(p.prototype,{type:"polygon",drawTracker:r.prototype.drawTracker,setStackedPoints:o}),i2.registerSeriesType("polygon",p),p})),i(e,"Core/Axis/RadialAxisDefaults.js",[],(function(){return{circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:false,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:false,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:false,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:false,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}}})),i(e,"Core/Axis/RadialAxis.js",[e["Core/Axis/RadialAxisDefaults.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){var o;let{defaultOptions:a}=e2,{composed:r,noop:n}=i2,{addEvent:l,correctFloat:h,defined:p,extend:d,fireEvent:c,isObject:u,merge:g,pick:f,pushUnique:b,relativeLength:m,wrap:y}=s;return function(e3){function s2(){this.autoConnect=this.isCircular&&void 0===f(this.userMax,this.options.max)&&h(this.endAngleRad-this.startAngleRad)===h(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function o2(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&true!==this.options.labels.allowOverlap)return this.tickPositions.map((t3=>this.ticks[t3]&&this.ticks[t3].label)).filter((t3=>!!t3))}}function x(){return n}function P(t3,e4,i3){let s3=this.pane.center,o3=t3.value,a2,r2,n2;return this.isCircular?(p(o3)?t3.point&&(t3.point.shapeArgs||{}).start&&(o3=this.chart.inverted?this.translate(t3.point.rectPlotY,true):t3.point.x):(r2=t3.chartX||0,n2=t3.chartY||0,o3=this.translate(Math.atan2(n2-i3,r2-e4)-this.startAngleRad,true)),r2=(a2=this.getPosition(o3)).x,n2=a2.y):(p(o3)||(r2=t3.chartX,n2=t3.chartY),p(r2)&&p(n2)&&(i3=s3[1]+this.chart.plotTop,o3=this.translate(Math.min(Math.sqrt(Math.pow(r2-e4,2)+Math.pow(n2-i3,2)),s3[2]/2)-s3[3]/2,true))),[o3,r2||0,n2||0]}function S(t3,e4,i3){let s3=this.pane.center,o3=this.chart,a2=this.left||0,r2=this.top||0,n2,l2=f(e4,s3[2]/2-this.offset),h2;return void 0===i3&&(i3=this.horiz?0:this.center&&-this.center[3]/2),i3&&(l2+=i3),this.isCircular||void 0!==e4?((h2=this.chart.renderer.symbols.arc(a2+s3[0],r2+s3[1],l2,l2,{start:this.startAngleRad,end:this.endAngleRad,open:true,innerR:0})).xBounds=[a2+s3[0]],h2.yBounds=[r2+s3[1]-l2]):(n2=this.postTranslate(this.angleRad,l2),h2=[["M",this.center[0]+o3.plotLeft,this.center[1]+o3.plotTop],["L",n2.x,n2.y]]),h2}function M(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function L(t3,e4,i3){let s3=this.chart,o3=t4=>{if("string"==typeof t4){let e5=parseInt(t4,10);return d2.test(t4)&&(e5=e5*n2/100),e5}return t4},a2=this.center,r2=this.startAngleRad,n2=a2[2]/2,l2=Math.min(this.offset,0),h2=this.left||0,p2=this.top||0,d2=/%$/,c2=this.isCircular,u2,g2,b2,m2,y2,x2,P2=f(o3(i3.outerRadius),n2),S2=o3(i3.innerRadius),M2=f(o3(i3.thickness),10);if("polygon"===this.options.gridLineInterpolation)x2=this.getPlotLinePath({value:t3}).concat(this.getPlotLinePath({value:e4,reverse:true}));else{t3=Math.max(t3,this.min),e4=Math.min(e4,this.max);let o4=this.translate(t3),n3=this.translate(e4);c2||(P2=o4||0,S2=n3||0),"circle"!==i3.shape&&c2?(u2=r2+(o4||0),g2=r2+(n3||0)):(u2=-Math.PI/2,g2=1.5*Math.PI,y2=true),P2-=l2,M2-=l2,x2=s3.renderer.symbols.arc(h2+a2[0],p2+a2[1],P2,P2,{start:Math.min(u2,g2),end:Math.max(u2,g2),innerR:f(S2,P2-M2),open:y2,borderRadius:i3.borderRadius}),c2&&(b2=(g2+u2)/2,m2=h2+a2[0]+a2[2]/2*Math.cos(b2),x2.xBounds=b2>-Math.PI/2&&b2-Math.PI&&b2<0||b2>Math.PI?-10:10)}return x2}function C(t3){let e4=this.pane.center,i3=this.chart,s3=i3.inverted,o3=t3.reverse,a2=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},r2=a2.innerRadius||"0%",n2=a2.outerRadius||"100%",l2=e4[0]+i3.plotLeft,h2=e4[1]+i3.plotTop,p2=this.height,d2=t3.isCrosshair,c2=e4[3]/2,u2=t3.value,g2,f2,b2,y2,x2,P2,S2,M2,L2,C2=this.getPosition(u2),k2=C2.x,v2=C2.y;if(d2&&(u2=(M2=this.getCrosshairPosition(t3,l2,h2))[0],k2=M2[1],v2=M2[2]),this.isCircular)f2=Math.sqrt(Math.pow(k2-l2,2)+Math.pow(v2-h2,2)),b2="string"==typeof r2?m(r2,1):r2/f2,y2="string"==typeof n2?m(n2,1):n2/f2,e4&&c2&&(b2<(g2=c2/f2)&&(b2=g2),y2p2)&&(u2=0),"circle"===this.options.gridLineInterpolation)L2=this.getLinePath(0,u2,c2);else if(L2=[],i3[s3?"yAxis":"xAxis"].forEach((t4=>{t4.pane===this.pane&&(x2=t4)})),x2){S2=x2.tickPositions,x2.autoConnect&&(S2=S2.concat([S2[0]])),o3&&(S2=S2.slice().reverse()),u2&&(u2+=c2);for(let t4=0;t4Math.PI&&(a2-=t4),r2>Math.PI&&(r2-=t4),this.normalizedStartAngleRad=a2,this.normalizedEndAngleRad=r2}}function T(t3){this.isRadial&&(t3.align=void 0,t3.preventDefault())}function N(){if(this.chart&&this.chart.labelCollectors){let t3=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;t3>=0&&this.chart.labelCollectors.splice(t3,1)}}function X(t3){let e4;let i3=this.chart,s3=i3.angular,o3=i3.polar,a2=this.isXAxis,r2=this.coll,l2=t3.userOptions.pane||0,h2=this.pane=i3.pane&&i3.pane[l2];if("colorAxis"===r2){this.isRadial=false;return}s3?(s3&&a2?(this.isHidden=true,this.createLabelCollector=x,this.getOffset=n,this.redraw=E,this.render=E,this.setScale=n,this.setCategories=n,this.setTitle=n):A(this),e4=!a2):o3&&(A(this),e4=this.horiz),s3||o3?(this.isRadial=true,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&i3.labelCollectors.push(this.labelCollector)):this.isRadial=false,h2&&e4&&(h2.axis=this),this.isCircular=e4}function R(){this.isRadial&&this.beforeSetTickPositions()}function Y(t3){let e4=this.label;if(!e4)return;let i3=this.axis,s3=e4.getBBox(),o3=i3.options.labels,a2=(i3.translate(this.pos)+i3.startAngleRad+Math.PI/2)/Math.PI*180%360,r2=Math.round(a2),n2=p(o3.y)?0:-(.3*s3.height),l2=o3.y,h2,d2=20,c2=o3.align,u2="end",g2=r2<0?r2+360:r2,b2=g2,y2=0,x2=0;i3.isRadial&&(h2=i3.getPosition(this.pos,i3.center[2]/2+m(f(o3.distance,-25),i3.center[2]/2,-i3.center[2]/2)),"auto"===o3.rotation?e4.attr({rotation:a2}):p(l2)||(l2=i3.chart.renderer.fontMetrics(e4).b-s3.height/2),p(c2)||(i3.isCircular?(s3.width>i3.len*i3.tickInterval/(i3.max-i3.min)&&(d2=0),c2=a2>d2&&a2<180-d2?"left":a2>180+d2&&a2<360-d2?"right":"center"):c2="center",e4.attr({align:c2})),"auto"===c2&&2===i3.tickPositions.length&&i3.isCircular&&(g2>90&&g2<180?g2=180-g2:g2>270&&g2<=360&&(g2=540-g2),b2>180&&b2<=360&&(b2=360-b2),(i3.pane.options.startAngle===r2||i3.pane.options.startAngle===r2+360||i3.pane.options.startAngle===r2-360)&&(u2="start"),c2=r2>=-90&&r2<=90||r2>=-360&&r2<=-270||r2>=270&&r2<=360?"start"===u2?"right":"left":"start"===u2?"left":"right",b2>70&&b2<110&&(c2="center"),g2<15||g2>=180&&g2<195?y2=.3*s3.height:g2>=15&&g2<=35?y2="start"===u2?0:.75*s3.height:g2>=195&&g2<=215?y2="start"===u2?.75*s3.height:0:g2>35&&g2<=90?y2="start"===u2?-(.25*s3.height):s3.height:g2>215&&g2<=270&&(y2="start"===u2?s3.height:-(.25*s3.height)),b2<15?x2="start"===u2?-(.15*s3.height):.15*s3.height:b2>165&&b2<=180&&(x2="start"===u2?.15*s3.height:-(.15*s3.height)),e4.attr({align:c2}),e4.translate(x2,y2+n2)),t3.pos.x=h2.x+(o3.x||0),t3.pos.y=h2.y+(l2||0))}function j(t3){this.axis.getPosition&&d(t3.pos,this.axis.getPosition(this.pos))}function I({options:t3}){t3.xAxis&&g(true,e3.radialDefaultOptions.circular,t3.xAxis),t3.yAxis&&g(true,e3.radialDefaultOptions.radialGauge,t3.yAxis)}function D(t3,e4){let i3=this.chart,s3=this.center;return t3=this.startAngleRad+t3,{x:i3.plotLeft+s3[0]+Math.cos(t3)*e4,y:i3.plotTop+s3[1]+Math.sin(t3)*e4}}function E(){this.isDirty=false}function B(){let t3,e4;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),t3=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(e4=this.postTranslate(this.angleRad,t3[3]/2),t3[0]=e4.x-this.chart.plotLeft,t3[1]=e4.y-this.chart.plotTop),this.len=this.width=this.height=(t3[2]-t3[3])*f(this.sector,1)/2)}function z(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function O(t3){let{coll:i3}=this,{angular:s3,inverted:o3,polar:r2}=this.chart,n2={};s3?this.isXAxis||(n2=g(a.yAxis,e3.radialDefaultOptions.radialGauge)):r2&&(n2=this.horiz?g(a.xAxis,e3.radialDefaultOptions.circular):g("xAxis"===i3?a.xAxis:a.yAxis,e3.radialDefaultOptions.radial)),o3&&"yAxis"===i3&&(n2.stackLabels=u(a.yAxis,true)?a.yAxis.stackLabels:{},n2.reversedStacks=true);let l2=this.options=g(n2,t3);l2.plotBands||(l2.plotBands=[]),c(this,"afterSetOptions")}function W(t3,e4,i3,s3,o3,a2,r2){let n2;let l2=this.axis;return l2.isRadial?["M",e4,i3,"L",(n2=l2.getPosition(this.pos,l2.center[2]/2+s3)).x,n2.y]:t3.call(this,e4,i3,s3,o3,a2,r2)}e3.radialDefaultOptions=g(t2),e3.compose=function(t3,e4){return b(r,"Axis.Radial")&&(l(t3,"afterInit",w2),l(t3,"autoLabelAlign",T),l(t3,"destroy",N),l(t3,"init",X),l(t3,"initialAxisTranslation",R),l(e4,"afterGetLabelPosition",Y),l(e4,"afterGetPosition",j),l(i2,"setOptions",I),y(e4.prototype,"getMarkPath",W)),t3}}(o||(o={})),o})),i(e,"Series/PolarComposition.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Series/Series.js"],e["Extensions/Pane/Pane.js"],e["Core/Axis/RadialAxis.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,o,a){let{animObject:r}=t2,{composed:n}=e2,{addEvent:l,defined:h,find:p,isNumber:d,merge:c,pick:u,pushUnique:g,relativeLength:f,splat:b,uniqueKey:m,wrap:y}=a;function x(){(this.pane||[]).forEach((t3=>{t3.render()}))}function P(t3){let e3=t3.args[0].xAxis,i3=t3.args[0].yAxis,s2=t3.args[0].chart;e3&&i3&&("polygon"===i3.gridLineInterpolation?(e3.startOnTick=true,e3.endOnTick=true):"polygon"===e3.gridLineInterpolation&&s2.inverted&&(i3.startOnTick=true,i3.endOnTick=true))}function S(){this.pane||(this.pane=[]),this.options.pane=b(this.options.pane),this.options.pane.forEach((t3=>{new s(t3,this)}),this)}function M(t3){let e3=t3.args.marker,i3=this.chart.xAxis[0],s2=this.chart.yAxis[0],o2=this.chart.inverted,a2=o2?s2:i3,r2=o2?i3:s2;if(this.chart.polar){t3.preventDefault();let i4=(e3.attr?e3.attr("start"):e3.start)-a2.startAngleRad,s3=e3.attr?e3.attr("r"):e3.r,o3=(e3.attr?e3.attr("end"):e3.end)-a2.startAngleRad,n2=e3.attr?e3.attr("innerR"):e3.innerR;t3.result.x=i4+a2.pos,t3.result.width=o3-i4,t3.result.y=r2.len+r2.pos-s3,t3.result.height=s3-n2}}function L(t3){let e3=this.chart;if(e3.polar&&e3.hoverPane&&e3.hoverPane.axis){t3.preventDefault();let i3=e3.hoverPane.center,s2=e3.mouseDownX||0,o2=e3.mouseDownY||0,a2=t3.args.chartY,r2=t3.args.chartX,n2=2*Math.PI,l2=e3.hoverPane.axis.startAngleRad,h2=e3.hoverPane.axis.endAngleRad,p2=e3.inverted?e3.xAxis[0]:e3.yAxis[0],d2={},c2="arc";if(d2.x=i3[0]+e3.plotLeft,d2.y=i3[1]+e3.plotTop,this.zoomHor){let t4=l2>0?h2-l2:Math.abs(l2)+Math.abs(h2),u2=Math.atan2(o2-e3.plotTop-i3[1],s2-e3.plotLeft-i3[0])-l2,g2=Math.atan2(a2-e3.plotTop-i3[1],r2-e3.plotLeft-i3[0])-l2;d2.r=i3[2]/2,d2.innerR=i3[3]/2,u2<=0&&(u2+=n2),g2<=0&&(g2+=n2),g2h2+(n2-t4)/2&&(g2=u2,u2=l2<=0?l2:0);let f2=d2.start=Math.max(u2+l2,l2),b2=d2.end=Math.min(g2+l2,h2);if("polygon"===p2.options.gridLineInterpolation){let t5=e3.hoverPane.axis,s3=f2-t5.startAngleRad+t5.pos,o3=p2.getPlotLinePath({value:p2.max}),a3=t5.toValue(s3),r3=t5.toValue(s3+(b2-f2));if(a3i3[2]/2&&(p3=i3[2]/2),n3t3.max?(o2[a2].isNull=true,o2[a2].plotY=NaN):o2[a2].isNull=o2[a2].isValid&&!o2[a2].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(l(this,"afterRender",(function(){let t4;s2.polar&&false!==this.options.clip&&(t4=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:t4[0],y:t4[1],r:t4[2]/2,innerR:t4[3]/2}):this.clipCircle=function(t5,e3,i4,s3,o3){let a3=m(),r2=t5.createElement("clipPath").attr({id:a3}).add(t5.defs),n2=o3?t5.arc(e3,i4,s3,o3,0,2*Math.PI).add(r2):t5.circle(e3,i4,s3).add(r2);return n2.id=a3,n2.clipPath=r2,n2}(s2.renderer,t4[0],t4[1],t4[2]/2,t4[3]/2),this.group.clip(this.clipCircle),this.setClip=e2.noop)}))))}}function v(t3){let e3=this.chart,i3=this.xAxis,s2=this.yAxis,o2=i3.pane&&i3.pane.center,a2=t3.chartX-(o2&&o2[0]||0)-e3.plotLeft,r2=t3.chartY-(o2&&o2[1]||0)-e3.plotTop,n2=e3.inverted?{clientX:t3.chartX-s2.pos,plotY:t3.chartY-i3.pos}:{clientX:180+-180/Math.PI*Math.atan2(a2,r2)};return this.searchKDTree(n2)}function A(t3,e3,i3,s2){let o2=s2.tickInterval,a2=s2.tickPositions,r2=p(a2,(t4=>t4>=i3)),n2=p([...a2].reverse(),(t4=>t4<=e3));return h(r2)||(r2=a2[a2.length-1]),h(n2)||(n2=a2[0],r2+=o2,t3[0][0]="L",t3.unshift(t3[t3.length-3])),(t3=t3.slice(a2.indexOf(n2),a2.indexOf(r2)+1))[0][0]="M",t3}function w2(t3,e3){return p(this.pane||[],(t4=>t4.options.id===e3))||t3.call(this,e3)}function T(t3,e3,s2,o2,a2,r2){let n2,l2,h2;let p2=this.chart,d2=u(o2.inside,!!this.options.stacking);if(p2.polar){if(n2=e3.rectPlotX/Math.PI*180,p2.inverted)this.forceDL=p2.isInsidePlot(e3.plotX,e3.plotY),d2&&e3.shapeArgs?(l2=e3.shapeArgs,a2=c(a2,{x:(h2=this.yAxis.postTranslate(((l2.start||0)+(l2.end||0))/2-this.xAxis.startAngleRad,e3.barX+e3.pointWidth/2)).x-p2.plotLeft,y:h2.y-p2.plotTop})):e3.tooltipPos&&(a2=c(a2,{x:e3.tooltipPos[0],y:e3.tooltipPos[1]})),o2.align=u(o2.align,"center"),o2.verticalAlign=u(o2.verticalAlign,"middle");else{var g2;let t4,e4;null===(g2=o2).align&&(t4=n2>20&&n2<160?"left":n2>200&&n2<340?"right":"center",g2.align=t4),null===g2.verticalAlign&&(e4=n2<45||n2>315?"bottom":n2>135&&n2<225?"top":"middle",g2.verticalAlign=e4),o2=g2}i2.prototype.alignDataLabel.call(this,e3,s2,o2,a2,r2),this.isRadialBar&&e3.shapeArgs&&e3.shapeArgs.start===e3.shapeArgs.end?s2.hide():s2.show()}else t3.call(this,e3,s2,o2,a2,r2)}function N(){let t3=this.options,e3=t3.stacking,i3=this.chart,s2=this.xAxis,o2=this.yAxis,r2=o2.reversed,n2=o2.center,l2=s2.startAngleRad,p2=s2.endAngleRad-l2,c2=t3.threshold,u2=0,g2,b2,m2,y2,x2,P2=0,S2=0,M2,L2,C2,k2,v2,A2,w3,T2;if(s2.isRadial)for(m2=(g2=this.points).length,y2=o2.translate(o2.min),x2=o2.translate(o2.max),c2=t3.threshold||0,i3.inverted&&d(c2)&&h(u2=o2.translate(c2))&&(u2<0?u2=0:u2>p2&&(u2=p2),this.translatedThreshold=u2+l2);m2--;){if(A2=(b2=g2[m2]).barX,L2=b2.x,C2=b2.y,b2.shapeType="arc",i3.inverted){b2.plotY=o2.translate(C2),e3&&o2.stacking?(v2=o2.stacking.stacks[(C2<0?"-":"")+this.stackKey],this.visible&&v2&&v2[L2]&&!b2.isNull&&(k2=v2[L2].points[this.getStackIndicator(void 0,L2,this.index).key],P2=o2.translate(k2[0]),S2=o2.translate(k2[1]),h(P2)&&(P2=a.clamp(P2,0,p2)))):(P2=u2,S2=b2.plotY),P2>S2&&(S2=[P2,P2=S2][0]),r2?S2>y2?S2=y2:P2y2||S2x2?S2=x2:(S2x2)&&(P2=S2=0),o2.min>o2.max&&(P2=S2=r2?p2:0),P2+=l2,S2+=l2,n2&&(b2.barX=A2+=n2[3]/2),w3=Math.max(A2,0),T2=Math.max(A2+b2.pointWidth,0);let i4=t3.borderRadius,s3=f(("object"==typeof i4?i4.radius:i4)||0,T2-w3);b2.shapeArgs={x:n2[0],y:n2[1],r:T2,innerR:w3,start:P2,end:S2,borderRadius:s3},b2.opacity=P2===S2?0:void 0,b2.plotY=(h(this.translatedThreshold)&&(P2n2[1])}}function X(t3,e3){let i3,s2;let o2=this;if(this.chart.polar){e3=e3||this.points;for(let t4=0;t4{void 0===t4.polarPlotY&&o2.polar.toXY(t4)}))}let a2=t3.apply(this,[].slice.call(arguments,1));return s2&&e3.pop(),a2}function R(t3,e3){let i3=this.chart,s2={xAxis:[],yAxis:[]};return i3.polar?i3.axes.forEach((t4=>{if("colorAxis"===t4.coll)return;let o2=t4.isXAxis,a2=t4.center,r2=e3.chartX-a2[0]-i3.plotLeft,n2=e3.chartY-a2[1]-i3.plotTop;s2[o2?"xAxis":"yAxis"].push({axis:t4,value:t4.translate(o2?Math.PI-Math.atan2(r2,n2):Math.sqrt(Math.pow(r2,2)+Math.pow(n2,2)),true)})})):s2=t3.call(this,e3),s2}function Y(t3,e3){this.chart.polar||t3.call(this,e3)}function j(t3,i3){let s2=this,o2=this.chart,a2=this.group,n2=this.markerGroup,l2=this.xAxis&&this.xAxis.center,h2=o2.plotLeft,p2=o2.plotTop,d2=this.options.animation,c2,g2,f2,b2,m2,y2;o2.polar?s2.isRadialBar?i3||(s2.startAngleRad=u(s2.translatedThreshold,s2.xAxis.startAngleRad),e2.seriesTypes.pie.prototype.animate.call(s2,i3)):(d2=r(d2),s2.is("column")?i3||(g2=l2[3]/2,s2.points.forEach((t4=>{f2=t4.graphic,m2=(b2=t4.shapeArgs)&&b2.r,y2=b2&&b2.innerR,f2&&b2&&(f2.attr({r:g2,innerR:g2}),f2.animate({r:m2,innerR:y2},s2.options.animation))}))):i3?(c2={translateX:l2[0]+h2,translateY:l2[1]+p2,scaleX:.001,scaleY:.001},a2.attr(c2),n2&&n2.attr(c2)):(c2={translateX:h2,translateY:p2,scaleX:1,scaleY:1},a2.animate(c2,d2),n2&&n2.animate(c2,d2))):t3.call(this,i3)}function I(t3,e3,i3,s2){let o2,a2;if(this.chart.polar){if(s2){let t4=(a2=function t5(e4,i5,s3,o3){let a3,r2,n2,l2,h2,p2;let d2=o3?1:0,c2=(a3=i5>=0&&i5<=e4.length-1?i5:i5<0?e4.length-1+i5:0)-1<0?e4.length-(1+d2):a3-1,u2=a3+1>e4.length-1?d2:a3+1,g2=e4[c2],f2=e4[u2],b2=g2.plotX,m2=g2.plotY,y2=f2.plotX,x2=f2.plotY,P2=e4[a3].plotX,S2=e4[a3].plotY;r2=(1.5*P2+b2)/2.5,n2=(1.5*S2+m2)/2.5,l2=(1.5*P2+y2)/2.5,h2=(1.5*S2+x2)/2.5;let M2=Math.sqrt(Math.pow(r2-P2,2)+Math.pow(n2-S2,2)),L2=Math.sqrt(Math.pow(l2-P2,2)+Math.pow(h2-S2,2)),C2=Math.atan2(n2-S2,r2-P2);p2=Math.PI/2+(C2+Math.atan2(h2-S2,l2-P2))/2,Math.abs(C2-p2)>Math.PI/2&&(p2-=Math.PI),r2=P2+Math.cos(p2)*M2,n2=S2+Math.sin(p2)*M2;let k2={rightContX:l2=P2+Math.cos(Math.PI+p2)*L2,rightContY:h2=S2+Math.sin(Math.PI+p2)*L2,leftContX:r2,leftContY:n2,plotX:P2,plotY:S2};return s3&&(k2.prevPointCont=t5(e4,c2,false,o3)),k2}(e3,s2,true,this.connectEnds)).prevPointCont&&a2.prevPointCont.rightContX,i4=a2.prevPointCont&&a2.prevPointCont.rightContY;o2=["C",d(t4)?t4:a2.plotX,d(i4)?i4:a2.plotY,d(a2.leftContX)?a2.leftContX:a2.plotX,d(a2.leftContY)?a2.leftContY:a2.plotY,a2.plotX,a2.plotY]}else o2=["M",i3.plotX,i3.plotY]}else o2=t3.call(this,e3,i3,s2);return o2}function D(t3,e3,i3=this.plotY){if(!this.destroyed){let{plotX:s2,series:o2}=this,{chart:a2}=o2;return a2.polar&&d(s2)&&d(i3)?[s2+(e3?a2.plotLeft:0),i3+(e3?a2.plotTop:0)]:t3.call(this,e3,i3)}}class E{static compose(t3,e3,i3,a2,r2,h2,p2,d2,c2,u2){if(s.compose(e3,i3),o.compose(t3,r2),g(n,"Polar")){let t4=e3.prototype,s2=h2.prototype,o2=i3.prototype,r3=a2.prototype;if(l(e3,"afterDrawChartBox",x),l(e3,"getAxes",S),l(e3,"init",P),y(t4,"get",w2),y(o2,"getCoordinates",R),y(o2,"pinch",Y),l(i3,"getSelectionMarkerAttrs",L),l(i3,"getSelectionBox",M),l(a2,"afterInit",C),l(a2,"afterTranslate",k,{order:2}),l(a2,"afterColumnTranslate",N,{order:4}),y(r3,"animate",j),y(s2,"pos",D),d2){let t5=d2.prototype;y(t5,"alignDataLabel",T),y(t5,"animate",j)}if(c2&&y(c2.prototype,"getGraphPath",X),u2){let t5=u2.prototype;y(t5,"getPointSpline",I),p2&&(p2.prototype.getPointSpline=t5.getPointSpline)}}}constructor(t3){this.series=t3}arc(t3,e3,i3,s2){let o2=this.series,a2=o2.xAxis.center,r2=o2.yAxis.len,n2=a2[3]/2,l2=r2-e3+n2,h2=r2-u(t3,r2)+n2;return o2.yAxis.reversed&&(l2<0&&(l2=n2),h2<0&&(h2=n2)),{x:a2[0],y:a2[1],r:l2,innerR:h2,start:i3,end:s2}}toXY(t3){let e3=this.series,i3=e3.chart,s2=e3.xAxis,o2=e3.yAxis,a2=t3.plotX,r2=i3.inverted,n2=t3.y,l2=t3.plotY,h2=r2?a2:o2.len-l2,p2;if(r2&&e3&&!e3.isRadialBar&&(t3.plotY=l2=d(n2)?o2.translate(n2):0),t3.rectPlotX=a2,t3.rectPlotY=l2,o2.center&&(h2+=o2.center[3]/2),d(l2)){let e4=r2?o2.postTranslate(l2,h2):s2.postTranslate(a2,h2);t3.plotX=t3.polarPlotX=e4.x-i3.plotLeft,t3.plotY=t3.polarPlotY=e4.y-i3.plotTop}e3.kdByAngle?((p2=(a2/Math.PI*180+s2.pane.options.startAngle)%360)<0&&(p2+=360),t3.clientX=p2):t3.clientX=t3.plotX}}return E})),i(e,"Core/Axis/WaterfallAxis.js",[e["Core/Globals.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){var s;let{composed:o}=t2,{addEvent:a,objectEach:r,pushUnique:n}=i2;return function(t3){function i3(){let t4=this.waterfall.stacks;t4&&(t4.changed=false,delete t4.alreadyChanged)}function s2(){let t4=this.options.stackLabels;t4&&t4.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function l(){this.waterfall||(this.waterfall=new p(this))}function h(){let t4=this.axes;for(let e3 of this.series)if(e3.options.stacking){for(let e4 of t4)e4.isXAxis||(e4.waterfall.stacks.changed=true);break}}t3.compose=function(t4,e3){n(o,"Axis.Waterfall")&&(a(t4,"init",l),a(t4,"afterBuildStacks",i3),a(t4,"afterRender",s2),a(e3,"beforeRedraw",h))};class p{constructor(t4){this.axis=t4,this.stacks={changed:false}}renderStackTotals(){let t4=this.axis,i4=t4.waterfall.stacks,s3=t4.stacking&&t4.stacking.stackTotalGroup,o2=new e2(t4,t4.options.stackLabels||{},false,0,void 0);this.dummyStackItem=o2,s3&&r(i4,(t5=>{r(t5,((t6,i5)=>{o2.total=t6.stackTotal,o2.x=+i5,t6.label&&(o2.label=t6.label),e2.prototype.render.call(o2,s3),t6.label=o2.label,delete o2.label}))})),o2.total=null}}t3.Composition=p}(s||(s={})),s})),i(e,"Series/Waterfall/WaterfallPoint.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{isNumber:s}=i2;class o extends t2.prototype.pointClass{getClassName(){let t3=e2.prototype.getClassName.call(this);return this.isSum?t3+=" highcharts-sum":this.isIntermediateSum&&(t3+=" highcharts-intermediate-sum"),t3}isValid(){return s(this.y)||this.isSum||!!this.isIntermediateSum}}return o})),i(e,"Series/Waterfall/WaterfallSeriesDefaults.js",[],(function(){return{dataLabels:{inside:true},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}})),i(e,"Series/Waterfall/WaterfallSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Core/Axis/WaterfallAxis.js"],e["Series/Waterfall/WaterfallPoint.js"],e["Series/Waterfall/WaterfallSeriesDefaults.js"]],(function(t2,e2,i2,s,o){let{column:a,line:r}=t2.seriesTypes,{addEvent:n,arrayMax:l,arrayMin:h,correctFloat:p,crisp:d,extend:c,isNumber:u,merge:g,objectEach:f,pick:b}=e2;function m(t3,e3){return Object.hasOwnProperty.call(t3,e3)}class y extends a{generatePoints(){a.prototype.generatePoints.apply(this);for(let t3=0,e3=this.points.length;t30?i3:void 0);let s2=a.prototype.pointAttribs.call(this,t3,e3);return delete s2.dashstyle,s2}getGraphPath(){return[["M",0,0]]}getCrispPath(){var _a;let t3=this.data.filter((t4=>u(t4.y))),e3=this.yAxis,i3=t3.length,s2=((_a=this.graph)==null?void 0:_a.strokeWidth())||0,o2=this.xAxis.reversed,a2=this.yAxis.reversed,r2=this.options.stacking,n2=[];for(let l2=1;l20?-c2.height:0;if(g2&&c2&&i4){let t4;let p3=g2[l2-1];if(r2){let i5=p3.connectorThreshold;t4=d(e3.translate(i5,false,true,false,true)+(a2?f2:0),s2)}else t4=d(c2.y+(h2.minPointLengthOffset||0),s2);n2.push(["M",(c2.x||0)+(o2?0:c2.width||0),t4],["L",(i4.x||0)+(o2&&i4.width||0),t4])}if(c2&&n2.length&&(!r2&&p2<0&&!a2||p2>0&&a2)){let t4=n2[n2.length-2];t4&&"number"==typeof t4[2]&&(t4[2]+=c2.height||0);let e4=n2[n2.length-1];e4&&"number"==typeof e4[2]&&(e4[2]+=c2.height||0)}}return n2}drawGraph(){r.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(t3){var _a;let e3=this.options,i3=(_a=t3.waterfall)==null?void 0:_a.stacks,s2=e3.threshold||0,o2=this.stackKey,a2=this.xData,r2=a2.length,n2=s2,l2=n2,h2,p2=0,d2=0,c2=0,u2,g2,f2,b2,m2,y2,x,P,S=(t4,e4,i4,s3)=>{if(h2){if(u2)for(;i4x.indexOf(o2)&&(P=true),i3[o2]||(i3[o2]={});let t4=i3[o2];if(t4)for(let i4=0;i4=0?h2.posTotal+=m2:h2.negTotal+=m2,b2=e3.data[i4],g2=h2.absolutePos=h2.posTotal,f2=h2.absoluteNeg=h2.negTotal,h2.stackTotal=g2+f2,u2=h2.stackState.length,b2&&b2.isIntermediateSum?(S(c2,d2,0,c2),c2=d2,d2=s2,n2^=l2,l2^=n2,n2^=l2):b2&&b2.isSum?(S(s2,p2,u2,0),n2=s2):(S(n2,m2,0,p2),b2&&(p2+=m2,d2+=m2)),h2.stateIndex++,h2.threshold=n2,n2+=h2.stackTotal;i3.changed=false,i3.alreadyChanged||(i3.alreadyChanged=[]),i3.alreadyChanged.push(o2)}}getExtremes(){let t3,e3,i3;let s2=this.options.stacking;return s2?(t3=this.yAxis.waterfall.stacks,e3=this.stackedYNeg=[],i3=this.stackedYPos=[],"overlap"===s2?f(t3[this.stackKey],(function(t4){e3.push(h(t4.stackState)),i3.push(l(t4.stackState))})):f(t3[this.stackKey],(function(t4){e3.push(t4.negTotal+t4.threshold),i3.push(t4.posTotal+t4.threshold)})),{dataMin:h(e3),dataMax:l(i3)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return y.defaultOptions=g(a.defaultOptions,o),y.compose=i2.compose,c(y.prototype,{pointValKey:"y",showLine:true,pointClass:s}),n(y,"afterColumnTranslate",(function(){let{options:t3,points:e3,yAxis:i3}=this,s2=b(t3.minPointLength,5),o2=s2/2,a2=t3.threshold||0,r2=t3.stacking,n2=i3.waterfall.stacks[this.stackKey],l2=a2,h2=a2,p2,f2,y2,x;for(let t4=0;t4=0?f2:f2-L,m(e4,"absolutePos")&&delete e4.absolutePos,m(e4,"absoluteNeg")&&delete e4.absoluteNeg):(L>=0?(f2=e4.threshold+e4.posTotal,e4.posTotal-=L,p2=f2):(f2=e4.threshold+e4.negTotal,e4.negTotal-=L,p2=f2-L),!e4.posTotal&&u(e4.absolutePos)&&m(e4,"absolutePos")&&(e4.posTotal=e4.absolutePos,delete e4.absolutePos),!e4.negTotal&&u(e4.absoluteNeg)&&m(e4,"absoluteNeg")&&(e4.negTotal=e4.absoluteNeg,delete e4.absoluteNeg)),b2.isSum||(e4.connectorThreshold=e4.threshold+e4.stackTotal),i3.reversed?(y2=L>=0?p2-L:p2+L,x=p2):(y2=p2,x=p2-L),b2.below=y2<=a2,S.y=i3.translate(y2,false,true,false,true),S.height=Math.abs(S.y-i3.translate(x,false,true,false,true));let s3=i3.waterfall.dummyStackItem;s3&&(s3.x=t4,s3.label=n2[t4].label,s3.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[t4],this.stackedYPos[t4],void 0,this.xAxis))}}else p2=Math.max(h2,h2+L)+M[0],S.y=i3.translate(p2,false,true,false,true),b2.isSum?(S.y=i3.translate(M[1],false,true,false,true),S.height=Math.min(i3.translate(M[0],false,true,false,true),i3.len)-S.y,b2.below=M[1]<=a2):b2.isIntermediateSum?(L>=0?(y2=M[1]+l2,x=l2):(y2=l2,x=M[1]+l2),i3.reversed&&(y2^=x,x^=y2,y2^=x),S.y=i3.translate(y2,false,true,false,true),S.height=Math.abs(S.y-Math.min(i3.translate(x,false,true,false,true),i3.len)),l2+=M[1],b2.below=y2<=a2):(S.height=P>0?i3.translate(h2,false,true,false,true)-S.y:i3.translate(h2,false,true,false,true)-i3.translate(h2-P,false,true,false,true),h2+=P,b2.below=h2{const itemToMove=document.querySelector(`#wrapper-circle-chart-${event2.target.renderTo.id} .pb-circle-chart-block`);const chartContainer=document.querySelector(`#${event2.target.renderTo.id}`);if(itemToMove!==null&&chartContainer!==null){itemToMove.style.height=`${event2.target.chartHeight}px`;itemToMove.style.width=`${event2.target.chartWidth}px`;if(chartContainer.firstChild!==null){chartContainer.firstChild.before(itemToMove)}}};const CircleChart=({align:align="center",aria:aria={},rounded:rounded=false,borderColor:borderColor=(rounded?null:""),borderWidth:borderWidth=(rounded?20:null),chartData:chartData,children:children,className:className,colors:colors2=[],customOptions:customOptions={},dark:dark=false,data:data={},dataLabelHtml:dataLabelHtml="
{point.name}
",dataLabels:dataLabels=false,height:height,htmlOptions:htmlOptions={},id:id,innerSize:innerSize="md",legend:legend=false,maxPointSize:maxPointSize=null,minPointSize:minPointSize=null,startAngle:startAngle=null,style:style="pie",title:title,tooltipHtml:tooltipHtml,useHtml:useHtml=false,zMin:zMin=null,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);highchartsMore(Highcharts$1);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();Highcharts$1.setOptions({tooltip:{headerFormat:null,pointFormat:tooltipHtml?tooltipHtml:'{point.name}: {point.y}',useHTML:useHtml}});const innerSizes={sm:"35%",md:"50%",lg:"85%",none:"0%"};const innerSizeFormat=size=>innerSizes[size];const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={title:{text:title},chart:{height:height,type:style,events:{render:event2=>alignBlockElement(event2),redraw:event2=>alignBlockElement(event2)}},legend:{align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},plotOptions:{pie:{colors:colors2.length>0?mapColors(colors2):highchartsTheme.colors,dataLabels:{enabled:dataLabels,connectorShape:"straight",connectorWidth:3,format:dataLabelHtml},showInLegend:legend}},series:[{minPointSize:minPointSize,maxPointSize:maxPointSize,innerSize:borderWidth==20?"100%":innerSizeFormat(innerSize),data:formattedChartData,zMin:zMin,startAngle:startAngle,borderWidth:borderWidth,borderColor:borderColor}],credits:false};setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(Fragment,{children:children?jsxs("div",{id:`wrapper-circle-chart-${id}`,children:[jsx$1(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2}),jsx$1("div",{className:"pb-circle-chart-block",children:children})]}):jsx$1(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})})};const CircleIconButton=props=>{const{aria:aria={},className:className,dark:dark,data:data={},disabled:disabled,htmlOptions:htmlOptions={},icon:icon,id:id,loading:loading=false,onClick:onClick=noop$1,type:type,link:link,newWindow:newWindow,variant:variant}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_circle_icon_button_kit"),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(Button,{dark:dark,disabled:disabled,htmlType:type,link:link,loading:loading,newWindow:newWindow,onClick:onClick,text:null,variant:variant,children:jsx$1(Icon,{fixedWidth:true,icon:icon})})})};const showElement=elem=>{elem.style.display="block";const height=elem.scrollHeight+"px";elem.style.height=height;elem.classList.add("is-visible");elem.style.overflow="hidden";window.setTimeout((()=>{if(!elem.classList.contains("is-visible")){elem.classList.add("is-visible")}elem.style.height="";elem.style.overflow="visible"}),300)};const hideElement=elem=>{elem.style.height=elem.scrollHeight+"px";window.setTimeout((()=>{elem.style.height="0";elem.style.paddingTop="0";elem.style.paddingBottom="0";elem.style.overflow="hidden"}),1);window.setTimeout((()=>{elem.classList.remove("is-visible");elem.style.overflow=""}),300)};const CollapsibleContext=createContext({});const CollapsibleContent=({children:children,className:className,...props})=>{const context=useContext(CollapsibleContext);const contentCSS=buildCss("pb_collapsible_content_kit");const contentSpacing=globalProps(props);const contentRef=useRef(null);useEffect((()=>{if(contentRef.current){if(context.collapsed){hideElement(contentRef.current)}else{showElement(contentRef.current)}}}),[context.collapsed]);return jsx$1("div",{className:classnames(contentCSS,contentSpacing,"toggle-content",className),"data-collapsible-content":"true",ref:contentRef,children:children})};const colorMap={default:"#242B42",light:"#687887",lighter:"#C1CDD6",link:"#0056CF",error:"#FF2229",success:"#00CA74"};const CollapsibleIcon=({collapsed:collapsed,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick})=>{const color=colorMap[iconColor];const showIcon=icon2=>{if(icon2==="none"){return[]}else if(typeof icon2==="string"){return[icon2,icon2]}return icon2};const handleIconClick=e=>{if(onIconClick){e.stopPropagation();onIconClick()}};return jsx$1(Fragment,{children:icon!=="none"?collapsed?jsx$1("div",{className:"icon_wrapper",onClick:e=>handleIconClick(e),style:{verticalAlign:"middle",color:color},children:jsx$1(Icon,{icon:icon?showIcon(icon)[0]:"chevron-down",size:iconSize})},icon?showIcon(icon)[0]:"chevron-down"):jsx$1("div",{className:"icon_wrapper",onClick:e=>handleIconClick(e),style:{verticalAlign:"middle",color:color},children:jsx$1(Icon,{icon:icon?showIcon(icon)[1]:"chevron-up",size:iconSize})},icon?showIcon(icon)[1]:"chevron-up"):jsx$1("div",{})})};const CollapsibleMain=({children:children,className:className,cursor:cursor2="pointer",...props})=>{const{collapsed:collapsed,toggle:toggle,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick,onClick:onClick}=useContext(CollapsibleContext);const mainCSS=buildCss("pb_collapsible_main_kit");const mainSpacing=globalProps(props,{cursor:cursor2});const handleCollapsibleClick=()=>{onClick&&onClick();const disableToggle=onClick&&onClick();if(disableToggle!==true){toggle()}};return jsx$1("div",{className:classnames(mainCSS,mainSpacing,className),children:jsx$1("div",{onClick:handleCollapsibleClick,children:jsxs(Flex,{spacing:"between",vertical:"center",children:[jsx$1(FlexItem,{children:children}),jsx$1(FlexItem,{children:jsx$1(CollapsibleIcon,{collapsed:collapsed,icon:icon,iconColor:iconColor,iconSize:iconSize,onIconClick:onIconClick})})]})})})};const Collapsible=({aria:aria={},className:className,children:children,collapsed:collapsed=true,data:data={},htmlOptions:htmlOptions={},icon:icon,iconColor:iconColor="default",iconSize:iconSize,onIconClick:onIconClick,onClick:onClick,id:id,...props})=>{const[isCollapsed,toggle,setIsCollapsed]=useCollapsible(collapsed);useEffect((()=>{setIsCollapsed(collapsed)}),[collapsed]);if(children.length!==2){throw new Error("Collapsible requires and to function properly.")}const FirstChild=children[0];const Main=FirstChild.type===CollapsibleMain?FirstChild:null;const Content=children[1];const{children:mainChildren=null,...mainProps}=Main?Main.props:{};const{children:contentChildren,...contentProps}=Content.props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_collapsible_kit"),globalProps(props),className);const dynamicInlineProps=globalInlineProps(props);return jsx$1(CollapsibleContext.Provider,{value:{collapsed:isCollapsed,toggle:toggle,icon:icon,iconSize:iconSize,iconColor:iconColor,onIconClick:onIconClick,onClick:onClick},children:jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,style:dynamicInlineProps,children:[Main?jsx$1(CollapsibleMain,{...mainProps,children:mainChildren}):FirstChild,jsx$1(CollapsibleContent,{...contentProps,children:contentChildren})]})})};Collapsible.Main=CollapsibleMain;Collapsible.Content=CollapsibleContent;Collapsible.Icon=CollapsibleIcon;const Title=props=>{if(props.variant);const{aria:aria={},children:children,className:className,color:color,data:data={},htmlOptions:htmlOptions={},id:id,size:size=3,bold:bold=true,tag:tag="h3",text:text,variant:variant=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const getBold=bold?"":"thin";const isSizeNumberOrString=typeof size==="number"||typeof size==="string";const buildResponsiveSizeCss=()=>{let css4="";if(!isSizeNumberOrString){Object.entries(size).forEach((sizeObj=>{css4+=`pb_title_kit_${sizeObj[0]}_${sizeObj[1]} `}))}return css4.trim()};const classes=classnames(buildCss("pb_title_kit",isSizeNumberOrString?`size_${size}`:"",variant,color,getBold),globalProps(props),buildResponsiveSizeCss(),className);const Tag=`${tag}`;return jsx$1(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:text||children})};const SectionSeparator=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},id:id,lineStyle:lineStyle="solid",orientation:orientation="horizontal",text:text,dark:dark=false,variant:variant="card"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_section_separator_kit",variant,orientation,lineStyle==="dashed"?lineStyle:""),globalProps(props),className);const dynamicInlineProps=globalInlineProps(props);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,style:dynamicInlineProps,children:children&&children||text&&jsx$1("span",{children:jsx$1(Caption,{dark:dark,text:text})})})};var lib={exports:{}};var Modal$2={};var propTypes={exports:{}};var ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";var ReactPropTypesSecret_1=ReactPropTypesSecret$1;var ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return}var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");err.name="Invariant Violation";throw err}shim.isRequired=shim;function getShim(){return shim}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes};{propTypes.exports=factoryWithThrowingShims()}var propTypesExports=propTypes.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);var ModalPortal={exports:{}};var focusManager={};var tabbable={exports:{}};(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=findTabbableDescendants; /*! * Adapted from jQuery UI core * * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */var DISPLAY_NONE="none";var DISPLAY_CONTENTS="contents";var tabbableNode=/input|select|textarea|button|object|iframe/;function isNotOverflowing(element,style){return style.getPropertyValue("overflow")!=="visible"||element.scrollWidth<=0&&element.scrollHeight<=0}function hidesContents(element){var zeroSize=element.offsetWidth<=0&&element.offsetHeight<=0;if(zeroSize&&!element.innerHTML)return true;try{var style=window.getComputedStyle(element);var displayValue=style.getPropertyValue("display");return zeroSize?displayValue!==DISPLAY_CONTENTS&&isNotOverflowing(element,style):displayValue===DISPLAY_NONE}catch(exception){console.warn("Failed to inspect element style");return false}}function visible(element){var parentElement=element;var rootNode=element.getRootNode&&element.getRootNode();while(parentElement){if(parentElement===document.body)break;if(rootNode&&parentElement===rootNode)parentElement=rootNode.host.parentNode;if(hidesContents(parentElement))return false;parentElement=parentElement.parentNode}return true}function focusable(element,isTabIndexNotNaN){var nodeName=element.nodeName.toLowerCase();var res=tabbableNode.test(nodeName)&&!element.disabled||(nodeName==="a"?element.href||isTabIndexNotNaN:isTabIndexNotNaN);return res&&visible(element)}function tabbable2(element){var tabIndex=element.getAttribute("tabindex");if(tabIndex===null)tabIndex=void 0;var isTabIndexNaN=isNaN(tabIndex);return(isTabIndexNaN||tabIndex>=0)&&focusable(element,!isTabIndexNaN)}function findTabbableDescendants(element){var descendants=[].slice.call(element.querySelectorAll("*"),0).reduce((function(finished,el){return finished.concat(!el.shadowRoot?[el]:findTabbableDescendants(el.shadowRoot))}),[]);return descendants.filter(tabbable2)}module.exports=exports["default"]})(tabbable,tabbable.exports);var tabbableExports=tabbable.exports;Object.defineProperty(focusManager,"__esModule",{value:true});focusManager.resetState=resetState$4;focusManager.log=log$4;focusManager.handleBlur=handleBlur;focusManager.handleFocus=handleFocus;focusManager.markForFocusLater=markForFocusLater;focusManager.returnFocus=returnFocus;focusManager.popWithoutFocus=popWithoutFocus;focusManager.setupScopedFocus=setupScopedFocus;focusManager.teardownScopedFocus=teardownScopedFocus;var _tabbable=tabbableExports;var _tabbable2=_interopRequireDefault$4(_tabbable);function _interopRequireDefault$4(obj){return obj&&obj.__esModule?obj:{default:obj}}var focusLaterElements=[];var modalElement=null;var needToFocus=false;function resetState$4(){focusLaterElements=[]}function log$4(){}function handleBlur(){needToFocus=true}function handleFocus(){if(needToFocus){needToFocus=false;if(!modalElement){return}setTimeout((function(){if(modalElement.contains(document.activeElement)){return}var el=(0,_tabbable2.default)(modalElement)[0]||modalElement;el.focus()}),0)}}function markForFocusLater(){focusLaterElements.push(document.activeElement)}function returnFocus(){var preventScroll=arguments.length>0&&arguments[0]!==void 0?arguments[0]:false;var toFocus=null;try{if(focusLaterElements.length!==0){toFocus=focusLaterElements.pop();toFocus.focus({preventScroll:preventScroll})}return}catch(e){console.warn(["You tried to return focus to",toFocus,"but it is not in the DOM anymore"].join(" "))}}function popWithoutFocus(){focusLaterElements.length>0&&focusLaterElements.pop()}function setupScopedFocus(element){modalElement=element;if(window.addEventListener){window.addEventListener("blur",handleBlur,false);document.addEventListener("focus",handleFocus,true)}else{window.attachEvent("onBlur",handleBlur);document.attachEvent("onFocus",handleFocus)}}function teardownScopedFocus(){modalElement=null;if(window.addEventListener){window.removeEventListener("blur",handleBlur);document.removeEventListener("focus",handleFocus)}else{window.detachEvent("onBlur",handleBlur);document.detachEvent("onFocus",handleFocus)}}var scopeTab={exports:{}};(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});exports.default=scopeTab2;var _tabbable3=tabbableExports;var _tabbable22=_interopRequireDefault2(_tabbable3);function _interopRequireDefault2(obj){return obj&&obj.__esModule?obj:{default:obj}}function getActiveElement(){var el=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return el.activeElement.shadowRoot?getActiveElement(el.activeElement.shadowRoot):el.activeElement}function scopeTab2(node2,event2){var tabbable2=(0,_tabbable22.default)(node2);if(!tabbable2.length){event2.preventDefault();return}var target=void 0;var shiftKey=event2.shiftKey;var head=tabbable2[0];var tail=tabbable2[tabbable2.length-1];var activeElement=getActiveElement();if(node2===activeElement){if(!shiftKey)return;target=tail}if(tail===activeElement&&!shiftKey){target=head}if(head===activeElement&&shiftKey){target=tail}if(target){event2.preventDefault();target.focus();return}var checkSafari=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);var isSafariDesktop=checkSafari!=null&&checkSafari[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!isSafariDesktop)return;var x=tabbable2.indexOf(activeElement);if(x>-1){x+=shiftKey?-1:1}target=tabbable2[x];if(typeof target==="undefined"){event2.preventDefault();target=shiftKey?tail:head;target.focus();return}event2.preventDefault();target.focus()}module.exports=exports["default"]})(scopeTab,scopeTab.exports);var scopeTabExports=scopeTab.exports;var ariaAppHider$1={};var warning=function(){};var warning_1=warning;const warning$1=getDefaultExportFromCjs(warning_1);var safeHTMLElement={};var exenv={exports:{}}; /*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. */(function(module){(function(){var canUseDOM2=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var ExecutionEnvironment={canUseDOM:canUseDOM2,canUseWorkers:typeof Worker!=="undefined",canUseEventListeners:canUseDOM2&&!!(window.addEventListener||window.attachEvent),canUseViewport:canUseDOM2&&!!window.screen};if(module.exports){module.exports=ExecutionEnvironment}else{window.ExecutionEnvironment=ExecutionEnvironment}})()})(exenv);var exenvExports=exenv.exports;Object.defineProperty(safeHTMLElement,"__esModule",{value:true});safeHTMLElement.canUseDOM=safeHTMLElement.SafeNodeList=safeHTMLElement.SafeHTMLCollection=void 0;var _exenv=exenvExports;var _exenv2=_interopRequireDefault$3(_exenv);function _interopRequireDefault$3(obj){return obj&&obj.__esModule?obj:{default:obj}}var EE=_exenv2.default;var SafeHTMLElement=EE.canUseDOM?window.HTMLElement:{};safeHTMLElement.SafeHTMLCollection=EE.canUseDOM?window.HTMLCollection:{};safeHTMLElement.SafeNodeList=EE.canUseDOM?window.NodeList:{};safeHTMLElement.canUseDOM=EE.canUseDOM;safeHTMLElement.default=SafeHTMLElement;Object.defineProperty(ariaAppHider$1,"__esModule",{value:true});ariaAppHider$1.resetState=resetState$3;ariaAppHider$1.log=log$3;ariaAppHider$1.assertNodeList=assertNodeList;ariaAppHider$1.setElement=setElement;ariaAppHider$1.validateElement=validateElement;ariaAppHider$1.hide=hide;ariaAppHider$1.show=show;ariaAppHider$1.documentNotReadyOrSSRTesting=documentNotReadyOrSSRTesting;var _warning=warning_1;var _warning2=_interopRequireDefault$2(_warning);var _safeHTMLElement$1=safeHTMLElement;function _interopRequireDefault$2(obj){return obj&&obj.__esModule?obj:{default:obj}}var globalElement=null;function resetState$3(){if(globalElement){if(globalElement.removeAttribute){globalElement.removeAttribute("aria-hidden")}else if(globalElement.length!=null){globalElement.forEach((function(element){return element.removeAttribute("aria-hidden")}))}else{document.querySelectorAll(globalElement).forEach((function(element){return element.removeAttribute("aria-hidden")}))}}globalElement=null}function log$3(){}function assertNodeList(nodeList,selector){if(!nodeList||!nodeList.length){throw new Error("react-modal: No elements were found for selector "+selector+".")}}function setElement(element){var useElement=element;if(typeof useElement==="string"&&_safeHTMLElement$1.canUseDOM){var el=document.querySelectorAll(useElement);assertNodeList(el,useElement);useElement=el}globalElement=useElement||globalElement;return globalElement}function validateElement(appElement){var el=appElement||globalElement;if(el){return Array.isArray(el)||el instanceof HTMLCollection||el instanceof NodeList?el:[el]}else{(0,_warning2.default)(false,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" "));return[]}}function hide(appElement){var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=void 0;try{for(var _iterator=validateElement(appElement)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var el=_step.value;el.setAttribute("aria-hidden","true")}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}function show(appElement){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=void 0;try{for(var _iterator2=validateElement(appElement)[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var el=_step2.value;el.removeAttribute("aria-hidden")}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}function documentNotReadyOrSSRTesting(){globalElement=null}var classList={};Object.defineProperty(classList,"__esModule",{value:true});classList.resetState=resetState$2;classList.log=log$2;var htmlClassList={};var docBodyClassList={};function removeClass(at,cls){at.classList.remove(cls)}function resetState$2(){var htmlElement=document.getElementsByTagName("html")[0];for(var cls in htmlClassList){removeClass(htmlElement,htmlClassList[cls])}var body=document.body;for(var _cls in docBodyClassList){removeClass(body,docBodyClassList[_cls])}htmlClassList={};docBodyClassList={}}function log$2(){}var incrementReference=function incrementReference2(poll,className){if(!poll[className]){poll[className]=0}poll[className]+=1;return className};var decrementReference=function decrementReference2(poll,className){if(poll[className]){poll[className]-=1}return className};var trackClass=function trackClass2(classListRef,poll,classes){classes.forEach((function(className){incrementReference(poll,className);classListRef.add(className)}))};var untrackClass=function untrackClass2(classListRef,poll,classes){classes.forEach((function(className){decrementReference(poll,className);poll[className]===0&&classListRef.remove(className)}))};classList.add=function add2(element,classString){return trackClass(element.classList,element.nodeName.toLowerCase()=="html"?htmlClassList:docBodyClassList,classString.split(" "))};classList.remove=function remove2(element,classString){return untrackClass(element.classList,element.nodeName.toLowerCase()=="html"?htmlClassList:docBodyClassList,classString.split(" "))};var portalOpenInstances$1={};Object.defineProperty(portalOpenInstances$1,"__esModule",{value:true});portalOpenInstances$1.log=log$1;portalOpenInstances$1.resetState=resetState$1;function _classCallCheck$2(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var PortalOpenInstances=function PortalOpenInstances2(){var _this=this;_classCallCheck$2(this,PortalOpenInstances2);this.register=function(openInstance){if(_this.openInstances.indexOf(openInstance)!==-1){return}_this.openInstances.push(openInstance);_this.emit("register")};this.deregister=function(openInstance){var index2=_this.openInstances.indexOf(openInstance);if(index2===-1){return}_this.openInstances.splice(index2,1);_this.emit("deregister")};this.subscribe=function(callback){_this.subscribers.push(callback)};this.emit=function(eventType){_this.subscribers.forEach((function(subscriber){return subscriber(eventType,_this.openInstances.slice())}))};this.openInstances=[];this.subscribers=[]};var portalOpenInstances=new PortalOpenInstances;function log$1(){console.log("portalOpenInstances ----------");console.log(portalOpenInstances.openInstances.length);portalOpenInstances.openInstances.forEach((function(p){return console.log(p)}));console.log("end portalOpenInstances ----------")}function resetState$1(){portalOpenInstances=new PortalOpenInstances}portalOpenInstances$1.default=portalOpenInstances;var bodyTrap$1={};Object.defineProperty(bodyTrap$1,"__esModule",{value:true});bodyTrap$1.resetState=resetState;bodyTrap$1.log=log;var _portalOpenInstances=portalOpenInstances$1;var _portalOpenInstances2=_interopRequireDefault$1(_portalOpenInstances);function _interopRequireDefault$1(obj){return obj&&obj.__esModule?obj:{default:obj}}var before=void 0,after=void 0,instances=[];function resetState(){var _arr=[before,after];for(var _i=0;_i<_arr.length;_i++){var item=_arr[_i];if(!item)continue;item.parentNode&&item.parentNode.removeChild(item)}before=after=null;instances=[]}function log(){console.log("bodyTrap ----------");console.log(instances.length);var _arr2=[before,after];for(var _i2=0;_i2<_arr2.length;_i2++){var item=_arr2[_i2];var check=item||{};console.log(check.nodeName,check.className,check.id)}console.log("edn bodyTrap ----------")}function focusContent(){if(instances.length===0){return}instances[instances.length-1].focusContent()}function bodyTrap(eventType,openInstances){if(!before&&!after){before=document.createElement("div");before.setAttribute("data-react-modal-body-trap","");before.style.position="absolute";before.style.opacity="0";before.setAttribute("tabindex","0");before.addEventListener("focus",focusContent);after=before.cloneNode();after.addEventListener("focus",focusContent)}instances=openInstances;if(instances.length>0){if(document.body.firstChild!==before){document.body.insertBefore(before,document.body.firstChild)}if(document.body.lastChild!==after){document.body.appendChild(after)}}else{if(before.parentElement){before.parentElement.removeChild(before)}if(after.parentElement){after.parentElement.removeChild(after)}}}_portalOpenInstances2.default.subscribe(bodyTrap);(function(module,exports){Object.defineProperty(exports,"__esModule",{value:true});var _extends2=Object.assign||function(target){for(var i=1;i0){ariaHiddenInstances-=1;if(ariaHiddenInstances===0){ariaAppHider2.show(appElement)}}if(_this.props.shouldFocusAfterRender){if(_this.props.shouldReturnFocusAfterClose){focusManager$1.returnFocus(_this.props.preventScroll);focusManager$1.teardownScopedFocus()}else{focusManager$1.popWithoutFocus()}}if(_this.props.onAfterClose){_this.props.onAfterClose()}_portalOpenInstances22.default.deregister(_this)};_this.open=function(){_this.beforeOpen();if(_this.state.afterOpen&&_this.state.beforeClose){clearTimeout(_this.closeTimer);_this.setState({beforeClose:false})}else{if(_this.props.shouldFocusAfterRender){focusManager$1.setupScopedFocus(_this.node);focusManager$1.markForFocusLater()}_this.setState({isOpen:true},(function(){_this.openAnimationFrame=requestAnimationFrame((function(){_this.setState({afterOpen:true});if(_this.props.isOpen&&_this.props.onAfterOpen){_this.props.onAfterOpen({overlayEl:_this.overlay,contentEl:_this.content})}}))}))}};_this.close=function(){if(_this.props.closeTimeoutMS>0){_this.closeWithTimeout()}else{_this.closeWithoutTimeout()}};_this.focusContent=function(){return _this.content&&!_this.contentHasFocus()&&_this.content.focus({preventScroll:true})};_this.closeWithTimeout=function(){var closesAt=Date.now()+_this.props.closeTimeoutMS;_this.setState({beforeClose:true,closesAt:closesAt},(function(){_this.closeTimer=setTimeout(_this.closeWithoutTimeout,_this.state.closesAt-Date.now())}))};_this.closeWithoutTimeout=function(){_this.setState({beforeClose:false,isOpen:false,afterOpen:false,closesAt:null},_this.afterClose)};_this.handleKeyDown=function(event2){if(isTabKey(event2)){(0,_scopeTab2.default)(_this.content,event2)}if(_this.props.shouldCloseOnEsc&&isEscKey(event2)){event2.stopPropagation();_this.requestClose(event2)}};_this.handleOverlayOnClick=function(event2){if(_this.shouldClose===null){_this.shouldClose=true}if(_this.shouldClose&&_this.props.shouldCloseOnOverlayClick){if(_this.ownerHandlesClose()){_this.requestClose(event2)}else{_this.focusContent()}}_this.shouldClose=null};_this.handleContentOnMouseUp=function(){_this.shouldClose=false};_this.handleOverlayOnMouseDown=function(event2){if(!_this.props.shouldCloseOnOverlayClick&&event2.target==_this.overlay){event2.preventDefault()}};_this.handleContentOnClick=function(){_this.shouldClose=false};_this.handleContentOnMouseDown=function(){_this.shouldClose=false};_this.requestClose=function(event2){return _this.ownerHandlesClose()&&_this.props.onRequestClose(event2)};_this.ownerHandlesClose=function(){return _this.props.onRequestClose};_this.shouldBeClosed=function(){return!_this.state.isOpen&&!_this.state.beforeClose};_this.contentHasFocus=function(){return document.activeElement===_this.content||_this.content.contains(document.activeElement)};_this.buildClassName=function(which,additional){var classNames2=(typeof additional==="undefined"?"undefined":_typeof2(additional))==="object"?additional:{base:CLASS_NAMES[which],afterOpen:CLASS_NAMES[which]+"--after-open",beforeClose:CLASS_NAMES[which]+"--before-close"};var className=classNames2.base;if(_this.state.afterOpen){className=className+" "+classNames2.afterOpen}if(_this.state.beforeClose){className=className+" "+classNames2.beforeClose}return typeof additional==="string"&&additional?className+" "+additional:className};_this.attributesFromObject=function(prefix2,items){return Object.keys(items).reduce((function(acc,name2){acc[prefix2+"-"+name2]=items[name2];return acc}),{})};_this.state={afterOpen:false,beforeClose:false};_this.shouldClose=null;_this.moveFromContentToOverlay=null;return _this}_createClass2(ModalPortal22,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.isOpen){this.open()}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(this.props.isOpen&&!prevProps.isOpen){this.open()}else if(!this.props.isOpen&&prevProps.isOpen){this.close()}if(this.props.shouldFocusAfterRender&&this.state.isOpen&&!prevState.isOpen){this.focusContent()}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(this.state.isOpen){this.afterClose()}clearTimeout(this.closeTimer);cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function beforeOpen(){var _props=this.props,appElement=_props.appElement,ariaHideApp=_props.ariaHideApp,htmlOpenClassName=_props.htmlOpenClassName,bodyOpenClassName2=_props.bodyOpenClassName,parentSelector2=_props.parentSelector;var parentDocument=parentSelector2&&parentSelector2().ownerDocument||document;bodyOpenClassName2&&classList$1.add(parentDocument.body,bodyOpenClassName2);htmlOpenClassName&&classList$1.add(parentDocument.getElementsByTagName("html")[0],htmlOpenClassName);if(ariaHideApp){ariaHiddenInstances+=1;ariaAppHider2.hide(appElement)}_portalOpenInstances22.default.register(this)}},{key:"render",value:function render(){var _props2=this.props,id=_props2.id,className=_props2.className,overlayClassName=_props2.overlayClassName,defaultStyles2=_props2.defaultStyles,children=_props2.children;var contentStyles=className?{}:defaultStyles2.content;var overlayStyles=overlayClassName?{}:defaultStyles2.overlay;if(this.shouldBeClosed()){return null}var overlayProps={ref:this.setOverlayRef,className:this.buildClassName("overlay",overlayClassName),style:_extends2({},overlayStyles,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown};var contentProps=_extends2({id:id,ref:this.setContentRef,style:_extends2({},contentStyles,this.props.style.content),className:this.buildClassName("content",className),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",_extends2({modal:true},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId});var contentElement2=this.props.contentElement(contentProps,children);return this.props.overlayElement(overlayProps,contentElement2)}}]);return ModalPortal22}(_react3.Component);ModalPortal2.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}};ModalPortal2.propTypes={isOpen:_propTypes22.default.bool.isRequired,defaultStyles:_propTypes22.default.shape({content:_propTypes22.default.object,overlay:_propTypes22.default.object}),style:_propTypes22.default.shape({content:_propTypes22.default.object,overlay:_propTypes22.default.object}),className:_propTypes22.default.oneOfType([_propTypes22.default.string,_propTypes22.default.object]),overlayClassName:_propTypes22.default.oneOfType([_propTypes22.default.string,_propTypes22.default.object]),parentSelector:_propTypes22.default.func,bodyOpenClassName:_propTypes22.default.string,htmlOpenClassName:_propTypes22.default.string,ariaHideApp:_propTypes22.default.bool,appElement:_propTypes22.default.oneOfType([_propTypes22.default.instanceOf(_safeHTMLElement22.default),_propTypes22.default.instanceOf(_safeHTMLElement3.SafeHTMLCollection),_propTypes22.default.instanceOf(_safeHTMLElement3.SafeNodeList),_propTypes22.default.arrayOf(_propTypes22.default.instanceOf(_safeHTMLElement22.default))]),onAfterOpen:_propTypes22.default.func,onAfterClose:_propTypes22.default.func,onRequestClose:_propTypes22.default.func,closeTimeoutMS:_propTypes22.default.number,shouldFocusAfterRender:_propTypes22.default.bool,shouldCloseOnOverlayClick:_propTypes22.default.bool,shouldReturnFocusAfterClose:_propTypes22.default.bool,preventScroll:_propTypes22.default.bool,role:_propTypes22.default.string,contentLabel:_propTypes22.default.string,aria:_propTypes22.default.object,data:_propTypes22.default.object,children:_propTypes22.default.node,shouldCloseOnEsc:_propTypes22.default.bool,overlayRef:_propTypes22.default.func,contentRef:_propTypes22.default.func,id:_propTypes22.default.string,overlayElement:_propTypes22.default.func,contentElement:_propTypes22.default.func,testId:_propTypes22.default.string};exports.default=ModalPortal2;module.exports=exports["default"]})(ModalPortal,ModalPortal.exports);var ModalPortalExports=ModalPortal.exports;function componentWillMount(){var state=this.constructor.getDerivedStateFromProps(this.props,this.state);if(state!==null&&state!==void 0){this.setState(state)}}function componentWillReceiveProps(nextProps){function updater(prevState){var state=this.constructor.getDerivedStateFromProps(nextProps,prevState);return state!==null&&state!==void 0?state:null}this.setState(updater.bind(this))}function componentWillUpdate(nextProps,nextState){try{var prevProps=this.props;var prevState=this.state;this.props=nextProps;this.state=nextState;this.__reactInternalSnapshotFlag=true;this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(prevProps,prevState)}finally{this.props=prevProps;this.state=prevState}}componentWillMount.__suppressDeprecationWarning=true;componentWillReceiveProps.__suppressDeprecationWarning=true;componentWillUpdate.__suppressDeprecationWarning=true;function polyfill(Component2){var prototype=Component2.prototype;if(!prototype||!prototype.isReactComponent){throw new Error("Can only polyfill class components")}if(typeof Component2.getDerivedStateFromProps!=="function"&&typeof prototype.getSnapshotBeforeUpdate!=="function"){return Component2}var foundWillMountName=null;var foundWillReceivePropsName=null;var foundWillUpdateName=null;if(typeof prototype.componentWillMount==="function"){foundWillMountName="componentWillMount"}else if(typeof prototype.UNSAFE_componentWillMount==="function"){foundWillMountName="UNSAFE_componentWillMount"}if(typeof prototype.componentWillReceiveProps==="function"){foundWillReceivePropsName="componentWillReceiveProps"}else if(typeof prototype.UNSAFE_componentWillReceiveProps==="function"){foundWillReceivePropsName="UNSAFE_componentWillReceiveProps"}if(typeof prototype.componentWillUpdate==="function"){foundWillUpdateName="componentWillUpdate"}else if(typeof prototype.UNSAFE_componentWillUpdate==="function"){foundWillUpdateName="UNSAFE_componentWillUpdate"}if(foundWillMountName!==null||foundWillReceivePropsName!==null||foundWillUpdateName!==null){var componentName=Component2.displayName||Component2.name;var newApiName=typeof Component2.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+componentName+" uses "+newApiName+" but also contains the following legacy lifecycles:"+(foundWillMountName!==null?"\n "+foundWillMountName:"")+(foundWillReceivePropsName!==null?"\n "+foundWillReceivePropsName:"")+(foundWillUpdateName!==null?"\n "+foundWillUpdateName:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if(typeof Component2.getDerivedStateFromProps==="function"){prototype.componentWillMount=componentWillMount;prototype.componentWillReceiveProps=componentWillReceiveProps}if(typeof prototype.getSnapshotBeforeUpdate==="function"){if(typeof prototype.componentDidUpdate!=="function"){throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype")}prototype.componentWillUpdate=componentWillUpdate;var componentDidUpdate=prototype.componentDidUpdate;prototype.componentDidUpdate=function componentDidUpdatePolyfill(prevProps,prevState,maybeSnapshot){var snapshot=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:maybeSnapshot;componentDidUpdate.call(this,prevProps,prevState,snapshot)}}return Component2}const reactLifecyclesCompat_es=Object.freeze(Object.defineProperty({__proto__:null,polyfill:polyfill},Symbol.toStringTag,{value:"Module"}));const require$$6=getAugmentedNamespace(reactLifecyclesCompat_es);Object.defineProperty(Modal$2,"__esModule",{value:true});Modal$2.bodyOpenClassName=Modal$2.portalClassName=void 0;var _extends$1=Object.assign||function(target){for(var i=1;i{const{onClose:onClose}=props;const timesIcon=getAllIcons()["times"];return jsx$1("div",{className:"pb_dialog_close_icon",onClick:onClose,children:jsx$1(Icon,{className:"svg-inline--fa",customIcon:timesIcon.icon,fixedWidth:true})})};const DialogContext=React__default.createContext(null);const DialogHeader=props=>{const{aria:aria={},children:children,className:className,data:data={},htmlOptions:htmlOptions={},spacing:spacing2="between",closeable:closeable=true,separator:separator=true}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const api=useContext(DialogContext);const headerCSS=buildCss("dialog_header");const headerSpacing=globalProps(props);return jsxs("div",{className:"dialog_sticky_header",children:[jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,className:classnames(headerCSS,headerSpacing,className),spacing:spacing2,children:[children,closeable&&jsx$1(CloseIcon,{onClose:api.onClose})]}),separator&&jsx$1(SectionSeparator,{})]})};const DialogFooter=props=>{const{children:children,className:className,htmlOptions:htmlOptions={},spacing:spacing2="between",separator:separator=false}=props;const footerCSS=buildCss("dialog_footer");const footerSpacing=globalProps(props);const htmlProps=buildHtmlProps(htmlOptions);return jsxs("div",{...htmlProps,children:[separator&&jsx$1(SectionSeparator,{}),jsx$1("div",{className:"dialog-pseudo-footer"}),jsx$1(Flex,{className:classnames(footerCSS,footerSpacing,className),spacing:spacing2,children:children})]})};const DialogBody=props=>{const{children:children,className:className}=props;const bodyCSS=buildCss("dialog_body");const bodySpacing=globalProps(props);return jsx$1("div",{className:classnames(bodyCSS,bodySpacing,className),children:children})};const Dialog=props=>{const{aria:aria={},cancelButton:cancelButton,confirmButton:confirmButton,className:className,data:data={},htmlOptions:htmlOptions={},id:id,size:size="md",children:children,loading:loading=false,fullHeight:fullHeight=false,opened:opened,onCancel:onCancel,onConfirm:onConfirm,onClose:onClose,placement:placement="center",portalClassName:portalClassName2,shouldCloseOnOverlayClick:shouldCloseOnOverlayClick=true,status:status,text:text,title:title,trigger:trigger}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const dialogClassNames={base:classnames("pb_dialog",buildCss("pb_dialog",size,placement)),afterOpen:"pb_dialog_after_open",beforeClose:"pb_dialog_before_close"};const fullHeightClassNames=()=>{if(!fullHeight)return null;if(size==="xl")return`full_height_center`;return`full_height_${placement}`};const overlayClassNames={base:`pb_dialog_overlay ${fullHeight!==null&&fullHeightClassNames()}`,afterOpen:"pb_dialog_overlay_after_open",beforeClose:"pb_dialog_overlay_before_close"};const dynamicInlineProps=globalInlineProps(props);const classes=classnames(buildCss("pb_dialog_wrapper"),globalProps(props),className);const[triggerOpened,setTriggerOpened]=useState(false),modalIsOpened=trigger?triggerOpened:opened;const api={onClose:trigger?function(){setTriggerOpened(false)}:onClose};if(trigger){const modalTrigger=document.querySelector(trigger);modalTrigger.addEventListener("click",(()=>{setTriggerOpened(true);document.querySelector("#cancel-button").addEventListener("click",(()=>{setTriggerOpened(false)}))}),{once:true})}const sweetAlertStatus={default:{icon:"exclamation-circle",variant:"default",size:"lg"},info:{icon:"info-circle",variant:"default",size:"lg"},caution:{icon:"exclamation-triangle",variant:"yellow",size:"lg"},delete:{icon:"trash-alt",variant:"red",size:"lg"},error:{icon:"times-circle",variant:"red",size:"lg"},success:{icon:"check-circle",variant:"green",size:"lg"}};return jsx$1(DialogContext.Provider,{value:api,children:jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,children:jsx$1(Modal,{ariaHideApp:false,className:dialogClassNames,closeTimeoutMS:200,contentLabel:"Minimal Modal Example",id:id,isOpen:modalIsOpened,onRequestClose:onClose,overlayClassName:overlayClassNames,portalClassName:portalClassName2,shouldCloseOnOverlayClick:shouldCloseOnOverlayClick&&!loading,style:{content:dynamicInlineProps},children:jsxs(Fragment,{children:[title&&!status?jsx$1(Dialog.Header,{children:title}):null,!status&&text?jsx$1(Dialog.Body,{children:text}):null,status&&jsx$1(Dialog.Body,{className:"dialog_status_text_align",padding:"md",children:jsxs(Flex,{align:"center",orientation:"column",children:[jsx$1(IconCircle,{icon:sweetAlertStatus[status].icon,size:sweetAlertStatus[status].size,variant:sweetAlertStatus[status].variant}),jsx$1(Title,{marginTop:"sm",size:3,children:title}),jsx$1(Body$1,{marginTop:"xs",text:text})]})}),cancelButton&&confirmButton?jsxs(Dialog.Footer,{children:[jsx$1(Button,{disabled:loading,htmlType:"button",loading:loading,onClick:onConfirm,variant:"primary",children:confirmButton}),jsx$1(Button,{disabled:loading,htmlType:"button",id:"cancel-button",onClick:onCancel,variant:"link",children:cancelButton})]}):null,children]})})})})};Dialog.Header=DialogHeader;Dialog.Body=DialogBody;Dialog.Footer=DialogFooter;const normalizeCharacters=widths=>widths.map((width=>parseInt(width.toString().replace(/[^0-9.]/gi,""))));const barValues=(normalizedValues,colors2)=>{const arrSum=value=>value.reduce(((a,b)=>a+b),0);const widthSum=arrSum(normalizedValues);return normalizedValues.map(((value,i)=>jsx$1("div",{className:classnames("pb_distribution_width",colors2[i]?`color_${colors2[i]}`:""),style:{width:`${value*100/widthSum}%`}},i)))};const DistributionBar=props=>{const{htmlOptions:htmlOptions={},size:size="lg",widths:widths=[1],colors:colors2=[]}=props;const normalizedValues=normalizeCharacters(widths);const htmlProps=buildHtmlProps(htmlOptions);return jsx$1("div",{className:classnames(`pb_distribution_bar_${size}`,globalProps(props)),...htmlProps,children:barValues(normalizedValues,colors2)})};const TextInput=(props,ref)=>{const{addOn:addOn={icon:null,alignment:"right",border:true},aria:aria={},className:className,dark:dark=false,data:data={},disabled:disabled,error:error,htmlOptions:htmlOptions={},id:id,inline:inline=false,name:name2,label:label,onChange:onChange2=()=>{},placeholder:placeholder,required:required,type:type="text",value:value="",children:children=null}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const filteredProps=Object.assign({},props);if(filteredProps.marginBottom===void 0){filteredProps.marginBottom="sm"}const{alignment:alignment,border:border,icon:icon}=addOn;const addOnAlignment=alignment==="left"?"left":"right";const borderToChange=addOnAlignment==="left"?"right":"left";const borderToggle=border===false?"off":"on";const borderCss=`border_${borderToChange}_${borderToggle}`;const shouldShowAddOn=icon!==null;const addOnCss=shouldShowAddOn?"text_input_wrapper_add_on":"";const addOnDarkModeCardCss=shouldShowAddOn&&dark?"add-on-card-dark":"";const css4=classnames(["pb_text_input_kit",inline?"inline":"",error?"error":"",globalProps(filteredProps),className]);const addOnIcon=jsx$1(Icon,{className:"add-on-icon",dark:dark,fixedWidth:false,icon:icon},void 0);const childInput=children?children.type==="input":void 0;const textInput=childInput?React__default.cloneElement(children,{className:"text_input"}):createElement("input",Object.assign({},domSafeProps(props),{className:"text_input",disabled:disabled,id:id,key:id,name:name2,onChange:onChange2,placeholder:placeholder,ref:ref,required:required,type:type,value:value}));const addOnInput=jsx$1(React__default.Fragment,{children:jsxs(Flex,Object.assign({className:`add-on-${addOnAlignment} ${borderCss}`,vertical:"center"},{children:[addOnAlignment=="left"&&jsxs(Fragment,{children:[jsx$1(Card,Object.assign({className:`${addOnDarkModeCardCss} add-on-card card-left-aligned`,dark:dark},{children:addOnIcon}),void 0),textInput]},void 0),addOnAlignment!="left"&&jsxs(Fragment,{children:[textInput,jsx$1(Card,Object.assign({className:`${addOnDarkModeCardCss} add-on-card card-right-aligned`,dark:dark},{children:addOnIcon}),void 0)]},void 0)]}),void 0)},void 0);const render=(()=>{if(children&&!childInput)return children;if(shouldShowAddOn)return addOnInput;return textInput})();return jsxs("div",Object.assign({},ariaProps,dataProps,htmlProps,{className:css4},{children:[label&&jsx$1(Caption,{className:"pb_text_input_kit_label",text:label},void 0),jsxs("div",Object.assign({className:`${addOnCss} text_input_wrapper`},{children:[render,error&&jsx$1(Body$1,{status:"negative",text:error,variant:null},void 0)]}),void 0)]}),void 0)};const TextInput$1=forwardRef(TextInput);var ManagerReferenceNodeContext=React.createContext();var ManagerReferenceNodeSetterContext=React.createContext();function Manager(_ref3){var children=_ref3.children;var _React$useState=React.useState(null),referenceNode=_React$useState[0],setReferenceNode=_React$useState[1];var hasUnmounted=React.useRef(false);React.useEffect((function(){return function(){hasUnmounted.current=true}}),[]);var handleSetReferenceNode=React.useCallback((function(node2){if(!hasUnmounted.current){setReferenceNode(node2)}}),[]);return React.createElement(ManagerReferenceNodeContext.Provider,{value:referenceNode},React.createElement(ManagerReferenceNodeSetterContext.Provider,{value:handleSetReferenceNode},children))}var unwrapArray=function unwrapArray2(arg){return Array.isArray(arg)?arg[0]:arg};var safeInvoke=function safeInvoke2(fn){if(typeof fn==="function"){for(var _len=arguments.length,args=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key]}return fn.apply(void 0,args)}};var setRef=function setRef2(ref,node2){if(typeof ref==="function"){return safeInvoke(ref,node2)}else if(ref!=null){ref.current=node2}};var fromEntries=function fromEntries2(entries){return entries.reduce((function(acc,_ref3){var key=_ref3[0],value=_ref3[1];acc[key]=value;return acc}),{})};var useIsomorphicLayoutEffect=typeof window!=="undefined"&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect;var hasElementType=typeof Element!=="undefined";var hasMap=typeof Map==="function";var hasSet=typeof Set==="function";var hasArrayBuffer=typeof ArrayBuffer==="function"&&!!ArrayBuffer.isView;function equal(a,b){if(a===b)return true;if(a&&b&&typeof a=="object"&&typeof b=="object"){if(a.constructor!==b.constructor)return false;var length2,i,keys;if(Array.isArray(a)){length2=a.length;if(length2!=b.length)return false;for(i=length2;i--!==0;)if(!equal(a[i],b[i]))return false;return true}var it;if(hasMap&&a instanceof Map&&b instanceof Map){if(a.size!==b.size)return false;it=a.entries();while(!(i=it.next()).done)if(!b.has(i.value[0]))return false;it=a.entries();while(!(i=it.next()).done)if(!equal(i.value[1],b.get(i.value[0])))return false;return true}if(hasSet&&a instanceof Set&&b instanceof Set){if(a.size!==b.size)return false;it=a.entries();while(!(i=it.next()).done)if(!b.has(i.value[0]))return false;return true}if(hasArrayBuffer&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(b)){length2=a.length;if(length2!=b.length)return false;for(i=length2;i--!==0;)if(a[i]!==b[i])return false;return true}if(a.constructor===RegExp)return a.source===b.source&&a.flags===b.flags;if(a.valueOf!==Object.prototype.valueOf)return a.valueOf()===b.valueOf();if(a.toString!==Object.prototype.toString)return a.toString()===b.toString();keys=Object.keys(a);length2=keys.length;if(length2!==Object.keys(b).length)return false;for(i=length2;i--!==0;)if(!Object.prototype.hasOwnProperty.call(b,keys[i]))return false;if(hasElementType&&a instanceof Element)return false;for(i=length2;i--!==0;){if((keys[i]==="_owner"||keys[i]==="__v"||keys[i]==="__o")&&a.$$typeof){continue}if(!equal(a[keys[i]],b[keys[i]]))return false}return true}return a!==a&&b!==b}var reactFastCompare=function isEqual(a,b){try{return equal(a,b)}catch(error){if((error.message||"").match(/stack|recursion/i)){console.warn("react-fast-compare cannot handle circular refs");return false}throw error}};const isEqual$1=getDefaultExportFromCjs(reactFastCompare);var EMPTY_MODIFIERS$1=[];var usePopper=function usePopper2(referenceElement,popperElement,options2){if(options2===void 0){options2={}}var prevOptions=React.useRef(null);var optionsWithDefaults={onFirstUpdate:options2.onFirstUpdate,placement:options2.placement||"bottom",strategy:options2.strategy||"absolute",modifiers:options2.modifiers||EMPTY_MODIFIERS$1};var _React$useState=React.useState({styles:{popper:{position:optionsWithDefaults.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),state=_React$useState[0],setState=_React$useState[1];var updateStateModifier=React.useMemo((function(){return{name:"updateState",enabled:true,phase:"write",fn:function fn(_ref3){var state2=_ref3.state;var elements=Object.keys(state2.elements);ReactDOM.flushSync((function(){setState({styles:fromEntries(elements.map((function(element){return[element,state2.styles[element]||{}]}))),attributes:fromEntries(elements.map((function(element){return[element,state2.attributes[element]]})))})}))},requires:["computeStyles"]}}),[]);var popperOptions=React.useMemo((function(){var newOptions={onFirstUpdate:optionsWithDefaults.onFirstUpdate,placement:optionsWithDefaults.placement,strategy:optionsWithDefaults.strategy,modifiers:[].concat(optionsWithDefaults.modifiers,[updateStateModifier,{name:"applyStyles",enabled:false}])};if(isEqual$1(prevOptions.current,newOptions)){return prevOptions.current||newOptions}else{prevOptions.current=newOptions;return newOptions}}),[optionsWithDefaults.onFirstUpdate,optionsWithDefaults.placement,optionsWithDefaults.strategy,optionsWithDefaults.modifiers,updateStateModifier]);var popperInstanceRef=React.useRef();useIsomorphicLayoutEffect((function(){if(popperInstanceRef.current){popperInstanceRef.current.setOptions(popperOptions)}}),[popperOptions]);useIsomorphicLayoutEffect((function(){if(referenceElement==null||popperElement==null){return}var createPopper$1=options2.createPopper||createPopper;var popperInstance=createPopper$1(referenceElement,popperElement,popperOptions);popperInstanceRef.current=popperInstance;return function(){popperInstance.destroy();popperInstanceRef.current=null}}),[referenceElement,popperElement,options2.createPopper]);return{state:popperInstanceRef.current?popperInstanceRef.current.state:null,styles:state.styles,attributes:state.attributes,update:popperInstanceRef.current?popperInstanceRef.current.update:null,forceUpdate:popperInstanceRef.current?popperInstanceRef.current.forceUpdate:null}};var NOOP=function NOOP2(){return void 0};var NOOP_PROMISE=function NOOP_PROMISE2(){return Promise.resolve(null)};var EMPTY_MODIFIERS=[];function Popper(_ref3){var _ref$placement=_ref3.placement,placement=_ref$placement===void 0?"bottom":_ref$placement,_ref$strategy=_ref3.strategy,strategy=_ref$strategy===void 0?"absolute":_ref$strategy,_ref$modifiers=_ref3.modifiers,modifiers=_ref$modifiers===void 0?EMPTY_MODIFIERS:_ref$modifiers,referenceElement=_ref3.referenceElement,onFirstUpdate=_ref3.onFirstUpdate,innerRef=_ref3.innerRef,children=_ref3.children;var referenceNode=React.useContext(ManagerReferenceNodeContext);var _React$useState=React.useState(null),popperElement=_React$useState[0],setPopperElement=_React$useState[1];var _React$useState2=React.useState(null),arrowElement=_React$useState2[0],setArrowElement=_React$useState2[1];React.useEffect((function(){setRef(innerRef,popperElement)}),[innerRef,popperElement]);var options2=React.useMemo((function(){return{placement:placement,strategy:strategy,onFirstUpdate:onFirstUpdate,modifiers:[].concat(modifiers,[{name:"arrow",enabled:arrowElement!=null,options:{element:arrowElement}}])}}),[placement,strategy,onFirstUpdate,modifiers,arrowElement]);var _usePopper=usePopper(referenceElement||referenceNode,popperElement,options2),state=_usePopper.state,styles=_usePopper.styles,forceUpdate=_usePopper.forceUpdate,update=_usePopper.update;var childrenProps=React.useMemo((function(){return{ref:setPopperElement,style:styles.popper,placement:state?state.placement:placement,hasPopperEscaped:state&&state.modifiersData.hide?state.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:state&&state.modifiersData.hide?state.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:styles.arrow,ref:setArrowElement},forceUpdate:forceUpdate||NOOP,update:update||NOOP_PROMISE}}),[setPopperElement,setArrowElement,placement,state,styles,update,forceUpdate]);return unwrapArray(children)(childrenProps)}function Reference(_ref3){var children=_ref3.children,innerRef=_ref3.innerRef;var setReferenceNode=React.useContext(ManagerReferenceNodeSetterContext);var refHandler=React.useCallback((function(node2){setRef(innerRef,node2);safeInvoke(setReferenceNode,node2)}),[innerRef,setReferenceNode]);React.useEffect((function(){return function(){return setRef(innerRef,null)}}),[]);React.useEffect((function(){warning$1(Boolean(setReferenceNode),"`Reference` should not be used outside of a `Manager` component.")}),[setReferenceNode]);return unwrapArray(children)({ref:refHandler})}const POPOVER_MODIFIERS={offset:{enabled:true,name:"offset",options:{offset:[0,20]},phase:"main"}};const popoverModifiers=({modifiers:modifiers,offset:offset2})=>offset2?modifiers.concat([POPOVER_MODIFIERS.offset]):modifiers;const Popover=props=>{const{aria:aria={},className:className,children:children,data:data={},htmlOptions:htmlOptions={},id:id,modifiers:modifiers,offset:offset2,placement:placement,referenceElement:referenceElement,zIndex:zIndex,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,width:width,targetId:targetId}=props;const items=globalProps(props).split(" ");const filteredItems=items.filter((item=>!item.includes("min_width")));const filteredGlobalProps=filteredItems.join(" ");const popoverSpacing=filteredGlobalProps.includes("dark")||!filteredGlobalProps?"p_sm":filteredGlobalProps;const overflowHandling=maxHeight||maxWidth?"overflow_handling":"";const zIndexStyle=zIndex?{zIndex:zIndex}:{};const widthHeightStyles=()=>Object.assign({},maxHeight?{maxHeight:maxHeight}:{},maxWidth?{maxWidth:maxWidth}:{},minHeight?{minHeight:minHeight}:{},minWidth?{minWidth:minWidth}:{},width?{width:width}:{});const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_popover_kit"),filteredGlobalProps,className);return jsx$1(Popper,{modifiers:popoverModifiers({modifiers:modifiers,offset:offset2}),placement:placement,referenceElement:referenceElement,children:({placement:placement2,ref:ref,style:style})=>jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,"data-placement":placement2,id:id,ref:ref,style:Object.assign({},style,zIndexStyle),children:jsx$1("div",{className:classnames(`${buildCss("pb_popover_tooltip")} show`),children:jsx$1("div",{className:classnames("pb_popover_body",popoverSpacing,overflowHandling),id:targetId,style:widthHeightStyles(),children:children})})})})};const PbReactPopover=props=>{const[targetId]=useState(uniqueId("id-"));const{className:className,children:children,modifiers:modifiers=[],offset:offset2=false,placement:placement="left",portal:portal="body",reference:reference,referenceElement:referenceElement,show:show2=false,usePortal:usePortal=true,zIndex:zIndex,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,width:width}=props;useEffect((()=>{const{closeOnClick:closeOnClick,shouldClosePopover:shouldClosePopover=noop$1}=props;if(!closeOnClick)return;document.body.addEventListener("click",(e=>{const target=e.target;const targetIsPopover=target.closest("#"+targetId)!==null;const targetIsReference=target.closest("#reference-"+targetId)!==null;const shouldClose=()=>{setTimeout((()=>shouldClosePopover(true)),0)};switch(closeOnClick){case"outside":if(!targetIsPopover&&!targetIsReference)shouldClose();break;case"inside":if(targetIsPopover)shouldClose();break;case"any":if(targetIsPopover||!targetIsPopover&&!targetIsReference)shouldClose();break}}),{capture:true})}),[]);const popoverComponent=jsx$1(Popover,{className:className,maxHeight:maxHeight,maxWidth:maxWidth,minHeight:minHeight,minWidth:minWidth,modifiers:modifiers,offset:offset2,placement:placement,referenceElement:referenceElement,targetId:targetId,width:width,zIndex:zIndex,...props,children:children});return jsx$1(Manager,{children:jsxs(Fragment,{children:[reference&&!referenceElement&&jsx$1(Reference,{children:({ref:ref})=>jsx$1("span",{className:"pb_popover_reference_wrapper",id:"reference-"+targetId,ref:ref,children:jsx$1(reference.type,{...reference.props})})}),show2&&(usePortal?jsx$1(Fragment,{children:ReactDOM__default.createPortal(popoverComponent,document.querySelector(portal))}):{popoverComponent:popoverComponent})]})})};function hasWindow(){return typeof window!=="undefined"}function getNodeName$1(node2){if(isNode$1(node2)){return(node2.nodeName||"").toLowerCase()}return"#document"}function getWindow$1(node2){var _node$ownerDocument;return(node2==null||(_node$ownerDocument=node2.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement$1(node2){var _ref3;return(_ref3=(isNode$1(node2)?node2.ownerDocument:node2.document)||window.document)==null?void 0:_ref3.documentElement}function isNode$1(value){if(!hasWindow()){return false}return value instanceof Node||value instanceof getWindow$1(value).Node}function isElement$1(value){if(!hasWindow()){return false}return value instanceof Element||value instanceof getWindow$1(value).Element}function isHTMLElement$1(value){if(!hasWindow()){return false}return value instanceof HTMLElement||value instanceof getWindow$1(value).HTMLElement}function isShadowRoot$1(value){if(!hasWindow()||typeof ShadowRoot==="undefined"){return false}return value instanceof ShadowRoot||value instanceof getWindow$1(value).ShadowRoot}function isOverflowElement$1(element){const{overflow:overflow,overflowX:overflowX,overflowY:overflowY,display:display}=getComputedStyle$2(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&!["inline","contents"].includes(display)}function isTableElement(element){return["table","td","th"].includes(getNodeName$1(element))}function isTopLayer(element){return[":popover-open",":modal"].some((selector=>{try{return element.matches(selector)}catch(e){return false}}))}function isContainingBlock(elementOrCss){const webkit=isWebKit$1();const css4=isElement$1(elementOrCss)?getComputedStyle$2(elementOrCss):elementOrCss;return css4.transform!=="none"||css4.perspective!=="none"||(css4.containerType?css4.containerType!=="normal":false)||!webkit&&(css4.backdropFilter?css4.backdropFilter!=="none":false)||!webkit&&(css4.filter?css4.filter!=="none":false)||["transform","perspective","filter"].some((value=>(css4.willChange||"").includes(value)))||["paint","layout","strict","content"].some((value=>(css4.contain||"").includes(value)))}function getContainingBlock(element){let currentNode=getParentNode$1(element);while(isHTMLElement$1(currentNode)&&!isLastTraversableNode$1(currentNode)){if(isContainingBlock(currentNode)){return currentNode}else if(isTopLayer(currentNode)){return null}currentNode=getParentNode$1(currentNode)}return null}function isWebKit$1(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode$1(node2){return["html","body","#document"].includes(getNodeName$1(node2))}function getComputedStyle$2(element){return getWindow$1(element).getComputedStyle(element)}function getNodeScroll(element){if(isElement$1(element)){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop}}return{scrollLeft:element.scrollX,scrollTop:element.scrollY}}function getParentNode$1(node2){if(getNodeName$1(node2)==="html"){return node2}const result=node2.assignedSlot||node2.parentNode||isShadowRoot$1(node2)&&node2.host||getDocumentElement$1(node2);return isShadowRoot$1(result)?result.host:result}function getNearestOverflowAncestor$1(node2){const parentNode=getParentNode$1(node2);if(isLastTraversableNode$1(parentNode)){return node2.ownerDocument?node2.ownerDocument.body:node2.body}if(isHTMLElement$1(parentNode)&&isOverflowElement$1(parentNode)){return parentNode}return getNearestOverflowAncestor$1(parentNode)}function getOverflowAncestors$1(node2,list,traverseIframes){var _node$ownerDocument2;if(list===void 0){list=[]}if(traverseIframes===void 0){traverseIframes=true}const scrollableAncestor=getNearestOverflowAncestor$1(node2);const isBody=scrollableAncestor===((_node$ownerDocument2=node2.ownerDocument)==null?void 0:_node$ownerDocument2.body);const win=getWindow$1(scrollableAncestor);if(isBody){const frameElement=getFrameElement(win);return list.concat(win,win.visualViewport||[],isOverflowElement$1(scrollableAncestor)?scrollableAncestor:[],frameElement&&traverseIframes?getOverflowAncestors$1(frameElement):[])}return list.concat(scrollableAncestor,getOverflowAncestors$1(scrollableAncestor,[],traverseIframes))}function getFrameElement(win){return win.parent&&Object.getPrototypeOf(win.parent)?win.frameElement:null}function contains(parent,child){if(!parent||!child){return false}const rootNode=child.getRootNode==null?void 0:child.getRootNode();if(parent.contains(child)){return true}if(rootNode&&isShadowRoot$1(rootNode)){let next2=child;while(next2){if(parent===next2){return true}next2=next2.parentNode||next2.host}}return false}function isMouseLikePointerType(pointerType,strict){const values=["mouse","pen"];{values.push("",void 0)}return values.includes(pointerType)}function getDocument(node2){return(node2==null?void 0:node2.ownerDocument)||document}function getTarget(event2){if("composedPath"in event2){return event2.composedPath()[0]}return event2.target}const min$1=Math.min;const max$1=Math.max;const round$1=Math.round;const createCoords$1=v=>({x:v,y:v});const oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"};const oppositeAlignmentMap={start:"end",end:"start"};function clamp(start,value,end){return max$1(start,min$1(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){return["top","bottom"].includes(getSide(placement))?"y":"x"}function getAlignmentAxis(placement){return getOppositeAxis(getSideAxis(placement))}function getAlignmentSides(placement,rects,rtl){if(rtl===void 0){rtl=false}const alignment=getAlignment(placement);const alignmentAxis=getAlignmentAxis(placement);const length2=getAxisLength(alignmentAxis);let mainAlignmentSide=alignmentAxis==="x"?alignment===(rtl?"end":"start")?"right":"left":alignment==="start"?"bottom":"top";if(rects.reference[length2]>rects.floating[length2]){mainAlignmentSide=getOppositePlacement(mainAlignmentSide)}return[mainAlignmentSide,getOppositePlacement(mainAlignmentSide)]}function getExpandedPlacements(placement){const oppositePlacement=getOppositePlacement(placement);return[getOppositeAlignmentPlacement(placement),oppositePlacement,getOppositeAlignmentPlacement(oppositePlacement)]}function getOppositeAlignmentPlacement(placement){return placement.replace(/start|end/g,(alignment=>oppositeAlignmentMap[alignment]))}function getSideList(side,isStart,rtl){const lr=["left","right"];const rl=["right","left"];const tb=["top","bottom"];const bt=["bottom","top"];switch(side){case"top":case"bottom":if(rtl)return isStart?rl:lr;return isStart?lr:rl;case"left":case"right":return isStart?tb:bt;default:return[]}}function getOppositeAxisPlacements(placement,flipAlignment,direction,rtl){const alignment=getAlignment(placement);let list=getSideList(getSide(placement),direction==="start",rtl);if(alignment){list=list.map((side=>side+"-"+alignment));if(flipAlignment){list=list.concat(list.map(getOppositeAlignmentPlacement))}}return list}function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,(side=>oppositeSideMap[side]))}function expandPaddingObject(padding){return{top:0,right:0,bottom:0,left:0,...padding}}function getPaddingObject(padding){return typeof padding!=="number"?expandPaddingObject(padding):{top:padding,right:padding,bottom:padding,left:padding}}function rectToClientRect$1(rect){const{x:x,y:y,width:width,height:height}=rect;return{width:width,height:height,top:y,left:x,right:x+width,bottom:y+height,x:x,y:y}}function computeCoordsFromPlacement(_ref3,placement,rtl){let{reference:reference,floating:floating}=_ref3;const sideAxis=getSideAxis(placement);const alignmentAxis=getAlignmentAxis(placement);const alignLength=getAxisLength(alignmentAxis);const side=getSide(placement);const isVertical=sideAxis==="y";const commonX=reference.x+reference.width/2-floating.width/2;const commonY=reference.y+reference.height/2-floating.height/2;const 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}}switch(getAlignment(placement)){case"start":coords[alignmentAxis]-=commonAlign*(rtl&&isVertical?-1:1);break;case"end":coords[alignmentAxis]+=commonAlign*(rtl&&isVertical?-1:1);break}return coords}const computePosition$1=async(reference,floating,config)=>{const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware2=[],platform:platform2}=config;const validMiddleware=middleware2.filter(Boolean);const rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(floating));let rects=await platform2.getElementRects({reference:reference,floating:floating,strategy:strategy});let{x:x,y:y}=computeCoordsFromPlacement(rects,placement,rtl);let statefulPlacement=placement;let middlewareData={};let resetCount=0;for(let i=0;i({name:"arrow",options:options2,async fn(state){const{x:x,y:y,placement:placement,rects:rects,platform:platform2,elements:elements,middlewareData:middlewareData}=state;const{element:element,padding:padding=0}=evaluate(options2,state)||{};if(element==null){return{}}const paddingObject=getPaddingObject(padding);const coords={x:x,y:y};const axis=getAlignmentAxis(placement);const length2=getAxisLength(axis);const arrowDimensions=await platform2.getDimensions(element);const isYAxis=axis==="y";const minProp=isYAxis?"top":"left";const maxProp=isYAxis?"bottom":"right";const clientProp=isYAxis?"clientHeight":"clientWidth";const endDiff=rects.reference[length2]+rects.reference[axis]-coords[axis]-rects.floating[length2];const startDiff=coords[axis]-rects.reference[axis];const arrowOffsetParent=await(platform2.getOffsetParent==null?void 0:platform2.getOffsetParent(element));let clientSize=arrowOffsetParent?arrowOffsetParent[clientProp]:0;if(!clientSize||!(await(platform2.isElement==null?void 0:platform2.isElement(arrowOffsetParent)))){clientSize=elements.floating[clientProp]||rects.floating[length2]}const centerToReference=endDiff/2-startDiff/2;const largestPossiblePadding=clientSize/2-arrowDimensions[length2]/2-1;const minPadding=min$1(paddingObject[minProp],largestPossiblePadding);const maxPadding=min$1(paddingObject[maxProp],largestPossiblePadding);const min$1$1=minPadding;const max2=clientSize-arrowDimensions[length2]-maxPadding;const center=clientSize/2-arrowDimensions[length2]/2+centerToReference;const offset2=clamp(min$1$1,center,max2);const shouldAddOffset=!middlewareData.arrow&&getAlignment(placement)!=null&¢er!==offset2&&rects.reference[length2]/2-(centerside2<=0))){var _middlewareData$flip2,_overflowsData$filter;const nextIndex=(((_middlewareData$flip2=middlewareData.flip)==null?void 0:_middlewareData$flip2.index)||0)+1;const nextPlacement=placements[nextIndex];if(nextPlacement){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 true})).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];if(placement2){resetPlacement=placement2}break}case"initialPlacement":resetPlacement=initialPlacement;break}}if(placement!==resetPlacement){return{reset:{placement:resetPlacement}}}}return{}}}};async function convertValueToCoords(state,options2){const{placement:placement,platform:platform2,elements:elements}=state;const rtl=await(platform2.isRTL==null?void 0:platform2.isRTL(elements.floating));const side=getSide(placement);const alignment=getAlignment(placement);const isVertical=getSideAxis(placement)==="y";const mainAxisMulti=["left","top"].includes(side)?-1:1;const crossAxisMulti=rtl&&isVertical?-1:1;const rawValue=evaluate(options2,state);let{mainAxis:mainAxis,crossAxis:crossAxis,alignmentAxis:alignmentAxis}=typeof rawValue==="number"?{mainAxis:rawValue,crossAxis:0,alignmentAxis:null}:{mainAxis:rawValue.mainAxis||0,crossAxis:rawValue.crossAxis||0,alignmentAxis:rawValue.alignmentAxis};if(alignment&&typeof alignmentAxis==="number"){crossAxis=alignment==="end"?alignmentAxis*-1:alignmentAxis}return isVertical?{x:crossAxis*crossAxisMulti,y:mainAxis*mainAxisMulti}:{x:mainAxis*mainAxisMulti,y:crossAxis*crossAxisMulti}}const offset$2=function(options2){if(options2===void 0){options2=0}return{name:"offset",options:options2,async fn(state){var _middlewareData$offse,_middlewareData$arrow;const{x:x,y:y,placement:placement,middlewareData:middlewareData}=state;const diffCoords=await convertValueToCoords(state,options2);if(placement===((_middlewareData$offse=middlewareData.offset)==null?void 0:_middlewareData$offse.placement)&&(_middlewareData$arrow=middlewareData.arrow)!=null&&_middlewareData$arrow.alignmentOffset){return{}}return{x:x+diffCoords.x,y:y+diffCoords.y,data:{...diffCoords,placement:placement}}}}};const shift$2=function(options2){if(options2===void 0){options2={}}return{name:"shift",options:options2,async fn(state){const{x:x,y:y,placement:placement}=state;const{mainAxis:checkMainAxis=true,crossAxis:checkCrossAxis=false,limiter:limiter={fn:_ref3=>{let{x:x2,y:y2}=_ref3;return{x:x2,y:y2}}},...detectOverflowOptions}=evaluate(options2,state);const coords={x:x,y:y};const overflow=await detectOverflow(state,detectOverflowOptions);const crossAxis=getSideAxis(getSide(placement));const mainAxis=getOppositeAxis(crossAxis);let mainAxisCoord=coords[mainAxis];let crossAxisCoord=coords[crossAxis];if(checkMainAxis){const minSide=mainAxis==="y"?"top":"left";const maxSide=mainAxis==="y"?"bottom":"right";const min2=mainAxisCoord+overflow[minSide];const max2=mainAxisCoord-overflow[maxSide];mainAxisCoord=clamp(min2,mainAxisCoord,max2)}if(checkCrossAxis){const minSide=crossAxis==="y"?"top":"left";const maxSide=crossAxis==="y"?"bottom":"right";const min2=crossAxisCoord+overflow[minSide];const max2=crossAxisCoord-overflow[maxSide];crossAxisCoord=clamp(min2,crossAxisCoord,max2)}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}}}}}};function getCssDimensions$1(element){const css4=getComputedStyle$2(element);let width=parseFloat(css4.width)||0;let height=parseFloat(css4.height)||0;const hasOffset=isHTMLElement$1(element);const offsetWidth=hasOffset?element.offsetWidth:width;const offsetHeight=hasOffset?element.offsetHeight:height;const shouldFallback=round$1(width)!==offsetWidth||round$1(height)!==offsetHeight;if(shouldFallback){width=offsetWidth;height=offsetHeight}return{width:width,height:height,$:shouldFallback}}function unwrapElement$1(element){return!isElement$1(element)?element.contextElement:element}function getScale$1(element){const domElement=unwrapElement$1(element);if(!isHTMLElement$1(domElement)){return createCoords$1(1)}const rect=domElement.getBoundingClientRect();const{width:width,height:height,$:$}=getCssDimensions$1(domElement);let x=($?round$1(rect.width):rect.width)/width;let y=($?round$1(rect.height):rect.height)/height;if(!x||!Number.isFinite(x)){x=1}if(!y||!Number.isFinite(y)){y=1}return{x:x,y:y}}const noOffsets$1=createCoords$1(0);function getVisualOffsets$1(element){const win=getWindow$1(element);if(!isWebKit$1()||!win.visualViewport){return noOffsets$1}return{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}}function shouldAddVisualOffsets$1(element,isFixed,floatingOffsetParent){if(isFixed===void 0){isFixed=false}if(!floatingOffsetParent||isFixed&&floatingOffsetParent!==getWindow$1(element)){return false}return isFixed}function getBoundingClientRect$1(element,includeScale,isFixedStrategy,offsetParent){if(includeScale===void 0){includeScale=false}if(isFixedStrategy===void 0){isFixedStrategy=false}const clientRect=element.getBoundingClientRect();const domElement=unwrapElement$1(element);let scale=createCoords$1(1);if(includeScale){if(offsetParent){if(isElement$1(offsetParent)){scale=getScale$1(offsetParent)}}else{scale=getScale$1(element)}}const visualOffsets=shouldAddVisualOffsets$1(domElement,isFixedStrategy,offsetParent)?getVisualOffsets$1(domElement):createCoords$1(0);let x=(clientRect.left+visualOffsets.x)/scale.x;let y=(clientRect.top+visualOffsets.y)/scale.y;let width=clientRect.width/scale.x;let height=clientRect.height/scale.y;if(domElement){const win=getWindow$1(domElement);const offsetWin=offsetParent&&isElement$1(offsetParent)?getWindow$1(offsetParent):offsetParent;let currentWin=win;let currentIFrame=getFrameElement(currentWin);while(currentIFrame&&offsetParent&&offsetWin!==currentWin){const iframeScale=getScale$1(currentIFrame);const iframeRect=currentIFrame.getBoundingClientRect();const css4=getComputedStyle$2(currentIFrame);const left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css4.paddingLeft))*iframeScale.x;const top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css4.paddingTop))*iframeScale.y;x*=iframeScale.x;y*=iframeScale.y;width*=iframeScale.x;height*=iframeScale.y;x+=left;y+=top;currentWin=getWindow$1(currentIFrame);currentIFrame=getFrameElement(currentWin)}}return rectToClientRect$1({width:width,height:height,x:x,y:y})}function getWindowScrollBarX(element,rect){const leftScroll=getNodeScroll(element).scrollLeft;if(!rect){return getBoundingClientRect$1(getDocumentElement$1(element)).left+leftScroll}return rect.left+leftScroll}function getHTMLOffset(documentElement,scroll,ignoreScrollbarX){if(ignoreScrollbarX===void 0){ignoreScrollbarX=false}const htmlRect=documentElement.getBoundingClientRect();const x=htmlRect.left+scroll.scrollLeft-(ignoreScrollbarX?0:getWindowScrollBarX(documentElement,htmlRect));const y=htmlRect.top+scroll.scrollTop;return{x:x,y:y}}function convertOffsetParentRelativeRectToViewportRelativeRect(_ref3){let{elements:elements,rect:rect,offsetParent:offsetParent,strategy:strategy}=_ref3;const isFixed=strategy==="fixed";const documentElement=getDocumentElement$1(offsetParent);const topLayer=elements?isTopLayer(elements.floating):false;if(offsetParent===documentElement||topLayer&&isFixed){return rect}let scroll={scrollLeft:0,scrollTop:0};let scale=createCoords$1(1);const offsets=createCoords$1(0);const isOffsetParentAnElement=isHTMLElement$1(offsetParent);if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$1(offsetParent)!=="body"||isOverflowElement$1(documentElement)){scroll=getNodeScroll(offsetParent)}if(isHTMLElement$1(offsetParent)){const offsetRect=getBoundingClientRect$1(offsetParent);scale=getScale$1(offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft;offsets.y=offsetRect.y+offsetParent.clientTop}}const htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll,true):createCoords$1(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 Array.from(element.getClientRects())}function getDocumentRect(element){const html=getDocumentElement$1(element);const scroll=getNodeScroll(element);const body=element.ownerDocument.body;const width=max$1(html.scrollWidth,html.clientWidth,body.scrollWidth,body.clientWidth);const height=max$1(html.scrollHeight,html.clientHeight,body.scrollHeight,body.clientHeight);let x=-scroll.scrollLeft+getWindowScrollBarX(element);const y=-scroll.scrollTop;if(getComputedStyle$2(body).direction==="rtl"){x+=max$1(html.clientWidth,body.clientWidth)-width}return{width:width,height:height,x:x,y:y}}function getViewportRect(element,strategy){const win=getWindow$1(element);const html=getDocumentElement$1(element);const visualViewport=win.visualViewport;let width=html.clientWidth;let height=html.clientHeight;let x=0;let y=0;if(visualViewport){width=visualViewport.width;height=visualViewport.height;const visualViewportBased=isWebKit$1();if(!visualViewportBased||visualViewportBased&&strategy==="fixed"){x=visualViewport.offsetLeft;y=visualViewport.offsetTop}}return{width:width,height:height,x:x,y:y}}function getInnerBoundingClientRect(element,strategy){const clientRect=getBoundingClientRect$1(element,true,strategy==="fixed");const top=clientRect.top+element.clientTop;const left=clientRect.left+element.clientLeft;const scale=isHTMLElement$1(element)?getScale$1(element):createCoords$1(1);const width=element.clientWidth*scale.x;const height=element.clientHeight*scale.y;const x=left*scale.x;const y=top*scale.y;return{width:width,height:height,x:x,y:y}}function getClientRectFromClippingAncestor(element,clippingAncestor,strategy){let rect;if(clippingAncestor==="viewport"){rect=getViewportRect(element,strategy)}else if(clippingAncestor==="document"){rect=getDocumentRect(getDocumentElement$1(element))}else if(isElement$1(clippingAncestor)){rect=getInnerBoundingClientRect(clippingAncestor,strategy)}else{const visualOffsets=getVisualOffsets$1(element);rect={x:clippingAncestor.x-visualOffsets.x,y:clippingAncestor.y-visualOffsets.y,width:clippingAncestor.width,height:clippingAncestor.height}}return rectToClientRect$1(rect)}function hasFixedPositionAncestor(element,stopNode){const parentNode=getParentNode$1(element);if(parentNode===stopNode||!isElement$1(parentNode)||isLastTraversableNode$1(parentNode)){return false}return getComputedStyle$2(parentNode).position==="fixed"||hasFixedPositionAncestor(parentNode,stopNode)}function getClippingElementAncestors(element,cache){const cachedResult=cache.get(element);if(cachedResult){return cachedResult}let result=getOverflowAncestors$1(element,[],false).filter((el=>isElement$1(el)&&getNodeName$1(el)!=="body"));let currentContainingBlockComputedStyle=null;const elementIsFixed=getComputedStyle$2(element).position==="fixed";let currentNode=elementIsFixed?getParentNode$1(element):element;while(isElement$1(currentNode)&&!isLastTraversableNode$1(currentNode)){const computedStyle=getComputedStyle$2(currentNode);const currentNodeIsContaining=isContainingBlock(currentNode);if(!currentNodeIsContaining&&computedStyle.position==="fixed"){currentContainingBlockComputedStyle=null}const shouldDropCurrentNode=elementIsFixed?!currentNodeIsContaining&&!currentContainingBlockComputedStyle:!currentNodeIsContaining&&computedStyle.position==="static"&&!!currentContainingBlockComputedStyle&&["absolute","fixed"].includes(currentContainingBlockComputedStyle.position)||isOverflowElement$1(currentNode)&&!currentNodeIsContaining&&hasFixedPositionAncestor(element,currentNode);if(shouldDropCurrentNode){result=result.filter((ancestor=>ancestor!==currentNode))}else{currentContainingBlockComputedStyle=computedStyle}currentNode=getParentNode$1(currentNode)}cache.set(element,result);return result}function getClippingRect(_ref3){let{element:element,boundary:boundary,rootBoundary:rootBoundary,strategy:strategy}=_ref3;const elementClippingAncestors=boundary==="clippingAncestors"?isTopLayer(element)?[]:getClippingElementAncestors(element,this._c):[].concat(boundary);const clippingAncestors=[...elementClippingAncestors,rootBoundary];const firstClippingAncestor=clippingAncestors[0];const clippingRect=clippingAncestors.reduce(((accRect,clippingAncestor)=>{const rect=getClientRectFromClippingAncestor(element,clippingAncestor,strategy);accRect.top=max$1(rect.top,accRect.top);accRect.right=min$1(rect.right,accRect.right);accRect.bottom=min$1(rect.bottom,accRect.bottom);accRect.left=max$1(rect.left,accRect.left);return accRect}),getClientRectFromClippingAncestor(element,firstClippingAncestor,strategy));return{width:clippingRect.right-clippingRect.left,height:clippingRect.bottom-clippingRect.top,x:clippingRect.left,y:clippingRect.top}}function getDimensions(element){const{width:width,height:height}=getCssDimensions$1(element);return{width:width,height:height}}function getRectRelativeToOffsetParent(element,offsetParent,strategy){const isOffsetParentAnElement=isHTMLElement$1(offsetParent);const documentElement=getDocumentElement$1(offsetParent);const isFixed=strategy==="fixed";const rect=getBoundingClientRect$1(element,true,isFixed,offsetParent);let scroll={scrollLeft:0,scrollTop:0};const offsets=createCoords$1(0);if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName$1(offsetParent)!=="body"||isOverflowElement$1(documentElement)){scroll=getNodeScroll(offsetParent)}if(isOffsetParentAnElement){const offsetRect=getBoundingClientRect$1(offsetParent,true,isFixed,offsetParent);offsets.x=offsetRect.x+offsetParent.clientLeft;offsets.y=offsetRect.y+offsetParent.clientTop}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement)}}const htmlOffset=documentElement&&!isOffsetParentAnElement&&!isFixed?getHTMLOffset(documentElement,scroll):createCoords$1(0);const x=rect.left+scroll.scrollLeft-offsets.x-htmlOffset.x;const y=rect.top+scroll.scrollTop-offsets.y-htmlOffset.y;return{x:x,y:y,width:rect.width,height:rect.height}}function isStaticPositioned(element){return getComputedStyle$2(element).position==="static"}function getTrueOffsetParent(element,polyfill2){if(!isHTMLElement$1(element)||getComputedStyle$2(element).position==="fixed"){return null}if(polyfill2){return polyfill2(element)}let rawOffsetParent=element.offsetParent;if(getDocumentElement$1(element)===rawOffsetParent){rawOffsetParent=rawOffsetParent.ownerDocument.body}return rawOffsetParent}function getOffsetParent(element,polyfill2){const win=getWindow$1(element);if(isTopLayer(element)){return win}if(!isHTMLElement$1(element)){let svgOffsetParent=getParentNode$1(element);while(svgOffsetParent&&!isLastTraversableNode$1(svgOffsetParent)){if(isElement$1(svgOffsetParent)&&!isStaticPositioned(svgOffsetParent)){return svgOffsetParent}svgOffsetParent=getParentNode$1(svgOffsetParent)}return win}let offsetParent=getTrueOffsetParent(element,polyfill2);while(offsetParent&&isTableElement(offsetParent)&&isStaticPositioned(offsetParent)){offsetParent=getTrueOffsetParent(offsetParent,polyfill2)}if(offsetParent&&isLastTraversableNode$1(offsetParent)&&isStaticPositioned(offsetParent)&&!isContainingBlock(offsetParent)){return win}return offsetParent||getContainingBlock(element)||win}const getElementRects=async function(data){const getOffsetParentFn=this.getOffsetParent||getOffsetParent;const getDimensionsFn=this.getDimensions;const floatingDimensions=await getDimensionsFn(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 getComputedStyle$2(element).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect:convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect,getOffsetParent:getOffsetParent,getElementRects:getElementRects,getClientRects:getClientRects,getDimensions:getDimensions,getScale:getScale$1,isElement:isElement$1,isRTL:isRTL};const offset$1=offset$2;const shift$1=shift$2;const flip$1=flip$2;const arrow$2=arrow$3;const computePosition=(reference,floating,options2)=>{const cache=new Map;const mergedOptions={platform:platform,...options2};const platformWithCache={...mergedOptions.platform,_c:cache};return computePosition$1(reference,floating,{...mergedOptions,platform:platformWithCache})};var index$2=typeof document!=="undefined"?useLayoutEffect:useEffect;function deepEqual(a,b){if(a===b){return true}if(typeof a!==typeof b){return false}if(typeof a==="function"&&a.toString()===b.toString()){return true}let length2;let i;let keys;if(a&&b&&typeof a==="object"){if(Array.isArray(a)){length2=a.length;if(length2!==b.length)return false;for(i=length2;i--!==0;){if(!deepEqual(a[i],b[i])){return false}}return true}keys=Object.keys(a);length2=keys.length;if(length2!==Object.keys(b).length){return false}for(i=length2;i--!==0;){if(!{}.hasOwnProperty.call(b,keys[i])){return false}}for(i=length2;i--!==0;){const key=keys[i];if(key==="_owner"&&a.$$typeof){continue}if(!deepEqual(a[key],b[key])){return false}}return true}return a!==a&&b!==b}function getDPR(element){if(typeof window==="undefined"){return 1}const win=element.ownerDocument.defaultView||window;return win.devicePixelRatio||1}function roundByDPR(element,value){const dpr=getDPR(element);return Math.round(value*dpr)/dpr}function useLatestRef$1(value){const ref=React.useRef(value);index$2((()=>{ref.current=value}));return ref}function useFloating$1(options2){if(options2===void 0){options2={}}const{placement:placement="bottom",strategy:strategy="absolute",middleware:middleware2=[],platform:platform2,elements:{reference:externalReference,floating:externalFloating}={},transform:transform=true,whileElementsMounted:whileElementsMounted,open:open}=options2;const[data,setData]=React.useState({x:0,y:0,strategy:strategy,placement:placement,middlewareData:{},isPositioned:false});const[latestMiddleware,setLatestMiddleware]=React.useState(middleware2);if(!deepEqual(latestMiddleware,middleware2)){setLatestMiddleware(middleware2)}const[_reference,_setReference]=React.useState(null);const[_floating,_setFloating]=React.useState(null);const setReference=React.useCallback((node2=>{if(node2!==referenceRef.current){referenceRef.current=node2;_setReference(node2)}}),[]);const setFloating=React.useCallback((node2=>{if(node2!==floatingRef.current){floatingRef.current=node2;_setFloating(node2)}}),[]);const referenceEl=externalReference||_reference;const floatingEl=externalFloating||_floating;const referenceRef=React.useRef(null);const floatingRef=React.useRef(null);const dataRef=React.useRef(data);const hasWhileElementsMounted=whileElementsMounted!=null;const whileElementsMountedRef=useLatestRef$1(whileElementsMounted);const platformRef=useLatestRef$1(platform2);const openRef=useLatestRef$1(open);const update=React.useCallback((()=>{if(!referenceRef.current||!floatingRef.current){return}const config={placement:placement,strategy:strategy,middleware:latestMiddleware};if(platformRef.current){config.platform=platformRef.current}computePosition(referenceRef.current,floatingRef.current,config).then((data2=>{const fullData={...data2,isPositioned:openRef.current!==false};if(isMountedRef.current&&!deepEqual(dataRef.current,fullData)){dataRef.current=fullData;ReactDOM.flushSync((()=>{setData(fullData)}))}}))}),[latestMiddleware,placement,strategy,platformRef,openRef]);index$2((()=>{if(open===false&&dataRef.current.isPositioned){dataRef.current.isPositioned=false;setData((data2=>({...data2,isPositioned:false})))}}),[open]);const isMountedRef=React.useRef(false);index$2((()=>{isMountedRef.current=true;return()=>{isMountedRef.current=false}}),[]);index$2((()=>{if(referenceEl)referenceRef.current=referenceEl;if(floatingEl)floatingRef.current=floatingEl;if(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:setReference,setFloating:setFloating})),[setReference,setFloating]);const elements=React.useMemo((()=>({reference:referenceEl,floating:floatingEl})),[referenceEl,floatingEl]);const floatingStyles=React.useMemo((()=>{const initialStyles={position:strategy,left:0,top:0};if(!elements.floating){return initialStyles}const x=roundByDPR(elements.floating,data.x);const y=roundByDPR(elements.floating,data.y);if(transform){return{...initialStyles,transform:"translate("+x+"px, "+y+"px)",...getDPR(elements.floating)>=1.5&&{willChange:"transform"}}}return{position:strategy,left:x,top:y}}),[strategy,transform,elements.floating,data.x,data.y]);return React.useMemo((()=>({...data,update:update,refs:refs,elements:elements,floatingStyles:floatingStyles})),[data,update,refs,elements,floatingStyles])}const arrow$1=options2=>{function isRef(value){return{}.hasOwnProperty.call(value,"current")}return{name:"arrow",options:options2,fn(state){const{element:element,padding:padding}=typeof options2==="function"?options2(state):options2;if(element&&isRef(element)){if(element.current!=null){return arrow$2({element:element.current,padding:padding}).fn(state)}return{}}if(element){return arrow$2({element:element,padding:padding}).fn(state)}return{}}}};const offset=(options2,deps)=>({...offset$1(options2),options:[options2,deps]});const shift=(options2,deps)=>({...shift$1(options2),options:[options2,deps]});const flip=(options2,deps)=>({...flip$1(options2),options:[options2,deps]});const arrow=(options2,deps)=>({...arrow$1(options2),options:[options2,deps]});const SafeReact={...React};const useInsertionEffect$1=SafeReact.useInsertionEffect;const useSafeInsertionEffect=useInsertionEffect$1||(fn=>fn());function useEffectEvent(callback){const ref=React.useRef((()=>{}));useSafeInsertionEffect((()=>{ref.current=callback}));return 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)}),[])}var index$1=typeof document!=="undefined"?useLayoutEffect:useEffect;let serverHandoffComplete=false;let 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));index$1((()=>{if(id==null){setId(genId())}}),[]);React.useEffect((()=>{serverHandoffComplete=true}),[]);return id}const useReactId=SafeReact.useId;const useId=useReactId||useFloatingId;function createPubSub(){const map=new Map;return{emit(event2,data){var _map$get;(_map$get=map.get(event2))==null||_map$get.forEach((handler=>handler(data)))},on(event2,listener){map.set(event2,[...map.get(event2)||[],listener])},off(event2,listener){var _map$get2;map.set(event2,((_map$get2=map.get(event2))==null?void 0:_map$get2.filter((l=>l!==listener)))||[])}}}const FloatingNodeContext=React.createContext(null);const FloatingTreeContext=React.createContext(null);const useFloatingParentNodeId=()=>{var _React$useContext;return((_React$useContext=React.useContext(FloatingNodeContext))==null?void 0:_React$useContext.id)||null};const useFloatingTree=()=>React.useContext(FloatingTreeContext);function createAttribute(name2){return"data-floating-ui-"+name2}function useLatestRef(value){const ref=useRef(value);index$1((()=>{ref.current=value}));return ref}const safePolygonIdentifier=createAttribute("safe-polygon");function getDelay(value,prop,pointerType){if(pointerType&&!isMouseLikePointerType(pointerType)){return 0}if(typeof value==="number"){return value}return value==null?void 0:value[prop]}function useHover(context,props){if(props===void 0){props={}}const{open:open,onOpenChange:onOpenChange,dataRef:dataRef,events:events,elements:elements}=context;const{enabled:enabled=true,delay:delay=0,handleClose:handleClose=null,mouseOnly:mouseOnly=false,restMs:restMs=0,move:move=true}=props;const tree=useFloatingTree();const parentId=useFloatingParentNodeId();const handleCloseRef=useLatestRef(handleClose);const delayRef=useLatestRef(delay);const openRef=useLatestRef(open);const pointerTypeRef=React.useRef();const timeoutRef=React.useRef(-1);const handlerRef=React.useRef();const restTimeoutRef=React.useRef(-1);const blockMouseMoveRef=React.useRef(true);const performedPointerEventsMutationRef=React.useRef(false);const unbindMouseMoveRef=React.useRef((()=>{}));const restTimeoutPendingRef=React.useRef(false);const isHoverOpen=React.useCallback((()=>{var _dataRef$current$open;const type=(_dataRef$current$open=dataRef.current.openEvent)==null?void 0:_dataRef$current$open.type;return(type==null?void 0:type.includes("mouse"))&&type!=="mousedown"}),[dataRef]);React.useEffect((()=>{if(!enabled)return;function onOpenChange2(_ref3){let{open:open2}=_ref3;if(!open2){clearTimeout(timeoutRef.current);clearTimeout(restTimeoutRef.current);blockMouseMoveRef.current=true;restTimeoutPendingRef.current=false}}events.on("openchange",onOpenChange2);return()=>{events.off("openchange",onOpenChange2)}}),[enabled,events]);React.useEffect((()=>{if(!enabled)return;if(!handleCloseRef.current)return;if(!open)return;function onLeave(event2){if(isHoverOpen()){onOpenChange(false,event2,"hover")}}const html=getDocument(elements.floating).documentElement;html.addEventListener("mouseleave",onLeave);return()=>{html.removeEventListener("mouseleave",onLeave)}}),[elements.floating,open,onOpenChange,enabled,handleCloseRef,isHoverOpen]);const closeWithDelay=React.useCallback((function(event2,runElseBranch,reason){if(runElseBranch===void 0){runElseBranch=true}if(reason===void 0){reason="hover"}const closeDelay=getDelay(delayRef.current,"close",pointerTypeRef.current);if(closeDelay&&!handlerRef.current){clearTimeout(timeoutRef.current);timeoutRef.current=window.setTimeout((()=>onOpenChange(false,event2,reason)),closeDelay)}else if(runElseBranch){clearTimeout(timeoutRef.current);onOpenChange(false,event2,reason)}}),[delayRef,onOpenChange]);const cleanupMouseMoveHandler=useEffectEvent((()=>{unbindMouseMoveRef.current();handlerRef.current=void 0}));const clearPointerEvents=useEffectEvent((()=>{if(performedPointerEventsMutationRef.current){const body=getDocument(elements.floating).body;body.style.pointerEvents="";body.removeAttribute(safePolygonIdentifier);performedPointerEventsMutationRef.current=false}}));const isClickLikeOpenEvent=useEffectEvent((()=>dataRef.current.openEvent?["click","mousedown"].includes(dataRef.current.openEvent.type):false));React.useEffect((()=>{if(!enabled)return;function onMouseEnter(event2){clearTimeout(timeoutRef.current);blockMouseMoveRef.current=false;if(mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)||restMs>0&&!getDelay(delayRef.current,"open")){return}const openDelay=getDelay(delayRef.current,"open",pointerTypeRef.current);if(openDelay){timeoutRef.current=window.setTimeout((()=>{if(!openRef.current){onOpenChange(true,event2,"hover")}}),openDelay)}else if(!open){onOpenChange(true,event2,"hover")}}function onMouseLeave(event2){if(isClickLikeOpenEvent())return;unbindMouseMoveRef.current();const doc=getDocument(elements.floating);clearTimeout(restTimeoutRef.current);restTimeoutPendingRef.current=false;if(handleCloseRef.current&&dataRef.current.floatingContext){if(!open){clearTimeout(timeoutRef.current)}handlerRef.current=handleCloseRef.current({...dataRef.current.floatingContext,tree:tree,x:event2.clientX,y:event2.clientY,onClose(){clearPointerEvents();cleanupMouseMoveHandler();if(!isClickLikeOpenEvent()){closeWithDelay(event2,true,"safe-polygon")}}});const handler=handlerRef.current;doc.addEventListener("mousemove",handler);unbindMouseMoveRef.current=()=>{doc.removeEventListener("mousemove",handler)};return}const shouldClose=pointerTypeRef.current==="touch"?!contains(elements.floating,event2.relatedTarget):true;if(shouldClose){closeWithDelay(event2)}}function onScrollMouseLeave(event2){if(isClickLikeOpenEvent())return;if(!dataRef.current.floatingContext)return;handleCloseRef.current==null||handleCloseRef.current({...dataRef.current.floatingContext,tree:tree,x:event2.clientX,y:event2.clientY,onClose(){clearPointerEvents();cleanupMouseMoveHandler();if(!isClickLikeOpenEvent()){closeWithDelay(event2)}}})(event2)}if(isElement$1(elements.domReference)){var _elements$floating;const ref=elements.domReference;open&&ref.addEventListener("mouseleave",onScrollMouseLeave);(_elements$floating=elements.floating)==null||_elements$floating.addEventListener("mouseleave",onScrollMouseLeave);move&&ref.addEventListener("mousemove",onMouseEnter,{once:true});ref.addEventListener("mouseenter",onMouseEnter);ref.addEventListener("mouseleave",onMouseLeave);return()=>{var _elements$floating2;open&&ref.removeEventListener("mouseleave",onScrollMouseLeave);(_elements$floating2=elements.floating)==null||_elements$floating2.removeEventListener("mouseleave",onScrollMouseLeave);move&&ref.removeEventListener("mousemove",onMouseEnter);ref.removeEventListener("mouseenter",onMouseEnter);ref.removeEventListener("mouseleave",onMouseLeave)}}}),[elements,enabled,context,mouseOnly,restMs,move,closeWithDelay,cleanupMouseMoveHandler,clearPointerEvents,onOpenChange,open,openRef,tree,delayRef,handleCloseRef,dataRef,isClickLikeOpenEvent]);index$1((()=>{var _handleCloseRef$curre;if(!enabled)return;if(open&&(_handleCloseRef$curre=handleCloseRef.current)!=null&&_handleCloseRef$curre.__options.blockPointerEvents&&isHoverOpen()){performedPointerEventsMutationRef.current=true;const floatingEl=elements.floating;if(isElement$1(elements.domReference)&&floatingEl){var _tree$nodesRef$curren;const body=getDocument(elements.floating).body;body.setAttribute(safePolygonIdentifier,"");const ref=elements.domReference;const parentFloating=tree==null||(_tree$nodesRef$curren=tree.nodesRef.current.find((node2=>node2.id===parentId)))==null||(_tree$nodesRef$curren=_tree$nodesRef$curren.context)==null?void 0:_tree$nodesRef$curren.elements.floating;if(parentFloating){parentFloating.style.pointerEvents=""}body.style.pointerEvents="none";ref.style.pointerEvents="auto";floatingEl.style.pointerEvents="auto";return()=>{body.style.pointerEvents="";ref.style.pointerEvents="";floatingEl.style.pointerEvents=""}}}}),[enabled,open,parentId,elements,tree,handleCloseRef,isHoverOpen]);index$1((()=>{if(!open){pointerTypeRef.current=void 0;restTimeoutPendingRef.current=false;cleanupMouseMoveHandler();clearPointerEvents()}}),[open,cleanupMouseMoveHandler,clearPointerEvents]);React.useEffect((()=>()=>{cleanupMouseMoveHandler();clearTimeout(timeoutRef.current);clearTimeout(restTimeoutRef.current);clearPointerEvents()}),[enabled,elements.domReference,cleanupMouseMoveHandler,clearPointerEvents]);const reference=React.useMemo((()=>{function setPointerRef(event2){pointerTypeRef.current=event2.pointerType}return{onPointerDown:setPointerRef,onPointerEnter:setPointerRef,onMouseMove(event2){const{nativeEvent:nativeEvent}=event2;function handleMouseMove(){if(!blockMouseMoveRef.current&&!openRef.current){onOpenChange(true,nativeEvent,"hover")}}if(mouseOnly&&!isMouseLikePointerType(pointerTypeRef.current)){return}if(open||restMs===0){return}if(restTimeoutPendingRef.current&&event2.movementX**2+event2.movementY**2<2){return}clearTimeout(restTimeoutRef.current);if(pointerTypeRef.current==="touch"){handleMouseMove()}else{restTimeoutPendingRef.current=true;restTimeoutRef.current=window.setTimeout(handleMouseMove,restMs)}}}}),[mouseOnly,onOpenChange,open,openRef,restMs]);const floating=React.useMemo((()=>({onMouseEnter(){clearTimeout(timeoutRef.current)},onMouseLeave(event2){if(!isClickLikeOpenEvent()){closeWithDelay(event2.nativeEvent,false)}}})),[closeWithDelay,isClickLikeOpenEvent]);return React.useMemo((()=>enabled?{reference:reference,floating:floating}:{}),[enabled,reference,floating])}function getChildren(nodes,id){let allChildren=nodes.filter((node2=>{var _node$context;return node2.parentId===id&&((_node$context=node2.context)==null?void 0:_node$context.open)}));let currentChildren=allChildren;while(currentChildren.length){currentChildren=nodes.filter((node2=>{var _currentChildren;return(_currentChildren=currentChildren)==null?void 0:_currentChildren.some((n=>{var _node$context2;return node2.parentId===n.id&&((_node$context2=node2.context)==null?void 0:_node$context2.open)}))}));allChildren=allChildren.concat(currentChildren)}return allChildren}const FOCUSABLE_ATTRIBUTE="data-floating-ui-focusable";function useFloatingRootContext(options2){const{open:open=false,onOpenChange:onOpenChangeProp,elements:elementsProp}=options2;const floatingId=useId();const dataRef=React.useRef({});const[events]=React.useState((()=>createPubSub()));const nested=useFloatingParentNodeId()!=null;const[positionReference,setPositionReference]=React.useState(elementsProp.reference);const onOpenChange=useEffectEvent(((open2,event2,reason)=>{dataRef.current.openEvent=open2?event2:void 0;events.emit("openchange",{open:open2,event:event2,reason:reason,nested:nested});onOpenChangeProp==null||onOpenChangeProp(open2,event2,reason)}));const refs=React.useMemo((()=>({setPositionReference:setPositionReference})),[]);const elements=React.useMemo((()=>({reference:positionReference||elementsProp.reference||null,floating:elementsProp.floating||null,domReference:elementsProp.reference})),[positionReference,elementsProp.reference,elementsProp.floating]);return React.useMemo((()=>({dataRef:dataRef,open:open,onOpenChange:onOpenChange,elements:elements,events:events,floatingId:floatingId,refs:refs})),[open,onOpenChange,elements,events,floatingId,refs])}function useFloating(options2){if(options2===void 0){options2={}}const{nodeId:nodeId}=options2;const internalRootContext=useFloatingRootContext({...options2,elements:{reference:null,floating:null,...options2.elements}});const rootContext=options2.rootContext||internalRootContext;const computedElements=rootContext.elements;const[_domReference,setDomReference]=React.useState(null);const[positionReference,_setPositionReference]=React.useState(null);const optionDomReference=computedElements==null?void 0:computedElements.domReference;const domReference=optionDomReference||_domReference;const domReferenceRef=React.useRef(null);const tree=useFloatingTree();index$1((()=>{if(domReference){domReferenceRef.current=domReference}}),[domReference]);const position2=useFloating$1({...options2,elements:{...computedElements,...positionReference&&{reference:positionReference}}});const setPositionReference=React.useCallback((node2=>{const computedPositionReference=isElement$1(node2)?{getBoundingClientRect:()=>node2.getBoundingClientRect(),contextElement:node2}:node2;_setPositionReference(computedPositionReference);position2.refs.setReference(computedPositionReference)}),[position2.refs]);const setReference=React.useCallback((node2=>{if(isElement$1(node2)||node2===null){domReferenceRef.current=node2;setDomReference(node2)}if(isElement$1(position2.refs.reference.current)||position2.refs.reference.current===null||node2!==null&&!isElement$1(node2)){position2.refs.setReference(node2)}}),[position2.refs]);const refs=React.useMemo((()=>({...position2.refs,setReference:setReference,setPositionReference:setPositionReference,domReference:domReferenceRef})),[position2.refs,setReference,setPositionReference]);const elements=React.useMemo((()=>({...position2.elements,domReference:domReference})),[position2.elements,domReference]);const context=React.useMemo((()=>({...position2,...rootContext,refs:refs,elements:elements,nodeId:nodeId})),[position2,refs,elements,nodeId,rootContext]);index$1((()=>{rootContext.dataRef.current.floatingContext=context;const node2=tree==null?void 0:tree.nodesRef.current.find((node22=>node22.id===nodeId));if(node2){node2.context=context}}));return React.useMemo((()=>({...position2,context:context,refs:refs,elements:elements})),[position2,refs,elements,context])}const ACTIVE_KEY="active";const SELECTED_KEY="selected";function mergeProps(userProps,propsList,elementKey){const map=new Map;const isItem=elementKey==="item";let domUserProps=userProps;if(isItem&&userProps){const{[ACTIVE_KEY]:_,[SELECTED_KEY]:__,...validProps}=userProps;domUserProps=validProps}return{...elementKey==="floating"&&{tabIndex:-1,[FOCUSABLE_ATTRIBUTE]:""},...domUserProps,...propsList.map((value=>{const propsOrGetProps=value?value[elementKey]:null;if(typeof propsOrGetProps==="function"){return userProps?propsOrGetProps(userProps):null}return propsOrGetProps})).concat(userProps).reduce(((acc,props)=>{if(!props){return acc}Object.entries(props).forEach((_ref3=>{let[key,value]=_ref3;if(isItem&&[ACTIVE_KEY,SELECTED_KEY].includes(key)){return}if(key.indexOf("on")===0){if(!map.has(key)){map.set(key,[])}if(typeof value==="function"){var _map$get;(_map$get=map.get(key))==null||_map$get.push(value);acc[key]=function(){var _map$get2;for(var _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}}));return acc}),{})}}function useInteractions(propsList){if(propsList===void 0){propsList=[]}const referenceDeps=propsList.map((key=>key==null?void 0:key.reference));const floatingDeps=propsList.map((key=>key==null?void 0:key.floating));const itemDeps=propsList.map((key=>key==null?void 0:key.item));const getReferenceProps=React.useCallback((userProps=>mergeProps(userProps,propsList,"reference")),referenceDeps);const getFloatingProps=React.useCallback((userProps=>mergeProps(userProps,propsList,"floating")),floatingDeps);const getItemProps=React.useCallback((userProps=>mergeProps(userProps,propsList,"item")),itemDeps);return React.useMemo((()=>({getReferenceProps:getReferenceProps,getFloatingProps:getFloatingProps,getItemProps:getItemProps})),[getReferenceProps,getFloatingProps,getItemProps])}function isPointInPolygon(point,polygon){const[x,y]=point;let isInside2=false;const length2=polygon.length;for(let i=0,j=length2-1;i=y!==yj>=y&&x<=(xj-xi)*(y-yi)/(yj-yi)+xi;if(intersect){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(options2){if(options2===void 0){options2={}}const{buffer:buffer=.5,blockPointerEvents:blockPointerEvents=false,requireIntent:requireIntent=true}=options2;let timeoutId2;let hasLanded=false;let lastX=null;let lastY=null;let lastCursorTime=performance.now();function getCursorSpeed(x,y){const currentTime=performance.now();const elapsedTime=currentTime-lastCursorTime;if(lastX===null||lastY===null||elapsedTime===0){lastX=x;lastY=y;lastCursorTime=currentTime;return null}const deltaX=x-lastX;const deltaY=y-lastY;const distance=Math.sqrt(deltaX*deltaX+deltaY*deltaY);const speed=distance/elapsedTime;lastX=x;lastY=y;lastCursorTime=currentTime;return speed}const fn=_ref3=>{let{x:x,y:y,placement:placement,elements:elements,onClose:onClose,nodeId:nodeId,tree:tree}=_ref3;return function onMouseMove(event2){function close(){clearTimeout(timeoutId2);onClose()}clearTimeout(timeoutId2);if(!elements.domReference||!elements.floating||placement==null||x==null||y==null){return}const{clientX:clientX,clientY:clientY}=event2;const clientPoint=[clientX,clientY];const target=getTarget(event2);const isLeave=event2.type==="mouseleave";const isOverFloatingEl=contains(elements.floating,target);const isOverReferenceEl=contains(elements.domReference,target);const refRect=elements.domReference.getBoundingClientRect();const rect=elements.floating.getBoundingClientRect();const side=placement.split("-")[0];const cursorLeaveFromRight=x>rect.right-rect.width/2;const cursorLeaveFromBottom=y>rect.bottom-rect.height/2;const isOverReferenceRect=isInside(clientPoint,refRect);const isFloatingWider=rect.width>refRect.width;const isFloatingTaller=rect.height>refRect.height;const left=(isFloatingWider?refRect:rect).left;const right=(isFloatingWider?refRect:rect).right;const top=(isFloatingTaller?refRect:rect).top;const bottom=(isFloatingTaller?refRect:rect).bottom;if(isOverFloatingEl){hasLanded=true;if(!isLeave){return}}if(isOverReferenceEl){hasLanded=false}if(isOverReferenceEl&&!isLeave){hasLanded=true;return}if(isLeave&&isElement$1(event2.relatedTarget)&&contains(elements.floating,event2.relatedTarget)){return}if(tree&&getChildren(tree.nodesRef.current,nodeId).some((_ref22=>{let{context:context}=_ref22;return context==null?void 0:context.open}))){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(_ref32){let[x2,y2]=_ref32;switch(side){case"top":{const cursorPointOne=[isFloatingWider?x2+buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2+buffer+1];const cursorPointTwo=[isFloatingWider?x2-buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2+buffer+1];const commonPoints=[[rect.left,cursorLeaveFromRight?rect.bottom-buffer: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];const cursorPointTwo=[isFloatingWider?x2-buffer/2:cursorLeaveFromRight?x2+buffer*4:x2-buffer*4,y2-buffer];const commonPoints=[[rect.left,cursorLeaveFromRight?rect.top+buffer: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];const cursorPointTwo=[x2+buffer+1,isFloatingTaller?y2-buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4];const commonPoints=[[cursorLeaveFromBottom?rect.right-buffer:isFloatingTaller?rect.right-buffer:rect.left,rect.top],[cursorLeaveFromBottom?isFloatingTaller?rect.right-buffer:rect.left:rect.right-buffer,rect.bottom]];return[...commonPoints,cursorPointOne,cursorPointTwo]}case"right":{const cursorPointOne=[x2-buffer,isFloatingTaller?y2+buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4];const cursorPointTwo=[x2-buffer,isFloatingTaller?y2-buffer/2:cursorLeaveFromBottom?y2+buffer*4:y2-buffer*4];const commonPoints=[[cursorLeaveFromBottom?rect.left+buffer: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)){return}if(hasLanded&&!isOverReferenceRect){return close()}if(!isLeave&&requireIntent){const cursorSpeed=getCursorSpeed(event2.clientX,event2.clientY);const cursorSpeedThreshold=.1;if(cursorSpeed!==null&&cursorSpeed{const{aria:aria={},className:className,children:children,data:data={},delay:delay=0,htmlOptions:htmlOptions={},icon:icon=null,interaction:interaction=false,placement:preferredPlacement="top",position:position2="absolute",text:text,showTooltip:showTooltip=true,zIndex:zIndex,...rest}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const css4=classnames(globalProps({...rest}),className);const[open,setOpen]=useState(false);const arrowRef=useRef(null);const{context:context,middlewareData:{arrow:{x:arrowX,y:arrowY}={}},placement:placement,refs:refs,strategy:strategy,x:x,y:y}=useFloating({strategy:position2,middleware:[arrow({element:arrowRef}),flip({fallbackPlacements:["top","right","bottom","left"],fallbackStrategy:"initialPlacement",flipAlignment:false}),offset(10),shift()],open:open,onOpenChange(open2){if(!showTooltip){return}else{setOpen(open2)}},placement:preferredPlacement});const{getFloatingProps:getFloatingProps}=useInteractions([useHover(context,{delay:delay,handleClose:interaction?safePolygon({blockPointerEvents:false}):null})]);const staticSide={bottom:"top",left:"right",right:"left",top:"bottom"}[placement.split("-")[0]];return jsxs(Fragment,{children:[jsx$1("div",{className:`pb_tooltip_kit ${css4}`,ref:element=>{refs.setReference(element);if(ref){if(typeof ref==="function"){ref(element)}else if(typeof ref==="object"){ref.current=element}}},role:"tooltip_trigger",style:{display:"inline-block"},...ariaProps,...dataProps,...htmlProps,children:children}),open&&jsxs("div",{...getFloatingProps({className:`tooltip_tooltip ${placement} visible`,ref:refs.setFloating,role:"tooltip",style:{position:strategy,top:y??0,left:x??0,zIndex:zIndex??0}}),children:[jsxs(Flex,{align:"center",gap:"xs",children:[icon&&jsx$1("i",{className:`pb_icon_kit`,children:jsx$1(Icon,{icon:icon})}),text]}),jsx$1("div",{className:"arrow_bg",ref:arrowRef,style:{position:"absolute",left:arrowX!=null?`${arrowX}px`:"",top:arrowY!=null?`${arrowY}px`:"",[staticSide]:"-5px"}})]})]})}));Tooltip.displayName="Tooltip";const FormPill=props=>{const{className:className,htmlOptions:htmlOptions={},id:id,text:text,name:name2,onClick:onClick=()=>void 0,avatarUrl:avatarUrl,closeProps:closeProps={},size:size="",textTransform:textTransform="none",color:color="primary",data:data={},tabIndex:tabIndex,icon:icon=""}=props;const iconClass=icon?"_icon":"";const closeIconSize=size==="small"?"xs":"sm";const filteredProps={...props};delete filteredProps.truncate;const css4=classnames(`pb_form_pill_kit_${color}${iconClass}`,globalProps(filteredProps),className,size==="small"?"small":null,textTransform);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const renderTitle=(content,className2)=>{const titleComponent=jsx$1(Title,{className:className2,size:4,text:content,truncate:props.truncate});if(props.truncate){return jsx$1(Tooltip,{interaction:true,placement:"top",position:"fixed",text:content,children:titleComponent})}return titleComponent};return jsxs("div",{className:css4,id:id,tabIndex:tabIndex,...dataProps,...htmlProps,children:[(name2&&!icon&&!text||name2&&!icon&&text)&&jsxs(Fragment,{children:[jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:"xxs",status:null}),renderTitle(name2,"pb_form_pill_text")]}),(name2&&icon&&!text||name2&&icon&&text)&&jsxs(Fragment,{children:[jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:"xxs",status:null}),renderTitle(name2,"pb_form_pill_text"),jsx$1(Icon,{className:"pb_form_pill_icon",color:color,icon:icon})]}),!name2&&icon&&text&&jsxs(Fragment,{children:[jsx$1(Icon,{className:"pb_form_pill_icon",color:color,icon:icon}),renderTitle(text,"pb_form_pill_tag")]}),!name2&&!icon&&text&&renderTitle(text,"pb_form_pill_tag"),jsx$1("div",{className:"pb_form_pill_close",onClick:onClick,...closeProps,children:jsx$1(Icon,{fixedWidth:true,icon:"times",size:closeIconSize})})]})};var solidGauge$1={exports:{}};(function(module){!function(t){module.exports?(t.default=t,module.exports=t):t("undefined"!=typeof Highcharts?Highcharts:void 0)}((function(t){var e=t?t._modules:{};function o(e2,o2,s,i){e2.hasOwnProperty(o2)||(e2[o2]=i.apply(null,s),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:o2,module:e2[o2]}})))}o(e,"Core/Axis/Color/ColorAxisLike.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],(function(t2,e2){var o2,s;let{parse:i}=t2,{merge:r}=e2;return(s=o2||(o2={})).initDataClasses=function(t3){let e3=this.chart,o3=this.legendItem=this.legendItem||{},s2=this.options,a=t3.dataClasses||[],l,n,d=e3.options.chart.colorCount,h=0,u;this.dataClasses=n=[],o3.labels=[];for(let t4=0,o4=a.length;t4=s2)&&(void 0===i2||t3<=i2)){r2=a.color,e3&&(e3.dataClass=l,e3.colorIndex=a.colorIndex);break}}else{for(o3=this.normalizedValue(t3),l=d.length;l--&&!(o3>d[l][0]););s2=d[l]||d[l+1],o3=1-((i2=d[l+1]||s2)[0]-o3)/(i2[0]-s2[0]||1),r2=s2.color.tweenTo(i2.color,o3)}return r2},o2})),o(e,"Core/Axis/SolidGaugeAxis.js",[e["Core/Axis/Color/ColorAxisLike.js"],e["Core/Utilities.js"]],(function(t2,e2){let{extend:o2}=e2;return{init:function(e3){o2(e3,t2)}}})),o(e,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],(function(){return{colorByPoint:true,dataLabels:{y:0}}})),o(e,"Series/SolidGauge/SolidGaugeSeries.js",[e["Extensions/BorderRadius.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/SolidGaugeAxis.js"],e["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],e["Core/Utilities.js"]],(function(t2,e2,o2,s,i){let{gauge:r,pie:a}=e2.seriesTypes,{clamp:l,extend:n,isNumber:d,merge:h,pick:u,pInt:c}=i;class g extends r{translate(){let t3=this.yAxis;o2.init(t3),!t3.dataClasses&&t3.options.dataClasses&&t3.initDataClasses(t3.options),t3.initStops(),r.prototype.translate.call(this)}drawPoints(){let e3;let o3=this.yAxis,s2=o3.center,i2=this.options,r2=this.chart.renderer,a2=i2.overshoot,h2=i2.rounded&&void 0===i2.borderRadius,g2=d(a2)?a2/180*Math.PI:0;for(let a3 of(d(i2.threshold)&&(e3=o3.startAngleRad+o3.translate(i2.threshold,void 0,void 0,void 0,true)),this.thresholdAngleRad=u(e3,o3.startAngleRad),this.points))if(!a3.isNull){let e4=c(u(a3.options.radius,i2.radius,100))*s2[2]/200,d2=c(u(a3.options.innerRadius,i2.innerRadius,60))*s2[2]/200,p=Math.min(o3.startAngleRad,o3.endAngleRad),f=Math.max(o3.startAngleRad,o3.endAngleRad),C=a3.graphic,m=o3.startAngleRad+o3.translate(a3.y,void 0,void 0,void 0,true),x,A,y=o3.toColor(a3.y,a3);"none"===y&&(y=a3.color||this.color||"none"),"none"!==y&&(a3.color=y),m=l(m,p-g2,f+g2),false===i2.wrap&&(m=l(m,p,f));let R=h2?(e4-d2)/2/e4:0,S=Math.min(m,this.thresholdAngleRad)-R,j=Math.max(m,this.thresholdAngleRad)+R;j-S>2*Math.PI&&(j=S+2*Math.PI);let v=h2?"50%":0;i2.borderRadius&&(v=t2.optionsToObject(i2.borderRadius).radius),a3.shapeArgs=x={x:s2[0],y:s2[1],r:e4,innerR:d2,start:S,end:j,borderRadius:v},a3.startR=e4,C?(A=x.d,C.animate(n({fill:y},x)),A&&(x.d=A)):a3.graphic=C=r2.arc(x).attr({fill:y,"sweep-flag":0}).add(this.group),this.chart.styledMode||("square"!==i2.linecap&&C.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),C.attr({stroke:i2.borderColor||"none","stroke-width":i2.borderWidth||0})),C&&C.addClass(a3.getClassName(),true)}}animate(t3){t3||(this.startAngleRad=this.thresholdAngleRad,a.prototype.animate.call(this,t3))}}return g.defaultOptions=h(r.defaultOptions,s),e2.registerSeriesType("solidgauge",g),g})),o(e,"masters/modules/solid-gauge.src.js",[e["Core/Globals.js"]],(function(t2){return t2}))}))})(solidGauge$1);var solidGaugeExports=solidGauge$1.exports;const solidGauge=getDefaultExportFromCjs(solidGaugeExports);const Gauge=({aria:aria={},chartData:chartData,customOptions:customOptions={},dark:dark=false,data:data={},disableAnimation:disableAnimation=false,fullCircle:fullCircle=false,height:height=null,htmlOptions:htmlOptions={},id:id,max:max2=100,min:min2=0,prefix:prefix2="",showLabels:showLabels=false,style:style="solidgauge",suffix:suffix="",title:title="",tooltipHtml:tooltipHtml='{point.name}: {point.y}',colors:colors2=[],minorTickInterval:minorTickInterval=null,circumference:circumference=(fullCircle?[0,360]:[-100,100]),...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);highchartsMore(Highcharts$1);solidGauge(Highcharts$1);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();Highcharts$1.setOptions({tooltip:{pointFormat:tooltipHtml,followPointer:true}});const css4=buildCss({pb_gauge_kit:true});const[options2,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={chart:{events:{load(){setTimeout(this.reflow.bind(this),0)}},type:style,height:height},title:{text:title},yAxis:{min:min2,max:max2,lineWidth:0,tickWidth:0,minorTickInterval:minorTickInterval,tickAmount:2,tickPositions:[min2,max2],labels:{y:26,enabled:showLabels}},credits:false,series:[{data:formattedChartData}],pane:{center:["50%","50%"],size:"90%",startAngle:circumference[0],endAngle:circumference[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{animation:!disableAnimation},solidgauge:{borderColor:colors2!==void 0&&colors2.length===1?mapColors(colors2).join():highchartsTheme.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:colors$1.text_lt_default,enabled:true,format:`${prefix2}{y:,f}${suffix}`,style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}}};setOptions(merge(staticOptions,customOptions));if(document.querySelector(".prefix")){document.querySelectorAll(".prefix").forEach((prefix22=>{prefix22.setAttribute("y","28")}));document.querySelectorAll(".fix").forEach((fix=>fix.setAttribute("y","38")))}}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(css4,globalProps(props)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const Legend=props=>{const{aria:aria={},className:className,color:color="data_1",dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,prefixText:prefixText,text:text}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const customColor=color.charAt(0)==="#"&&color;const customColorStyle={background:customColor};const bodyCss=classnames(buildCss("pb_legend_kit",customColor?"":color),globalProps(props),className);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:bodyCss,id:id,children:jsxs(Body$1,{color:dark?"lighter":"light",children:[jsx$1("span",{className:`${customColor?"pb_legend_indicator_circle_custom":"pb_legend_indicator_circle"}`,style:customColorStyle}),prefixText&&jsx$1(Title,{dark:dark,size:4,tag:"span",text:` ${prefixText} `}),` ${text} `]})})};const LineGraph=({aria:aria={},data:data={},align:align="center",className:className="pb_bar_graph",customOptions:customOptions={},dark:dark=false,gradient:gradient=false,type:type="line",htmlOptions:htmlOptions={},id:id,legend:legend=false,toggleLegendClick:toggleLegendClick=true,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,axisTitle:axisTitle,xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,chartData:chartData,pointStart:pointStart,subTitle:subTitle,title:title,height:height,colors:colors2=[],...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:{min:yAxisMin,max:yAxisMax,title:{text:axisTitle}},xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{pointStart:pointStart,events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options2,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};const MultiLevelSelectContext=createContext({});const Radio=({aria:aria={},alignment:alignment,children:children,className:className,customChildren:customChildren=false,dark:dark=false,disabled:disabled=false,error:error=false,data:data={},htmlOptions:htmlOptions={},id:id,label:label,name:name2="radio_name",text:text="Radio Text",value:value="radio_text",onChange:onChange2=()=>{},...props},ref)=>{const radioRef=useRef(null);const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_radio_kit",alignment),dark?"dark":null,error?"error":null,globalProps(props),className);const classesCustom=classnames(dark?"dark":null,error?"error":null,globalProps(props),className);const displayRadio=props2=>{if(children&&customChildren==false)return children;else return jsx$1("input",{disabled:disabled,id:id,name:name2,onChange:onChange2,ref:ref,text:text,type:"radio",value:value,...props2})};const handleContainerClick=event2=>{var _a;if(event2){const target=event2.target;if(target.id==="pb-radio-children-wrapper"||target.closest("#pb-radio-children-wrapper")){(_a=radioRef.current)==null?void 0:_a.click()}}};return customChildren?jsxs(Flex,{...ariaProps,...dataProps,...htmlProps,align:"center",className:classesCustom,cursor:"pointer",htmlFor:id,htmlOptions:{onClick:event2=>{handleContainerClick(event2)}},id:"radio-container",children:[jsxs("label",{className:buildCss("pb_radio_kit",alignment),children:[jsx$1("input",{disabled:disabled,id:id,name:name2,onChange:onChange2,ref:radioRef,type:"radio",value:value,...props}),jsx$1("span",{className:"pb_radio_button"})]}),jsxs("div",{id:"pb-radio-children-wrapper",children:[" ",children," "]})]}):jsxs("label",{...ariaProps,...dataProps,...htmlProps,className:classes,htmlFor:id,children:[jsx$1(Fragment,{children:displayRadio(props)}),jsx$1("span",{className:"pb_radio_button"}),jsx$1(Body$1,{dark:dark,status:error?"negative":null,text:label,variant:null})]})};const Radio$1=forwardRef(Radio);const MultiLevelSelectOptions=({children:children,items:items,...props})=>{const{variant:variant,inputName:inputName,renderNestedOptions:renderNestedOptions,isTreeRowExpanded:isTreeRowExpanded,handleToggleClick:handleToggleClick,handleRadioButtonClick:handleRadioButtonClick,handledropdownItemClick:handledropdownItemClick,filterItem:filterItem}=useContext(MultiLevelSelectContext);const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={}}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multi_level_select_options"),globalProps(props),className);return jsx$1("ul",{...ariaProps,...dataProps,...htmlProps,className:classes,children:Array.isArray(items)&&items.map((item=>jsx$1("div",{children:jsxs("li",{className:"dropdown_item","data-name":item.id,children:[jsxs("div",{className:"dropdown_item_checkbox_row",children:[!item.parent_id&&!item.children?null:jsx$1("div",{children:jsx$1(CircleIconButton,{className:item.children&&item.children.length>0?"":"toggle_icon",icon:isTreeRowExpanded(item)?"chevron-down":"chevron-right",onClick:event2=>handleToggleClick(item.id,event2),variant:"link"})},isTreeRowExpanded(item)?"chevron-down":"chevron-right"),variant==="single"?item.hideRadio?jsx$1(Body$1,{children:item.label}):jsx$1(Radio$1,{checked:item.checked,id:`${item.id}-${item.label}`,label:item.label,name:inputName,onChange:e=>handleRadioButtonClick(e),padding:item.children?"none":"xs",type:"radio",value:item.label}):jsx$1(Checkbox,{id:item.id,text:item.label,children:jsx$1("input",{checked:item.checked,name:item.label,onChange:e=>{handledropdownItemClick(e,!item.checked)},type:"checkbox",value:item.label})}),children&&(typeof children==="function"?children(item):children)]}),isTreeRowExpanded(item)&&item.children&&item.children.length>0&&(variant==="single"||!filterItem)&&jsx$1("div",{children:renderNestedOptions(item.children)})]})},item.id)))})};const filterFormattedDataById=(formattedData,id)=>{const matched=[];const recursiveSearch=(data,term)=>{for(const item of data){if(item.id.toLowerCase()===term.toLowerCase()){matched.push(item);return}if(item.children&&item.children.length>0){recursiveSearch(item.children,term)}}};recursiveSearch(formattedData,id);return matched};const findByFilter=(formattedData,searchTerm)=>{const matchedItems=[];const recursiveSearch=(data,term)=>{for(const item of data){if(item.label.toLowerCase().includes(term.toLowerCase())){matchedItems.push(item)}if(item.children){recursiveSearch(item.children,term)}}};recursiveSearch(formattedData,searchTerm);return matchedItems};const getAncestorsOfUnchecked=(data,item)=>{if(item.parent_id){const ancestor=filterFormattedDataById(data,item.parent_id);ancestor[0].checked=false;ancestor[0].parent_id&&getAncestorsOfUnchecked(data,ancestor[0])}return data};const getCheckedItems=data=>{const checkedItems=[];if(!Array.isArray(data)){return}data.forEach((item=>{if(item.checked){checkedItems.push(item)}if(item.children&&item.children.length>0){const childCheckedItems=getCheckedItems(item.children);checkedItems.push(...childCheckedItems)}}));return checkedItems};const getDefaultCheckedItems=treeData=>{const checkedDefault=[];const traverseTree=items=>{if(!Array.isArray(items)){return}items.forEach((item=>{if(item.checked){if(item.children&&item.children.length>0){const uncheckedChildren=item.children.filter((child=>!child.checked));if(uncheckedChildren.length===0){checkedDefault.push(item);return}}else{const parent=items.find((parentItem=>parentItem.id===item.parentId));if(!parent||!parent.checked){checkedDefault.push(item)}}}if(item.children&&item.children.length>0){traverseTree(item.children)}}))};traverseTree(treeData);return checkedDefault};const recursiveCheckParent=(item,data)=>{if(item.parent_id!==null){const parent=filterFormattedDataById(data,item.parent_id);const allChildrenChecked=parent[0].children.every((child=>child.checked));if(allChildrenChecked){parent[0].checked=true;const parentHasParent=parent[0].parent_id!==null;if(parentHasParent){recursiveCheckParent(parent[0],data)}}}return data};const getExpandedItems=(treeData,selectedIds)=>{const expandedItems=[];const traverse=(items,ancestors=[])=>{for(let i=0;iancestor.id)))}if(Array.isArray(item.children)){const hasCheckedChildren=item.children.some((child=>child.checked));if(hasCheckedChildren){expandedItems.push(...itemAncestors.map((ancestor=>ancestor.id)))}traverse(item.children,itemAncestors)}}};traverse(treeData);return expandedItems};const MultiLevelSelect=props=>{const{aria:aria={},className:className,data:data={},htmlOptions:htmlOptions={},id:id,inputDisplay:inputDisplay="pills",inputName:inputName,name:name2,returnAllSelected:returnAllSelected=false,treeData:treeData,onSelect:onSelect=()=>null,selectedIds:selectedIds,variant:variant="multi",children:children,pillColor:pillColor="primary"}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_multi_level_select"),globalProps(props),className);const dropdownRef=useRef(null);const[isDropdownClosed,setIsDropdownClosed]=useState(true);const[filterItem,setFilterItem]=useState("");const[formattedData,setFormattedData]=useState([]);const[returnedArray,setReturnedArray]=useState([]);const[defaultReturn,setDefaultReturn]=useState([]);const initialExpandedItems=getExpandedItems(treeData,selectedIds);const[expanded,setExpanded]=useState(initialExpandedItems);const[singleSelectedItem,setSingleSelectedItem]=useState({id:[],value:"",item:[]});const arrowDownElementId=`arrow_down_${id}`;const arrowUpElementId=`arrow_up_${id}`;const modifyRecursive=(tree,check)=>{if(!Array.isArray(tree)){return}return tree.map((item=>{item.checked=check;item.children=modifyRecursive(item.children,check);return item}))};const addCheckedAndParentProperty=(treeData2,selectedIds2,parent_id=null,depth=0)=>{if(!Array.isArray(treeData2)){return}return treeData2.map((item=>{const newItem={...item,checked:Boolean(selectedIds2&&selectedIds2.length&&selectedIds2.includes(item.id)),parent_id:parent_id,depth:depth};if(newItem.children&&newItem.children.length>0){const children2=item.checked&&!returnAllSelected?modifyRecursive(item.children,true):item.children;newItem.children=addCheckedAndParentProperty(children2,selectedIds2,newItem.id,depth+1)}return newItem}))};useEffect((()=>{const formattedData2=addCheckedAndParentProperty(treeData,variant==="single"?[selectedIds==null?void 0:selectedIds[0]]:selectedIds);setFormattedData(formattedData2);if(variant==="single"){if((selectedIds==null?void 0:selectedIds.length)===0||!(selectedIds==null?void 0:selectedIds.length)){setSingleSelectedItem({id:[],value:"",item:[]})}else{if((selectedIds==null?void 0:selectedIds.length)!==0&&!singleSelectedItem.value){const selectedItem=filterFormattedDataById(formattedData2,selectedIds[0]);if(!selectedItem.length){setSingleSelectedItem({id:[],value:"",item:[]})}else{const{id:id2,value:value}=selectedItem[0];setSingleSelectedItem({id:[id2],value:value,item:selectedItem})}}}}}),[treeData,selectedIds]);useEffect((()=>{if(returnAllSelected){setReturnedArray(getCheckedItems(formattedData))}else if(variant==="single"){setDefaultReturn(singleSelectedItem.item)}else{setDefaultReturn(getDefaultCheckedItems(formattedData))}}),[formattedData]);useEffect((()=>{const handleClickOutside=event2=>{if(dropdownRef.current&&!dropdownRef.current.contains(event2.target)&&event2.target.id!==arrowDownElementId&&event2.target.id!==arrowUpElementId){setIsDropdownClosed(true)}};window.addEventListener("click",handleClickOutside);return()=>{window.removeEventListener("click",handleClickOutside)}}),[]);useEffect((()=>{if(id){window[`clearMultiLevelSelect_${id}`]=()=>{const resetData=modifyRecursive(formattedData,false);setFormattedData(resetData);setReturnedArray([]);setDefaultReturn([]);setSingleSelectedItem({id:[],value:"",item:[]});onSelect([])};return()=>{delete window[`clearMultiLevelSelect_${id}`]}}}),[formattedData,id,onSelect]);const modifyValue=(id2,tree,check)=>{if(!Array.isArray(tree)){return}return tree.map((item=>{if(item.id!=id2)item.children=modifyValue(id2,item.children,check);else{item.checked=check;if(variant==="single"){item.children=modifyRecursive(item.children,!check)}else{item.children=modifyRecursive(item.children,check)}}return item}))};const checkItem=item=>{const tree=cloneDeep(formattedData);if(returnAllSelected){return modifyValue(item.id,tree,true)}else{const checkedTree=modifyValue(item.id,tree,true);return recursiveCheckParent(item,checkedTree)}};const unCheckItem=item=>{const tree=cloneDeep(formattedData);if(returnAllSelected){return modifyValue(item.id,tree,false)}else{const uncheckedTree=modifyValue(item.id,tree,false);return getAncestorsOfUnchecked(uncheckedTree,item)}};const changeItem=(item,check)=>{const tree=check?checkItem(item):unCheckItem(item);setFormattedData(tree);return tree};const handlePillClose=(event2,clickedItem)=>{event2.stopPropagation();const updatedTree=changeItem(clickedItem,false);if(returnAllSelected){onSelect(getCheckedItems(updatedTree))}else{onSelect(getDefaultCheckedItems(updatedTree))}};const handleInputWrapperClick=e=>{if(e.target.id==="multiselect_input"||e.target.classList.contains("pb_form_pill_tag")){return}setIsDropdownClosed(!isDropdownClosed)};const handledropdownItemClick=(e,check)=>{const clickedItem=e.target.parentNode.id;setFilterItem("");const filtered=filterFormattedDataById(formattedData,clickedItem);const updatedTree=changeItem(filtered[0],check);if(returnAllSelected){onSelect(getCheckedItems(updatedTree))}else{onSelect(getDefaultCheckedItems(updatedTree))}};const handleRadioButtonClick=e=>{const{id:id2,value:inputText}=e.target;const selectedItemID=id2.match(/^[^-]*/)[0];const treeWithNoSelections=modifyRecursive(formattedData,false);const treeWithSelectedItem=modifyValue(selectedItemID,treeWithNoSelections,true);const selectedItem=filterFormattedDataById(treeWithSelectedItem,selectedItemID);setFormattedData(treeWithSelectedItem);setSingleSelectedItem({id:[selectedItemID],value:inputText,item:selectedItem});setFilterItem("");setIsDropdownClosed(true);onSelect(selectedItem)};const handleRadioInputChange=inputText=>{modifyRecursive(formattedData,false);setDefaultReturn([]);setSingleSelectedItem({id:[],value:inputText,item:[]});setFilterItem(inputText)};const isTreeRowExpanded=item=>expanded.indexOf(item.id)>-1;const handleToggleClick=(id2,event2)=>{event2.stopPropagation();const clickedItem=filterFormattedDataById(formattedData,id2);if(clickedItem){let expandedArray=[...expanded];const itemExpanded=isTreeRowExpanded(clickedItem[0]);if(itemExpanded)expandedArray=expandedArray.filter((i=>i!=clickedItem[0].id));else expandedArray.push(clickedItem[0].id);setExpanded(expandedArray)}};const itemsSelectedLength=()=>{let items;if(returnAllSelected&&returnedArray&&returnedArray.length){items=returnedArray.length}else if(!returnAllSelected&&defaultReturn&&defaultReturn.length){items=defaultReturn.length}return items};const renderNestedOptions=items=>{const hasOptionsChild=React__default.Children.toArray(props.children).some((child=>child.type===MultiLevelSelect.Options));if(hasOptionsChild){return React__default.Children.map(props.children,(child=>{if(child.type===MultiLevelSelect.Options){return React__default.cloneElement(child,{items:items})}return null}))}else{return jsx$1(MultiLevelSelectOptions,{items:items})}};return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsx$1(MultiLevelSelectContext.Provider,{value:{variant:variant,inputName:inputName,renderNestedOptions:renderNestedOptions,isTreeRowExpanded:isTreeRowExpanded,handleToggleClick:handleToggleClick,handleRadioButtonClick:handleRadioButtonClick,handledropdownItemClick:handledropdownItemClick,filterItem:filterItem},children:jsxs("div",{className:"wrapper",ref:dropdownRef,children:[jsxs("div",{className:"input_wrapper",onClick:handleInputWrapperClick,children:[jsxs("div",{className:"input_inner_container",children:[variant==="single"&&defaultReturn.length!==0?defaultReturn.map((selectedItem=>jsx$1("input",{name:`${name2}[]`,type:"hidden",value:selectedItem.id},selectedItem.id))):null,variant!=="single"&&jsxs(Fragment,{children:[returnAllSelected&&returnedArray.length!==0?returnedArray.map((item=>jsx$1("input",{name:`${name2}[]`,type:"hidden",value:item.id},item.id))):null,returnAllSelected&&returnedArray.length!==0&&inputDisplay==="pills"?returnedArray.map(((item,index2)=>jsx$1(FormPill,{color:pillColor,onClick:event2=>handlePillClose(event2,item),text:item.label},index2))):null,!returnAllSelected&&defaultReturn.length!==0&&inputDisplay==="pills"?defaultReturn.map(((item,index2)=>jsx$1(FormPill,{color:pillColor,onClick:event2=>handlePillClose(event2,item),text:item.label},index2))):null,returnAllSelected&&returnedArray.length!==0&&inputDisplay==="pills"&&jsx$1("br",{}),!returnAllSelected&&defaultReturn.length!==0&&inputDisplay==="pills"&&jsx$1("br",{})]}),jsx$1("input",{id:"multiselect_input",onChange:e=>{variant==="single"?handleRadioInputChange(e.target.value):setFilterItem(e.target.value)},onClick:()=>setIsDropdownClosed(false),placeholder:inputDisplay==="none"&&itemsSelectedLength()?`${itemsSelectedLength()} ${itemsSelectedLength()===1?"item":"items"} selected`:"Start typing...",value:singleSelectedItem.value||filterItem})]}),isDropdownClosed?jsx$1("div",{id:arrowDownElementId,children:jsx$1(Icon,{icon:"chevron-down",id:arrowDownElementId,size:"xs"})},"chevron-down"):jsx$1("div",{id:arrowUpElementId,children:jsx$1(Icon,{icon:"chevron-up",id:arrowUpElementId,size:"xs"})},"chevron-up")]}),jsx$1("div",{className:`dropdown_menu ${isDropdownClosed?"close":"open"}`,children:renderNestedOptions(filterItem?findByFilter(formattedData,filterItem):formattedData)})]})})})};MultiLevelSelect.Options=MultiLevelSelectOptions;const Nav=props=>{const{aria:aria={},borderless:borderless=false,children:children,className:className,data:data={},dark:dark=false,highlight:highlight=true,htmlOptions:htmlOptions={},id:id,link:link="#",onClick:onClick,orientation:orientation="vertical",title:title="",variant:variant="normal",itemSpacing:itemSpacing}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const cardCss=classnames(buildCss("pb_nav_list",variant,orientation,{highlight:highlight,borderless:borderless}),globalProps(props),className);const childrenWithProps=React__default.Children.map(children,(child=>{if(React__default.isValidElement(child)){const childProps={orientation:orientation,variant:variant,itemSpacing:itemSpacing};return React__default.cloneElement(child,childProps)}return child}));return jsxs("nav",{...ariaProps,...dataProps,...htmlProps,className:cardCss,id:id,children:[title&&jsx$1("div",{className:"pb_nav_list_title",children:jsx$1("a",{className:"pb_nav_list_item_link_text",href:link,onClick:onClick,children:jsx$1(Caption,{dark:dark,size:"md",text:`${title}`})})}),jsx$1("div",{className:"pb_nav_wrapper",children:childrenWithProps})]})};const NavItem=props=>{const fontWeightDefault=(orientation2,variant2)=>orientation2==="horizontal"&&variant2==="subtle"?"regular":orientation2==="horizontal"&&variant2==="normal"?"bold":"regular";const{active:active=false,highlighted_border:highlighted_border=true,aria:aria={},orientation:orientation,variant:variant,fontWeight:fontWeight=fontWeightDefault(orientation,variant),children:children,className:className,collapsible:collapsible,data:data={},dark:dark=false,fontSize:fontSize="normal",htmlOptions:htmlOptions={},iconLeft:iconLeft,iconRight:iconRight,onIconRightClick:onIconRightClick,onIconLeftClick:onIconLeftClick,id:id,imageUrl:imageUrl,link:link,onClick:onClick,target:target="_self",text:text="",collapsibleTrail:collapsibleTrail,collapsed:collapsed,itemSpacing:itemSpacing,margin:margin,marginBottom:marginBottom,marginTop:marginTop,marginRight:marginRight,marginLeft:marginLeft,marginX:marginX,marginY:marginY}=props;const spacingMarginProps={margin:margin,marginBottom:marginBottom,marginTop:marginTop,marginRight:marginRight,marginLeft:marginLeft,marginX:marginX,marginY:marginY};const filterItemSpacing=obj=>{const filteredPadding2={};const filteredMargin2={};for(const key in obj){if(key.startsWith("padding")){filteredPadding2[key]=obj[key]}else if(key.startsWith("margin")){filteredMargin2[key]=obj[key]}}return{filteredPadding:filteredPadding2,filteredMargin:filteredMargin2}};const{filteredPadding:filteredPadding,filteredMargin:filteredMargin}=filterItemSpacing(itemSpacing);const finalItemSpacing={...filteredMargin||{},...Object.entries(spacingMarginProps).reduce(((acc,[prop,value])=>{if(value){acc[prop]=value}return acc}),{})};const filteredProps={...props};filteredProps==null?true:delete filteredProps.margin;filteredProps==null?true:delete filteredProps.marginX;filteredProps==null?true:delete filteredProps.marginY;filteredProps==null?true:delete filteredProps.marginBottom;filteredProps==null?true:delete filteredProps.marginTop;filteredProps==null?true:delete filteredProps.marginRight;filteredProps==null?true:delete filteredProps.marginLeft;const Tag=link?"a":"div";const activeClass=active===true?"active":"";const highlightedBorderClass=active===true&&highlighted_border===false?"highlighted_border_none":"";const collapsibleTrailClass=collapsible&&collapsibleTrail?"collapsible_trail":"";const fontSizeMapping={small:"font_size_small",normal:"font_size_normal"};const fontWeightMapping={bold:"font_bold",bolder:"font_bolder",regular:"font_regular"};const fontSizeClass=fontSizeMapping[fontSize];const fontWeightClass=fontWeightMapping[fontWeight];const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const tagClasses=classnames(collapsible?"pb_nav_list_item_link_collapsible":"pb_nav_list_item_link");const classes=classnames(buildCss("pb_nav_list_kit_item",activeClass,highlightedBorderClass),collapsible?buildCss("pb_collapsible_nav_item",activeClass,highlightedBorderClass):"",fontSizeClass,fontWeightClass,tagClasses,collapsible?globalProps(filteredProps,{...filteredPadding}):globalProps(props,{...itemSpacing}),className);const handleIconClick=e=>{if(onIconLeftClick){e.stopPropagation();onIconLeftClick()}};const childrenWithProps=React__default.Children.map(children,(child=>{if(React__default.isValidElement(child)){const childProps={itemSpacing:itemSpacing};return React__default.cloneElement(child,childProps)}return child}));const collapsibleClasses=buildCss("collapsible_nav_wrapper",activeClass,highlightedBorderClass,collapsibleTrailClass);return jsx$1(Fragment,{children:collapsible?jsx$1(Fragment,{children:jsxs(Collapsible,{className:collapsibleClasses,collapsed:collapsed,icon:iconRight&&iconRight,iconSize:"xs",id:id,onClick:onClick,onIconClick:onIconRightClick,children:[jsx$1(Collapsible.Main,{className:globalProps({...finalItemSpacing}),dark:dark,children:jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,href:link,id:id,target:target,children:[imageUrl&&jsx$1("div",{className:"pb_nav_list_item_icon_section_collapsible",onClick:e=>handleIconClick(e),children:jsx$1(Image,{className:"pb_nav_img_wrapper",url:imageUrl})},imageUrl),iconLeft&&jsx$1("div",{className:"pb_nav_list_item_icon_section_collapsible",onClick:e=>handleIconClick(e),children:jsx$1(Icon,{className:"pb_nav_list_item_icon_left_collapsible",fixedWidth:true,icon:iconLeft})},iconLeft),jsx$1("span",{className:"pb_nav_list_item_text_collapsible",children:text})]})}),jsx$1(Collapsible.Content,{children:childrenWithProps})]})}):jsxs(Tag,{...ariaProps,...dataProps,...htmlProps,className:classes,href:link,id:id,onClick:onClick,target:target,children:[imageUrl&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Image,{className:"pb_nav_img_wrapper",url:imageUrl})},imageUrl),iconLeft&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Icon,{className:"pb_nav_list_item_icon_left",fixedWidth:true,icon:iconLeft})},iconLeft),jsx$1("span",{className:"pb_nav_list_item_text",children:text||children}),iconRight&&jsx$1("div",{className:"pb_nav_list_item_icon_section",children:jsx$1(Icon,{className:"pb_nav_list_item_icon_right",fixedWidth:true,icon:iconRight})},iconRight)]})})};const Passphrase=props=>{const{aria:aria={},className:className,confirmation:confirmation=false,data:data={},dark:dark=false,htmlOptions:htmlOptions={},id:id,inputProps:inputProps={},label:label=(confirmation?"Confirm Passphrase":"Passphrase"),onChange:onChange2=()=>void 0,showTipsBelow:showTipsBelow="always",tips:tips=[],uncontrolled:uncontrolled=false,value:value=""}=props;const[uncontrolledValue,setUncontrolledValue]=useState("");const[showPopover,setShowPopover]=useState(false);const[showPassphrase,setShowPassphrase]=useState(false);const handleChange=useCallback((e=>uncontrolled?setUncontrolledValue(e.target.value):onChange2(e)),[uncontrolled,onChange2]);const displayValue=useMemo((()=>uncontrolled?uncontrolledValue:value),[value,uncontrolledValue,uncontrolled]);const toggleShowPopover=()=>setShowPopover(!showPopover);const handleShouldClosePopover=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};const toggleShowPassphrase=e=>{e.preventDefault();setShowPassphrase(!showPassphrase)};const tipClass=classnames("passphrase-popover",showTipsBelow==="always"?null:`show-below-${showTipsBelow}`);const ariaProps=buildAriaProps(aria);const classes=classnames(buildCss("pb_passphrase"),globalProps(props),className);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const popoverReference=jsx$1(CircleIconButton,{className:tipClass,dark:dark,icon:"info-circle",onClick:toggleShowPopover,variant:"link"});const shieldIcon=getAllIcons()["shieldCheck"];const eyeIcon=getAllIcons()["eye"];return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:jsxs("label",{children:[jsxs(Flex,{align:"baseline",children:[jsx$1(Caption,{className:"passphrase-label",text:label}),tips.length>0&&!confirmation&&jsx$1(PbReactPopover,{className:"passphrase-tips",closeOnClick:"outside",placement:"right",reference:popoverReference,shouldClosePopover:handleShouldClosePopover,show:showPopover,children:jsxs(Flex,{align:"center",orientation:"column",children:[jsx$1(Caption,{marginBottom:"xs",text:"Tips for a good passphrase"}),jsx$1("div",{children:tips.map(((tip,i)=>jsxs(Caption,{marginBottom:"xs",size:"xs",children:[jsx$1(Icon,{className:"svg-inline--fa",customIcon:shieldIcon.icon,marginRight:"xs"}),tip]},i)))})]})})]}),jsxs("div",{className:"passphrase-text-input-wrapper",children:[jsx$1(TextInput$1,{className:"passphrase-text-input",dark:dark,marginBottom:"xs",onChange:handleChange,placeholder:"Enter a passphrase...",type:showPassphrase?"text":"password",value:displayValue,...inputProps}),jsxs("span",{className:"show-passphrase-icon",onClick:toggleShowPassphrase,children:[jsx$1(Body$1,{className:showPassphrase?"hide-icon":"",color:"light",dark:dark,children:jsx$1(Icon,{icon:"eye-slash"})}),jsx$1(Body$1,{className:showPassphrase?"":"hide-icon",color:"light",dark:dark,children:jsx$1(Icon,{className:"svg-inline--fa",customIcon:eyeIcon.icon})})]})]})]})})};var intlTelInputWithUtils={exports:{}};(function(module){(function(factory){if(module.exports){module.exports=factory()}else{window.intlTelInput=factory()}})((()=>{var factoryOutput=(()=>{var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name2 in all)__defProp(target,name2,{get:all[name2],enumerable:true})};var __copyProps=(to,from2,except,desc)=>{if(from2&&typeof from2==="object"||typeof from2==="function"){for(let key of __getOwnPropNames(from2))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from2[key],enumerable:!(desc=__getOwnPropDesc(from2,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var intlTelInputWithUtils_exports={};__export(intlTelInputWithUtils_exports,{default:()=>intlTelInputWithUtils_default});var rawCountryData=[["af","93"],["ax","358",1,["18"]],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"]],["cc","61",1,["89162"]],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"]],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"]],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"]],["jo","962"],["kz","7",1,["33","7"]],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"]],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0],["ro","40"],["ru","7",0],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"]],["ye","967"],["zm","260"],["zw","263"]];var allCountries=[];for(let i=0;is.replace(/\D/g,"");var normaliseString=(s="")=>s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var isRegionlessNanp=number=>{const numeric=getNumeric(number);if(numeric.charAt(0)==="1"){const areaCode=numeric.substr(1,3);return regionlessNanpNumbers.indexOf(areaCode)!==-1}return false};var translateCursorPosition=(relevantChars,formattedValue,prevCaretPos,isDeleteForwards)=>{if(prevCaretPos===0&&!isDeleteForwards){return 0}let count2=0;for(let i=0;i{const el=document.createElement(name2);if(attrs){Object.entries(attrs).forEach((([key,value])=>el.setAttribute(key,value)))}if(container){container.appendChild(el)}return el};var forEachInstance=(method,...args)=>{const{instances:instances2}=intlTelInput2;Object.values(instances2).forEach((instance=>instance[method](...args)))};var Iti=class{constructor(input,customOptions={}){this.id=id++;this.telInput=input;this.highlightedItem=null;this.options=Object.assign({},defaults,customOptions);this.hadInitialPlaceholder=Boolean(input.getAttribute("placeholder"))}_init(){if(this.options.useFullscreenPopup){this.options.fixDropdownWidth=false}if(this.options.onlyCountries.length===1){this.options.initialCountry=this.options.onlyCountries[0]}if(this.options.separateDialCode){this.options.nationalMode=false}if(this.options.allowDropdown&&!this.options.showFlags&&!this.options.separateDialCode){this.options.nationalMode=false}if(this.options.useFullscreenPopup&&!this.options.dropdownContainer){this.options.dropdownContainer=document.body}this.isAndroid=typeof navigator!=="undefined"?/Android/i.test(navigator.userAgent):false;this.isRTL=!!this.telInput.closest("[dir=rtl]");const showOnDefaultSide=this.options.allowDropdown||this.options.separateDialCode;this.showSelectedCountryOnLeft=this.isRTL?!showOnDefaultSide:showOnDefaultSide;if(this.options.separateDialCode){if(this.isRTL){this.originalPaddingRight=this.telInput.style.paddingRight}else{this.originalPaddingLeft=this.telInput.style.paddingLeft}}this.options.i18n={...en_default,...this.options.i18n};const autoCountryPromise=new Promise(((resolve,reject)=>{this.resolveAutoCountryPromise=resolve;this.rejectAutoCountryPromise=reject}));const utilsScriptPromise=new Promise(((resolve,reject)=>{this.resolveUtilsScriptPromise=resolve;this.rejectUtilsScriptPromise=reject}));this.promise=Promise.all([autoCountryPromise,utilsScriptPromise]);this.selectedCountryData={};this._processCountryData();this._generateMarkup();this._setInitialState();this._initListeners();this._initRequests()}_processCountryData(){this._processAllCountries();this._processDialCodes();this._translateCountryNames();this._sortCountries()}_sortCountries(){if(this.options.countryOrder){this.options.countryOrder=this.options.countryOrder.map((country=>country.toLowerCase()))}this.countries.sort(((a,b)=>{const{countryOrder:countryOrder}=this.options;if(countryOrder){const aIndex=countryOrder.indexOf(a.iso2);const bIndex=countryOrder.indexOf(b.iso2);const aIndexExists=aIndex>-1;const bIndexExists=bIndex>-1;if(aIndexExists||bIndexExists){if(aIndexExists&&bIndexExists){return aIndex-bIndex}return aIndexExists?-1:1}}return a.name.localeCompare(b.name)}))}_addToDialCodeMap(iso2,dialCode,priority){if(dialCode.length>this.dialCodeMaxLen){this.dialCodeMaxLen=dialCode.length}if(!this.dialCodeToIso2Map.hasOwnProperty(dialCode)){this.dialCodeToIso2Map[dialCode]=[]}for(let i=0;icountry.toLowerCase()));this.countries=data_default.filter((country=>lowerCaseOnlyCountries.indexOf(country.iso2)>-1))}else if(excludeCountries.length){const lowerCaseExcludeCountries=excludeCountries.map((country=>country.toLowerCase()));this.countries=data_default.filter((country=>lowerCaseExcludeCountries.indexOf(country.iso2)===-1))}else{this.countries=data_default}}_translateCountryNames(){for(let i=0;i`}content+=`${c.name}`;content+=`+${c.dialCode}`;listItem.insertAdjacentHTML("beforeend",content)}}_setInitialState(overrideAutoCountry=false){const attributeValue=this.telInput.getAttribute("value");const inputValue=this.telInput.value;const useAttribute=attributeValue&&attributeValue.charAt(0)==="+"&&(!inputValue||inputValue.charAt(0)!=="+");const val=useAttribute?attributeValue:inputValue;const dialCode=this._getDialCode(val);const isRegionlessNanpNumber=isRegionlessNanp(val);const{initialCountry:initialCountry,geoIpLookup:geoIpLookup}=this.options;const isAutoCountry=initialCountry==="auto"&&geoIpLookup;if(dialCode&&!isRegionlessNanpNumber){this._updateCountryFromNumber(val)}else if(!isAutoCountry||overrideAutoCountry){const lowerInitialCountry=initialCountry?initialCountry.toLowerCase():"";const isValidInitialCountry=lowerInitialCountry&&this._getCountryData(lowerInitialCountry,true);if(isValidInitialCountry){this._setCountry(lowerInitialCountry)}else{if(dialCode&&isRegionlessNanpNumber){this._setCountry("us")}else{this._setCountry()}}}if(val){this._updateValFromNumber(val)}}_initListeners(){this._initTelInputListeners();if(this.options.allowDropdown){this._initDropdownListeners()}if((this.hiddenInput||this.hiddenInputCountry)&&this.telInput.form){this._initHiddenInputListener()}}_initHiddenInputListener(){var _a;this._handleHiddenInputSubmit=()=>{if(this.hiddenInput){this.hiddenInput.value=this.getNumber()}if(this.hiddenInputCountry){this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||""}};(_a=this.telInput.form)==null?void 0:_a.addEventListener("submit",this._handleHiddenInputSubmit)}_initDropdownListeners(){this._handleLabelClick=e=>{if(this.dropdownContent.classList.contains("iti__hide")){this.telInput.focus()}else{e.preventDefault()}};const label=this.telInput.closest("label");if(label){label.addEventListener("click",this._handleLabelClick)}this._handleClickSelectedCountry=()=>{if(this.dropdownContent.classList.contains("iti__hide")&&!this.telInput.disabled&&!this.telInput.readOnly){this._openDropdown()}};this.selectedCountry.addEventListener("click",this._handleClickSelectedCountry);this._handleCountryContainerKeydown=e=>{const isDropdownHidden=this.dropdownContent.classList.contains("iti__hide");if(isDropdownHidden&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)){e.preventDefault();e.stopPropagation();this._openDropdown()}if(e.key==="Tab"){this._closeDropdown()}};this.countryContainer.addEventListener("keydown",this._handleCountryContainerKeydown)}_initRequests(){let{loadUtilsOnInit:loadUtilsOnInit,utilsScript:utilsScript,initialCountry:initialCountry,geoIpLookup:geoIpLookup}=this.options;if(!loadUtilsOnInit&&utilsScript){console.warn("intl-tel-input: The `utilsScript` option is deprecated and will be removed in a future release! Please use the `loadUtilsOnInit` option instead.");loadUtilsOnInit=utilsScript}if(loadUtilsOnInit&&!intlTelInput2.utils){this._handlePageLoad=()=>{var _a;window.removeEventListener("load",this._handlePageLoad);(_a=intlTelInput2.loadUtils(loadUtilsOnInit))==null?void 0:_a.catch((()=>{}))};if(intlTelInput2.documentReady()){this._handlePageLoad()}else{window.addEventListener("load",this._handlePageLoad)}}else{this.resolveUtilsScriptPromise()}const isAutoCountry=initialCountry==="auto"&&geoIpLookup;if(isAutoCountry&&!this.selectedCountryData.iso2){this._loadAutoCountry()}else{this.resolveAutoCountryPromise()}}_loadAutoCountry(){if(intlTelInput2.autoCountry){this.handleAutoCountry()}else if(!intlTelInput2.startedLoadingAutoCountry){intlTelInput2.startedLoadingAutoCountry=true;if(typeof this.options.geoIpLookup==="function"){this.options.geoIpLookup(((iso2="")=>{const iso2Lower=iso2.toLowerCase();const isValidIso2=iso2Lower&&this._getCountryData(iso2Lower,true);if(isValidIso2){intlTelInput2.autoCountry=iso2Lower;setTimeout((()=>forEachInstance("handleAutoCountry")))}else{this._setInitialState(true);forEachInstance("rejectAutoCountryPromise")}}),(()=>{this._setInitialState(true);forEachInstance("rejectAutoCountryPromise")}))}}}_openDropdownWithPlus(){this._openDropdown();this.searchInput.value="+";this._filterCountries("",true)}_initTelInputListeners(){const{strictMode:strictMode,formatAsYouType:formatAsYouType,separateDialCode:separateDialCode,formatOnDisplay:formatOnDisplay,allowDropdown:allowDropdown,countrySearch:countrySearch}=this.options;let userOverrideFormatting=false;if(new RegExp("\\p{L}","u").test(this.telInput.value)){userOverrideFormatting=true}this._handleInputEvent=e=>{if(this.isAndroid&&(e==null?void 0:e.data)==="+"&&separateDialCode&&allowDropdown&&countrySearch){const currentCaretPos=this.telInput.selectionStart||0;const valueBeforeCaret=this.telInput.value.substring(0,currentCaretPos-1);const valueAfterCaret=this.telInput.value.substring(currentCaretPos);this.telInput.value=valueBeforeCaret+valueAfterCaret;this._openDropdownWithPlus();return}if(this._updateCountryFromNumber(this.telInput.value)){this._triggerCountryChange()}const isFormattingChar=(e==null?void 0:e.data)&&/[^+0-9]/.test(e.data);const isPaste=(e==null?void 0:e.inputType)==="insertFromPaste"&&this.telInput.value;if(isFormattingChar||isPaste&&!strictMode){userOverrideFormatting=true}else if(!/[^+0-9]/.test(this.telInput.value)){userOverrideFormatting=false}const disableFormatOnSetNumber=(e==null?void 0:e.detail)&&e.detail["isSetNumber"]&&!formatOnDisplay;if(formatAsYouType&&!userOverrideFormatting&&!disableFormatOnSetNumber){const currentCaretPos=this.telInput.selectionStart||0;const valueBeforeCaret=this.telInput.value.substring(0,currentCaretPos);const relevantCharsBeforeCaret=valueBeforeCaret.replace(/[^+0-9]/g,"").length;const isDeleteForwards=(e==null?void 0:e.inputType)==="deleteContentForward";const formattedValue=this._formatNumberAsYouType();const newCaretPos=translateCursorPosition(relevantCharsBeforeCaret,formattedValue,currentCaretPos,isDeleteForwards);this.telInput.value=formattedValue;this.telInput.setSelectionRange(newCaretPos,newCaretPos)}};this.telInput.addEventListener("input",this._handleInputEvent);if(strictMode||separateDialCode){this._handleKeydownEvent=e=>{if(e.key&&e.key.length===1&&!e.altKey&&!e.ctrlKey&&!e.metaKey){if(separateDialCode&&allowDropdown&&countrySearch&&e.key==="+"){e.preventDefault();this._openDropdownWithPlus();return}if(strictMode){const value=this.telInput.value;const alreadyHasPlus=value.charAt(0)==="+";const isInitialPlus=!alreadyHasPlus&&this.telInput.selectionStart===0&&e.key==="+";const isNumeric=/^[0-9]$/.test(e.key);const isAllowedChar=separateDialCode?isNumeric:isInitialPlus||isNumeric;const newValue=value.slice(0,this.telInput.selectionStart)+e.key+value.slice(this.telInput.selectionEnd);const newFullNumber=this._getFullNumber(newValue);const coreNumber=intlTelInput2.utils.getCoreNumber(newFullNumber,this.selectedCountryData.iso2);const hasExceededMaxLength=this.maxCoreNumberLength&&coreNumber.length>this.maxCoreNumberLength;let isChangingDialCode=false;if(alreadyHasPlus){const currentCountry=this.selectedCountryData.iso2;const newCountry=this._getCountryFromNumber(newFullNumber);isChangingDialCode=newCountry!==currentCountry}if(!isAllowedChar||hasExceededMaxLength&&!isChangingDialCode&&!isInitialPlus){e.preventDefault()}}}};this.telInput.addEventListener("keydown",this._handleKeydownEvent)}}_cap(number){const max2=parseInt(this.telInput.getAttribute("maxlength")||"",10);return max2&&number.length>max2?number.substr(0,max2):number}_trigger(name2,detailProps={}){const e=new CustomEvent(name2,{bubbles:true,cancelable:true,detail:detailProps});this.telInput.dispatchEvent(e)}_openDropdown(){const{fixDropdownWidth:fixDropdownWidth,countrySearch:countrySearch}=this.options;if(fixDropdownWidth){this.dropdownContent.style.width=`${this.telInput.offsetWidth}px`}this.dropdownContent.classList.remove("iti__hide");this.selectedCountry.setAttribute("aria-expanded","true");this._setDropdownPosition();if(countrySearch){const firstCountryItem=this.countryList.firstElementChild;if(firstCountryItem){this._highlightListItem(firstCountryItem,false);this.countryList.scrollTop=0}this.searchInput.focus()}this._bindDropdownListeners();this.dropdownArrow.classList.add("iti__arrow--up");this._trigger("open:countrydropdown")}_setDropdownPosition(){if(this.options.dropdownContainer){this.options.dropdownContainer.appendChild(this.dropdown)}if(!this.options.useFullscreenPopup){const inputPosRelativeToVP=this.telInput.getBoundingClientRect();const inputHeight=this.telInput.offsetHeight;if(this.options.dropdownContainer){this.dropdown.style.top=`${inputPosRelativeToVP.top+inputHeight}px`;this.dropdown.style.left=`${inputPosRelativeToVP.left}px`;this._handleWindowScroll=()=>this._closeDropdown();window.addEventListener("scroll",this._handleWindowScroll)}}}_bindDropdownListeners(){this._handleMouseoverCountryList=e=>{var _a;const listItem=(_a=e.target)==null?void 0:_a.closest(".iti__country");if(listItem){this._highlightListItem(listItem,false)}};this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList);this._handleClickCountryList=e=>{var _a;const listItem=(_a=e.target)==null?void 0:_a.closest(".iti__country");if(listItem){this._selectListItem(listItem)}};this.countryList.addEventListener("click",this._handleClickCountryList);let isOpening=true;this._handleClickOffToClose=()=>{if(!isOpening){this._closeDropdown()}isOpening=false};document.documentElement.addEventListener("click",this._handleClickOffToClose);let query="";let queryTimer=null;this._handleKeydownOnDropdown=e=>{if(["ArrowUp","ArrowDown","Enter","Escape"].includes(e.key)){e.preventDefault();e.stopPropagation();if(e.key==="ArrowUp"||e.key==="ArrowDown"){this._handleUpDownKey(e.key)}else if(e.key==="Enter"){this._handleEnterKey()}else if(e.key==="Escape"){this._closeDropdown()}}if(!this.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)){e.stopPropagation();if(queryTimer){clearTimeout(queryTimer)}query+=e.key.toLowerCase();this._searchForCountry(query);queryTimer=setTimeout((()=>{query=""}),1e3)}};document.addEventListener("keydown",this._handleKeydownOnDropdown);if(this.options.countrySearch){const doFilter=()=>{const inputQuery=this.searchInput.value.trim();if(inputQuery){this._filterCountries(inputQuery)}else{this._filterCountries("",true)}};let keyupTimer=null;this._handleSearchChange=()=>{if(keyupTimer){clearTimeout(keyupTimer)}keyupTimer=setTimeout((()=>{doFilter();keyupTimer=null}),100)};this.searchInput.addEventListener("input",this._handleSearchChange);this.searchInput.addEventListener("click",(e=>e.stopPropagation()))}}_searchForCountry(query){for(let i=0;iword[0])).join("").toLowerCase();const fullDialCode=`+${c.dialCode}`;if(isReset||normalisedCountryName.includes(normalisedQuery)||fullDialCode.includes(normalisedQuery)||c.iso2.includes(normalisedQuery)||countryInitials.includes(normalisedQuery)){const listItem=c.nodeById[this.id];if(listItem){this.countryList.appendChild(listItem)}if(noCountriesAddedYet){this._highlightListItem(listItem,false);noCountriesAddedYet=false}}}if(noCountriesAddedYet){this._highlightListItem(null,false)}this.countryList.scrollTop=0;this._updateSearchResultsText()}_updateSearchResultsText(){const{i18n:i18n}=this.options;const count2=this.countryList.childElementCount;let searchText;if(count2===0){searchText=i18n.zeroSearchResults}else if(count2===1){searchText=i18n.oneSearchResult}else{searchText=i18n.multipleSearchResults.replace("${count}",count2.toString())}this.searchResultsA11yText.textContent=searchText}_handleUpDownKey(key){var _a,_b;let next2=key==="ArrowUp"?(_a=this.highlightedItem)==null?void 0:_a.previousElementSibling:(_b=this.highlightedItem)==null?void 0:_b.nextElementSibling;if(!next2&&this.countryList.childElementCount>1){next2=key==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild}if(next2){this._scrollTo(next2);this._highlightListItem(next2,false)}}_handleEnterKey(){if(this.highlightedItem){this._selectListItem(this.highlightedItem)}}_updateValFromNumber(fullNumber){let number=fullNumber;if(this.options.formatOnDisplay&&intlTelInput2.utils&&this.selectedCountryData){const useNational=this.options.nationalMode||number.charAt(0)!=="+"&&!this.options.separateDialCode;const{NATIONAL:NATIONAL,INTERNATIONAL:INTERNATIONAL}=intlTelInput2.utils.numberFormat;const format=useNational?NATIONAL:INTERNATIONAL;number=intlTelInput2.utils.formatNumber(number,this.selectedCountryData.iso2,format)}number=this._beforeSetNumber(number);this.telInput.value=number}_updateCountryFromNumber(fullNumber){const iso2=this._getCountryFromNumber(fullNumber);if(iso2!==null){return this._setCountry(iso2)}return false}_getCountryFromNumber(fullNumber){const plusIndex=fullNumber.indexOf("+");let number=plusIndex?fullNumber.substring(plusIndex):fullNumber;const selectedDialCode=this.selectedCountryData.dialCode;const isNanp=selectedDialCode==="1";if(number&&isNanp&&number.charAt(0)!=="+"){if(number.charAt(0)!=="1"){number=`1${number}`}number=`+${number}`}if(this.options.separateDialCode&&selectedDialCode&&number.charAt(0)!=="+"){number=`+${selectedDialCode}${number}`}const dialCode=this._getDialCode(number,true);const numeric=getNumeric(number);if(dialCode){const iso2Codes=this.dialCodeToIso2Map[getNumeric(dialCode)];const alreadySelected=iso2Codes.indexOf(this.selectedCountryData.iso2)!==-1&&numeric.length<=dialCode.length-1;const isRegionlessNanpNumber=selectedDialCode==="1"&&isRegionlessNanp(numeric);if(!isRegionlessNanpNumber&&!alreadySelected){for(let j=0;jcontainerBottom){const heightDifference=containerHeight-elementHeight;container.scrollTop=newScrollTop-heightDifference}}_updateDialCode(newDialCodeBare){const inputVal=this.telInput.value;const newDialCode=`+${newDialCodeBare}`;let newNumber;if(inputVal.charAt(0)==="+"){const prevDialCode=this._getDialCode(inputVal);if(prevDialCode){newNumber=inputVal.replace(prevDialCode,newDialCode)}else{newNumber=newDialCode}this.telInput.value=newNumber}}_getDialCode(number,includeAreaCode){let dialCode="";if(number.charAt(0)==="+"){let numericChars="";for(let i=0;i-1){const beforeAlphaChar=val.substring(0,alphaCharPosition);const beforeAlphaIsValid=this._utilsIsPossibleNumber(beforeAlphaChar);const isValid=this._utilsIsPossibleNumber(val);return beforeAlphaIsValid&&isValid}return this._utilsIsPossibleNumber(val)}_utilsIsPossibleNumber(val){return intlTelInput2.utils?intlTelInput2.utils.isPossibleNumber(val,this.selectedCountryData.iso2,this.options.validationNumberType):null}isValidNumberPrecise(){if(!this.selectedCountryData.iso2){return false}const val=this._getFullNumber();const alphaCharPosition=val.search(new RegExp("\\p{L}","u"));if(alphaCharPosition>-1){const beforeAlphaChar=val.substring(0,alphaCharPosition);const beforeAlphaIsValid=this._utilsIsValidNumber(beforeAlphaChar);const isValid=this._utilsIsValidNumber(val);return beforeAlphaIsValid&&isValid}return this._utilsIsValidNumber(val)}_utilsIsValidNumber(val){return intlTelInput2.utils?intlTelInput2.utils.isValidNumber(val,this.selectedCountryData.iso2):null}setCountry(iso2){const iso2Lower=iso2==null?void 0:iso2.toLowerCase();const currentCountry=this.selectedCountryData.iso2;const isCountryChange=iso2&&iso2Lower!==currentCountry||!iso2&¤tCountry;if(isCountryChange){this._setCountry(iso2Lower);this._updateDialCode(this.selectedCountryData.dialCode);this._triggerCountryChange()}}setNumber(number){const countryChanged=this._updateCountryFromNumber(number);this._updateValFromNumber(number);if(countryChanged){this._triggerCountryChange()}this._trigger("input",{isSetNumber:true})}setPlaceholderNumberType(type){this.options.placeholderNumberType=type;this._updatePlaceholder()}setDisabled(disabled){this.telInput.disabled=disabled;if(disabled){this.selectedCountry.setAttribute("disabled","true")}else{this.selectedCountry.removeAttribute("disabled")}}};var loadUtils=source=>{if(!intlTelInput2.utils&&!intlTelInput2.startedLoadingUtilsScript){let loadCall;if(typeof source==="string"){loadCall=Promise.reject(new Error("INTENTIONALLY BROKEN: this build of intl-tel-input includes the utilities module inline, but it has incorrectly attempted to load the utilities separately. If you are seeing this message, something is broken!"))}else if(typeof source==="function"){try{loadCall=source();if(!(loadCall instanceof Promise)){throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof loadCall}`)}}catch(error){return Promise.reject(error)}}else{return Promise.reject(new TypeError(`The argument passed to loadUtils must be a URL string or a function that returns a promise for the utilities module, not ${typeof source}`))}intlTelInput2.startedLoadingUtilsScript=true;return loadCall.then((module2=>{const utils2=module2==null?void 0:module2.default;if(!utils2||typeof utils2!=="object"){if(typeof source==="string"){throw new TypeError(`The module loaded from ${source} did not set utils as its default export.`)}else{throw new TypeError("The loader function passed to loadUtils did not resolve to a module object with utils as its default export.")}}intlTelInput2.utils=utils2;forEachInstance("handleUtils");return true})).catch((error=>{forEachInstance("rejectUtilsScriptPromise",error);throw error}))}return null};var intlTelInput2=Object.assign(((input,options2)=>{const iti=new Iti(input,options2);iti._init();input.setAttribute("data-intl-tel-input-id",iti.id.toString());intlTelInput2.instances[iti.id]=iti;return iti}),{defaults:defaults,documentReady:()=>document.readyState==="complete",getCountryData:()=>data_default,getInstance:input=>{const id2=input.getAttribute("data-intl-tel-input-id");return id2?intlTelInput2.instances[id2]:null},instances:{},loadUtils:loadUtils,startedLoadingUtilsScript:false,startedLoadingAutoCountry:false,version:"24.7.0"});var intl_tel_input_default=intlTelInput2;(function(){var k=this||self;function m(a,b){a=a.split(".");var c=k;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function n(a,b){function c(){}c.prototype=b.prototype;a.ma=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.sa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;ha.length?false:M(Sa,a)}function Wa(a){return M(Na,a)?N(a,Ha):N(a,Fa)}function Xa(a){var b=Wa(a.toString());D(a);a.g(b)}function Ya(a){return null!=a&&(1!=x(a,9)||-1!=u(a,9)[0])}function N(a,b){for(var c=new C,d,e=a.length,f=0;fb?2:f[f.length-1]=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in I)return b.g(a.substring(e)),c;return 0}function eb(a,b,c,d,e,f){if(0==b.length)return 0;b=new C(b);var g;null!=c&&(g=r(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(K.test(h))h=h.replace(K,""),D(b),b.g(Wa(h)),g=1;else{h=new RegExp(g);Xa(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var l=g.substring(h).match(Ja);l&&null!=l[1]&&0=b.h.length)throw Error("Phone number too short after IDD");a=db(b,d);if(0!=a)return t(f,1,a),a;throw Error("Invalid country calling code")}if(null!=c&&(g=w2(c,10),h=""+g,l=b.toString(),0==l.lastIndexOf(h,0)&&(h=new C(l.substring(h.length)),l=r(c,1),l=new RegExp(w2(l,2)),fb(h,c,null),h=h.toString(),!M(l,b.toString())&&M(l,h)||3==V(a,b.toString(),c,-1))))return d.g(h),e&&t(f,6,10),t(f,1,g),g;t(f,1,0);return 0}function fb(a,b,c){var d=a.toString(),e=d.length,f=r(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(w2(r(b,1),2));var h=M(f,d),l=e.length-1;b=r(b,16);if(null==b||0==b.length||null==e[l]||0==e[l].length){if(!h||M(f,d.substring(e[0].length)))null!=c&&0=b.length)f="";else{var g=b.indexOf(";",f);f=-1!==g?b.substring(f,g):b.substring(f)}var h=f;null==h?g=true:0===h.length?g=false:(g=Oa.exec(h),h=Pa.exec(h),g=null!==g||null!==h);if(!g)throw Error("The string supplied did not seem to be a phone number");null!=f?("+"===f.charAt(0)&&e.g(f),f=b.indexOf("tel:"),e.g(b.substring(0<=f?f+4:0,b.indexOf(";phone-context=")))):(f=e.g,g=b??"",h=g.search(Ka),0<=h?(g=g.substring(h),g=g.replace(Ma,""),h=g.search(La),0<=h&&(g=g.substring(0,h))):g="",f.call(e,g));f=e.toString();g=f.indexOf(";isub=");0b.h.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new C,e=new C(b.toString()),fb(e,g,c),a=V(a,e.toString(),g,-1),2!=a&&4!=a&&5!=a&&(b=e,d&&0a)throw Error("The string supplied is too short to be a phone number");if(17{try{const c=a.replace(/[^+0-9]/g,""),d=new hb(b);b="";for(let e=0;e{try{const e=J.g(),f=X(e,a,b);var d=W(e,f,-1);return 0==d||4==d?e.format(f,"undefined"===typeof c?0:c):a}catch{return a}}));m("intlTelInputUtilsTemp.getExampleNumber",((a,b,c,d)=>{try{const l=J.g();a:{var e=l;if(O(a)){var f=T(S(e,a),c);try{if(q(f,6)){var g=r(f,6);var h=gb(e,g,a,false);break a}}catch(A){}}h=null}return l.format(h,d?0:b?2:1)}catch{return""}}));m("intlTelInputUtilsTemp.getExtension",((a,b)=>{try{return r(X(J.g(),a,b),3)}catch{return""}}));m("intlTelInputUtilsTemp.getNumberType",((a,b)=>{try{const g=J.g(),h=X(g,a,b);var c=bb(g,h),d=Q(g,w2(h,1),c);if(null==d)var e=-1;else{var f=P(h);e=ab(f,d)}return e}catch{return-99}}));m("intlTelInputUtilsTemp.getValidationError",((a,b)=>{if(!b)return 1;try{const c=J.g(),d=X(c,a,b);return W(c,d,-1)}catch(c){return"Invalid country calling code"===c.message?1:3>=a.length||"Phone number too short after IDD"===c.message||"The string supplied is too short to be a phone number"===c.message?2:"The string supplied is too long to be a phone number"===c.message?3:-99}}));m("intlTelInputUtilsTemp.isValidNumber",((a,b)=>{try{const l=J.g();var c=X(l,a,b),d=bb(l,c);a=l;var e=w2(c,1),f=Q(a,e,d);if(null==f||"001"!=d&&e!=cb(a,d))var g=false;else{var h=P(c);g=-1!=ab(h,f)}return g}catch{return false}}));m("intlTelInputUtilsTemp.isPossibleNumber",((a,b,c)=>{try{const d=J.g(),e=X(d,a,b);if(c){const f=0===W(d,e,Z[c]);if("FIXED_LINE_OR_MOBILE"===c){const g=0===W(d,e,Z.MOBILE),h=0===W(d,e,Z.FIXED_LINE);return g||h||f}return f}return 0===W(d,e,-1)}catch{return false}}));m("intlTelInputUtilsTemp.getCoreNumber",((a,b)=>{try{return r(X(J.g(),a,b),2).toString()}catch{return""}}));m("intlTelInputUtilsTemp.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3});m("intlTelInputUtilsTemp.numberType",Z);m("intlTelInputUtilsTemp.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5})})();var utils=window.intlTelInputUtilsTemp;delete window.intlTelInputUtilsTemp;var utils_default=utils;intl_tel_input_default.utils=utils_default;var intlTelInputWithUtils_default=intl_tel_input_default;return __toCommonJS(intlTelInputWithUtils_exports)})();return factoryOutput.default}))})(intlTelInputWithUtils);var intlTelInputWithUtilsExports=intlTelInputWithUtils.exports;const intlTelInput=getDefaultExportFromCjs(intlTelInputWithUtilsExports);const isEmpty=obj=>Object.keys(obj).length<1;const formatToGlobalCountryName=countryName=>countryName.split("(")[0].trim();const formatAllCountries=()=>{const countryData=intlTelInput.getCountryData();for(let i=0;i/^[()+\-\ .\d]*$/g.test(value);const PhoneNumberInput=(props,ref)=>{const{aria:aria={},className:className,dark:dark=false,data:data={},disabled:disabled=false,htmlOptions:htmlOptions={},id:id="",initialCountry:initialCountry="",isValid:isValid=()=>{},label:label="",name:name2="",onChange:onChange2=()=>{},onValidate:onValidate=()=>null,onlyCountries:onlyCountries=[],required:required=false,preferredCountries:preferredCountries=[],value:value=""}=props;const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_phone_number_input"),globalProps(props),className);const inputRef=useRef();const[inputValue,setInputValue]=useState(value);const[itiInit,setItiInit]=useState();const[error,setError]=useState(props.error);const[dropDownIsOpen,setDropDownIsOpen]=useState(false);const[selectedData,setSelectedData]=useState();useEffect((()=>{if((error==null?void 0:error.length)>0){onValidate(false)}else{onValidate(true)}}),[error,onValidate]);useImperativeHandle(ref,(()=>({clearField(){setInputValue("");setError("")},inputNode(){return inputRef.current}})));const showFormattedError=(reason="")=>{const countryName=itiInit.getSelectedCountryData().name;const reasonText=reason.length>0?` (${reason})`:"";setError(`Invalid ${countryName} phone number${reasonText}`);return true};const validateTooLongNumber=itiInit2=>{if(!itiInit2)return;if(itiInit2.getValidationError()===3){return showFormattedError("too long")}else{setError("")}};const validateTooShortNumber=itiInit2=>{if(!itiInit2)return;if(itiInit2.getValidationError()===2){return showFormattedError("too short")}else{if(inputValue.length===1){return showFormattedError("too short")}else{setError("")}}};const validateOnlyNumbers=itiInit2=>{if(!itiInit2)return;if(inputValue&&!containOnlyNumbers(inputValue)){return showFormattedError("enter numbers only")}};const validateUnhandledError=itiInit2=>{if(!required||!itiInit2)return;if(itiInit2.getValidationError()===-99){if(inputValue.length===1){return showFormattedError("too short")}else if(inputValue.length===0){setError("Missing phone number");return true}else{return showFormattedError()}}};const validateMissingAreaCode=itiInit2=>{if(!required||!itiInit2)return;if(itiInit2.getValidationError()===4){showFormattedError("missing area code");return true}};const validateErrors=()=>{if(itiInit)isValid(itiInit.isValidNumber());if(validateOnlyNumbers(itiInit))return;if(validateTooLongNumber(itiInit))return;if(validateTooShortNumber(itiInit))return;if(validateUnhandledError(itiInit))return;if(validateMissingAreaCode(itiInit))return};const getCurrentSelectedData=(itiInit2,inputValue2)=>({...itiInit2.getSelectedCountryData(),number:inputValue2});const handleOnChange=evt=>{setInputValue(evt.target.value);const phoneNumberData=getCurrentSelectedData(itiInit,evt.target.value);setSelectedData(phoneNumberData);onChange2(phoneNumberData);isValid(itiInit.isValidNumber())};useEffect(formatAllCountries,[]);const fallbackCountry=preferredCountries.length>0?preferredCountries[0]:onlyCountries.length>0?onlyCountries.sort()[0]:"af";useEffect((()=>{const telInputInit=intlTelInput(inputRef.current,{separateDialCode:true,countryOrder:preferredCountries,allowDropdown:!disabled,autoInsertDialCode:false,initialCountry:initialCountry||fallbackCountry,onlyCountries:onlyCountries,countrySearch:false,fixDropdownWidth:false,formatAsYouType:false});inputRef.current.addEventListener("countrychange",(evt=>{const phoneNumberData=getCurrentSelectedData(telInputInit,evt.target.value);setSelectedData(phoneNumberData);onChange2(phoneNumberData);validateErrors()}));inputRef.current.addEventListener("open:countrydropdown",(()=>setDropDownIsOpen(true)));inputRef.current.addEventListener("close:countrydropdown",(()=>setDropDownIsOpen(false)));setItiInit(telInputInit)}),[]);let textInputProps={className:dropDownIsOpen?"dropdown_open":"",dark:dark,"data-phone-number":JSON.stringify(selectedData),disabled:disabled,error:error,type:"tel",id:id,label:label,name:name2,onBlur:validateErrors,onChange:handleOnChange,value:inputValue};let wrapperProps={className:classes};if(!isEmpty(aria))textInputProps={...textInputProps,...ariaProps};if(!isEmpty(data))wrapperProps={...wrapperProps,...dataProps};if(required)textInputProps.required=true;return jsx$1("div",{...wrapperProps,...htmlProps,children:jsx$1(TextInput$1,{ref:inputNode=>{ref?ref.current=inputNode:null;inputRef.current=inputNode},...textInputProps})})};const PhoneNumberInput$1=forwardRef(PhoneNumberInput);const inlineFocus=()=>{const trixEditorElement=event.target;const trixEditorContainer=trixEditorElement.closest(".pb_rich_text_editor_kit");if(!trixEditorContainer.classList.contains("inline"))return;trixEditorContainer.classList.toggle("focused")};const useFocus=()=>{const allTrixEditors=document.querySelectorAll(".focus-editor-targets trix-editor");allTrixEditors.forEach((editorElement=>{const toolbarElement=editorElement.toolbarElement;if(editorElement==document.activeElement){editorElement.classList.add("focused-editor");toolbarElement.style.display="block"}else{if(!toolbarElement.contains(document.activeElement)){editorElement.classList.remove("focused-editor");toolbarElement.style.display="none"}}}))};if(window==null?void 0:window.customElements){const customElemDef=window.customElements.define;window.customElements.define=(name2,cl,conf)=>{if(!customElements.get(name2))customElemDef.call(window.customElements,name2,cl,conf)}}const EditorButton=({classname:classname,disable:disable,onclick:onclick,icon:icon,text:text})=>jsx$1(Tooltip,{delay:{open:2e3},interaction:true,placement:"top",text:text,children:jsx$1("button",{className:classname,disabled:disable,onClick:onclick,role:"button",type:"button",children:jsx$1(Flex,{align:"center",className:"toolbar_button_icon",justify:"center",children:jsx$1(Icon,{icon:icon,size:"lg"})})})});const ToolbarDropdown=({editor:editor})=>{const[showPopover,setShowPopover]=useState(false);const toolbarDropdownItems=[{node:"paragraph",icon:"paragraph",isActive:editor.isActive("paragraph"),text:"Paragraph",onclick:()=>editor.chain().focus().setParagraph().run()},{node:"heading-1",icon:"h1",isActive:editor.isActive("heading",{level:1}),text:"Heading 1",onclick:()=>editor.chain().focus().toggleHeading({level:1}).run()},{node:"heading-2",icon:"h2",isActive:editor.isActive("heading",{level:2}),text:"Heading 2",onclick:()=>editor.chain().focus().toggleHeading({level:2}).run()},{node:"heading-3",icon:"h3",isActive:editor.isActive("heading",{level:3}),text:"Heading 3",onclick:()=>editor.chain().focus().toggleHeading({level:3}).run()},{node:"bulletList",icon:"list",isActive:editor.isActive("bulletList"),text:"Bullet List",onclick:()=>editor.chain().focus().toggleBulletList().run()},{node:"orderedList",icon:"list-ol",isActive:editor.isActive("orderedList"),text:"Ordered List",onclick:()=>editor.chain().focus().toggleOrderedList().run()},{node:"blockquote",icon:"block-quote",isActive:editor.isActive("blockquote"),text:"Block Quote",onclick:()=>editor.chain().focus().toggleBlockquote().run()}];const angleDown=getAllIcons()["angleDown"].icon;const handleTogglePopover=()=>{setShowPopover(!showPopover)};const handlePopoverClose=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};let activeCount=0;const activeItems=[];for(const{text:text,isActive:isActive,icon:icon}of toolbarDropdownItems){if(isActive){activeCount++;activeItems.push(jsxs(Flex,{align:"center",gap:"xs",children:[jsx$1(Icon,{icon:icon,size:"lg"}),jsx$1("div",{children:text}),jsx$1(Flex,{className:showPopover?"fa-flip-vertical":"",display:"inline_flex",children:jsx$1(Icon,{className:"svg-inline--fa",customIcon:angleDown,fixedWidth:true,"margin-left":"xs"})})]},icon))}}const popoverReference=jsx$1(Button,{className:"editor-dropdown-button",onClick:handleTogglePopover,variant:"secondary",children:activeCount===2?activeItems[1]:activeCount===1?activeItems[0]||null:jsxs(Flex,{align:"center",gap:"xs",children:[jsx$1(Icon,{icon:"paragraph",size:"lg"}),jsx$1("div",{children:"Paragraph"}),jsx$1(Flex,{className:showPopover?"fa-flip-vertical":"",display:"inline_flex",children:jsx$1(Icon,{className:"svg-inline--fa",customIcon:angleDown,fixedWidth:true,"margin-left":"xs"})})]},"paragraph")});return jsx$1(PbReactPopover,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:popoverReference,shouldClosePopover:handlePopoverClose,show:showPopover,children:jsx$1(Nav,{paddingBottom:"xs",paddingTop:"xs",variant:"subtle",children:toolbarDropdownItems.map((({icon:icon,text:text,onclick:onclick,isActive:isActive},index2)=>jsx$1(NavItem,{className:`pb_tiptap_toolbar_dropdown_list_item ${isActive?"is-active":""}`,cursor:"pointer",iconLeft:icon,margin:"none",onClick:()=>{onclick();setShowPopover(false)},paddingBottom:"xxs",paddingTop:"xxs",text:text},`${text}_${index2}`)))})})};const ToolbarNodes=({editor:editor})=>{const setLink=useCallback((()=>{const previousUrl=editor.getAttributes("link").href;const url=window.prompt("URL",previousUrl);if(url===null){return}if(url===""){editor.chain().focus().extendMarkRange("link").unsetLink().run();return}editor.chain().focus().extendMarkRange("link").setLink({href:url}).run()}),[editor]);const toolbarNodesItems=[{onclick:()=>editor.chain().focus().toggleCodeBlock().run(),icon:"code",isActive:editor.isActive("codeBlock"),text:"Codeblock"},{onclick:setLink,icon:"link",isActive:editor.isActive("link"),text:"Link"}];return jsx$1(Fragment,{children:toolbarNodesItems.map((({onclick:onclick,icon:icon,text:text,isActive:isActive},index2)=>jsx$1(EditorButton,{classname:`toolbar_button ${isActive?"is-active":""}`,icon:icon,onclick:onclick,text:text},index2)))})};const ToolbarHistoryItems=({editor:editor})=>{const toolbarHistoryItems=[{classname:`toolbar_button`,icon:"undo",text:"Undo",onclick:()=>editor.chain().focus().undo().run(),disable:!editor.can().chain().focus().undo().run()},{classname:`toolbar_button`,icon:"redo",text:"Redo",onclick:()=>editor.chain().focus().redo().run(),disable:!editor.can().chain().focus().redo().run()}];return jsx$1(Fragment,{children:jsx$1(FlexItem,{displayFlex:true,children:toolbarHistoryItems.map((({onclick:onclick,classname:classname,disable:disable,icon:icon,text:text},index2)=>jsx$1(EditorButton,{classname:classname,disable:disable,icon:icon,onclick:onclick,text:text},index2)))})})};const MoreExtensionsDropdown=({extensions:extensions})=>{const[showPopover,setShowPopover]=useState(false);const handleTogglePopover=()=>{setShowPopover(!showPopover)};const handlePopoverClose=shouldClosePopover=>{setShowPopover(!shouldClosePopover)};const popoverReference=jsx$1("button",{className:"toolbar_button",onClick:handleTogglePopover,role:"button",type:"button",children:jsx$1(Flex,{align:"center",className:"toolbar_button_icon",justify:"center",children:jsx$1(Icon,{icon:"ellipsis",size:"lg"})})});return jsx$1(PbReactPopover,{closeOnClick:"outside",padding:"none",placement:"bottom",reference:popoverReference,shouldClosePopover:handlePopoverClose,show:showPopover,children:jsx$1(Nav,{paddingBottom:extensions.length>1?"xs":"none",paddingTop:extensions.length>1?"xs":"none",variant:"subtle",children:extensions&&extensions.map((({icon:icon,text:text,onclick:onclick,isActive:isActive},index2)=>jsx$1(NavItem,{className:`pb_tiptap_toolbar_dropdown_list_item ${isActive?"is-active":""}`,cursor:"pointer",iconLeft:icon,margin:"none",onClick:()=>{onclick();setShowPopover(false)},paddingBottom:"xxs",paddingTop:"xxs",text:text},`${text}_${index2}`)))})})};const EditorToolbar=({editor:editor,extensions:extensions})=>{const toolbaritems=[{icon:"bold",text:"Bold",classname:`toolbar_button ${editor.isActive("bold")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleBold().run()},{icon:"italic",text:"Italic",classname:`toolbar_button ${editor.isActive("italic")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleItalic().run()},{icon:"strikethrough",text:"Strikethrough",classname:`toolbar_button ${editor.isActive("strike")?"is-active":""}`,onclick:()=>editor.chain().focus().toggleStrike().run()}];return jsx$1(Background,{backgroundColor:"white",className:"toolbar",children:jsxs(Flex,{flex:"0",justify:"between",paddingX:"sm",paddingY:"xxs",children:[jsxs(FlexItem,{className:"toolbar_block",displayFlex:true,children:[jsx$1(ToolbarDropdown,{editor:editor}),jsx$1(SectionSeparator,{orientation:"vertical"}),toolbaritems&&toolbaritems.map((({icon:icon,text:text,classname:classname,onclick:onclick},index2)=>jsx$1(EditorButton,{classname:classname,icon:icon,onclick:onclick,text:text},index2))),jsx$1(SectionSeparator,{orientation:"vertical"}),jsx$1(ToolbarNodes,{editor:editor}),extensions&&jsx$1(Fragment,{children:jsx$1(MoreExtensionsDropdown,{extensions:extensions})})]}),jsx$1(ToolbarHistoryItems,{editor:editor})]})})};Trix.config.textAttributes.inlineCode={tagName:"code",inheritable:true};const RichTextEditor=props=>{const{aria:aria={},advancedEditor:advancedEditor,advancedEditorToolbar:advancedEditorToolbar=true,toolbarBottom:toolbarBottom=false,children:children,className:className,data:data={},focus:focus=false,htmlOptions:htmlOptions={},inline:inline=false,extensions:extensions,name:name2,onChange:onChange2=noop$1,placeholder:placeholder,simple:simple=false,sticky:sticky=false,template:template="",value:value="",maxWidth:maxWidth="md"}=props;const ariaProps=buildAriaProps(aria),dataProps=buildDataProps(data),[editor,setEditor]=useState();const htmlProps=buildHtmlProps(htmlOptions);const handleOnEditorReady=editorInstance=>setEditor(editorInstance),element=editor==null?void 0:editor.element;if(editor){const toolbarElement=element.parentElement.querySelector("trix-toolbar"),blockCodeButton=toolbarElement.querySelector("[data-trix-attribute=code]");let inlineCodeButton=toolbarElement.querySelector("[data-trix-attribute=inlineCode]");if(!inlineCodeButton){inlineCodeButton=blockCodeButton.cloneNode(true);blockCodeButton.hidden=true;inlineCodeButton.dataset.trixAttribute="inlineCode";blockCodeButton.insertAdjacentElement("afterend",inlineCodeButton)}if(toolbarBottom)editor.element.after(toolbarElement);focus?(document.addEventListener("trix-focus",useFocus),document.addEventListener("trix-blur",useFocus),useFocus()):null;document.addEventListener("trix-focus",inlineFocus);document.addEventListener("trix-blur",inlineFocus)}useEffect((()=>{if(!editor||!template)return;editor.loadHTML("");editor.setSelectedRange([0,0]);editor.insertHTML(template)}),[editor,template]);useEffect((()=>{if(!element)return;element.addEventListener("click",(({target:target})=>{const trixEditorContainer=target.closest(".pb_rich_text_editor_kit");if(!trixEditorContainer)return;const anchorElement=target.closest("a");if(!anchorElement)return;if(anchorElement.hasAttribute("href"))window.open(anchorElement.href)}))}),[element]);const richTextEditorClass="pb_rich_text_editor_kit",simpleClass=simple?"simple":"",focusClass=focus?"focus-editor-targets":"",stickyClass=sticky?"sticky":"",inlineClass=inline?"inline":"",toolbarBottomClass=toolbarBottom?"toolbar-bottom":"";let css4=classnames(globalProps(props,{maxWidth:maxWidth}),className);css4=classnames(richTextEditorClass,simpleClass,focusClass,stickyClass,inlineClass,toolbarBottomClass,css4);return jsx$1("div",{...ariaProps,...dataProps,...htmlProps,className:css4,children:advancedEditor?jsxs("div",{className:classnames("pb_rich_text_editor_advanced_container",{["toolbar-active"]:advancedEditorToolbar}),children:[advancedEditorToolbar&&jsx$1(EditorToolbar,{editor:advancedEditor,extensions:extensions}),children]}):jsx$1(TrixEditor,{className:"",fileParamName:name2,mergeTags:[],onChange:onChange2,onEditorReady:handleOnEditorReady,placeholder:placeholder,value:value})})};var treemap$1={exports:{}};(function(module){!function(t){module.exports?(t.default=t,module.exports=t):t("undefined"!=typeof Highcharts?Highcharts:void 0)}((function(t){var e=t?t._modules:{};function i(e2,i2,s,r){e2.hasOwnProperty(i2)||(e2[i2]=r.apply(null,s),"function"==typeof CustomEvent&&t.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i2,module:e2[i2]}})))}i(e,"Extensions/Breadcrumbs/BreadcrumbsDefaults.js",[],(function(){return{lang:{mainBreadcrumb:"Main"},options:{buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},buttonSpacing:5,floating:false,format:void 0,relativeTo:"plotBox",rtl:false,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:true,style:{},useHTML:false,zIndex:7}}})),i(e,"Extensions/Breadcrumbs/Breadcrumbs.js",[e["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s){let{format:r}=e2,{composed:o}=i2,{addEvent:l,defined:n,extend:a,fireEvent:h,isString:d,merge:p,objectEach:u,pick:c,pushUnique:g}=s;function m(){if(this.breadcrumbs){let t3=this.resetZoomButton&&this.resetZoomButton.getBBox(),e3=this.breadcrumbs.options;t3&&"right"===e3.position.align&&"plotBox"===e3.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t3.width-e3.buttonSpacing)}}function v(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function b(){let t3=this.breadcrumbs;if(t3&&!t3.options.floating&&t3.level){let e3=t3.options,i3=e3.buttonTheme,s2=(i3.height||0)+2*(i3.padding||0)+e3.buttonSpacing,r2=e3.position.verticalAlign;"bottom"===r2?(this.marginBottom=(this.marginBottom||0)+s2,t3.yOffset=s2):"middle"!==r2?(this.plotTop+=s2,t3.yOffset=-s2):t3.yOffset=void 0}}function f(){this.breadcrumbs&&this.breadcrumbs.redraw()}function y(t3){true===t3.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class x{static compose(e3,i3){g(o,"Breadcrumbs")&&(l(e3,"destroy",v),l(e3,"afterShowResetZoom",m),l(e3,"getMargins",b),l(e3,"redraw",f),l(e3,"selection",y),a(i3.lang,t2.lang))}constructor(t3,e3){this.elementList={},this.isDirty=true,this.level=0,this.list=[];let i3=p(t3.options.drilldown&&t3.options.drilldown.drillUpButton,x.defaultOptions,t3.options.navigation&&t3.options.navigation.breadcrumbs,e3);this.chart=t3,this.options=i3||{}}updateProperties(t3){this.setList(t3),this.setLevel(),this.isDirty=true}setList(t3){this.list=t3}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(t3){let e3=this.chart,i3=this.options,s2=e3.options.lang,o2=c(i3.format,i3.showFullPath?"{level.name}":"← {level.name}"),l2=s2&&c(s2.drillUpText,s2.mainBreadcrumb),a2=i3.formatter&&i3.formatter(t3)||r(o2,{level:t3.levelOptions},e3)||"";return(d(a2)&&!a2.length||"← "===a2)&&n(l2)&&(a2=i3.showFullPath?l2:"← "+l2),a2}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=false}render(){let t3=this.chart,e3=this.options;!this.group&&e3&&(this.group=t3.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e3.zIndex}).add()),e3.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let t3=this.chart,e3=this.list,i3=this.options.buttonSpacing;this.destroyListElements();let s2=this.group?this.group.getBBox().width:i3,r2=e3[e3.length-2];!t3.drillUpButton&&this.level>0?t3.drillUpButton=this.renderButton(r2,s2,i3):t3.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(t3){if(this.group){let e3=this.options,i3=e3.buttonTheme,s2=e3.position,r2="chart"===e3.relativeTo||"spacingBox"===e3.relativeTo?void 0:"plotBox",o2=this.group.getBBox(),l2=2*(i3.padding||0)+e3.buttonSpacing;s2.width=o2.width+l2,s2.height=o2.height+l2;let n2=p(s2);t3&&(n2.x+=t3),this.options.rtl&&(n2.x+=s2.width),n2.y=c(n2.y,this.yOffset,0),this.group.align(n2,true,r2)}}renderButton(t3,e3,i3){let s2=this,r2=this.chart,o2=s2.options,l2=p(o2.buttonTheme),n2=r2.renderer.button(s2.getButtonText(t3),e3,i3,(function(e4){let i4;let r3=o2.events&&o2.events.click;r3&&(i4=r3.call(s2,e4,t3)),false!==i4&&(o2.showFullPath?e4.newLevel=t3.level:e4.newLevel=s2.level-1,h(s2,"up",e4))}),l2).addClass("highcharts-breadcrumbs-button").add(s2.group);return r2.styledMode||n2.attr(o2.style),n2}renderSeparator(t3,e3){let i3=this.chart,s2=this.options.separator,r2=i3.renderer.label(s2.text,t3,e3,void 0,void 0,void 0,false).addClass("highcharts-breadcrumbs-separator").add(this.group);return i3.styledMode||r2.css(s2.style),r2}update(t3){p(true,this.options,t3),this.destroy(),this.isDirty=true}updateSingleButton(){let t3=this.chart,e3=this.list[this.level-1];t3.drillUpButton&&t3.drillUpButton.attr({text:this.getButtonText(e3)})}destroy(){this.destroySingleButton(),this.destroyListElements(true),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(t3){let e3=this.elementList;u(e3,((i3,s2)=>{(t3||!e3[s2].updated)&&((i3=e3[s2]).button&&i3.button.destroy(),i3.separator&&i3.separator.destroy(),delete i3.button,delete i3.separator,delete e3[s2])})),t3&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){u(this.elementList,(t3=>{t3.updated=false}))}updateListElements(){let t3=this.elementList,e3=this.options.buttonSpacing,i3=this.list,s2=this.options.rtl,r2=s2?-1:1,o2=function(t4,e4){return r2*t4.getBBox().width+r2*e4},l2=function(t4,e4,i4){t4.translate(e4-t4.getBBox().width,i4)},n2=this.group?o2(this.group,e3):e3,a2,h2;for(let d2=0,p2=i3.length;d2{t2.graphic=n=n&&n.destroy(),"function"==typeof s&&s()};Object.keys(i2).length?n.animate(i2,void 0,(()=>e3())):e3()}}}})),i(e,"Series/Treemap/TreemapPoint.js",[e["Series/DrawPointUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2,i2){let{pie:{prototype:{pointClass:s}},scatter:{prototype:{pointClass:r}}}=e2.seriesTypes,{extend:o,isNumber:l,pick:n}=i2;class a extends r{constructor(){super(...arguments),this.shapeType="rect"}draw(e3){t2.draw(this,e3)}getClassName(){let t3=this.series,e3=t3.options,i3=super.getClassName();return this.node.level<=t3.nodeMap[t3.rootNode].level&&this.node.children.length?i3+=" highcharts-above-level":this.node.isLeaf||n(e3.interactByLeaf,!e3.allowTraversingTree)?this.node.isLeaf||(i3+=" highcharts-internal-node"):i3+=" highcharts-internal-node-interactive",i3}isValid(){return!!(this.id||l(this.value))}setState(t3){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:"hover"===t3?1:0})}shouldDraw(){return l(this.plotY)&&null!==this.y}}return o(a.prototype,{setVisible:s.prototype.setVisible}),a})),i(e,"Series/Treemap/TreemapSeriesDefaults.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t2,e2){let{isString:i2}=e2;return{allowTraversingTree:false,animationLimit:250,borderRadius:0,showInLegend:false,marker:void 0,colorByPoint:false,dataLabels:{defer:false,enabled:true,formatter:function(){let t3=this&&this.point?this.point:{};return i2(t3.name)?t3.name:""},inside:true,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"{point.name}: {point.value}
"},ignoreHiddenPoint:true,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:false,levelIsConstant:true,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:t2.seriesTypes.heatmap?0:.1,halo:false,opacity:.75,shadow:false}},legendSymbol:"rectangle",traverseToLeaf:false}})),i(e,"Series/Treemap/TreemapUtilities.js",[],(function(){var t2;return(t2||(t2={})).recursive=function t3(e2,i2,s){let r=i2.call(s||this,e2);false!==r&&t3(r,i2,s)},t2})),i(e,"Series/TreeUtilities.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],(function(t2,e2){let{extend:i2,isArray:s,isNumber:r,isObject:o,merge:l,pick:n,relativeLength:a}=e2;return{getColor:function(e3,i3){let s2,r2,o2,l2,a2,h;let d=i3.index,p=i3.mapOptionsToLevel,u=i3.parentColor,c=i3.parentColorIndex,g=i3.series,m=i3.colors,v=i3.siblings,b=g.points,f=g.chart.options.chart;return e3&&(s2=b[e3.i],r2=p[e3.level]||{},s2&&r2.colorByPoint&&(l2=s2.index%(m?m.length:f.colorCount),o2=m&&m[l2]),g.chart.styledMode||(a2=n(s2&&s2.options.color,r2&&r2.color,o2,u&&(e4=>{let i4=r2&&r2.colorVariation;return i4&&"brightness"===i4.key&&d&&v?t2.parse(e4).brighten(i4.to*(d/v)).get():e4})(u),g.color)),h=n(s2&&s2.options.colorIndex,r2&&r2.colorIndex,l2,c,i3.colorIndex)),{color:a2,colorIndex:h}},getLevelOptions:function(t3){let e3,i3,a2,h,d,p;let u={};if(o(t3))for(h=r(t3.from)?t3.from:1,p=t3.levels,i3={},e3=o(t3.defaults)?t3.defaults:{},s(p)&&(i3=p.reduce(((t4,i4)=>{let s2,a3,d2;return o(i4)&&r(i4.level)&&(a3=n((d2=l({},i4)).levelIsConstant,e3.levelIsConstant),delete d2.levelIsConstant,delete d2.level,o(t4[s2=i4.level+(a3?0:h-1)])?l(true,t4[s2],d2):t4[s2]=d2),t4}),{})),d=r(t3.to)?t3.to:1,a2=0;a2<=d;a2++)u[a2]=l({},e3,o(i3[a2])?i3[a2]:{});return u},getNodeWidth:function(t3,e3){let{chart:i3,options:s2}=t3,{nodeDistance:r2=0,nodeWidth:o2=0}=s2,{plotSizeX:l2=1}=i3;if("auto"===o2){if("string"==typeof r2&&/%$/.test(r2))return l2/(e3+parseFloat(r2)/100*(e3-1));let t4=Number(r2);return(l2+t4)/(e3||1)-t4}return a(o2,l2)},setTreeValues:function t3(e3,s2){let r2=s2.before,o2=s2.idRoot,l2=s2.mapIdToNode[o2],a2=false!==s2.levelIsConstant,h=s2.points[e3.i],d=h&&h.options||{},p=[],u=0;e3.levelDynamic=e3.level-(a2?0:l2.level),e3.name=n(h&&h.name,""),e3.visible=o2===e3.id||true===s2.visible,"function"==typeof r2&&(e3=r2(e3,s2)),e3.children.forEach(((r3,o3)=>{let l3=i2({},s2);i2(l3,{index:o3,siblings:e3.children.length,visible:e3.visible}),r3=t3(r3,l3),p.push(r3),r3.visible&&(u+=r3.val)}));let c=n(d.value,u);return e3.visible=c>=0&&(u>0||e3.visible),e3.children=p,e3.childrenTotal=u,e3.isLeaf=e3.visible&&!u,e3.val=c,e3},updateRootId:function(t3){let e3,i3;return o(t3)&&(i3=o(t3.options)?t3.options:{},e3=n(t3.rootNode,i3.rootId,""),o(t3.userOptions)&&(t3.userOptions.rootId=e3),t3.rootNode=e3),e3}}})),i(e,"Series/Treemap/TreemapSeries.js",[e["Extensions/Breadcrumbs/Breadcrumbs.js"],e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Treemap/TreemapAlgorithmGroup.js"],e["Series/Treemap/TreemapNode.js"],e["Series/Treemap/TreemapPoint.js"],e["Series/Treemap/TreemapSeriesDefaults.js"],e["Series/Treemap/TreemapUtilities.js"],e["Series/TreeUtilities.js"],e["Core/Utilities.js"]],(function(t2,e2,i2,s,r,o,l,n,a,h,d,p){let{parse:u}=e2,{composed:c,noop:g}=s,{column:m,scatter:v}=r.seriesTypes,{getColor:b,getLevelOptions:f,updateRootId:y}=d,{addEvent:x,correctFloat:T,crisp:w2,defined:B,error:S,extend:C,fireEvent:L,isArray:P,isObject:A,isString:O,merge:R,pick:D,pushUnique:j,stableSort:M}=p,N=false;function I(){let t3;let e3=this.xAxis,i3=this.yAxis;e3&&i3&&(this.is("treemap")?(t3={endOnTick:false,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:false,title:void 0,tickPositions:[]},C(i3.options,t3),C(e3.options,t3),N=true):N&&(i3.setOptions(i3.userOptions),e3.setOptions(e3.userOptions),N=false))}class U extends v{static compose(t3){j(c,"TreemapSeries")&&x(t3,"afterBindAxes",I)}algorithmCalcPoints(t3,e3,i3,s2){let r2=i3.plot,o2=i3.elArr.length-1,l2,n2,a2,h2,d2=i3.lW,p2=i3.lH,u2,c2=0;for(let t4 of(e3?(d2=i3.nW,p2=i3.nH):u2=i3.elArr[o2],i3.elArr))(e3||c2a2.lP.lR&&this.algorithmCalcPoints(t3,false,a2,s2,r2),d2===n2&&this.algorithmCalcPoints(t3,true,a2,s2,r2),++d2;return s2}alignDataLabel(t3,e3,i3){let s2=i3.style;s2&&!B(s2.textOverflow)&&e3.text&&e3.getBBox().width>(e3.text.textWidth||0)&&e3.css({textOverflow:"ellipsis",width:s2.width+="px"}),m.prototype.alignDataLabel.apply(this,arguments),t3.dataLabel&&t3.dataLabel.attr({zIndex:(t3.node.zIndex||0)+1})}calculateChildrenAreas(t3,e3){let i3=this.options,s2=this.mapOptionsToLevel[t3.level+1],r2=D(this[s2&&s2.layoutAlgorithm]&&s2.layoutAlgorithm,i3.layoutAlgorithm),o2=i3.alternateStartingDirection,l2=t3.children.filter((t4=>!t4.ignore)),n2=[];s2&&s2.layoutStartingDirection&&(e3.direction="vertical"===s2.layoutStartingDirection?0:1),n2=this[r2](e3,l2);let a2=-1;for(let t4 of l2){let i4=n2[++a2];t4.values=R(i4,{val:t4.childrenTotal,direction:o2?1-e3.direction:e3.direction}),t4.pointValues=R(i4,{x:i4.x/this.axisRatio,y:100-i4.y-i4.height,width:i4.width/this.axisRatio}),t4.children.length&&this.calculateChildrenAreas(t4,t4.values)}}createList(t3){let e3=this.chart,i3=e3.breadcrumbs,s2=[];if(i3){let i4=0;s2.push({level:i4,levelOptions:e3.series[0]});let r2=t3.target.nodeMap[t3.newRootId],o2=[];for(;r2.parent||""===r2.parent;)o2.push(r2),r2=t3.target.nodeMap[r2.parent];for(let t4 of o2.reverse())s2.push({level:++i4,levelOptions:t4});s2.length<=1&&(s2.length=0)}return s2}drawDataLabels(){let t3,e3;let i3=this.mapOptionsToLevel;for(let s2 of this.points.filter((function(t4){return t4.node.visible})))e3=i3[s2.node.level],t3={style:{}},s2.node.isLeaf||(t3.enabled=false),e3&&e3.dataLabels&&(t3=R(t3,e3.dataLabels),this.hasDataLabels=()=>true),s2.shapeArgs&&(t3.style.width=s2.shapeArgs.width,s2.dataLabel&&s2.dataLabel.css({width:s2.shapeArgs.width+"px"})),s2.dlOptions=R(t3,s2.options.dataLabels);super.drawDataLabels()}drawPoints(t3=this.points){let e3=this.chart,i3=e3.renderer,s2=e3.styledMode,r2=this.options,o2=s2?{}:r2.shadow,l2=r2.borderRadius,n2=e3.pointCount{let e4=t3.userOptions;B(e4.allowDrillToNode)&&!B(e4.allowTraversingTree)&&(e4.allowTraversingTree=e4.allowDrillToNode,delete e4.allowDrillToNode),B(e4.drillUpButton)&&!B(e4.traverseUpButton)&&(e4.traverseUpButton=e4.drillUpButton,delete e4.drillUpButton)}));super.init(e3,i3),delete s2.opacity,s2.eventsToUnbind.push(o2),s2.options.allowTraversingTree&&(s2.eventsToUnbind.push(x(s2,"click",s2.onClickDrillToNode)),s2.eventsToUnbind.push(x(s2,"setRootNode",(function(t3){let e4=s2.chart;e4.breadcrumbs&&e4.breadcrumbs.updateProperties(s2.createList(t3))}))),s2.eventsToUnbind.push(x(s2,"update",(function(t3,e4){let i4=this.chart.breadcrumbs;i4&&t3.options.breadcrumbs&&i4.update(t3.options.breadcrumbs)}))),s2.eventsToUnbind.push(x(s2,"destroy",(function(t3){let e4=this.chart;e4.breadcrumbs&&!t3.keepEventsForUpdate&&(e4.breadcrumbs.destroy(),e4.breadcrumbs=void 0)})))),e3.breadcrumbs||(e3.breadcrumbs=new t2(e3,r2)),s2.eventsToUnbind.push(x(e3.breadcrumbs,"up",(function(t3){let e4=this.level-t3.newLevel;for(let t4=0;t4r2?0:t3.pointAttribs(e4)["stroke-width"]||0;for(let t4 of e3){let{pointValues:e4,visible:r3}=t4.node;if(e4&&r3){let{height:r4,width:l2,x:n2,y:a2}=e4,h2=o2(t4),d2=w2(i3.toPixels(n2,true),h2,true),p2=w2(i3.toPixels(n2+l2,true),h2,true),u2=w2(s2.toPixels(a2,true),h2,true),c2=w2(s2.toPixels(a2+r4,true),h2,true),g2={x:Math.min(d2,p2),y:Math.min(u2,c2),width:Math.abs(p2-d2),height:Math.abs(c2-u2)};t4.plotX=g2.x+g2.width/2,t4.plotY=g2.y+g2.height/2,t4.shapeArgs=g2}else delete t4.plotX,delete t4.plotY}}setRootNode(t3,e3,i3){L(this,"setRootNode",C({newRootId:t3,previousRootId:this.rootNode,redraw:D(e3,true),series:this},i3),(function(t4){let e4=t4.series;e4.idPreviousRoot=t4.previousRootId,e4.rootNode=t4.newRootId,e4.isDirty=true,t4.redraw&&e4.chart.redraw()}))}setState(t3){this.options.inactiveOtherPoints=true,super.setState(t3,false),this.options.inactiveOtherPoints=false}setTreeValues(t3){let e3=this.options,i3=this.rootNode,s2=this.nodeMap[i3],r2="boolean"!=typeof e3.levelIsConstant||e3.levelIsConstant,o2=[],l2=this.points[t3.i],n2=0;for(let e4 of t3.children)e4=this.setTreeValues(e4),o2.push(e4),e4.ignore||(n2+=e4.val);M(o2,((t4,e4)=>(t4.sortIndex||0)-(e4.sortIndex||0)));let a2=D(l2&&l2.options.value,n2);return l2&&(l2.value=a2),C(t3,{children:o2,childrenTotal:n2,ignore:!(D(l2&&l2.visible,true)&&a2>0),isLeaf:t3.visible&&!n2,levelDynamic:t3.level-(r2?0:s2.level),name:D(l2&&l2.name,""),sortIndex:D(l2&&l2.sortIndex,-a2),val:a2}),t3}sliceAndDice(t3,e3){return this.algorithmFill(true,t3,e3)}squarified(t3,e3){return this.algorithmLowAspectRatio(true,t3,e3)}strip(t3,e3){return this.algorithmLowAspectRatio(false,t3,e3)}stripes(t3,e3){return this.algorithmFill(false,t3,e3)}translate(){let t3=this,e3=t3.options,i3=y(t3),s2,r2,o2,l2;super.translate();let n2=t3.tree=t3.getTree();s2=t3.nodeMap[i3],""===i3||s2||(t3.setRootNode("",false),i3=t3.rootNode,s2=t3.nodeMap[i3]),t3.mapOptionsToLevel=f({from:s2.level+1,levels:e3.levels,to:n2.height,defaults:{levelIsConstant:t3.options.levelIsConstant,colorByPoint:e3.colorByPoint}}),h.recursive(t3.nodeMap[t3.rootNode],(e4=>{let i4=e4.parent,s3=false;return e4.visible=true,(i4||""===i4)&&(s3=t3.nodeMap[i4]),s3})),h.recursive(t3.nodeMap[t3.rootNode].children,(t4=>{let e4=false;for(let i4 of t4)i4.visible=true,i4.children.length&&(e4=(e4||[]).concat(i4.children));return e4})),t3.setTreeValues(n2),t3.axisRatio=t3.xAxis.len/t3.yAxis.len,t3.nodeMap[""].pointValues=r2={x:0,y:0,width:100,height:100},t3.nodeMap[""].values=o2=R(r2,{width:r2.width*t3.axisRatio,direction:"vertical"===e3.layoutStartingDirection?0:1,val:n2.val}),t3.calculateChildrenAreas(n2,o2),t3.colorAxis||e3.colorByPoint||t3.setColorRecursive(t3.tree),e3.allowTraversingTree&&(l2=s2.pointValues,t3.xAxis.setExtremes(l2.x,l2.x+l2.width,false),t3.yAxis.setExtremes(l2.y,l2.y+l2.height,false),t3.xAxis.setScale(),t3.yAxis.setScale()),t3.setPointValues()}}return U.defaultOptions=R(v.defaultOptions,a),C(U.prototype,{buildKDTree:g,colorAttribs:i2.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:true,getExtremesFromAll:true,getSymbol:g,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:n,NodeClass:l,trackerGroups:["group","dataLabelsGroup"],utils:h}),i2.compose(U),r.registerSeriesType("treemap",U),U})),i(e,"masters/modules/treemap.src.js",[e["Core/Globals.js"],e["Extensions/Breadcrumbs/Breadcrumbs.js"],e["Series/Treemap/TreemapSeries.js"]],(function(t2,e2,i2){return t2.Breadcrumbs=t2.Breadcrumbs||e2,t2.Breadcrumbs.compose(t2.Chart,t2.defaultOptions),i2.compose(t2.Series),t2}))}))})(treemap$1);var treemapExports=treemap$1.exports;const treemap=getDefaultExportFromCjs(treemapExports);const TreemapChart=({aria:aria={},data:data={},chartData:chartData,colors:colors2,customOptions:customOptions={},dark:dark=false,drillable:drillable=false,grouped:grouped=false,height:height,htmlOptions:htmlOptions={},id:id,title:title="",tooltipHtml:tooltipHtml='{point.name}: {point.value}',type:type="treemap",...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts$1.setOptions(highchartsDarkTheme):Highcharts$1.setOptions(highchartsTheme)};treemap(Highcharts$1);setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},credits:false,series:[{data:chartData}],plotOptions:{treemap:{tooltip:{pointFormat:tooltipHtml},allowTraversingTree:drillable,colorByPoint:!grouped,colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors}}};const[options2,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx$1(HighchartsReact,{containerProps:{className:classnames(globalProps(props),"pb_treemap_chart"),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts$1,options:options2})};function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2},_typeof(o)}function toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==_typeof(i)?i:String(i)}function _defineProperty(obj,key,value){key=toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable}))),t.push.apply(t,o)}return t}function _objectSpread2(e){for(var r=1;rarr.length)len=arr.length;for(var i=0,arr2=new Array(len);i=0)continue;target[key]=source[key]}return target}function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key]}}return target}var _excluded$6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(_ref3){var _ref$defaultInputValu=_ref3.defaultInputValue,defaultInputValue=_ref$defaultInputValu===void 0?"":_ref$defaultInputValu,_ref$defaultMenuIsOpe=_ref3.defaultMenuIsOpen,defaultMenuIsOpen=_ref$defaultMenuIsOpe===void 0?false:_ref$defaultMenuIsOpe,_ref$defaultValue=_ref3.defaultValue,defaultValue=_ref$defaultValue===void 0?null:_ref$defaultValue,propsInputValue=_ref3.inputValue,propsMenuIsOpen=_ref3.menuIsOpen,propsOnChange=_ref3.onChange,propsOnInputChange=_ref3.onInputChange,propsOnMenuClose=_ref3.onMenuClose,propsOnMenuOpen=_ref3.onMenuOpen,propsValue=_ref3.value,restSelectProps=_objectWithoutProperties(_ref3,_excluded$6);var _useState=useState(propsInputValue!==void 0?propsInputValue:defaultInputValue),_useState2=_slicedToArray(_useState,2),stateInputValue=_useState2[0],setStateInputValue=_useState2[1];var _useState3=useState(propsMenuIsOpen!==void 0?propsMenuIsOpen:defaultMenuIsOpen),_useState4=_slicedToArray(_useState3,2),stateMenuIsOpen=_useState4[0],setStateMenuIsOpen=_useState4[1];var _useState5=useState(propsValue!==void 0?propsValue:defaultValue),_useState6=_slicedToArray(_useState5,2),stateValue=_useState6[0],setStateValue=_useState6[1];var onChange2=useCallback((function(value2,actionMeta){if(typeof propsOnChange==="function"){propsOnChange(value2,actionMeta)}setStateValue(value2)}),[propsOnChange]);var onInputChange=useCallback((function(value2,actionMeta){var newValue;if(typeof propsOnInputChange==="function"){newValue=propsOnInputChange(value2,actionMeta)}setStateInputValue(newValue!==void 0?newValue:value2)}),[propsOnInputChange]);var onMenuOpen=useCallback((function(){if(typeof propsOnMenuOpen==="function"){propsOnMenuOpen()}setStateMenuIsOpen(true)}),[propsOnMenuOpen]);var onMenuClose=useCallback((function(){if(typeof propsOnMenuClose==="function"){propsOnMenuClose()}setStateMenuIsOpen(false)}),[propsOnMenuClose]);var inputValue=propsInputValue!==void 0?propsInputValue:stateInputValue;var menuIsOpen=propsMenuIsOpen!==void 0?propsMenuIsOpen:stateMenuIsOpen;var value=propsValue!==void 0?propsValue:stateValue;return _objectSpread2(_objectSpread2({},restSelectProps),{},{inputValue:inputValue,menuIsOpen:menuIsOpen,onChange:onChange2,onInputChange:onInputChange,onMenuClose:onMenuClose,onMenuOpen:onMenuOpen,value:value})}function _extends(){_extends=Object.assign?Object.assign.bind():function(target){for(var i=1;i0?charat(characters,--position):0;if(column--,character===10)column=1,line--;return character}function next(){character=position2||token(character)>3?"":" "}function escaping(index2,count2){while(--count2&&next())if(character<48||character>102||character>57&&character<65||character>70&&character<97)break;return slice(index2,caret()+(count2<6&&peek()==32&&next()==32))}function delimiter(type){while(next())switch(character){case type:return position;case 34:case 39:if(type!==34&&type!==39)delimiter(character);break;case 40:if(type===41)delimiter(type);break;case 92:next();break}return position}function commenter(type,index2){while(next())if(type+character===47+10)break;else if(type+character===42+42&&peek()===47)break;return"/*"+slice(index2,position-1)+"*"+from(type===47?type:next())}function identifier(index2){while(!token(peek()))next();return slice(index2,position)}function compile(value){return dealloc(parse("",null,null,null,[""],value=alloc(value),0,[0],value))}function parse(value,root,parent,rule,rules,rulesets,pseudo,points,declarations){var index2=0;var offset2=0;var length2=pseudo;var atrule=0;var property=0;var previous=0;var variable=1;var scanning=1;var ampersand=1;var character2=0;var type="";var props=rules;var children=rulesets;var reference=rule;var characters2=type;while(scanning)switch(previous=character2,character2=next()){case 40:if(previous!=108&&charat(characters2,length2-1)==58){if(indexof(characters2+=replace(delimit(character2),"&","&\f"),"&\f")!=-1)ampersand=-1;break}case 34:case 39:case 91:characters2+=delimit(character2);break;case 9:case 10:case 13:case 32:characters2+=whitespace(previous);break;case 92:characters2+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),root,parent),declarations);break;default:characters2+="/"}break;case 123*variable:points[index2++]=strlen(characters2)*ampersand;case 125*variable:case 59:case 0:switch(character2){case 0:case 125:scanning=0;case 59+offset2:if(ampersand==-1)characters2=replace(characters2,/\f/g,"");if(property>0&&strlen(characters2)-length2)append(property>32?declaration(characters2+";",rule,parent,length2-1):declaration(replace(characters2," ","")+";",rule,parent,length2-2),declarations);break;case 59:characters2+=";";default:append(reference=ruleset(characters2,root,parent,index2,offset2,rules,points,type,props=[],children=[],length2),rulesets);if(character2===123)if(offset2===0)parse(characters2,root,reference,reference,props,rulesets,length2,points,children);else switch(atrule===99&&charat(characters2,3)===110?100:atrule){case 100:case 108:case 109:case 115:parse(value,reference,reference,rule&&append(ruleset(value,reference,reference,0,0,rules,points,type,rules,props=[],length2),children),rules,children,length2,points,rule?props:children);break;default:parse(characters2,reference,reference,reference,[""],children,0,points,children)}}index2=offset2=property=0,variable=ampersand=1,type=characters2="",length2=pseudo;break;case 58:length2=1+strlen(characters2),property=previous;default:if(variable<1){if(character2==123)--variable;else if(character2==125&&variable++==0&&prev()==125)continue}switch(characters2+=from(character2),character2*variable){case 38:ampersand=offset2>0?1:(characters2+="\f",-1);break;case 44:points[index2++]=(strlen(characters2)-1)*ampersand,ampersand=1;break;case 64:if(peek()===45)characters2+=delimit(next());atrule=peek(),offset2=length2=strlen(type=characters2+=identifier(caret())),character2++;break;case 45:if(previous===45&&strlen(characters2)==2)variable=0}}return rulesets}function ruleset(value,root,parent,index2,offset2,rules,points,type,props,children,length2){var post=offset2-1;var rule=offset2===0?rules:[""];var size=sizeof(rule);for(var i=0,j=0,k=0;i0?rule[x]+" "+y:replace(y,/&\f/g,rule[x])))props[k++]=z;return node(value,root,parent,offset2===0?RULESET:type,props,children,length2)}function comment(value,root,parent){return node(value,root,parent,COMMENT,from(char()),substr(value,2,-2),0)}function declaration(value,root,parent,length2){return node(value,root,parent,DECLARATION,substr(value,0,length2),substr(value,length2+1,-1),length2)}function serialize(children,callback){var output="";var length2=sizeof(children);for(var i=0;i6)switch(charat(value,length2+1)){case 109:if(charat(value,length2+4)!==45)break;case 102:return replace(value,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(value,length2+3)==108?"$3":"$2-$3"))+value;case 115:return~indexof(value,"stretch")?prefix(replace(value,"stretch","fill-available"),length2)+value:value}break;case 4949:if(charat(value,length2+1)!==115)break;case 6444:switch(charat(value,strlen(value)-3-(~indexof(value,"!important")&&10))){case 107:return replace(value,":",":"+WEBKIT)+value;case 101:return replace(value,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(value,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+value}break;case 5936:switch(charat(value,length2+11)){case 114:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb")+value;case 108:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"tb-rl")+value;case 45:return WEBKIT+value+MS+replace(value,/[svh]\w+-[tblr]{2}/,"lr")+value}return WEBKIT+value+MS+value+value}return value}var prefixer=function prefixer2(element,index2,children,callback){if(element.length>-1){if(!element["return"])switch(element.type){case DECLARATION:element["return"]=prefix(element.value,element.length);break;case KEYFRAMES:return serialize([copy(element,{value:replace(element.value,"@","@"+WEBKIT)})],callback);case RULESET:if(element.length)return combine(element.props,(function(value){switch(match(value,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(element,{props:[replace(value,/:(read-\w+)/,":"+MOZ+"$1")]})],callback);case"::placeholder":return serialize([copy(element,{props:[replace(value,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(element,{props:[replace(value,/:(plac\w+)/,MS+"input-$1")]})],callback)}return""}))}}};var defaultStylisPlugins=[prefixer];var createCache=function createCache2(options2){var key=options2.key;if(key==="css"){var ssrStyles=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(ssrStyles,(function(node2){var dataEmotionAttribute=node2.getAttribute("data-emotion");if(dataEmotionAttribute.indexOf(" ")===-1){return}document.head.appendChild(node2);node2.setAttribute("data-s","")}))}var stylisPlugins=options2.stylisPlugins||defaultStylisPlugins;var inserted={};var container;var nodesToHydrate=[];{container=options2.container||document.head;Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+key+' "]'),(function(node2){var attrib=node2.getAttribute("data-emotion").split(" ");for(var i=1;i=4;++i,len-=4){k=str.charCodeAt(i)&255|(str.charCodeAt(++i)&255)<<8|(str.charCodeAt(++i)&255)<<16|(str.charCodeAt(++i)&255)<<24;k=(k&65535)*1540483477+((k>>>16)*59797<<16);k^=k>>>24;h=(k&65535)*1540483477+((k>>>16)*59797<<16)^(h&65535)*1540483477+((h>>>16)*59797<<16)}switch(len){case 3:h^=(str.charCodeAt(i+2)&255)<<16;case 2:h^=(str.charCodeAt(i+1)&255)<<8;case 1:h^=str.charCodeAt(i)&255;h=(h&65535)*1540483477+((h>>>16)*59797<<16)}h^=h>>>13;h=(h&65535)*1540483477+((h>>>16)*59797<<16);return((h^h>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var hyphenateRegex=/[A-Z]|^ms/g;var animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var isCustomProperty=function isCustomProperty2(property){return property.charCodeAt(1)===45};var isProcessableValue=function isProcessableValue2(value){return value!=null&&typeof value!=="boolean"};var processStyleName=memoize((function(styleName){return isCustomProperty(styleName)?styleName:styleName.replace(hyphenateRegex,"-$&").toLowerCase()}));var processStyleValue=function processStyleValue2(key,value){switch(key){case"animation":case"animationName":{if(typeof value==="string"){return value.replace(animationRegex,(function(match2,p1,p2){cursor={name:p1,styles:p2,next:cursor};return p1}))}}}if(unitlessKeys[key]!==1&&!isCustomProperty(key)&&typeof value==="number"&&value!==0){return value+"px"}return value};var noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(mergedProps,registered,interpolation){if(interpolation==null){return""}if(interpolation.__emotion_styles!==void 0){return interpolation}switch(typeof interpolation){case"boolean":{return""}case"object":{if(interpolation.anim===1){cursor={name:interpolation.name,styles:interpolation.styles,next:cursor};return interpolation.name}if(interpolation.styles!==void 0){var next2=interpolation.next;if(next2!==void 0){while(next2!==void 0){cursor={name:next2.name,styles:next2.styles,next:cursor};next2=next2.next}}var styles=interpolation.styles+";";return styles}return createStringFromObject(mergedProps,registered,interpolation)}case"function":{if(mergedProps!==void 0){var previousCursor=cursor;var result=interpolation(mergedProps);cursor=previousCursor;return handleInterpolation(mergedProps,registered,result)}break}}{return interpolation}}function createStringFromObject(mergedProps,registered,obj){var string="";if(Array.isArray(obj)){for(var i=0;i({x:v,y:v});function getNodeName(node2){if(isNode(node2)){return(node2.nodeName||"").toLowerCase()}return"#document"}function getWindow(node2){var _node$ownerDocument;return(node2==null||(_node$ownerDocument=node2.ownerDocument)==null?void 0:_node$ownerDocument.defaultView)||window}function getDocumentElement(node2){var _ref3;return(_ref3=(isNode(node2)?node2.ownerDocument:node2.document)||window.document)==null?void 0:_ref3.documentElement}function isNode(value){return value instanceof Node||value instanceof getWindow(value).Node}function isElement(value){return value instanceof Element||value instanceof getWindow(value).Element}function isHTMLElement(value){return value instanceof HTMLElement||value instanceof getWindow(value).HTMLElement}function isShadowRoot(value){if(typeof ShadowRoot==="undefined"){return false}return value instanceof ShadowRoot||value instanceof getWindow(value).ShadowRoot}function isOverflowElement(element){const{overflow:overflow,overflowX:overflowX,overflowY:overflowY,display:display}=getComputedStyle$1(element);return/auto|scroll|overlay|hidden|clip/.test(overflow+overflowY+overflowX)&&!["inline","contents"].includes(display)}function isWebKit(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(node2){return["html","body","#document"].includes(getNodeName(node2))}function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element)}function getParentNode(node2){if(getNodeName(node2)==="html"){return node2}const result=node2.assignedSlot||node2.parentNode||isShadowRoot(node2)&&node2.host||getDocumentElement(node2);return isShadowRoot(result)?result.host:result}function getNearestOverflowAncestor(node2){const parentNode=getParentNode(node2);if(isLastTraversableNode(parentNode)){return node2.ownerDocument?node2.ownerDocument.body:node2.body}if(isHTMLElement(parentNode)&&isOverflowElement(parentNode)){return parentNode}return getNearestOverflowAncestor(parentNode)}function getOverflowAncestors(node2,list,traverseIframes){var _node$ownerDocument2;if(list===void 0){list=[]}if(traverseIframes===void 0){traverseIframes=true}const scrollableAncestor=getNearestOverflowAncestor(node2);const isBody=scrollableAncestor===((_node$ownerDocument2=node2.ownerDocument)==null?void 0:_node$ownerDocument2.body);const win=getWindow(scrollableAncestor);if(isBody){return list.concat(win,win.visualViewport||[],isOverflowElement(scrollableAncestor)?scrollableAncestor:[],win.frameElement&&traverseIframes?getOverflowAncestors(win.frameElement):[])}return list.concat(scrollableAncestor,getOverflowAncestors(scrollableAncestor,[],traverseIframes))}function getCssDimensions(element){const css4=getComputedStyle$1(element);let width=parseFloat(css4.width)||0;let height=parseFloat(css4.height)||0;const hasOffset=isHTMLElement(element);const offsetWidth=hasOffset?element.offsetWidth:width;const offsetHeight=hasOffset?element.offsetHeight:height;const shouldFallback=round(width)!==offsetWidth||round(height)!==offsetHeight;if(shouldFallback){width=offsetWidth;height=offsetHeight}return{width:width,height:height,$:shouldFallback}}function unwrapElement(element){return!isElement(element)?element.contextElement:element}function getScale(element){const domElement=unwrapElement(element);if(!isHTMLElement(domElement)){return createCoords(1)}const rect=domElement.getBoundingClientRect();const{width:width,height:height,$:$}=getCssDimensions(domElement);let x=($?round(rect.width):rect.width)/width;let y=($?round(rect.height):rect.height)/height;if(!x||!Number.isFinite(x)){x=1}if(!y||!Number.isFinite(y)){y=1}return{x:x,y:y}}const noOffsets=createCoords(0);function getVisualOffsets(element){const win=getWindow(element);if(!isWebKit()||!win.visualViewport){return noOffsets}return{x:win.visualViewport.offsetLeft,y:win.visualViewport.offsetTop}}function shouldAddVisualOffsets(element,isFixed,floatingOffsetParent){{return false}}function getBoundingClientRect(element,includeScale,isFixedStrategy,offsetParent){if(includeScale===void 0){includeScale=false}const clientRect=element.getBoundingClientRect();const domElement=unwrapElement(element);let scale=createCoords(1);if(includeScale){{scale=getScale(element)}}const visualOffsets=shouldAddVisualOffsets()?getVisualOffsets(domElement):createCoords(0);let x=(clientRect.left+visualOffsets.x)/scale.x;let y=(clientRect.top+visualOffsets.y)/scale.y;let width=clientRect.width/scale.x;let height=clientRect.height/scale.y;if(domElement){const win=getWindow(domElement);const offsetWin=offsetParent;let currentIFrame=win.frameElement;while(currentIFrame&&offsetParent&&offsetWin!==win){const iframeScale=getScale(currentIFrame);const iframeRect=currentIFrame.getBoundingClientRect();const css4=getComputedStyle$1(currentIFrame);const left=iframeRect.left+(currentIFrame.clientLeft+parseFloat(css4.paddingLeft))*iframeScale.x;const top=iframeRect.top+(currentIFrame.clientTop+parseFloat(css4.paddingTop))*iframeScale.y;x*=iframeScale.x;y*=iframeScale.y;width*=iframeScale.x;height*=iframeScale.y;x+=left;y+=top;currentIFrame=getWindow(currentIFrame).frameElement}}return rectToClientRect({width:width,height:height,x:x,y:y})}function observeMove(element,onMove){let io=null;let timeoutId;const root=getDocumentElement(element);function cleanup(){clearTimeout(timeoutId);io&&io.disconnect();io=null}function refresh(skip,threshold){if(skip===void 0){skip=false}if(threshold===void 0){threshold=1}cleanup();const{left:left,top:top,width:width,height:height}=element.getBoundingClientRect();if(!skip){onMove()}if(!width||!height){return}const insetTop=floor(top);const insetRight=floor(root.clientWidth-(left+width));const insetBottom=floor(root.clientHeight-(top+height));const insetLeft=floor(left);const rootMargin=-insetTop+"px "+-insetRight+"px "+-insetBottom+"px "+-insetLeft+"px";const options2={rootMargin:rootMargin,threshold:max(0,min(1,threshold))||1};let isFirstUpdate=true;function handleObserve(entries){const ratio=entries[0].intersectionRatio;if(ratio!==threshold){if(!isFirstUpdate){return refresh()}if(!ratio){timeoutId=setTimeout((()=>{refresh(false,1e-7)}),100)}else{refresh(false,ratio)}}isFirstUpdate=false}try{io=new IntersectionObserver(handleObserve,{...options2,root:root.ownerDocument})}catch(e){io=new IntersectionObserver(handleObserve,options2)}io.observe(element)}refresh(true);return cleanup}function autoUpdate(reference,floating,update,options2){if(options2===void 0){options2={}}const{ancestorScroll:ancestorScroll=true,ancestorResize:ancestorResize=true,elementResize:elementResize=typeof ResizeObserver==="function",layoutShift:layoutShift=typeof IntersectionObserver==="function",animationFrame:animationFrame=false}=options2;const referenceEl=unwrapElement(reference);const ancestors=ancestorScroll||ancestorResize?[...referenceEl?getOverflowAncestors(referenceEl):[],...getOverflowAncestors(floating)]:[];ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.addEventListener("scroll",update,{passive:true});ancestorResize&&ancestor.addEventListener("resize",update)}));const cleanupIo=referenceEl&&layoutShift?observeMove(referenceEl,update):null;let reobserveFrame=-1;let resizeObserver=null;if(elementResize){resizeObserver=new ResizeObserver((_ref3=>{let[firstEntry]=_ref3;if(firstEntry&&firstEntry.target===referenceEl&&resizeObserver){resizeObserver.unobserve(floating);cancelAnimationFrame(reobserveFrame);reobserveFrame=requestAnimationFrame((()=>{resizeObserver&&resizeObserver.observe(floating)}))}update()}));if(referenceEl&&!animationFrame){resizeObserver.observe(referenceEl)}resizeObserver.observe(floating)}let frameId;let prevRefRect=animationFrame?getBoundingClientRect(reference):null;if(animationFrame){frameLoop()}function frameLoop(){const nextRefRect=getBoundingClientRect(reference);if(prevRefRect&&(nextRefRect.x!==prevRefRect.x||nextRefRect.y!==prevRefRect.y||nextRefRect.width!==prevRefRect.width||nextRefRect.height!==prevRefRect.height)){update()}prevRefRect=nextRefRect;frameId=requestAnimationFrame(frameLoop)}update();return()=>{ancestors.forEach((ancestor=>{ancestorScroll&&ancestor.removeEventListener("scroll",update);ancestorResize&&ancestor.removeEventListener("resize",update)}));cleanupIo&&cleanupIo();resizeObserver&&resizeObserver.disconnect();resizeObserver=null;if(animationFrame){cancelAnimationFrame(frameId)}}}var index=useLayoutEffect;var _excluded$4=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"];var noop=function noop2(){};function applyPrefixToName(prefix2,name2){if(!name2){return prefix2}else if(name2[0]==="-"){return prefix2+name2}else{return prefix2+"__"+name2}}function classNames(prefix2,state){for(var _len=arguments.length,classNameList=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){classNameList[_key-2]=arguments[_key]}var arr=[].concat(classNameList);if(state&&prefix2){for(var key in state){if(state.hasOwnProperty(key)&&state[key]){arr.push("".concat(applyPrefixToName(prefix2,key)))}}}return arr.filter((function(i){return i})).map((function(i){return String(i).trim()})).join(" ")}var cleanValue=function cleanValue2(value){if(isArray(value))return value.filter(Boolean);if(_typeof(value)==="object"&&value!==null)return[value];return[]};var cleanCommonProps=function cleanCommonProps2(props){props.className;props.clearValue;props.cx;props.getStyles;props.getClassNames;props.getValue;props.hasValue;props.isMulti;props.isRtl;props.options;props.selectOption;props.selectProps;props.setValue;props.theme;var innerProps=_objectWithoutProperties(props,_excluded$4);return _objectSpread2({},innerProps)};var getStyleProps=function getStyleProps2(props,name2,classNamesState){var cx=props.cx,getStyles=props.getStyles,getClassNames=props.getClassNames,className=props.className;return{css:getStyles(name2,props),className:cx(classNamesState!==null&&classNamesState!==void 0?classNamesState:{},getClassNames(name2,props),className)}};function handleInputChange(inputValue,actionMeta,onInputChange){if(onInputChange){var _newValue=onInputChange(inputValue,actionMeta);if(typeof _newValue==="string")return _newValue}return inputValue}function isDocumentElement(el){return[document.documentElement,document.body,window].indexOf(el)>-1}function normalizedHeight(el){if(isDocumentElement(el)){return window.innerHeight}return el.clientHeight}function getScrollTop(el){if(isDocumentElement(el)){return window.pageYOffset}return el.scrollTop}function scrollTo(el,top){if(isDocumentElement(el)){window.scrollTo(0,top);return}el.scrollTop=top}function getScrollParent(element){var style=getComputedStyle(element);var excludeStaticParent=style.position==="absolute";var overflowRx=/(auto|scroll)/;if(style.position==="fixed")return document.documentElement;for(var parent=element;parent=parent.parentElement;){style=getComputedStyle(parent);if(excludeStaticParent&&style.position==="static"){continue}if(overflowRx.test(style.overflow+style.overflowY+style.overflowX)){return parent}}return document.documentElement}function easeOutCubic(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b}function animatedScrollTo(element,to){var duration=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200;var callback=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop;var start=getScrollTop(element);var change=to-start;var increment=10;var currentTime=0;function animateScroll(){currentTime+=increment;var val=easeOutCubic(currentTime,start,change,duration);scrollTo(element,val);if(currentTimemenuRect.bottom){scrollTo(menuEl,Math.min(focusedEl.offsetTop+focusedEl.clientHeight-menuEl.offsetHeight+overScroll,menuEl.scrollHeight))}else if(focusedRect.top-overScroll1?_len2-1:0),_key2=1;_key2<_len2;_key2++){properties[_key2-1]=arguments[_key2]}var propsMap=Object.entries(propsObj).filter((function(_ref3){var _ref22=_slicedToArray(_ref3,1),key=_ref22[0];return!properties.includes(key)}));return propsMap.reduce((function(newProps,_ref3){var _ref4=_slicedToArray(_ref3,2),key=_ref4[0],val=_ref4[1];newProps[key]=val;return newProps}),{})};var _excluded$3=["children","innerProps"],_excluded2$1=["children","innerProps"];function getMenuPlacement(_ref3){var preferredMaxHeight=_ref3.maxHeight,menuEl=_ref3.menuEl,minHeight=_ref3.minHeight,preferredPlacement=_ref3.placement,shouldScroll=_ref3.shouldScroll,isFixedPosition=_ref3.isFixedPosition,controlHeight2=_ref3.controlHeight;var scrollParent=getScrollParent(menuEl);var defaultState={placement:"bottom",maxHeight:preferredMaxHeight};if(!menuEl||!menuEl.offsetParent)return defaultState;var _scrollParent$getBoun=scrollParent.getBoundingClientRect(),scrollHeight=_scrollParent$getBoun.height;var _menuEl$getBoundingCl=menuEl.getBoundingClientRect(),menuBottom=_menuEl$getBoundingCl.bottom,menuHeight=_menuEl$getBoundingCl.height,menuTop=_menuEl$getBoundingCl.top;var _menuEl$offsetParent$=menuEl.offsetParent.getBoundingClientRect(),containerTop=_menuEl$offsetParent$.top;var viewHeight=isFixedPosition?window.innerHeight:normalizedHeight(scrollParent);var scrollTop=getScrollTop(scrollParent);var marginBottom=parseInt(getComputedStyle(menuEl).marginBottom,10);var marginTop=parseInt(getComputedStyle(menuEl).marginTop,10);var viewSpaceAbove=containerTop-marginTop;var viewSpaceBelow=viewHeight-menuTop;var scrollSpaceAbove=viewSpaceAbove+scrollTop;var scrollSpaceBelow=scrollHeight-scrollTop-menuTop;var scrollDown=menuBottom-viewHeight+scrollTop+marginBottom;var scrollUp=scrollTop+menuTop-marginTop;var scrollDuration=160;switch(preferredPlacement){case"auto":case"bottom":if(viewSpaceBelow>=menuHeight){return{placement:"bottom",maxHeight:preferredMaxHeight}}if(scrollSpaceBelow>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration)}return{placement:"bottom",maxHeight:preferredMaxHeight}}if(!isFixedPosition&&scrollSpaceBelow>=minHeight||isFixedPosition&&viewSpaceBelow>=minHeight){if(shouldScroll){animatedScrollTo(scrollParent,scrollDown,scrollDuration)}var constrainedHeight=isFixedPosition?viewSpaceBelow-marginBottom:scrollSpaceBelow-marginBottom;return{placement:"bottom",maxHeight:constrainedHeight}}if(preferredPlacement==="auto"||isFixedPosition){var _constrainedHeight=preferredMaxHeight;var spaceAbove=isFixedPosition?viewSpaceAbove:scrollSpaceAbove;if(spaceAbove>=minHeight){_constrainedHeight=Math.min(spaceAbove-marginBottom-controlHeight2,preferredMaxHeight)}return{placement:"top",maxHeight:_constrainedHeight}}if(preferredPlacement==="bottom"){if(shouldScroll){scrollTo(scrollParent,scrollDown)}return{placement:"bottom",maxHeight:preferredMaxHeight}}break;case"top":if(viewSpaceAbove>=menuHeight){return{placement:"top",maxHeight:preferredMaxHeight}}if(scrollSpaceAbove>=menuHeight&&!isFixedPosition){if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration)}return{placement:"top",maxHeight:preferredMaxHeight}}if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){var _constrainedHeight2=preferredMaxHeight;if(!isFixedPosition&&scrollSpaceAbove>=minHeight||isFixedPosition&&viewSpaceAbove>=minHeight){_constrainedHeight2=isFixedPosition?viewSpaceAbove-marginTop:scrollSpaceAbove-marginTop}if(shouldScroll){animatedScrollTo(scrollParent,scrollUp,scrollDuration)}return{placement:"top",maxHeight:_constrainedHeight2}}return{placement:"bottom",maxHeight:preferredMaxHeight};default:throw new Error('Invalid placement provided "'.concat(preferredPlacement,'".'))}return defaultState}function alignToControl(placement){var placementToCSSProp={bottom:"top",top:"bottom"};return placement?placementToCSSProp[placement]:"bottom"}var coercePlacement=function coercePlacement2(p){return p==="auto"?"bottom":p};var menuCSS=function menuCSS2(_ref22,unstyled){var _objectSpread2$1;var placement=_ref22.placement,_ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,spacing2=_ref2$theme.spacing,colors2=_ref2$theme.colors;return _objectSpread2((_objectSpread2$1={label:"menu"},_defineProperty(_objectSpread2$1,alignToControl(placement),"100%"),_defineProperty(_objectSpread2$1,"position","absolute"),_defineProperty(_objectSpread2$1,"width","100%"),_defineProperty(_objectSpread2$1,"zIndex",1),_objectSpread2$1),unstyled?{}:{backgroundColor:colors2.neutral0,borderRadius:borderRadius2,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:spacing2.menuGutter,marginTop:spacing2.menuGutter})};var PortalPlacementContext=createContext(null);var MenuPlacer=function MenuPlacer2(props){var children=props.children,minMenuHeight=props.minMenuHeight,maxMenuHeight=props.maxMenuHeight,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition,menuShouldScrollIntoView=props.menuShouldScrollIntoView,theme=props.theme;var _ref3=useContext(PortalPlacementContext)||{},setPortalPlacement=_ref3.setPortalPlacement;var ref=useRef(null);var _useState=useState(maxMenuHeight),_useState2=_slicedToArray(_useState,2),maxHeight=_useState2[0],setMaxHeight=_useState2[1];var _useState3=useState(null),_useState4=_slicedToArray(_useState3,2),placement=_useState4[0],setPlacement=_useState4[1];var controlHeight2=theme.spacing.controlHeight;index((function(){var menuEl=ref.current;if(!menuEl)return;var isFixedPosition=menuPosition==="fixed";var shouldScroll=menuShouldScrollIntoView&&!isFixedPosition;var state=getMenuPlacement({maxHeight:maxMenuHeight,menuEl:menuEl,minHeight:minMenuHeight,placement:menuPlacement,shouldScroll:shouldScroll,isFixedPosition:isFixedPosition,controlHeight:controlHeight2});setMaxHeight(state.maxHeight);setPlacement(state.placement);setPortalPlacement===null||setPortalPlacement===void 0?void 0:setPortalPlacement(state.placement)}),[maxMenuHeight,menuPlacement,menuPosition,menuShouldScrollIntoView,minMenuHeight,setPortalPlacement,controlHeight2]);return children({ref:ref,placerProps:_objectSpread2(_objectSpread2({},props),{},{placement:placement||coercePlacement(menuPlacement),maxHeight:maxHeight})})};var Menu=function Menu2(props){var children=props.children,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"menu",{menu:true}),{ref:innerRef},innerProps),children)};var Menu$1=Menu;var menuListCSS=function menuListCSS2(_ref4,unstyled){var maxHeight=_ref4.maxHeight,baseUnit2=_ref4.theme.spacing.baseUnit;return _objectSpread2({maxHeight:maxHeight,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},unstyled?{}:{paddingBottom:baseUnit2,paddingTop:baseUnit2})};var MenuList$1=function MenuList2(props){var children=props.children,innerProps=props.innerProps,innerRef=props.innerRef,isMulti=props.isMulti;return jsx("div",_extends({},getStyleProps(props,"menuList",{"menu-list":true,"menu-list--is-multi":isMulti}),{ref:innerRef},innerProps),children)};var noticeCSS=function noticeCSS2(_ref5,unstyled){var _ref5$theme=_ref5.theme,baseUnit2=_ref5$theme.spacing.baseUnit,colors2=_ref5$theme.colors;return _objectSpread2({textAlign:"center"},unstyled?{}:{color:colors2.neutral40,padding:"".concat(baseUnit2*2,"px ").concat(baseUnit2*3,"px")})};var noOptionsMessageCSS=noticeCSS;var loadingMessageCSS=noticeCSS;var NoOptionsMessage=function NoOptionsMessage2(_ref6){var _ref6$children=_ref6.children,children=_ref6$children===void 0?"No options":_ref6$children,innerProps=_ref6.innerProps,restProps=_objectWithoutProperties(_ref6,_excluded$3);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{children:children,innerProps:innerProps}),"noOptionsMessage",{"menu-notice":true,"menu-notice--no-options":true}),innerProps),children)};var LoadingMessage=function LoadingMessage2(_ref7){var _ref7$children=_ref7.children,children=_ref7$children===void 0?"Loading...":_ref7$children,innerProps=_ref7.innerProps,restProps=_objectWithoutProperties(_ref7,_excluded2$1);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{children:children,innerProps:innerProps}),"loadingMessage",{"menu-notice":true,"menu-notice--loading":true}),innerProps),children)};var menuPortalCSS=function menuPortalCSS2(_ref8){var rect=_ref8.rect,offset2=_ref8.offset,position2=_ref8.position;return{left:rect.left,position:position2,top:offset2,width:rect.width,zIndex:1}};var MenuPortal=function MenuPortal2(props){var appendTo=props.appendTo,children=props.children,controlElement=props.controlElement,innerProps=props.innerProps,menuPlacement=props.menuPlacement,menuPosition=props.menuPosition;var menuPortalRef=useRef(null);var cleanupRef=useRef(null);var _useState5=useState(coercePlacement(menuPlacement)),_useState6=_slicedToArray(_useState5,2),placement=_useState6[0],setPortalPlacement=_useState6[1];var portalPlacementContext=useMemo((function(){return{setPortalPlacement:setPortalPlacement}}),[]);var _useState7=useState(null),_useState8=_slicedToArray(_useState7,2),computedPosition=_useState8[0],setComputedPosition=_useState8[1];var updateComputedPosition=useCallback((function(){if(!controlElement)return;var rect=getBoundingClientObj(controlElement);var scrollDistance=menuPosition==="fixed"?0:window.pageYOffset;var offset2=rect[placement]+scrollDistance;if(offset2!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset)||rect.left!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left)||rect.width!==(computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width)){setComputedPosition({offset:offset2,rect:rect})}}),[controlElement,menuPosition,placement,computedPosition===null||computedPosition===void 0?void 0:computedPosition.offset,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.left,computedPosition===null||computedPosition===void 0?void 0:computedPosition.rect.width]);index((function(){updateComputedPosition()}),[updateComputedPosition]);var runAutoUpdate=useCallback((function(){if(typeof cleanupRef.current==="function"){cleanupRef.current();cleanupRef.current=null}if(controlElement&&menuPortalRef.current){cleanupRef.current=autoUpdate(controlElement,menuPortalRef.current,updateComputedPosition,{elementResize:"ResizeObserver"in window})}}),[controlElement,updateComputedPosition]);index((function(){runAutoUpdate()}),[runAutoUpdate]);var setMenuPortalElement=useCallback((function(menuPortalElement){menuPortalRef.current=menuPortalElement;runAutoUpdate()}),[runAutoUpdate]);if(!appendTo&&menuPosition!=="fixed"||!computedPosition)return null;var menuWrapper=jsx("div",_extends({ref:setMenuPortalElement},getStyleProps(_objectSpread2(_objectSpread2({},props),{},{offset:computedPosition.offset,position:menuPosition,rect:computedPosition.rect}),"menuPortal",{"menu-portal":true}),innerProps),children);return jsx(PortalPlacementContext.Provider,{value:portalPlacementContext},appendTo?createPortal(menuWrapper,appendTo):menuWrapper)};var containerCSS=function containerCSS2(_ref3){var isDisabled=_ref3.isDisabled,isRtl=_ref3.isRtl;return{label:"container",direction:isRtl?"rtl":void 0,pointerEvents:isDisabled?"none":void 0,position:"relative"}};var SelectContainer=function SelectContainer2(props){var children=props.children,innerProps=props.innerProps,isDisabled=props.isDisabled,isRtl=props.isRtl;return jsx("div",_extends({},getStyleProps(props,"container",{"--is-disabled":isDisabled,"--is-rtl":isRtl}),innerProps),children)};var valueContainerCSS=function valueContainerCSS2(_ref22,unstyled){var spacing2=_ref22.theme.spacing,isMulti=_ref22.isMulti,hasValue=_ref22.hasValue,controlShouldRenderValue=_ref22.selectProps.controlShouldRenderValue;return _objectSpread2({alignItems:"center",display:isMulti&&hasValue&&controlShouldRenderValue?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},unstyled?{}:{padding:"".concat(spacing2.baseUnit/2,"px ").concat(spacing2.baseUnit*2,"px")})};var ValueContainer$1=function ValueContainer2(props){var children=props.children,innerProps=props.innerProps,isMulti=props.isMulti,hasValue=props.hasValue;return jsx("div",_extends({},getStyleProps(props,"valueContainer",{"value-container":true,"value-container--is-multi":isMulti,"value-container--has-value":hasValue}),innerProps),children)};var indicatorsContainerCSS=function indicatorsContainerCSS2(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}};var IndicatorsContainer$1=function IndicatorsContainer2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"indicatorsContainer",{indicators:true}),innerProps),children)};var _templateObject;var _excluded$2$1=["size"],_excluded2=["innerProps","isRtl","size"];var _ref2$2={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"};var Svg=function Svg2(_ref3){var size=_ref3.size,props=_objectWithoutProperties(_ref3,_excluded$2$1);return jsx("svg",_extends({height:size,width:size,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},props))};var CrossIcon=function CrossIcon2(props){return jsx(Svg,_extends({size:20},props),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))};var DownChevron=function DownChevron2(props){return jsx(Svg,_extends({size:20},props),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))};var baseCSS=function baseCSS2(_ref3,unstyled){var isFocused=_ref3.isFocused,_ref3$theme=_ref3.theme,baseUnit2=_ref3$theme.spacing.baseUnit,colors2=_ref3$theme.colors;return _objectSpread2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2,":hover":{color:isFocused?colors2.neutral80:colors2.neutral40}})};var dropdownIndicatorCSS=baseCSS;var DropdownIndicator=function DropdownIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"dropdownIndicator",{indicator:true,"dropdown-indicator":true}),innerProps),children||jsx(DownChevron,null))};var clearIndicatorCSS=baseCSS;var ClearIndicator=function ClearIndicator2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"clearIndicator",{indicator:true,"clear-indicator":true}),innerProps),children||jsx(CrossIcon,null))};var indicatorSeparatorCSS=function indicatorSeparatorCSS2(_ref4,unstyled){var isDisabled=_ref4.isDisabled,_ref4$theme=_ref4.theme,baseUnit2=_ref4$theme.spacing.baseUnit,colors2=_ref4$theme.colors;return _objectSpread2({label:"indicatorSeparator",alignSelf:"stretch",width:1},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral10:colors2.neutral20,marginBottom:baseUnit2*2,marginTop:baseUnit2*2})};var IndicatorSeparator=function IndicatorSeparator2(props){var innerProps=props.innerProps;return jsx("span",_extends({},innerProps,getStyleProps(props,"indicatorSeparator",{"indicator-separator":true})))};var loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"])));var loadingIndicatorCSS=function loadingIndicatorCSS2(_ref5,unstyled){var isFocused=_ref5.isFocused,size=_ref5.size,_ref5$theme=_ref5.theme,colors2=_ref5$theme.colors,baseUnit2=_ref5$theme.spacing.baseUnit;return _objectSpread2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:size,lineHeight:1,marginRight:size,textAlign:"center",verticalAlign:"middle"},unstyled?{}:{color:isFocused?colors2.neutral60:colors2.neutral20,padding:baseUnit2*2})};var LoadingDot=function LoadingDot2(_ref6){var delay=_ref6.delay,offset2=_ref6.offset;return jsx("span",{css:css({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(delay,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:offset2?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})};var LoadingIndicator=function LoadingIndicator2(_ref7){var innerProps=_ref7.innerProps,isRtl=_ref7.isRtl,_ref7$size=_ref7.size,size=_ref7$size===void 0?4:_ref7$size,restProps=_objectWithoutProperties(_ref7,_excluded2);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},restProps),{},{innerProps:innerProps,isRtl:isRtl,size:size}),"loadingIndicator",{indicator:true,"loading-indicator":true}),innerProps),jsx(LoadingDot,{delay:0,offset:isRtl}),jsx(LoadingDot,{delay:160,offset:true}),jsx(LoadingDot,{delay:320,offset:!isRtl}))};var css$1=function css2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,_ref$theme=_ref3.theme,colors2=_ref$theme.colors,borderRadius2=_ref$theme.borderRadius,spacing2=_ref$theme.spacing;return _objectSpread2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:spacing2.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},unstyled?{}:{backgroundColor:isDisabled?colors2.neutral5:colors2.neutral0,borderColor:isDisabled?colors2.neutral10:isFocused?colors2.primary:colors2.neutral20,borderRadius:borderRadius2,borderStyle:"solid",borderWidth:1,boxShadow:isFocused?"0 0 0 1px ".concat(colors2.primary):void 0,"&:hover":{borderColor:isFocused?colors2.primary:colors2.neutral30}})};var Control=function Control2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,innerRef=props.innerRef,innerProps=props.innerProps,menuIsOpen=props.menuIsOpen;return jsx("div",_extends({ref:innerRef},getStyleProps(props,"control",{control:true,"control--is-disabled":isDisabled,"control--is-focused":isFocused,"control--menu-is-open":menuIsOpen}),innerProps,{"aria-disabled":isDisabled||void 0}),children)};var Control$1=Control;var _excluded$1$1=["data"];var groupCSS=function groupCSS2(_ref3,unstyled){var spacing2=_ref3.theme.spacing;return unstyled?{}:{paddingBottom:spacing2.baseUnit*2,paddingTop:spacing2.baseUnit*2}};var Group=function Group2(props){var children=props.children,cx=props.cx,getStyles=props.getStyles,getClassNames=props.getClassNames,Heading=props.Heading,headingProps=props.headingProps,innerProps=props.innerProps,label=props.label,theme=props.theme,selectProps=props.selectProps;return jsx("div",_extends({},getStyleProps(props,"group",{group:true}),innerProps),jsx(Heading,_extends({},headingProps,{selectProps:selectProps,theme:theme,getStyles:getStyles,getClassNames:getClassNames,cx:cx}),label),jsx("div",null,children))};var groupHeadingCSS=function groupHeadingCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,colors2=_ref2$theme.colors,spacing2=_ref2$theme.spacing;return _objectSpread2({label:"group",cursor:"default",display:"block"},unstyled?{}:{color:colors2.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:spacing2.baseUnit*3,paddingRight:spacing2.baseUnit*3,textTransform:"uppercase"})};var GroupHeading=function GroupHeading2(props){var _cleanCommonProps=cleanCommonProps(props);_cleanCommonProps.data;var innerProps=_objectWithoutProperties(_cleanCommonProps,_excluded$1$1);return jsx("div",_extends({},getStyleProps(props,"groupHeading",{"group-heading":true}),innerProps))};var Group$1=Group;var _excluded$5=["innerRef","isDisabled","isHidden","inputClassName"];var inputCSS=function inputCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,value=_ref3.value,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2(_objectSpread2({visibility:isDisabled?"hidden":"visible",transform:value?"translateZ(0)":""},containerStyle),unstyled?{}:{margin:spacing2.baseUnit/2,paddingBottom:spacing2.baseUnit/2,paddingTop:spacing2.baseUnit/2,color:colors2.neutral80})};var spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0};var containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_objectSpread2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)};var inputStyle=function inputStyle2(isHidden){return _objectSpread2({label:"input",color:"inherit",background:0,opacity:isHidden?0:1,width:"100%"},spacingStyle)};var Input=function Input2(props){var cx=props.cx,value=props.value;var _cleanCommonProps=cleanCommonProps(props),innerRef=_cleanCommonProps.innerRef,isDisabled=_cleanCommonProps.isDisabled,isHidden=_cleanCommonProps.isHidden,inputClassName=_cleanCommonProps.inputClassName,innerProps=_objectWithoutProperties(_cleanCommonProps,_excluded$5);return jsx("div",_extends({},getStyleProps(props,"input",{"input-container":true}),{"data-value":value||""}),jsx("input",_extends({className:cx({input:true},inputClassName),ref:innerRef,style:inputStyle(isHidden),disabled:isDisabled},innerProps)))};var Input$1=Input;var multiValueCSS=function multiValueCSS2(_ref3,unstyled){var _ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,borderRadius2=_ref$theme.borderRadius,colors2=_ref$theme.colors;return _objectSpread2({label:"multiValue",display:"flex",minWidth:0},unstyled?{}:{backgroundColor:colors2.neutral10,borderRadius:borderRadius2/2,margin:spacing2.baseUnit/2})};var multiValueLabelCSS=function multiValueLabelCSS2(_ref22,unstyled){var _ref2$theme=_ref22.theme,borderRadius2=_ref2$theme.borderRadius,colors2=_ref2$theme.colors,cropWithEllipsis=_ref22.cropWithEllipsis;return _objectSpread2({overflow:"hidden",textOverflow:cropWithEllipsis||cropWithEllipsis===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},unstyled?{}:{borderRadius:borderRadius2/2,color:colors2.neutral80,fontSize:"85%",padding:3,paddingLeft:6})};var multiValueRemoveCSS=function multiValueRemoveCSS2(_ref3,unstyled){var _ref3$theme=_ref3.theme,spacing2=_ref3$theme.spacing,borderRadius2=_ref3$theme.borderRadius,colors2=_ref3$theme.colors,isFocused=_ref3.isFocused;return _objectSpread2({alignItems:"center",display:"flex"},unstyled?{}:{borderRadius:borderRadius2/2,backgroundColor:isFocused?colors2.dangerLight:void 0,paddingLeft:spacing2.baseUnit,paddingRight:spacing2.baseUnit,":hover":{backgroundColor:colors2.dangerLight,color:colors2.danger}})};var MultiValueGeneric=function MultiValueGeneric2(_ref4){var children=_ref4.children,innerProps=_ref4.innerProps;return jsx("div",innerProps,children)};var MultiValueContainer=MultiValueGeneric;var MultiValueLabel=MultiValueGeneric;function MultiValueRemove(_ref5){var children=_ref5.children,innerProps=_ref5.innerProps;return jsx("div",_extends({role:"button"},innerProps),children||jsx(CrossIcon,{size:14}))}var MultiValue$1=function MultiValue2(props){var children=props.children,components2=props.components,data=props.data,innerProps=props.innerProps,isDisabled=props.isDisabled,removeProps3=props.removeProps,selectProps=props.selectProps;var Container=components2.Container,Label=components2.Label,Remove=components2.Remove;return jsx(Container,{data:data,innerProps:_objectSpread2(_objectSpread2({},getStyleProps(props,"multiValue",{"multi-value":true,"multi-value--is-disabled":isDisabled})),innerProps),selectProps:selectProps},jsx(Label,{data:data,innerProps:_objectSpread2({},getStyleProps(props,"multiValueLabel",{"multi-value__label":true})),selectProps:selectProps},children),jsx(Remove,{data:data,innerProps:_objectSpread2(_objectSpread2({},getStyleProps(props,"multiValueRemove",{"multi-value__remove":true})),{},{"aria-label":"Remove ".concat(children||"option")},removeProps3),selectProps:selectProps}))};var MultiValue$1$1=MultiValue$1;var optionCSS=function optionCSS2(_ref3,unstyled){var isDisabled=_ref3.isDisabled,isFocused=_ref3.isFocused,isSelected=_ref3.isSelected,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},unstyled?{}:{backgroundColor:isSelected?colors2.primary:isFocused?colors2.primary25:"transparent",color:isDisabled?colors2.neutral20:isSelected?colors2.neutral0:"inherit",padding:"".concat(spacing2.baseUnit*2,"px ").concat(spacing2.baseUnit*3,"px"),":active":{backgroundColor:!isDisabled?isSelected?colors2.primary:colors2.primary50:void 0}})};var Option$1=function Option2(props){var children=props.children,isDisabled=props.isDisabled,isFocused=props.isFocused,isSelected=props.isSelected,innerRef=props.innerRef,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"option",{option:true,"option--is-disabled":isDisabled,"option--is-focused":isFocused,"option--is-selected":isSelected}),{ref:innerRef,"aria-disabled":isDisabled},innerProps),children)};var Option$1$1=Option$1;var placeholderCSS=function placeholderCSS2(_ref3,unstyled){var _ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},unstyled?{}:{color:colors2.neutral50,marginLeft:spacing2.baseUnit/2,marginRight:spacing2.baseUnit/2})};var Placeholder$1=function Placeholder2(props){var children=props.children,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"placeholder",{placeholder:true}),innerProps),children)};var Placeholder$1$1=Placeholder$1;var css22=function css3(_ref3,unstyled){var isDisabled=_ref3.isDisabled,_ref$theme=_ref3.theme,spacing2=_ref$theme.spacing,colors2=_ref$theme.colors;return _objectSpread2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},unstyled?{}:{color:isDisabled?colors2.neutral40:colors2.neutral80,marginLeft:spacing2.baseUnit/2,marginRight:spacing2.baseUnit/2})};var SingleValue=function SingleValue2(props){var children=props.children,isDisabled=props.isDisabled,innerProps=props.innerProps;return jsx("div",_extends({},getStyleProps(props,"singleValue",{"single-value":true,"single-value--is-disabled":isDisabled}),innerProps),children)};var SingleValue$1=SingleValue;var components={ClearIndicator:ClearIndicator,Control:Control$1,DropdownIndicator:DropdownIndicator,DownChevron:DownChevron,CrossIcon:CrossIcon,Group:Group$1,GroupHeading:GroupHeading,IndicatorsContainer:IndicatorsContainer$1,IndicatorSeparator:IndicatorSeparator,Input:Input$1,LoadingIndicator:LoadingIndicator,Menu:Menu$1,MenuList:MenuList$1,MenuPortal:MenuPortal,LoadingMessage:LoadingMessage,NoOptionsMessage:NoOptionsMessage,MultiValue:MultiValue$1$1,MultiValueContainer:MultiValueContainer,MultiValueLabel:MultiValueLabel,MultiValueRemove:MultiValueRemove,Option:Option$1$1,Placeholder:Placeholder$1$1,SelectContainer:SelectContainer,SingleValue:SingleValue$1,ValueContainer:ValueContainer$1};var defaultComponents=function defaultComponents2(props){return _objectSpread2(_objectSpread2({},components),props.components)};var safeIsNaN=Number.isNaN||function ponyfill(value){return typeof value==="number"&&value!==value};function isEqual2(first,second){if(first===second){return true}if(safeIsNaN(first)&&safeIsNaN(second)){return true}return false}function areInputsEqual(newInputs,lastInputs){if(newInputs.length!==lastInputs.length){return false}for(var i=0;i1?"s":""," ").concat(labels.join(","),", selected.");case"select-option":return isDisabled?"option ".concat(label," is disabled. Select another option."):"option ".concat(label,", selected.");default:return""}},onFocus:function onFocus(props){var context=props.context,focused=props.focused,options2=props.options,_props$label2=props.label,label=_props$label2===void 0?"":_props$label2,selectValue=props.selectValue,isDisabled=props.isDisabled,isSelected=props.isSelected,isAppleDevice2=props.isAppleDevice;var getArrayIndex=function getArrayIndex2(arr,item){return arr&&arr.length?"".concat(arr.indexOf(item)+1," of ").concat(arr.length):""};if(context==="value"&&selectValue){return"value ".concat(label," focused, ").concat(getArrayIndex(selectValue,focused),".")}if(context==="menu"&&isAppleDevice2){var disabled=isDisabled?" disabled":"";var status="".concat(isSelected?" selected":"").concat(disabled);return"".concat(label).concat(status,", ").concat(getArrayIndex(options2,focused),".")}return""},onFilter:function onFilter(props){var inputValue=props.inputValue,resultsMessage=props.resultsMessage;return"".concat(resultsMessage).concat(inputValue?" for search term "+inputValue:"",".")}};var LiveRegion=function LiveRegion2(props){var ariaSelection=props.ariaSelection,focusedOption=props.focusedOption,focusedValue=props.focusedValue,focusableOptions=props.focusableOptions,isFocused=props.isFocused,selectValue=props.selectValue,selectProps=props.selectProps,id=props.id,isAppleDevice2=props.isAppleDevice;var ariaLiveMessages=selectProps.ariaLiveMessages,getOptionLabel4=selectProps.getOptionLabel,inputValue=selectProps.inputValue,isMulti=selectProps.isMulti,isOptionDisabled3=selectProps.isOptionDisabled,isSearchable=selectProps.isSearchable,menuIsOpen=selectProps.menuIsOpen,options2=selectProps.options,screenReaderStatus2=selectProps.screenReaderStatus,tabSelectsValue=selectProps.tabSelectsValue,isLoading=selectProps.isLoading;var ariaLabel=selectProps["aria-label"];var ariaLive=selectProps["aria-live"];var messages=useMemo((function(){return _objectSpread2(_objectSpread2({},defaultAriaLiveMessages),ariaLiveMessages||{})}),[ariaLiveMessages]);var ariaSelected=useMemo((function(){var message="";if(ariaSelection&&messages.onChange){var option=ariaSelection.option,selectedOptions=ariaSelection.options,removedValue=ariaSelection.removedValue,removedValues=ariaSelection.removedValues,value=ariaSelection.value;var asOption=function asOption2(val){return!Array.isArray(val)?val:null};var selected=removedValue||option||asOption(value);var label=selected?getOptionLabel4(selected):"";var multiSelected=selectedOptions||removedValues||void 0;var labels=multiSelected?multiSelected.map(getOptionLabel4):[];var onChangeProps=_objectSpread2({isDisabled:selected&&isOptionDisabled3(selected,selectValue),label:label,labels:labels},ariaSelection);message=messages.onChange(onChangeProps)}return message}),[ariaSelection,messages,isOptionDisabled3,selectValue,getOptionLabel4]);var ariaFocused=useMemo((function(){var focusMsg="";var focused=focusedOption||focusedValue;var isSelected=!!(focusedOption&&selectValue&&selectValue.includes(focusedOption));if(focused&&messages.onFocus){var onFocusProps={focused:focused,label:getOptionLabel4(focused),isDisabled:isOptionDisabled3(focused,selectValue),isSelected:isSelected,options:focusableOptions,context:focused===focusedOption?"menu":"value",selectValue:selectValue,isAppleDevice:isAppleDevice2};focusMsg=messages.onFocus(onFocusProps)}return focusMsg}),[focusedOption,focusedValue,getOptionLabel4,isOptionDisabled3,messages,focusableOptions,selectValue,isAppleDevice2]);var ariaResults=useMemo((function(){var resultsMsg="";if(menuIsOpen&&options2.length&&!isLoading&&messages.onFilter){var resultsMessage=screenReaderStatus2({count:focusableOptions.length});resultsMsg=messages.onFilter({inputValue:inputValue,resultsMessage:resultsMessage})}return resultsMsg}),[focusableOptions,inputValue,menuIsOpen,messages,options2,screenReaderStatus2,isLoading]);var isInitialFocus=(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus";var ariaGuidance=useMemo((function(){var guidanceMsg="";if(messages.guidance){var context=focusedValue?"value":menuIsOpen?"menu":"input";guidanceMsg=messages.guidance({"aria-label":ariaLabel,context:context,isDisabled:focusedOption&&isOptionDisabled3(focusedOption,selectValue),isMulti:isMulti,isSearchable:isSearchable,tabSelectsValue:tabSelectsValue,isInitialFocus:isInitialFocus})}return guidanceMsg}),[ariaLabel,focusedOption,focusedValue,isMulti,isOptionDisabled3,isSearchable,menuIsOpen,messages,selectValue,tabSelectsValue,isInitialFocus]);var ScreenReaderText=jsx(Fragment$1,null,jsx("span",{id:"aria-selection"},ariaSelected),jsx("span",{id:"aria-focused"},ariaFocused),jsx("span",{id:"aria-results"},ariaResults),jsx("span",{id:"aria-guidance"},ariaGuidance));return jsx(Fragment$1,null,jsx(A11yText$1,{id:id},isInitialFocus&&ScreenReaderText),jsx(A11yText$1,{"aria-live":ariaLive,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},isFocused&&!isInitialFocus&&ScreenReaderText))};var LiveRegion$1=LiveRegion;var diacritics=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}];var anyDiacritic=new RegExp("["+diacritics.map((function(d){return d.letters})).join("")+"]","g");var diacriticToBase={};for(var i=0;i-1}};var _excluded$2=["innerRef"];function DummyInput(_ref3){var innerRef=_ref3.innerRef,props=_objectWithoutProperties(_ref3,_excluded$2);var filteredProps=removeProps(props,"onExited","in","enter","exit","appear");return jsx("input",_extends({ref:innerRef},filteredProps,{css:css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var cancelScroll=function cancelScroll2(event2){if(event2.cancelable)event2.preventDefault();event2.stopPropagation()};function useScrollCapture(_ref3){var isEnabled=_ref3.isEnabled,onBottomArrive=_ref3.onBottomArrive,onBottomLeave=_ref3.onBottomLeave,onTopArrive=_ref3.onTopArrive,onTopLeave=_ref3.onTopLeave;var isBottom=useRef(false);var isTop=useRef(false);var touchStart=useRef(0);var scrollTarget=useRef(null);var handleEventDelta=useCallback((function(event2,delta){if(scrollTarget.current===null)return;var _scrollTarget$current=scrollTarget.current,scrollTop=_scrollTarget$current.scrollTop,scrollHeight=_scrollTarget$current.scrollHeight,clientHeight=_scrollTarget$current.clientHeight;var target=scrollTarget.current;var isDeltaPositive=delta>0;var availableScroll=scrollHeight-clientHeight-scrollTop;var shouldCancelScroll=false;if(availableScroll>delta&&isBottom.current){if(onBottomLeave)onBottomLeave(event2);isBottom.current=false}if(isDeltaPositive&&isTop.current){if(onTopLeave)onTopLeave(event2);isTop.current=false}if(isDeltaPositive&&delta>availableScroll){if(onBottomArrive&&!isBottom.current){onBottomArrive(event2)}target.scrollTop=scrollHeight;shouldCancelScroll=true;isBottom.current=true}else if(!isDeltaPositive&&-delta>scrollTop){if(onTopArrive&&!isTop.current){onTopArrive(event2)}target.scrollTop=0;shouldCancelScroll=true;isTop.current=true}if(shouldCancelScroll){cancelScroll(event2)}}),[onBottomArrive,onBottomLeave,onTopArrive,onTopLeave]);var onWheel=useCallback((function(event2){handleEventDelta(event2,event2.deltaY)}),[handleEventDelta]);var onTouchStart=useCallback((function(event2){touchStart.current=event2.changedTouches[0].clientY}),[]);var onTouchMove=useCallback((function(event2){var deltaY=touchStart.current-event2.changedTouches[0].clientY;handleEventDelta(event2,deltaY)}),[handleEventDelta]);var startListening=useCallback((function(el){if(!el)return;var notPassive=supportsPassiveEvents?{passive:false}:false;el.addEventListener("wheel",onWheel,notPassive);el.addEventListener("touchstart",onTouchStart,notPassive);el.addEventListener("touchmove",onTouchMove,notPassive)}),[onTouchMove,onTouchStart,onWheel]);var stopListening=useCallback((function(el){if(!el)return;el.removeEventListener("wheel",onWheel,false);el.removeEventListener("touchstart",onTouchStart,false);el.removeEventListener("touchmove",onTouchMove,false)}),[onTouchMove,onTouchStart,onWheel]);useEffect((function(){if(!isEnabled)return;var element=scrollTarget.current;startListening(element);return function(){stopListening(element)}}),[isEnabled,startListening,stopListening]);return function(element){scrollTarget.current=element}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"];var LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(e){e.preventDefault()}function allowTouchMove(e){e.stopPropagation()}function preventInertiaScroll(){var top=this.scrollTop;var totalScroll=this.scrollHeight;var currentScroll=top+this.offsetHeight;if(top===0){this.scrollTop=1}else if(currentScroll===totalScroll){this.scrollTop=top-1}}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM=!!(typeof window!=="undefined"&&window.document&&window.document.createElement);var activeScrollLocks=0;var listenerOptions={capture:false,passive:false};function useScrollLock(_ref3){var isEnabled=_ref3.isEnabled,_ref$accountForScroll=_ref3.accountForScrollbars,accountForScrollbars=_ref$accountForScroll===void 0?true:_ref$accountForScroll;var originalStyles=useRef({});var scrollTarget=useRef(null);var addScrollLock=useCallback((function(touchScrollTarget){if(!canUseDOM)return;var target=document.body;var targetStyle=target&&target.style;if(accountForScrollbars){STYLE_KEYS.forEach((function(key){var val=targetStyle&&targetStyle[key];originalStyles.current[key]=val}))}if(accountForScrollbars&&activeScrollLocks<1){var currentPadding=parseInt(originalStyles.current.paddingRight,10)||0;var clientWidth=document.body?document.body.clientWidth:0;var adjustedPadding=window.innerWidth-clientWidth+currentPadding||0;Object.keys(LOCK_STYLES).forEach((function(key){var val=LOCK_STYLES[key];if(targetStyle){targetStyle[key]=val}}));if(targetStyle){targetStyle.paddingRight="".concat(adjustedPadding,"px")}}if(target&&isTouchDevice()){target.addEventListener("touchmove",preventTouchMove,listenerOptions);if(touchScrollTarget){touchScrollTarget.addEventListener("touchstart",preventInertiaScroll,listenerOptions);touchScrollTarget.addEventListener("touchmove",allowTouchMove,listenerOptions)}}activeScrollLocks+=1}),[accountForScrollbars]);var removeScrollLock=useCallback((function(touchScrollTarget){if(!canUseDOM)return;var target=document.body;var targetStyle=target&&target.style;activeScrollLocks=Math.max(activeScrollLocks-1,0);if(accountForScrollbars&&activeScrollLocks<1){STYLE_KEYS.forEach((function(key){var val=originalStyles.current[key];if(targetStyle){targetStyle[key]=val}}))}if(target&&isTouchDevice()){target.removeEventListener("touchmove",preventTouchMove,listenerOptions);if(touchScrollTarget){touchScrollTarget.removeEventListener("touchstart",preventInertiaScroll,listenerOptions);touchScrollTarget.removeEventListener("touchmove",allowTouchMove,listenerOptions)}}}),[accountForScrollbars]);useEffect((function(){if(!isEnabled)return;var element=scrollTarget.current;addScrollLock(element);return function(){removeScrollLock(element)}}),[isEnabled,addScrollLock,removeScrollLock]);return function(element){scrollTarget.current=element}}var blurSelectInput=function blurSelectInput2(event2){var element=event2.target;return element.ownerDocument.activeElement&&element.ownerDocument.activeElement.blur()};var _ref2$1={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ScrollManager(_ref3){var children=_ref3.children,lockEnabled=_ref3.lockEnabled,_ref$captureEnabled=_ref3.captureEnabled,captureEnabled=_ref$captureEnabled===void 0?true:_ref$captureEnabled,onBottomArrive=_ref3.onBottomArrive,onBottomLeave=_ref3.onBottomLeave,onTopArrive=_ref3.onTopArrive,onTopLeave=_ref3.onTopLeave;var setScrollCaptureTarget=useScrollCapture({isEnabled:captureEnabled,onBottomArrive:onBottomArrive,onBottomLeave:onBottomLeave,onTopArrive:onTopArrive,onTopLeave:onTopLeave});var setScrollLockTarget=useScrollLock({isEnabled:lockEnabled});var targetRef=function targetRef2(element){setScrollCaptureTarget(element);setScrollLockTarget(element)};return jsx(Fragment$1,null,lockEnabled&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),children(targetRef))}var _ref2={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"};var RequiredInput=function RequiredInput2(_ref3){var name2=_ref3.name,onFocus2=_ref3.onFocus;return jsx("input",{required:true,name:name2,tabIndex:-1,"aria-hidden":"true",onFocus:onFocus2,css:_ref2,value:"",onChange:function onChange2(){}})};var RequiredInput$1=RequiredInput;function testPlatform(re){var _window$navigator$use;return typeof window!=="undefined"&&window.navigator!=null?re.test(((_window$navigator$use=window.navigator["userAgentData"])===null||_window$navigator$use===void 0?void 0:_window$navigator$use.platform)||window.navigator.platform):false}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac()||isIOS()}var formatGroupLabel=function formatGroupLabel2(group){return group.label};var getOptionLabel$1=function getOptionLabel(option){return option.label};var getOptionValue$1=function getOptionValue(option){return option.value};var isOptionDisabled=function isOptionDisabled2(option){return!!option.isDisabled};var defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css22,valueContainer:valueContainerCSS};var colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"};var borderRadius=4;var baseUnit=4;var controlHeight=38;var menuGutter=baseUnit*2;var spacing={baseUnit:baseUnit,controlHeight:controlHeight,menuGutter:menuGutter};var defaultTheme={borderRadius:borderRadius,colors:colors,spacing:spacing};var defaultProps={"aria-live":"polite",backspaceRemovesValue:true,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:true,closeMenuOnScroll:false,components:{},controlShouldRenderValue:true,escapeClearsValue:false,filterOption:createFilter(),formatGroupLabel:formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:false,isLoading:false,isMulti:false,isRtl:false,isSearchable:true,isOptionDisabled:isOptionDisabled,loadingMessage:function loadingMessage(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:false,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:false,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function noOptionsMessage(){return"No options"},openMenuOnFocus:false,openMenuOnClick:true,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function screenReaderStatus(_ref3){var count2=_ref3.count;return"".concat(count2," result").concat(count2!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:true,unstyled:false};function toCategorizedOption(props,option,selectValue,index2){var isDisabled=_isOptionDisabled(props,option,selectValue);var isSelected=_isOptionSelected(props,option,selectValue);var label=getOptionLabel2(props,option);var value=getOptionValue2(props,option);return{type:"option",data:option,isDisabled:isDisabled,isSelected:isSelected,label:label,value:value,index:index2}}function buildCategorizedOptions(props,selectValue){return props.options.map((function(groupOrOption,groupOrOptionIndex){if("options"in groupOrOption){var categorizedOptions=groupOrOption.options.map((function(option,optionIndex){return toCategorizedOption(props,option,selectValue,optionIndex)})).filter((function(categorizedOption2){return isFocusable(props,categorizedOption2)}));return categorizedOptions.length>0?{type:"group",data:groupOrOption,options:categorizedOptions,index:groupOrOptionIndex}:void 0}var categorizedOption=toCategorizedOption(props,groupOrOption,selectValue,groupOrOptionIndex);return isFocusable(props,categorizedOption)?categorizedOption:void 0})).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(categorizedOptions){return categorizedOptions.reduce((function(optionsAccumulator,categorizedOption){if(categorizedOption.type==="group"){optionsAccumulator.push.apply(optionsAccumulator,_toConsumableArray(categorizedOption.options.map((function(option){return option.data}))))}else{optionsAccumulator.push(categorizedOption.data)}return optionsAccumulator}),[])}function buildFocusableOptionsWithIds(categorizedOptions,optionId){return categorizedOptions.reduce((function(optionsAccumulator,categorizedOption){if(categorizedOption.type==="group"){optionsAccumulator.push.apply(optionsAccumulator,_toConsumableArray(categorizedOption.options.map((function(option){return{data:option.data,id:"".concat(optionId,"-").concat(categorizedOption.index,"-").concat(option.index)}}))))}else{optionsAccumulator.push({data:categorizedOption.data,id:"".concat(optionId,"-").concat(categorizedOption.index)})}return optionsAccumulator}),[])}function buildFocusableOptions(props,selectValue){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props,selectValue))}function isFocusable(props,categorizedOption){var _props$inputValue=props.inputValue,inputValue=_props$inputValue===void 0?"":_props$inputValue;var data=categorizedOption.data,isSelected=categorizedOption.isSelected,label=categorizedOption.label,value=categorizedOption.value;return(!shouldHideSelectedOptions(props)||!isSelected)&&_filterOption(props,{label:label,value:value,data:data},inputValue)}function getNextFocusedValue(state,nextSelectValue){var focusedValue=state.focusedValue,lastSelectValue=state.selectValue;var lastFocusedIndex=lastSelectValue.indexOf(focusedValue);if(lastFocusedIndex>-1){var nextFocusedIndex=nextSelectValue.indexOf(focusedValue);if(nextFocusedIndex>-1){return focusedValue}else if(lastFocusedIndex-1?lastFocusedOption:options2[0]}var getFocusedOptionId=function getFocusedOptionId2(focusableOptionsWithIds,focusedOption){var _focusableOptionsWith;var focusedOptionId=(_focusableOptionsWith=focusableOptionsWithIds.find((function(option){return option.data===focusedOption})))===null||_focusableOptionsWith===void 0?void 0:_focusableOptionsWith.id;return focusedOptionId||null};var getOptionLabel2=function getOptionLabel3(props,data){return props.getOptionLabel(data)};var getOptionValue2=function getOptionValue3(props,data){return props.getOptionValue(data)};function _isOptionDisabled(props,option,selectValue){return typeof props.isOptionDisabled==="function"?props.isOptionDisabled(option,selectValue):false}function _isOptionSelected(props,option,selectValue){if(selectValue.indexOf(option)>-1)return true;if(typeof props.isOptionSelected==="function"){return props.isOptionSelected(option,selectValue)}var candidate=getOptionValue2(props,option);return selectValue.some((function(i){return getOptionValue2(props,i)===candidate}))}function _filterOption(props,option,inputValue){return props.filterOption?props.filterOption(option,inputValue):true}var shouldHideSelectedOptions=function shouldHideSelectedOptions2(props){var hideSelectedOptions=props.hideSelectedOptions,isMulti=props.isMulti;if(hideSelectedOptions===void 0)return isMulti;return hideSelectedOptions};var instanceId=1;var Select=function(_Component){_inherits(Select2,_Component);var _super=_createSuper(Select2);function Select2(_props){var _this;_classCallCheck(this,Select2);_this=_super.call(this,_props);_this.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:false,isFocused:false,selectValue:[],clearFocusValueOnUpdate:false,prevWasFocused:false,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""};_this.blockOptionHover=false;_this.isComposing=false;_this.commonProps=void 0;_this.initialTouchX=0;_this.initialTouchY=0;_this.openAfterFocus=false;_this.scrollToFocusedOptionOnUpdate=false;_this.userIsDragging=void 0;_this.isAppleDevice=isAppleDevice();_this.controlRef=null;_this.getControlRef=function(ref){_this.controlRef=ref};_this.focusedOptionRef=null;_this.getFocusedOptionRef=function(ref){_this.focusedOptionRef=ref};_this.menuListRef=null;_this.getMenuListRef=function(ref){_this.menuListRef=ref};_this.inputRef=null;_this.getInputRef=function(ref){_this.inputRef=ref};_this.focus=_this.focusInput;_this.blur=_this.blurInput;_this.onChange=function(newValue,actionMeta){var _this$props=_this.props,onChange2=_this$props.onChange,name2=_this$props.name;actionMeta.name=name2;_this.ariaOnChange(newValue,actionMeta);onChange2(newValue,actionMeta)};_this.setValue=function(newValue,action,option){var _this$props2=_this.props,closeMenuOnSelect=_this$props2.closeMenuOnSelect,isMulti=_this$props2.isMulti,inputValue=_this$props2.inputValue;_this.onInputChange("",{action:"set-value",prevInputValue:inputValue});if(closeMenuOnSelect){_this.setState({inputIsHiddenAfterUpdate:!isMulti});_this.onMenuClose()}_this.setState({clearFocusValueOnUpdate:true});_this.onChange(newValue,{action:action,option:option})};_this.selectOption=function(newValue){var _this$props3=_this.props,blurInputOnSelect=_this$props3.blurInputOnSelect,isMulti=_this$props3.isMulti,name2=_this$props3.name;var selectValue=_this.state.selectValue;var deselected=isMulti&&_this.isOptionSelected(newValue,selectValue);var isDisabled=_this.isOptionDisabled(newValue,selectValue);if(deselected){var candidate=_this.getOptionValue(newValue);_this.setValue(multiValueAsValue(selectValue.filter((function(i){return _this.getOptionValue(i)!==candidate}))),"deselect-option",newValue)}else if(!isDisabled){if(isMulti){_this.setValue(multiValueAsValue([].concat(_toConsumableArray(selectValue),[newValue])),"select-option",newValue)}else{_this.setValue(singleValueAsValue(newValue),"select-option")}}else{_this.ariaOnChange(singleValueAsValue(newValue),{action:"select-option",option:newValue,name:name2});return}if(blurInputOnSelect){_this.blurInput()}};_this.removeValue=function(removedValue){var isMulti=_this.props.isMulti;var selectValue=_this.state.selectValue;var candidate=_this.getOptionValue(removedValue);var newValueArray=selectValue.filter((function(i){return _this.getOptionValue(i)!==candidate}));var newValue=valueTernary(isMulti,newValueArray,newValueArray[0]||null);_this.onChange(newValue,{action:"remove-value",removedValue:removedValue});_this.focusInput()};_this.clearValue=function(){var selectValue=_this.state.selectValue;_this.onChange(valueTernary(_this.props.isMulti,[],null),{action:"clear",removedValues:selectValue})};_this.popValue=function(){var isMulti=_this.props.isMulti;var selectValue=_this.state.selectValue;var lastSelectedValue=selectValue[selectValue.length-1];var newValueArray=selectValue.slice(0,selectValue.length-1);var newValue=valueTernary(isMulti,newValueArray,newValueArray[0]||null);_this.onChange(newValue,{action:"pop-value",removedValue:lastSelectedValue})};_this.getFocusedOptionId=function(focusedOption){return getFocusedOptionId(_this.state.focusableOptionsWithIds,focusedOption)};_this.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props,_this.state.selectValue),_this.getElementId("option"))};_this.getValue=function(){return _this.state.selectValue};_this.cx=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key]}return classNames.apply(void 0,[_this.props.classNamePrefix].concat(args))};_this.getOptionLabel=function(data){return getOptionLabel2(_this.props,data)};_this.getOptionValue=function(data){return getOptionValue2(_this.props,data)};_this.getStyles=function(key,props){var unstyled=_this.props.unstyled;var base=defaultStyles[key](props,unstyled);base.boxSizing="border-box";var custom=_this.props.styles[key];return custom?custom(base,props):base};_this.getClassNames=function(key,props){var _this$props$className,_this$props$className2;return(_this$props$className=(_this$props$className2=_this.props.classNames)[key])===null||_this$props$className===void 0?void 0:_this$props$className.call(_this$props$className2,props)};_this.getElementId=function(element){return"".concat(_this.state.instancePrefix,"-").concat(element)};_this.getComponents=function(){return defaultComponents(_this.props)};_this.buildCategorizedOptions=function(){return buildCategorizedOptions(_this.props,_this.state.selectValue)};_this.getCategorizedOptions=function(){return _this.props.menuIsOpen?_this.buildCategorizedOptions():[]};_this.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(_this.buildCategorizedOptions())};_this.getFocusableOptions=function(){return _this.props.menuIsOpen?_this.buildFocusableOptions():[]};_this.ariaOnChange=function(value,actionMeta){_this.setState({ariaSelection:_objectSpread2({value:value},actionMeta)})};_this.onMenuMouseDown=function(event2){if(event2.button!==0){return}event2.stopPropagation();event2.preventDefault();_this.focusInput()};_this.onMenuMouseMove=function(event2){_this.blockOptionHover=false};_this.onControlMouseDown=function(event2){if(event2.defaultPrevented){return}var openMenuOnClick=_this.props.openMenuOnClick;if(!_this.state.isFocused){if(openMenuOnClick){_this.openAfterFocus=true}_this.focusInput()}else if(!_this.props.menuIsOpen){if(openMenuOnClick){_this.openMenu("first")}}else{if(event2.target.tagName!=="INPUT"&&event2.target.tagName!=="TEXTAREA"){_this.onMenuClose()}}if(event2.target.tagName!=="INPUT"&&event2.target.tagName!=="TEXTAREA"){event2.preventDefault()}};_this.onDropdownIndicatorMouseDown=function(event2){if(event2&&event2.type==="mousedown"&&event2.button!==0){return}if(_this.props.isDisabled)return;var _this$props4=_this.props,isMulti=_this$props4.isMulti,menuIsOpen=_this$props4.menuIsOpen;_this.focusInput();if(menuIsOpen){_this.setState({inputIsHiddenAfterUpdate:!isMulti});_this.onMenuClose()}else{_this.openMenu("first")}event2.preventDefault()};_this.onClearIndicatorMouseDown=function(event2){if(event2&&event2.type==="mousedown"&&event2.button!==0){return}_this.clearValue();event2.preventDefault();_this.openAfterFocus=false;if(event2.type==="touchend"){_this.focusInput()}else{setTimeout((function(){return _this.focusInput()}))}};_this.onScroll=function(event2){if(typeof _this.props.closeMenuOnScroll==="boolean"){if(event2.target instanceof HTMLElement&&isDocumentElement(event2.target)){_this.props.onMenuClose()}}else if(typeof _this.props.closeMenuOnScroll==="function"){if(_this.props.closeMenuOnScroll(event2)){_this.props.onMenuClose()}}};_this.onCompositionStart=function(){_this.isComposing=true};_this.onCompositionEnd=function(){_this.isComposing=false};_this.onTouchStart=function(_ref22){var touches=_ref22.touches;var touch=touches&&touches.item(0);if(!touch){return}_this.initialTouchX=touch.clientX;_this.initialTouchY=touch.clientY;_this.userIsDragging=false};_this.onTouchMove=function(_ref3){var touches=_ref3.touches;var touch=touches&&touches.item(0);if(!touch){return}var deltaX=Math.abs(touch.clientX-_this.initialTouchX);var deltaY=Math.abs(touch.clientY-_this.initialTouchY);var moveThreshold=5;_this.userIsDragging=deltaX>moveThreshold||deltaY>moveThreshold};_this.onTouchEnd=function(event2){if(_this.userIsDragging)return;if(_this.controlRef&&!_this.controlRef.contains(event2.target)&&_this.menuListRef&&!_this.menuListRef.contains(event2.target)){_this.blurInput()}_this.initialTouchX=0;_this.initialTouchY=0};_this.onControlTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onControlMouseDown(event2)};_this.onClearIndicatorTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onClearIndicatorMouseDown(event2)};_this.onDropdownIndicatorTouchEnd=function(event2){if(_this.userIsDragging)return;_this.onDropdownIndicatorMouseDown(event2)};_this.handleInputChange=function(event2){var prevInputValue=_this.props.inputValue;var inputValue=event2.currentTarget.value;_this.setState({inputIsHiddenAfterUpdate:false});_this.onInputChange(inputValue,{action:"input-change",prevInputValue:prevInputValue});if(!_this.props.menuIsOpen){_this.onMenuOpen()}};_this.onInputFocus=function(event2){if(_this.props.onFocus){_this.props.onFocus(event2)}_this.setState({inputIsHiddenAfterUpdate:false,isFocused:true});if(_this.openAfterFocus||_this.props.openMenuOnFocus){_this.openMenu("first")}_this.openAfterFocus=false};_this.onInputBlur=function(event2){var prevInputValue=_this.props.inputValue;if(_this.menuListRef&&_this.menuListRef.contains(document.activeElement)){_this.inputRef.focus();return}if(_this.props.onBlur){_this.props.onBlur(event2)}_this.onInputChange("",{action:"input-blur",prevInputValue:prevInputValue});_this.onMenuClose();_this.setState({focusedValue:null,isFocused:false})};_this.onOptionHover=function(focusedOption){if(_this.blockOptionHover||_this.state.focusedOption===focusedOption){return}var options2=_this.getFocusableOptions();var focusedOptionIndex=options2.indexOf(focusedOption);_this.setState({focusedOption:focusedOption,focusedOptionId:focusedOptionIndex>-1?_this.getFocusedOptionId(focusedOption):null})};_this.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(_this.props)};_this.onValueInputFocus=function(e){e.preventDefault();e.stopPropagation();_this.focus()};_this.onKeyDown=function(event2){var _this$props5=_this.props,isMulti=_this$props5.isMulti,backspaceRemovesValue=_this$props5.backspaceRemovesValue,escapeClearsValue=_this$props5.escapeClearsValue,inputValue=_this$props5.inputValue,isClearable=_this$props5.isClearable,isDisabled=_this$props5.isDisabled,menuIsOpen=_this$props5.menuIsOpen,onKeyDown=_this$props5.onKeyDown,tabSelectsValue=_this$props5.tabSelectsValue,openMenuOnFocus=_this$props5.openMenuOnFocus;var _this$state=_this.state,focusedOption=_this$state.focusedOption,focusedValue=_this$state.focusedValue,selectValue=_this$state.selectValue;if(isDisabled)return;if(typeof onKeyDown==="function"){onKeyDown(event2);if(event2.defaultPrevented){return}}_this.blockOptionHover=true;switch(event2.key){case"ArrowLeft":if(!isMulti||inputValue)return;_this.focusValue("previous");break;case"ArrowRight":if(!isMulti||inputValue)return;_this.focusValue("next");break;case"Delete":case"Backspace":if(inputValue)return;if(focusedValue){_this.removeValue(focusedValue)}else{if(!backspaceRemovesValue)return;if(isMulti){_this.popValue()}else if(isClearable){_this.clearValue()}}break;case"Tab":if(_this.isComposing)return;if(event2.shiftKey||!menuIsOpen||!tabSelectsValue||!focusedOption||openMenuOnFocus&&_this.isOptionSelected(focusedOption,selectValue)){return}_this.selectOption(focusedOption);break;case"Enter":if(event2.keyCode===229){break}if(menuIsOpen){if(!focusedOption)return;if(_this.isComposing)return;_this.selectOption(focusedOption);break}return;case"Escape":if(menuIsOpen){_this.setState({inputIsHiddenAfterUpdate:false});_this.onInputChange("",{action:"menu-close",prevInputValue:inputValue});_this.onMenuClose()}else if(isClearable&&escapeClearsValue){_this.clearValue()}break;case" ":if(inputValue){return}if(!menuIsOpen){_this.openMenu("first");break}if(!focusedOption)return;_this.selectOption(focusedOption);break;case"ArrowUp":if(menuIsOpen){_this.focusOption("up")}else{_this.openMenu("last")}break;case"ArrowDown":if(menuIsOpen){_this.focusOption("down")}else{_this.openMenu("first")}break;case"PageUp":if(!menuIsOpen)return;_this.focusOption("pageup");break;case"PageDown":if(!menuIsOpen)return;_this.focusOption("pagedown");break;case"Home":if(!menuIsOpen)return;_this.focusOption("first");break;case"End":if(!menuIsOpen)return;_this.focusOption("last");break;default:return}event2.preventDefault()};_this.state.instancePrefix="react-select-"+(_this.props.instanceId||++instanceId);_this.state.selectValue=cleanValue(_props.value);if(_props.menuIsOpen&&_this.state.selectValue.length){var focusableOptionsWithIds=_this.getFocusableOptionsWithIds();var focusableOptions=_this.buildFocusableOptions();var optionIndex=focusableOptions.indexOf(_this.state.selectValue[0]);_this.state.focusableOptionsWithIds=focusableOptionsWithIds;_this.state.focusedOption=focusableOptions[optionIndex];_this.state.focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusableOptions[optionIndex])}return _this}_createClass(Select2,[{key:"componentDidMount",value:function componentDidMount(){this.startListeningComposition();this.startListeningToTouch();if(this.props.closeMenuOnScroll&&document&&document.addEventListener){document.addEventListener("scroll",this.onScroll,true)}if(this.props.autoFocus){this.focusInput()}if(this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef){scrollIntoView(this.menuListRef,this.focusedOptionRef)}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps){var _this$props6=this.props,isDisabled=_this$props6.isDisabled,menuIsOpen=_this$props6.menuIsOpen;var isFocused=this.state.isFocused;if(isFocused&&!isDisabled&&prevProps.isDisabled||isFocused&&menuIsOpen&&!prevProps.menuIsOpen){this.focusInput()}if(isFocused&&isDisabled&&!prevProps.isDisabled){this.setState({isFocused:false},this.onMenuClose)}else if(!isFocused&&!isDisabled&&prevProps.isDisabled&&this.inputRef===document.activeElement){this.setState({isFocused:true})}if(this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate){scrollIntoView(this.menuListRef,this.focusedOptionRef);this.scrollToFocusedOptionOnUpdate=false}}},{key:"componentWillUnmount",value:function componentWillUnmount(){this.stopListeningComposition();this.stopListeningToTouch();document.removeEventListener("scroll",this.onScroll,true)}},{key:"onMenuOpen",value:function onMenuOpen(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function onMenuClose(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue});this.props.onMenuClose()}},{key:"onInputChange",value:function onInputChange(newValue,actionMeta){this.props.onInputChange(newValue,actionMeta)}},{key:"focusInput",value:function focusInput(){if(!this.inputRef)return;this.inputRef.focus()}},{key:"blurInput",value:function blurInput(){if(!this.inputRef)return;this.inputRef.blur()}},{key:"openMenu",value:function openMenu(focusOption){var _this2=this;var _this$state2=this.state,selectValue=_this$state2.selectValue,isFocused=_this$state2.isFocused;var focusableOptions=this.buildFocusableOptions();var openAtIndex=focusOption==="first"?0:focusableOptions.length-1;if(!this.props.isMulti){var selectedIndex=focusableOptions.indexOf(selectValue[0]);if(selectedIndex>-1){openAtIndex=selectedIndex}}this.scrollToFocusedOptionOnUpdate=!(isFocused&&this.menuListRef);this.setState({inputIsHiddenAfterUpdate:false,focusedValue:null,focusedOption:focusableOptions[openAtIndex],focusedOptionId:this.getFocusedOptionId(focusableOptions[openAtIndex])},(function(){return _this2.onMenuOpen()}))}},{key:"focusValue",value:function focusValue(direction){var _this$state3=this.state,selectValue=_this$state3.selectValue,focusedValue=_this$state3.focusedValue;if(!this.props.isMulti)return;this.setState({focusedOption:null});var focusedIndex=selectValue.indexOf(focusedValue);if(!focusedValue){focusedIndex=-1}var lastIndex=selectValue.length-1;var nextFocus=-1;if(!selectValue.length)return;switch(direction){case"previous":if(focusedIndex===0){nextFocus=0}else if(focusedIndex===-1){nextFocus=lastIndex}else{nextFocus=focusedIndex-1}break;case"next":if(focusedIndex>-1&&focusedIndex0&&arguments[0]!==void 0?arguments[0]:"first";var pageSize=this.props.pageSize;var focusedOption=this.state.focusedOption;var options2=this.getFocusableOptions();if(!options2.length)return;var nextFocus=0;var focusedIndex=options2.indexOf(focusedOption);if(!focusedOption){focusedIndex=-1}if(direction==="up"){nextFocus=focusedIndex>0?focusedIndex-1:options2.length-1}else if(direction==="down"){nextFocus=(focusedIndex+1)%options2.length}else if(direction==="pageup"){nextFocus=focusedIndex-pageSize;if(nextFocus<0)nextFocus=0}else if(direction==="pagedown"){nextFocus=focusedIndex+pageSize;if(nextFocus>options2.length-1)nextFocus=options2.length-1}else if(direction==="last"){nextFocus=options2.length-1}this.scrollToFocusedOptionOnUpdate=true;this.setState({focusedOption:options2[nextFocus],focusedValue:null,focusedOptionId:this.getFocusedOptionId(options2[nextFocus])})}},{key:"getTheme",value:function getTheme(){if(!this.props.theme){return defaultTheme}if(typeof this.props.theme==="function"){return this.props.theme(defaultTheme)}return _objectSpread2(_objectSpread2({},defaultTheme),this.props.theme)}},{key:"getCommonProps",value:function getCommonProps(){var clearValue=this.clearValue,cx=this.cx,getStyles=this.getStyles,getClassNames=this.getClassNames,getValue=this.getValue,selectOption=this.selectOption,setValue=this.setValue,props=this.props;var isMulti=props.isMulti,isRtl=props.isRtl,options2=props.options;var hasValue=this.hasValue();return{clearValue:clearValue,cx:cx,getStyles:getStyles,getClassNames:getClassNames,getValue:getValue,hasValue:hasValue,isMulti:isMulti,isRtl:isRtl,options:options2,selectOption:selectOption,selectProps:props,setValue:setValue,theme:this.getTheme()}}},{key:"hasValue",value:function hasValue(){var selectValue=this.state.selectValue;return selectValue.length>0}},{key:"hasOptions",value:function hasOptions(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function isClearable(){var _this$props7=this.props,isClearable2=_this$props7.isClearable,isMulti=_this$props7.isMulti;if(isClearable2===void 0)return isMulti;return isClearable2}},{key:"isOptionDisabled",value:function isOptionDisabled3(option,selectValue){return _isOptionDisabled(this.props,option,selectValue)}},{key:"isOptionSelected",value:function isOptionSelected(option,selectValue){return _isOptionSelected(this.props,option,selectValue)}},{key:"filterOption",value:function filterOption(option,inputValue){return _filterOption(this.props,option,inputValue)}},{key:"formatOptionLabel",value:function formatOptionLabel(data,context){if(typeof this.props.formatOptionLabel==="function"){var _inputValue=this.props.inputValue;var _selectValue=this.state.selectValue;return this.props.formatOptionLabel(data,{context:context,inputValue:_inputValue,selectValue:_selectValue})}else{return this.getOptionLabel(data)}}},{key:"formatGroupLabel",value:function formatGroupLabel3(data){return this.props.formatGroupLabel(data)}},{key:"startListeningComposition",value:function startListeningComposition(){if(document&&document.addEventListener){document.addEventListener("compositionstart",this.onCompositionStart,false);document.addEventListener("compositionend",this.onCompositionEnd,false)}}},{key:"stopListeningComposition",value:function stopListeningComposition(){if(document&&document.removeEventListener){document.removeEventListener("compositionstart",this.onCompositionStart);document.removeEventListener("compositionend",this.onCompositionEnd)}}},{key:"startListeningToTouch",value:function startListeningToTouch(){if(document&&document.addEventListener){document.addEventListener("touchstart",this.onTouchStart,false);document.addEventListener("touchmove",this.onTouchMove,false);document.addEventListener("touchend",this.onTouchEnd,false)}}},{key:"stopListeningToTouch",value:function stopListeningToTouch(){if(document&&document.removeEventListener){document.removeEventListener("touchstart",this.onTouchStart);document.removeEventListener("touchmove",this.onTouchMove);document.removeEventListener("touchend",this.onTouchEnd)}}},{key:"renderInput",value:function renderInput(){var _this$props8=this.props,isDisabled=_this$props8.isDisabled,isSearchable=_this$props8.isSearchable,inputId=_this$props8.inputId,inputValue=_this$props8.inputValue,tabIndex=_this$props8.tabIndex,form=_this$props8.form,menuIsOpen=_this$props8.menuIsOpen,required=_this$props8.required;var _this$getComponents=this.getComponents(),Input3=_this$getComponents.Input;var _this$state4=this.state,inputIsHidden=_this$state4.inputIsHidden,ariaSelection=_this$state4.ariaSelection;var commonProps=this.commonProps;var id=inputId||this.getElementId("input");var ariaAttributes=_objectSpread2(_objectSpread2(_objectSpread2({"aria-autocomplete":"list","aria-expanded":menuIsOpen,"aria-haspopup":true,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":required,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},menuIsOpen&&{"aria-controls":this.getElementId("listbox")}),!isSearchable&&{"aria-readonly":true}),this.hasValue()?(ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});if(!isSearchable){return React.createElement(DummyInput,_extends({id:id,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop,onFocus:this.onInputFocus,disabled:isDisabled,tabIndex:tabIndex,inputMode:"none",form:form,value:""},ariaAttributes))}return React.createElement(Input3,_extends({},commonProps,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:id,innerRef:this.getInputRef,isDisabled:isDisabled,isHidden:inputIsHidden,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:tabIndex,form:form,type:"text",value:inputValue},ariaAttributes))}},{key:"renderPlaceholderOrValue",value:function renderPlaceholderOrValue(){var _this3=this;var _this$getComponents2=this.getComponents(),MultiValue3=_this$getComponents2.MultiValue,MultiValueContainer2=_this$getComponents2.MultiValueContainer,MultiValueLabel2=_this$getComponents2.MultiValueLabel,MultiValueRemove2=_this$getComponents2.MultiValueRemove,SingleValue3=_this$getComponents2.SingleValue,Placeholder3=_this$getComponents2.Placeholder;var commonProps=this.commonProps;var _this$props9=this.props,controlShouldRenderValue=_this$props9.controlShouldRenderValue,isDisabled=_this$props9.isDisabled,isMulti=_this$props9.isMulti,inputValue=_this$props9.inputValue,placeholder=_this$props9.placeholder;var _this$state5=this.state,selectValue=_this$state5.selectValue,focusedValue=_this$state5.focusedValue,isFocused=_this$state5.isFocused;if(!this.hasValue()||!controlShouldRenderValue){return inputValue?null:React.createElement(Placeholder3,_extends({},commonProps,{key:"placeholder",isDisabled:isDisabled,isFocused:isFocused,innerProps:{id:this.getElementId("placeholder")}}),placeholder)}if(isMulti){return selectValue.map((function(opt,index2){var isOptionFocused=opt===focusedValue;var key="".concat(_this3.getOptionLabel(opt),"-").concat(_this3.getOptionValue(opt));return React.createElement(MultiValue3,_extends({},commonProps,{components:{Container:MultiValueContainer2,Label:MultiValueLabel2,Remove:MultiValueRemove2},isFocused:isOptionFocused,isDisabled:isDisabled,key:key,index:index2,removeProps:{onClick:function onClick(){return _this3.removeValue(opt)},onTouchEnd:function onTouchEnd(){return _this3.removeValue(opt)},onMouseDown:function onMouseDown(e){e.preventDefault()}},data:opt}),_this3.formatOptionLabel(opt,"value"))}))}if(inputValue){return null}var singleValue=selectValue[0];return React.createElement(SingleValue3,_extends({},commonProps,{data:singleValue,isDisabled:isDisabled}),this.formatOptionLabel(singleValue,"value"))}},{key:"renderClearIndicator",value:function renderClearIndicator(){var _this$getComponents3=this.getComponents(),ClearIndicator3=_this$getComponents3.ClearIndicator;var commonProps=this.commonProps;var _this$props10=this.props,isDisabled=_this$props10.isDisabled,isLoading=_this$props10.isLoading;var isFocused=this.state.isFocused;if(!this.isClearable()||!ClearIndicator3||isDisabled||!this.hasValue()||isLoading){return null}var innerProps={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return React.createElement(ClearIndicator3,_extends({},commonProps,{innerProps:innerProps,isFocused:isFocused}))}},{key:"renderLoadingIndicator",value:function renderLoadingIndicator(){var _this$getComponents4=this.getComponents(),LoadingIndicator3=_this$getComponents4.LoadingIndicator;var commonProps=this.commonProps;var _this$props11=this.props,isDisabled=_this$props11.isDisabled,isLoading=_this$props11.isLoading;var isFocused=this.state.isFocused;if(!LoadingIndicator3||!isLoading)return null;var innerProps={"aria-hidden":"true"};return React.createElement(LoadingIndicator3,_extends({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderIndicatorSeparator",value:function renderIndicatorSeparator(){var _this$getComponents5=this.getComponents(),DropdownIndicator3=_this$getComponents5.DropdownIndicator,IndicatorSeparator3=_this$getComponents5.IndicatorSeparator;if(!DropdownIndicator3||!IndicatorSeparator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;return React.createElement(IndicatorSeparator3,_extends({},commonProps,{isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderDropdownIndicator",value:function renderDropdownIndicator(){var _this$getComponents6=this.getComponents(),DropdownIndicator3=_this$getComponents6.DropdownIndicator;if(!DropdownIndicator3)return null;var commonProps=this.commonProps;var isDisabled=this.props.isDisabled;var isFocused=this.state.isFocused;var innerProps={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return React.createElement(DropdownIndicator3,_extends({},commonProps,{innerProps:innerProps,isDisabled:isDisabled,isFocused:isFocused}))}},{key:"renderMenu",value:function renderMenu(){var _this4=this;var _this$getComponents7=this.getComponents(),Group3=_this$getComponents7.Group,GroupHeading3=_this$getComponents7.GroupHeading,Menu3=_this$getComponents7.Menu,MenuList3=_this$getComponents7.MenuList,MenuPortal3=_this$getComponents7.MenuPortal,LoadingMessage3=_this$getComponents7.LoadingMessage,NoOptionsMessage3=_this$getComponents7.NoOptionsMessage,Option3=_this$getComponents7.Option;var commonProps=this.commonProps;var focusedOption=this.state.focusedOption;var _this$props12=this.props,captureMenuScroll=_this$props12.captureMenuScroll,inputValue=_this$props12.inputValue,isLoading=_this$props12.isLoading,loadingMessage2=_this$props12.loadingMessage,minMenuHeight=_this$props12.minMenuHeight,maxMenuHeight=_this$props12.maxMenuHeight,menuIsOpen=_this$props12.menuIsOpen,menuPlacement=_this$props12.menuPlacement,menuPosition=_this$props12.menuPosition,menuPortalTarget=_this$props12.menuPortalTarget,menuShouldBlockScroll=_this$props12.menuShouldBlockScroll,menuShouldScrollIntoView=_this$props12.menuShouldScrollIntoView,noOptionsMessage2=_this$props12.noOptionsMessage,onMenuScrollToTop=_this$props12.onMenuScrollToTop,onMenuScrollToBottom=_this$props12.onMenuScrollToBottom;if(!menuIsOpen)return null;var render=function render2(props,id){var type=props.type,data=props.data,isDisabled=props.isDisabled,isSelected=props.isSelected,label=props.label,value=props.value;var isFocused=focusedOption===data;var onHover=isDisabled?void 0:function(){return _this4.onOptionHover(data)};var onSelect=isDisabled?void 0:function(){return _this4.selectOption(data)};var optionId="".concat(_this4.getElementId("option"),"-").concat(id);var innerProps={id:optionId,onClick:onSelect,onMouseMove:onHover,onMouseOver:onHover,tabIndex:-1,role:"option","aria-selected":_this4.isAppleDevice?void 0:isSelected};return React.createElement(Option3,_extends({},commonProps,{innerProps:innerProps,data:data,isDisabled:isDisabled,isSelected:isSelected,key:optionId,label:label,type:type,value:value,isFocused:isFocused,innerRef:isFocused?_this4.getFocusedOptionRef:void 0}),_this4.formatOptionLabel(props.data,"menu"))};var menuUI;if(this.hasOptions()){menuUI=this.getCategorizedOptions().map((function(item){if(item.type==="group"){var _data=item.data,options2=item.options,groupIndex=item.index;var groupId="".concat(_this4.getElementId("group"),"-").concat(groupIndex);var headingId="".concat(groupId,"-heading");return React.createElement(Group3,_extends({},commonProps,{key:groupId,data:_data,options:options2,Heading:GroupHeading3,headingProps:{id:headingId,data:item.data},label:_this4.formatGroupLabel(item.data)}),item.options.map((function(option){return render(option,"".concat(groupIndex,"-").concat(option.index))})))}else if(item.type==="option"){return render(item,"".concat(item.index))}}))}else if(isLoading){var message=loadingMessage2({inputValue:inputValue});if(message===null)return null;menuUI=React.createElement(LoadingMessage3,commonProps,message)}else{var _message=noOptionsMessage2({inputValue:inputValue});if(_message===null)return null;menuUI=React.createElement(NoOptionsMessage3,commonProps,_message)}var menuPlacementProps={minMenuHeight:minMenuHeight,maxMenuHeight:maxMenuHeight,menuPlacement:menuPlacement,menuPosition:menuPosition,menuShouldScrollIntoView:menuShouldScrollIntoView};var menuElement=React.createElement(MenuPlacer,_extends({},commonProps,menuPlacementProps),(function(_ref4){var ref=_ref4.ref,_ref4$placerProps=_ref4.placerProps,placement=_ref4$placerProps.placement,maxHeight=_ref4$placerProps.maxHeight;return React.createElement(Menu3,_extends({},commonProps,menuPlacementProps,{innerRef:ref,innerProps:{onMouseDown:_this4.onMenuMouseDown,onMouseMove:_this4.onMenuMouseMove},isLoading:isLoading,placement:placement}),React.createElement(ScrollManager,{captureEnabled:captureMenuScroll,onTopArrive:onMenuScrollToTop,onBottomArrive:onMenuScrollToBottom,lockEnabled:menuShouldBlockScroll},(function(scrollTargetRef){return React.createElement(MenuList3,_extends({},commonProps,{innerRef:function innerRef(instance){_this4.getMenuListRef(instance);scrollTargetRef(instance)},innerProps:{role:"listbox","aria-multiselectable":commonProps.isMulti,id:_this4.getElementId("listbox")},isLoading:isLoading,maxHeight:maxHeight,focusedOption:focusedOption}),menuUI)})))}));return menuPortalTarget||menuPosition==="fixed"?React.createElement(MenuPortal3,_extends({},commonProps,{appendTo:menuPortalTarget,controlElement:this.controlRef,menuPlacement:menuPlacement,menuPosition:menuPosition}),menuElement):menuElement}},{key:"renderFormField",value:function renderFormField(){var _this5=this;var _this$props13=this.props,delimiter2=_this$props13.delimiter,isDisabled=_this$props13.isDisabled,isMulti=_this$props13.isMulti,name2=_this$props13.name,required=_this$props13.required;var selectValue=this.state.selectValue;if(required&&!this.hasValue()&&!isDisabled){return React.createElement(RequiredInput$1,{name:name2,onFocus:this.onValueInputFocus})}if(!name2||isDisabled)return;if(isMulti){if(delimiter2){var value=selectValue.map((function(opt){return _this5.getOptionValue(opt)})).join(delimiter2);return React.createElement("input",{name:name2,type:"hidden",value:value})}else{var input=selectValue.length>0?selectValue.map((function(opt,i){return React.createElement("input",{key:"i-".concat(i),name:name2,type:"hidden",value:_this5.getOptionValue(opt)})})):React.createElement("input",{name:name2,type:"hidden",value:""});return React.createElement("div",null,input)}}else{var _value=selectValue[0]?this.getOptionValue(selectValue[0]):"";return React.createElement("input",{name:name2,type:"hidden",value:_value})}}},{key:"renderLiveRegion",value:function renderLiveRegion(){var commonProps=this.commonProps;var _this$state6=this.state,ariaSelection=_this$state6.ariaSelection,focusedOption=_this$state6.focusedOption,focusedValue=_this$state6.focusedValue,isFocused=_this$state6.isFocused,selectValue=_this$state6.selectValue;var focusableOptions=this.getFocusableOptions();return React.createElement(LiveRegion$1,_extends({},commonProps,{id:this.getElementId("live-region"),ariaSelection:ariaSelection,focusedOption:focusedOption,focusedValue:focusedValue,isFocused:isFocused,selectValue:selectValue,focusableOptions:focusableOptions,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function render(){var _this$getComponents8=this.getComponents(),Control3=_this$getComponents8.Control,IndicatorsContainer3=_this$getComponents8.IndicatorsContainer,SelectContainer3=_this$getComponents8.SelectContainer,ValueContainer3=_this$getComponents8.ValueContainer;var _this$props14=this.props,className=_this$props14.className,id=_this$props14.id,isDisabled=_this$props14.isDisabled,menuIsOpen=_this$props14.menuIsOpen;var isFocused=this.state.isFocused;var commonProps=this.commonProps=this.getCommonProps();return React.createElement(SelectContainer3,_extends({},commonProps,{className:className,innerProps:{id:id,onKeyDown:this.onKeyDown},isDisabled:isDisabled,isFocused:isFocused}),this.renderLiveRegion(),React.createElement(Control3,_extends({},commonProps,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:isDisabled,isFocused:isFocused,menuIsOpen:menuIsOpen}),React.createElement(ValueContainer3,_extends({},commonProps,{isDisabled:isDisabled}),this.renderPlaceholderOrValue(),this.renderInput()),React.createElement(IndicatorsContainer3,_extends({},commonProps,{isDisabled:isDisabled}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(props,state){var prevProps=state.prevProps,clearFocusValueOnUpdate=state.clearFocusValueOnUpdate,inputIsHiddenAfterUpdate=state.inputIsHiddenAfterUpdate,ariaSelection=state.ariaSelection,isFocused=state.isFocused,prevWasFocused=state.prevWasFocused,instancePrefix=state.instancePrefix;var options2=props.options,value=props.value,menuIsOpen=props.menuIsOpen,inputValue=props.inputValue,isMulti=props.isMulti;var selectValue=cleanValue(value);var newMenuOptionsState={};if(prevProps&&(value!==prevProps.value||options2!==prevProps.options||menuIsOpen!==prevProps.menuIsOpen||inputValue!==prevProps.inputValue)){var focusableOptions=menuIsOpen?buildFocusableOptions(props,selectValue):[];var focusableOptionsWithIds=menuIsOpen?buildFocusableOptionsWithIds(buildCategorizedOptions(props,selectValue),"".concat(instancePrefix,"-option")):[];var focusedValue=clearFocusValueOnUpdate?getNextFocusedValue(state,selectValue):null;var focusedOption=getNextFocusedOption(state,focusableOptions);var focusedOptionId=getFocusedOptionId(focusableOptionsWithIds,focusedOption);newMenuOptionsState={selectValue:selectValue,focusedOption:focusedOption,focusedOptionId:focusedOptionId,focusableOptionsWithIds:focusableOptionsWithIds,focusedValue:focusedValue,clearFocusValueOnUpdate:false}}var newInputIsHiddenState=inputIsHiddenAfterUpdate!=null&&props!==prevProps?{inputIsHidden:inputIsHiddenAfterUpdate,inputIsHiddenAfterUpdate:void 0}:{};var newAriaSelection=ariaSelection;var hasKeptFocus=isFocused&&prevWasFocused;if(isFocused&&!hasKeptFocus){newAriaSelection={value:valueTernary(isMulti,selectValue,selectValue[0]||null),options:selectValue,action:"initial-input-focus"};hasKeptFocus=!prevWasFocused}if((ariaSelection===null||ariaSelection===void 0?void 0:ariaSelection.action)==="initial-input-focus"){newAriaSelection=null}return _objectSpread2(_objectSpread2(_objectSpread2({},newMenuOptionsState),newInputIsHiddenState),{},{prevProps:props,ariaSelection:newAriaSelection,prevWasFocused:hasKeptFocus})}}]);return Select2}(Component);Select.defaultProps=defaultProps;var StateManagedSelect=forwardRef((function(props,ref){var baseSelectProps=useStateManager(props);return React.createElement(Select,_extends({ref:ref},baseSelectProps))}));var StateManagedSelect$1=StateManagedSelect;var _excluded$1=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function useAsync(_ref3){var _ref$defaultOptions=_ref3.defaultOptions,propsDefaultOptions=_ref$defaultOptions===void 0?false:_ref$defaultOptions,_ref$cacheOptions=_ref3.cacheOptions,cacheOptions=_ref$cacheOptions===void 0?false:_ref$cacheOptions,propsLoadOptions=_ref3.loadOptions;_ref3.options;var _ref$isLoading=_ref3.isLoading,propsIsLoading=_ref$isLoading===void 0?false:_ref$isLoading,propsOnInputChange=_ref3.onInputChange,_ref$filterOption=_ref3.filterOption,filterOption=_ref$filterOption===void 0?null:_ref$filterOption,restSelectProps=_objectWithoutProperties(_ref3,_excluded$1);var propsInputValue=restSelectProps.inputValue;var lastRequest=useRef(void 0);var mounted=useRef(false);var _useState=useState(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0),_useState2=_slicedToArray(_useState,2),defaultOptions=_useState2[0],setDefaultOptions=_useState2[1];var _useState3=useState(typeof propsInputValue!=="undefined"?propsInputValue:""),_useState4=_slicedToArray(_useState3,2),stateInputValue=_useState4[0],setStateInputValue=_useState4[1];var _useState5=useState(propsDefaultOptions===true),_useState6=_slicedToArray(_useState5,2),isLoading=_useState6[0],setIsLoading=_useState6[1];var _useState7=useState(void 0),_useState8=_slicedToArray(_useState7,2),loadedInputValue=_useState8[0],setLoadedInputValue=_useState8[1];var _useState9=useState([]),_useState10=_slicedToArray(_useState9,2),loadedOptions=_useState10[0],setLoadedOptions=_useState10[1];var _useState11=useState(false),_useState12=_slicedToArray(_useState11,2),passEmptyOptions=_useState12[0],setPassEmptyOptions=_useState12[1];var _useState13=useState({}),_useState14=_slicedToArray(_useState13,2),optionsCache=_useState14[0],setOptionsCache=_useState14[1];var _useState15=useState(void 0),_useState16=_slicedToArray(_useState15,2),prevDefaultOptions=_useState16[0],setPrevDefaultOptions=_useState16[1];var _useState17=useState(void 0),_useState18=_slicedToArray(_useState17,2),prevCacheOptions=_useState18[0],setPrevCacheOptions=_useState18[1];if(cacheOptions!==prevCacheOptions){setOptionsCache({});setPrevCacheOptions(cacheOptions)}if(propsDefaultOptions!==prevDefaultOptions){setDefaultOptions(Array.isArray(propsDefaultOptions)?propsDefaultOptions:void 0);setPrevDefaultOptions(propsDefaultOptions)}useEffect((function(){mounted.current=true;return function(){mounted.current=false}}),[]);var loadOptions=useCallback((function(inputValue,callback){if(!propsLoadOptions)return callback();var loader=propsLoadOptions(inputValue,callback);if(loader&&typeof loader.then==="function"){loader.then(callback,(function(){return callback()}))}}),[propsLoadOptions]);useEffect((function(){if(propsDefaultOptions===true){loadOptions(stateInputValue,(function(options3){if(!mounted.current)return;setDefaultOptions(options3||[]);setIsLoading(!!lastRequest.current)}))}}),[]);var onInputChange=useCallback((function(newValue,actionMeta){var inputValue=handleInputChange(newValue,actionMeta,propsOnInputChange);if(!inputValue){lastRequest.current=void 0;setStateInputValue("");setLoadedInputValue("");setLoadedOptions([]);setIsLoading(false);setPassEmptyOptions(false);return}if(cacheOptions&&optionsCache[inputValue]){setStateInputValue(inputValue);setLoadedInputValue(inputValue);setLoadedOptions(optionsCache[inputValue]);setIsLoading(false);setPassEmptyOptions(false)}else{var request=lastRequest.current={};setStateInputValue(inputValue);setIsLoading(true);setPassEmptyOptions(!loadedInputValue);loadOptions(inputValue,(function(options3){if(!mounted)return;if(request!==lastRequest.current)return;lastRequest.current=void 0;setIsLoading(false);setLoadedInputValue(inputValue);setLoadedOptions(options3||[]);setPassEmptyOptions(false);setOptionsCache(options3?_objectSpread2(_objectSpread2({},optionsCache),{},_defineProperty({},inputValue,options3)):optionsCache)}))}}),[cacheOptions,loadOptions,loadedInputValue,optionsCache,propsOnInputChange]);var options2=passEmptyOptions?[]:stateInputValue&&loadedInputValue?loadedOptions:defaultOptions||[];return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options2,isLoading:isLoading||propsIsLoading,onInputChange:onInputChange,filterOption:filterOption})}var AsyncSelect=forwardRef((function(props,ref){var stateManagedProps=useAsync(props);var selectProps=useStateManager(stateManagedProps);return React.createElement(Select,_extends({ref:ref},selectProps))}));var AsyncSelect$1=AsyncSelect;var _excluded=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"];var compareOption=function compareOption2(){var inputValue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var option=arguments.length>1?arguments[1]:void 0;var accessors=arguments.length>2?arguments[2]:void 0;var candidate=String(inputValue).toLowerCase();var optionValue=String(accessors.getOptionValue(option)).toLowerCase();var optionLabel=String(accessors.getOptionLabel(option)).toLowerCase();return optionValue===candidate||optionLabel===candidate};var builtins={formatCreateLabel:function formatCreateLabel(inputValue){return'Create "'.concat(inputValue,'"')},isValidNewOption:function isValidNewOption(inputValue,selectValue,selectOptions,accessors){return!(!inputValue||selectValue.some((function(option){return compareOption(inputValue,option,accessors)}))||selectOptions.some((function(option){return compareOption(inputValue,option,accessors)})))},getNewOptionData:function getNewOptionData(inputValue,optionLabel){return{label:optionLabel,value:inputValue,__isNew__:true}}};function useCreatable(_ref3){var _ref$allowCreateWhile=_ref3.allowCreateWhileLoading,allowCreateWhileLoading=_ref$allowCreateWhile===void 0?false:_ref$allowCreateWhile,_ref$createOptionPosi=_ref3.createOptionPosition,createOptionPosition=_ref$createOptionPosi===void 0?"last":_ref$createOptionPosi,_ref$formatCreateLabe=_ref3.formatCreateLabel,formatCreateLabel2=_ref$formatCreateLabe===void 0?builtins.formatCreateLabel:_ref$formatCreateLabe,_ref$isValidNewOption=_ref3.isValidNewOption,isValidNewOption2=_ref$isValidNewOption===void 0?builtins.isValidNewOption:_ref$isValidNewOption,_ref$getNewOptionData=_ref3.getNewOptionData,getNewOptionData2=_ref$getNewOptionData===void 0?builtins.getNewOptionData:_ref$getNewOptionData,onCreateOption=_ref3.onCreateOption,_ref$options=_ref3.options,propsOptions=_ref$options===void 0?[]:_ref$options,propsOnChange=_ref3.onChange,restSelectProps=_objectWithoutProperties(_ref3,_excluded);var _restSelectProps$getO=restSelectProps.getOptionValue,getOptionValue$1$1=_restSelectProps$getO===void 0?getOptionValue$1:_restSelectProps$getO,_restSelectProps$getO2=restSelectProps.getOptionLabel,getOptionLabel$1$1=_restSelectProps$getO2===void 0?getOptionLabel$1:_restSelectProps$getO2,inputValue=restSelectProps.inputValue,isLoading=restSelectProps.isLoading,isMulti=restSelectProps.isMulti,value=restSelectProps.value,name2=restSelectProps.name;var newOption=useMemo((function(){return isValidNewOption2(inputValue,cleanValue(value),propsOptions,{getOptionValue:getOptionValue$1$1,getOptionLabel:getOptionLabel$1$1})?getNewOptionData2(inputValue,formatCreateLabel2(inputValue)):void 0}),[formatCreateLabel2,getNewOptionData2,getOptionLabel$1$1,getOptionValue$1$1,inputValue,isValidNewOption2,propsOptions,value]);var options2=useMemo((function(){return(allowCreateWhileLoading||!isLoading)&&newOption?createOptionPosition==="first"?[newOption].concat(_toConsumableArray(propsOptions)):[].concat(_toConsumableArray(propsOptions),[newOption]):propsOptions}),[allowCreateWhileLoading,createOptionPosition,isLoading,newOption,propsOptions]);var onChange2=useCallback((function(newValue,actionMeta){if(actionMeta.action!=="select-option"){return propsOnChange(newValue,actionMeta)}var valueArray=Array.isArray(newValue)?newValue:[newValue];if(valueArray[valueArray.length-1]===newOption){if(onCreateOption)onCreateOption(inputValue);else{var newOptionData=getNewOptionData2(inputValue,inputValue);var newActionMeta={action:"create-option",name:name2,option:newOptionData};propsOnChange(valueTernary(isMulti,[].concat(_toConsumableArray(cleanValue(value)),[newOptionData]),newOptionData),newActionMeta)}return}propsOnChange(newValue,actionMeta)}),[getNewOptionData2,inputValue,isMulti,name2,newOption,onCreateOption,propsOnChange,value]);return _objectSpread2(_objectSpread2({},restSelectProps),{},{options:options2,onChange:onChange2})}var CreatableSelect=forwardRef((function(props,ref){var creatableProps=useStateManager(props);var selectProps=useCreatable(creatableProps);return React.createElement(Select,_extends({ref:ref},selectProps))}));var CreatableSelect$1=CreatableSelect;var AsyncCreatableSelect=forwardRef((function(props,ref){var stateManagerProps=useAsync(props);var creatableProps=useStateManager(stateManagerProps);var selectProps=useCreatable(creatableProps);return React.createElement(Select,_extends({ref:ref},selectProps))}));var AsyncCreatableSelect$1=AsyncCreatableSelect;const TypeaheadControl=props=>jsx$1("div",{className:"pb_typeahead_wrapper",children:jsx$1(TextInput$1,{dark:props.selectProps.dark,error:props.selectProps.error,label:props.selectProps.label,marginBottom:"none",children:jsx$1(Flex,{children:jsx$1(components.Control,{className:"text_input",...props})})})});const ClearContainer=props=>{const{selectProps:selectProps,clearValue:clearValue}=props;useEffect((()=>{document.addEventListener(`pb-typeahead-kit-${selectProps.id}:clear`,clearValue)}),[true]);return jsx$1(components.ClearIndicator,{className:"clear_indicator",...props})};const IndicatorsContainer=props=>jsx$1(components.IndicatorsContainer,{className:"text_input_indicators",...props});const MenuList=props=>jsxs(components.MenuList,{...props,children:[props.children,props.footer]});const MultiValue=props=>{const{removeProps:removeProps3}=props;const{imageUrl:imageUrl,label:label}=props.data;const{dark:dark,multiKit:multiKit,pillColor:pillColor,truncate:truncate}=props.selectProps;return jsxs(components.MultiValueContainer,{className:"text_input_multivalue_container",...props,children:[multiKit==="badge"&&jsx$1(Badge,{closeProps:removeProps3,removeIcon:true,text:label,variant:"primary"}),multiKit!=="badge"&&imageUrl&&jsx$1(FormPill,{avatarUrl:imageUrl,closeProps:removeProps3,color:pillColor,dark:dark,marginRight:"xs",name:label,size:multiKit==="smallPill"?"small":"",text:"",truncate:truncate,...props}),multiKit!=="badge"&&!imageUrl&&jsx$1(FormPill,{closeProps:removeProps3,color:pillColor,dark:dark,marginRight:"xs",name:"",size:multiKit==="smallPill"?"small":"",text:label,truncate:truncate,...props})]})};const User=props=>{const{align:align="left",aria:aria={},avatar:avatar=false,avatarUrl:avatarUrl,className:className,dark:dark=false,data:data={},htmlOptions:htmlOptions={},id:id,name:name2,orientation:orientation="horizontal",size:size="sm",subtitle:subtitle,territory:territory="",title:title=""}=props;const dataProps=buildDataProps(data);const ariaProps=buildAriaProps(aria);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames(buildCss("pb_user_kit",align,orientation,size),globalProps(props),className);const avatarPresent=avatar||avatarUrl;return jsxs("div",{...ariaProps,...dataProps,...htmlProps,className:classes,id:id,children:[avatarPresent&&jsx$1(Avatar,{imageUrl:avatarUrl,name:name2,size:size,status:null}),jsxs("div",{className:"content_wrapper",children:[jsx$1(Title,{dark:dark,size:size=="lg"?3:4,text:name2}),jsx$1(Body$1,{color:"light",dark:dark,variant:null,children:territory===""?title:`${territory} • ${title}`}),typeof subtitle==="string"&&jsx$1(Body$1,{color:"light",dark:dark,text:subtitle,variant:null}),typeof subtitle!=="string"&&jsx$1(Fragment,{children:subtitle})]})]})};const Option=props=>{const{imageUrl:imageUrl}=props.data;const{valueComponent:valueComponent}=props.selectProps;return jsx$1(components.Option,{...props,children:jsxs(Fragment,{children:[!valueComponent&&imageUrl&&jsx$1(User,{align:"left",avatarUrl:imageUrl,dark:props.selectProps.dark,name:props.label,orientation:"horizontal"}),valueComponent&&valueComponent(props.data),!valueComponent&&!imageUrl&&props.label]})})};const Placeholder=props=>jsx$1(Fragment,{children:jsxs(Flex,{align:"center",className:"placeholder",children:[jsx$1(components.IndicatorsContainer,{...props}),props.selectProps.plusIcon&&jsx$1(Icon,{className:"typeahead-plus-icon",icon:"plus"})]})});const ValueContainer=props=>jsx$1(components.ValueContainer,{className:"text_input_value_container",...props});const kitComponents=Object.freeze(Object.defineProperty({__proto__:null,ClearIndicator:ClearContainer,Control:TypeaheadControl,IndicatorsContainer:IndicatorsContainer,MenuList:MenuList,MultiValue:MultiValue,Option:Option,Placeholder:Placeholder,ValueContainer:ValueContainer},Symbol.toStringTag,{value:"Module"}));const Typeahead=({async:async,className:className,components:components2={},createable:createable,error:error="",data:data={},getOptionLabel:getOptionLabel4,getOptionValue:getOptionValue4,htmlOptions:htmlOptions={},id:id,loadOptions:loadOptions=noop$1,marginBottom:marginBottom="sm",pillColor:pillColor,...props})=>{const selectProps={cacheOptions:true,components:{Control:TypeaheadControl,ClearIndicator:ClearContainer,IndicatorsContainer:IndicatorsContainer,IndicatorSeparator:null,MenuList:MenuList,MultiValue:MultiValue,Option:Option,Placeholder:Placeholder,ValueContainer:ValueContainer,...components2},loadOptions:isString(loadOptions)?get(window,loadOptions):loadOptions,getOptionLabel:isString(getOptionLabel4)?get(window,getOptionLabel4):getOptionLabel4,getOptionValue:isString(getOptionValue4)?get(window,getOptionValue4):getOptionValue4,defaultOptions:true,id:id||uniqueId(),inline:false,isClearable:true,isSearchable:true,name:name,multiKit:"",onCreateOption:null,plusIcon:false,onMultiValueClick:_option=>void 0,pillColor:pillColor,...props};const Tag=createable?async?AsyncCreatableSelect$1:CreatableSelect$1:async?AsyncSelect$1:StateManagedSelect$1;const handleOnChange=(_data,{action:action,option:option,removedValue:removedValue})=>{if(action==="select-option"){if(selectProps.onMultiValueClick)selectProps.onMultiValueClick(option);const multiValueClearEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-select`,{detail:option?option:_data});document.dispatchEvent(multiValueClearEvent)}if(action==="remove-value"||action==="pop-value"){const multiValueRemoveEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-option-remove`,{detail:removedValue});document.dispatchEvent(multiValueRemoveEvent)}if(action==="clear"){const multiValueClearEvent=new CustomEvent(`pb-typeahead-kit-${selectProps.id}-result-clear`);document.dispatchEvent(multiValueClearEvent)}};const filteredProps={...props};delete filteredProps.truncate;const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const classes=classnames("pb_typeahead_kit react-select",`mb_${marginBottom}`,globalProps(filteredProps),className);const inlineClass=selectProps.inline?"inline":null;return jsx$1("div",{...dataProps,...htmlProps,className:classnames(classes,inlineClass),children:jsx$1(Tag,{classNamePrefix:"typeahead-kit-select",error:error,onChange:handleOnChange,...selectProps})})};Object.keys(kitComponents).forEach((k=>{Typeahead[k]=kitComponents[k]}));export{Collapsible as $,Avatar as A,BarGraph as B,CircleChart as C,Dialog as D,noop$1 as E,Flex as F,Gauge as G,PbReactPopover as H,Icon as I,CircleIconButton as J,Button as K,Legend as L,MultiLevelSelect as M,HighchartsReact as N,Badge as O,Passphrase as P,joinPresent as Q,RichTextEditor as R,SectionSeparator as S,TreemapChart as T,titleize as U,IconCircle as V,Image as W,Checkbox as X,Radio$1 as Y,Background as Z,__awaiter as _,DialogBody as a,DraggableProvider as a0,User as a1,FormPill as a2,Highlight as a3,Nav as a4,NavItem as a5,OnlineStatus as a6,Tooltip as a7,components as a8,DialogFooter as b,DialogHeader as c,DistributionBar as d,LineGraph as e,Typeahead as f,PhoneNumberInput$1 as g,buildAriaProps as h,buildDataProps as i,buildHtmlProps as j,classnames as k,globalProps as l,buildCss as m,globalInlineProps as n,FlexItem as o,Body$1 as p,Caption as q,domSafeProps as r,Title as s,DialogContext as t,Draggable as u,TextInput$1 as v,__generator as w,__spread as x,PropTypes as y,Card as z};