@wavv/ui 2.0.0-alpha.71 → 2.0.0-alpha.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import o,{useEffect as i,useRef as a,useState as l,forwardRef as s,cloneElement as c,Children as u,createContext as d,useMemo as f,useContext as p,useCallback as h,useImperativeHandle as g,isValidElement as m,PureComponent as v,createElement as y,Component as b,useLayoutEffect as w,Fragment as C,useReducer as x}from"react";import{withEmotionCache as S,ThemeContext as k,keyframes as E,useTheme as O,Global as D}from"@emotion/react";import*as P from"react-dom";import T,{createPortal as A,flushSync as M}from"react-dom";var _=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_.apply(this,arguments)};function j(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(null,arguments)}function R(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var I=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,N=R((function(e){return I.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$="undefined"!=typeof document;var z=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===$&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var F={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},B=!1,K=/[A-Z]|^ms/g,V=/_EMO_([^_]+?)_([^]*?)_EMO_/g,H=function(e){return 45===e.charCodeAt(1)},U=function(e){return null!=e&&"boolean"!=typeof e},W=R((function(e){return H(e)?e:e.replace(K,"-$&").toLowerCase()})),Z=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(V,(function(e,t,n){return Y={name:t,styles:n,next:Y},t}))}return 1===F[e]||H(e)||"number"!=typeof t||0===t?t:t+"px"},q="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function G(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Y={name:o.name,styles:o.styles,next:Y},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Y={name:a.name,styles:a.styles,next:Y},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=G(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var l=a;null!=t&&void 0!==t[l]?r+=i+"{"+t[l]+"}":U(l)&&(r+=W(i)+":"+Z(i,l)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&B)throw new Error(q);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=G(e,t,a);switch(i){case"animation":case"animationName":r+=W(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var c=0;c<a.length;c++)U(a[c])&&(r+=W(i)+":"+Z(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=Y,s=n(e);return Y=l,G(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Y,X=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var J="undefined"!=typeof document,Q=function(e){return e()},ee=!!r.useInsertionEffect&&r.useInsertionEffect,te=J&&ee||Q,ne=N,re=function(e){return"theme"!==e},oe=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ne:re},ie=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ae="undefined"!=typeof document,le=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;z(t,n,o);var i=te((function(){return function(e,t,n){z(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);$||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!$&&0!==o.length)return o}}(t,n,o)}));if(!ae&&void 0!==i){for(var a,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return r.createElement("style",((a={})["data-emotion"]=t.key+" "+l,a.dangerouslySetInnerHTML={__html:i},a.nonce=t.sheet.nonce,a))}return null},se=function e(t,n){var o,i,a=t.__emotion_real===t,l=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,i=n.target);var s=ie(t,n,a),c=s||oe(l),u=!c("as");return function(){var d=arguments,f=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,h=1;h<p;h++)f.push(d[h],d[0][h])}var g=S((function(e,t,n){var o,a,d,p,h=u&&e.as||l,g="",m=[],v=e;if(null==e.theme){for(var y in v={},e)v[y]=e[y];v.theme=r.useContext(k)}"string"==typeof e.className?(o=t.registered,a=m,d=e.className,p="",d.split(" ").forEach((function(e){void 0!==o[e]?a.push(o[e]+";"):p+=e+" "})),g=p):null!=e.className&&(g=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Y=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=G(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=G(n,t,e[a]),r&&(o+=i[a]);X.lastIndex=0;for(var l,s="";null!==(l=X.exec(o));)s+="-"+l[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:Y}}(f.concat(m),t.registered,v);g+=t.key+"-"+b.name,void 0!==i&&(g+=" "+i);var w=u&&void 0===s?oe(h):c,C={};for(var x in e)u&&"as"===x||w(x)&&(C[x]=e[x]);return C.className=g,n&&(C.ref=n),r.createElement(r.Fragment,null,r.createElement(le,{cache:t,serialized:b,isStringTag:"string"==typeof h}),r.createElement(h,C))}));return g.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_styles=f,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+i}}),g.withComponent=function(t,r){return e(t,L({},n,r,{shouldForwardProp:ie(g,r,!0)})).apply(void 0,f)},g}}.bind();function ce(t,n=[]){let o=[];const i=()=>{const e=o.map((e=>r.createContext(e)));return function(n){const o=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:o}})),[n,o])}};return i.scopeName=t,[function(n,i){const a=r.createContext(i),l=o.length;function s(n){const{scope:o,children:i,...s}=n,c=o?.[t][l]||a,u=r.useMemo((()=>s),Object.values(s));return e(c.Provider,{value:u,children:i})}return o=[...o,i],s.displayName=n+"Provider",[s,function(e,o){const s=o?.[t][l]||a,c=r.useContext(s);if(c)return c;if(void 0!==i)return i;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},ue(i,...n)]}function ue(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}function de(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function fe(...e){return r.useCallback(de(...e),e)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){se[e]=se(e)}));var pe=r.forwardRef(((t,n)=>{const{children:o,...i}=t,a=r.Children.toArray(o),l=a.find(me);if(l){const t=l.props.children,o=a.map((e=>e===l?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(he,{...i,ref:n,children:r.isValidElement(t)?r.cloneElement(t,void 0,o):null})}return e(he,{...i,ref:n,children:o})}));pe.displayName="Slot";var he=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n);return r.cloneElement(n,{...ve(o,n.props),ref:t?de(t,e):e})}return r.Children.count(n)>1?r.Children.only(null):null}));he.displayName="SlotClone";var ge=({children:n})=>e(t,{children:n});function me(e){return r.isValidElement(e)&&e.type===ge}function ve(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function be(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}function we({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[o,i]=function({defaultProp:e,onChange:t}){const n=r.useState(e),[o]=n,i=r.useRef(o),a=be(t);return r.useEffect((()=>{i.current!==o&&(a(o),i.current=o)}),[o,i,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:o,s=be(n);return[l,r.useCallback((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)}),[a,e,i,s])]}var Ce=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const o=r.forwardRef(((t,r)=>{const{asChild:o,...i}=t,a=o?pe:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(a,{...i,ref:r})}));return o.displayName=`Primitive.${n}`,{...t,[n]:o}}),{}),xe=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{};var Se=e=>{const{present:t,children:n}=e,o=function(e){const[t,n]=r.useState(),o=r.useRef({}),i=r.useRef(e),a=r.useRef("none"),l=e?"mounted":"unmounted",[s,c]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=ke(o.current);a.current="mounted"===s?e:"none"}),[s]),xe((()=>{const t=o.current,n=i.current;if(n!==e){const r=a.current,o=ke(t);if(e)c("MOUNT");else if("none"===o||"none"===t?.display)c("UNMOUNT");else{c(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,c]),xe((()=>{if(t){const e=e=>{const n=ke(o.current).includes(e.animationName);e.target===t&&n&&P.flushSync((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=ke(o.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback((e=>{e&&(o.current=getComputedStyle(e)),n(e)}),[])}}(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),a=fe(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:a}):null};function ke(e){return e?.animationName||"none"}Se.displayName="Presence";var Ee=r["useId".toString()]||(()=>{}),Oe=0;function De(e){const[t,n]=r.useState(Ee());return xe((()=>{n((e=>e??String(Oe++)))}),[e]),t?`radix-${t}`:""}var Pe="Collapsible",[Te,Ae]=ce(Pe),[Me,_e]=Te(Pe),je=r.forwardRef(((t,n)=>{const{__scopeCollapsible:o,open:i,defaultOpen:a,disabled:l,onOpenChange:s,...c}=t,[u=!1,d]=we({prop:i,defaultProp:a,onChange:s});return e(Me,{scope:o,disabled:l,contentId:De(),open:u,onOpenToggle:r.useCallback((()=>d((e=>!e))),[d]),children:e(Ce.div,{"data-state":ze(u),"data-disabled":l?"":void 0,...c,ref:n})})}));je.displayName=Pe;var Le="CollapsibleTrigger",Re=r.forwardRef(((t,n)=>{const{__scopeCollapsible:r,...o}=t,i=_e(Le,r);return e(Ce.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":ze(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...o,ref:n,onClick:ye(t.onClick,i.onOpenToggle)})}));Re.displayName=Le;var Ie="CollapsibleContent",Ne=r.forwardRef(((t,n)=>{const{forceMount:r,...o}=t,i=_e(Ie,t.__scopeCollapsible);return e(Se,{present:r||i.open,children:({present:t})=>e($e,{...o,ref:n,present:t})})}));Ne.displayName=Ie;var $e=r.forwardRef(((t,n)=>{const{__scopeCollapsible:o,present:i,children:a,...l}=t,s=_e(Ie,o),[c,u]=r.useState(i),d=r.useRef(null),f=fe(n,d),p=r.useRef(0),h=p.current,g=r.useRef(0),m=g.current,v=s.open||c,y=r.useRef(v),b=r.useRef();return r.useEffect((()=>{const e=requestAnimationFrame((()=>y.current=!1));return()=>cancelAnimationFrame(e)}),[]),xe((()=>{const e=d.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();p.current=t.height,g.current=t.width,y.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),u(i)}}),[s.open,i]),e(Ce.div,{"data-state":ze(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!v,...l,ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style},children:v&&a})}));function ze(e){return e?"open":"closed"}var Fe=je,Be=Re,Ke=Ne,Ve=r.createContext(void 0);var He="Accordion",Ue=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[We,Ze,qe]=function(t){const n=t+"CollectionProvider",[r,i]=ce(n),[a,l]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=t=>{const{scope:n,children:r}=t,i=o.useRef(null),l=o.useRef(new Map).current;return e(a,{scope:n,itemMap:l,collectionRef:i,children:r})};s.displayName=n;const c=t+"CollectionSlot",u=o.forwardRef(((t,n)=>{const{scope:r,children:o}=t,i=fe(n,l(c,r).collectionRef);return e(pe,{ref:i,children:o})}));u.displayName=c;const d=t+"CollectionItemSlot",f="data-radix-collection-item",p=o.forwardRef(((t,n)=>{const{scope:r,children:i,...a}=t,s=o.useRef(null),c=fe(n,s),u=l(d,r);return o.useEffect((()=>(u.itemMap.set(s,{ref:s,...a}),()=>{u.itemMap.delete(s)}))),e(pe,{[f]:"",ref:c,children:i})}));return p.displayName=d,[{Provider:s,Slot:u,ItemSlot:p},function(e){const n=l(t+"CollectionConsumer",e),r=o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},i]}(He),[Ge,Ye]=ce(He,[qe,Ae]),Xe=Ae(),Je=o.forwardRef(((t,n)=>{const{type:r,...o}=t,i=o,a=o;return e(We.Provider,{scope:t.__scopeAccordion,children:"multiple"===r?e(ot,{...a,ref:n}):e(rt,{...i,ref:n})})}));Je.displayName=He;var[Qe,et]=Ge(He),[tt,nt]=Ge(He,{collapsible:!1}),rt=o.forwardRef(((t,n)=>{const{value:r,defaultValue:i,onValueChange:a=(()=>{}),collapsible:l=!1,...s}=t,[c,u]=we({prop:r,defaultProp:i,onChange:a});return e(Qe,{scope:t.__scopeAccordion,value:c?[c]:[],onItemOpen:u,onItemClose:o.useCallback((()=>l&&u("")),[l,u]),children:e(tt,{scope:t.__scopeAccordion,collapsible:l,children:e(lt,{...s,ref:n})})})})),ot=o.forwardRef(((t,n)=>{const{value:r,defaultValue:i,onValueChange:a=(()=>{}),...l}=t,[s=[],c]=we({prop:r,defaultProp:i,onChange:a}),u=o.useCallback((e=>c(((t=[])=>[...t,e]))),[c]),d=o.useCallback((e=>c(((t=[])=>t.filter((t=>t!==e))))),[c]);return e(Qe,{scope:t.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:e(tt,{scope:t.__scopeAccordion,collapsible:!0,children:e(lt,{...l,ref:n})})})})),[it,at]=Ge(He),lt=o.forwardRef(((t,n)=>{const{__scopeAccordion:i,disabled:a,dir:l,orientation:s="vertical",...c}=t,u=fe(o.useRef(null),n),d=Ze(i),f=function(e){const t=r.useContext(Ve);return e||t||"ltr"}(l),p="ltr"===f,h=ye(t.onKeyDown,(e=>{if(!Ue.includes(e.key))return;const t=e.target,n=d().filter((e=>!e.ref.current?.disabled)),r=n.findIndex((e=>e.ref.current===t)),o=n.length;if(-1===r)return;e.preventDefault();let i=r;const a=o-1,l=()=>{i=r+1,i>a&&(i=0)},c=()=>{i=r-1,i<0&&(i=a)};switch(e.key){case"Home":i=0;break;case"End":i=a;break;case"ArrowRight":"horizontal"===s&&(p?l():c());break;case"ArrowDown":"vertical"===s&&l();break;case"ArrowLeft":"horizontal"===s&&(p?c():l());break;case"ArrowUp":"vertical"===s&&c()}const u=i%o;n[u].ref.current?.focus()}));return e(it,{scope:i,disabled:a,direction:l,orientation:s,children:e(We.Slot,{scope:i,children:e(Ce.div,{...c,"data-orientation":s,ref:u,onKeyDown:a?void 0:h})})})})),st="AccordionItem",[ct,ut]=Ge(st),dt=o.forwardRef(((t,n)=>{const{__scopeAccordion:r,value:o,...i}=t,a=at(st,r),l=et(st,r),s=Xe(r),c=De(),u=o&&l.value.includes(o)||!1,d=a.disabled||t.disabled;return e(ct,{scope:r,open:u,disabled:d,triggerId:c,children:e(Fe,{"data-orientation":a.orientation,"data-state":yt(u),...s,...i,ref:n,disabled:d,open:u,onOpenChange:e=>{e?l.onItemOpen(o):l.onItemClose(o)}})})}));dt.displayName=st;var ft="AccordionHeader",pt=o.forwardRef(((t,n)=>{const{__scopeAccordion:r,...o}=t,i=at(He,r),a=ut(ft,r);return e(Ce.h3,{"data-orientation":i.orientation,"data-state":yt(a.open),"data-disabled":a.disabled?"":void 0,...o,ref:n})}));pt.displayName=ft;var ht="AccordionTrigger",gt=o.forwardRef(((t,n)=>{const{__scopeAccordion:r,...o}=t,i=at(He,r),a=ut(ht,r),l=nt(ht,r),s=Xe(r);return e(We.ItemSlot,{scope:r,children:e(Be,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...o,ref:n})})}));gt.displayName=ht;var mt="AccordionContent",vt=o.forwardRef(((t,n)=>{const{__scopeAccordion:r,...o}=t,i=at(He,r),a=ut(mt,r),l=Xe(r);return e(Ke,{role:"region","aria-labelledby":a.triggerId,"data-orientation":i.orientation,...l,...o,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})}));function yt(e){return e?"open":"closed"}vt.displayName=mt;var bt=Je,wt=dt,Ct=pt,xt=gt,St=vt;const kt=(e,t,n,r,o=[])=>{i((()=>{if(!e)return()=>null;let o;o="current"in e?e.current:e;const i=()=>o.removeEventListener(t,n,!1);return!1!==r?o.addEventListener(t,n,!1):i(),i}),[e,t,r,...o])},Et=(e,t,n)=>{const r=a(null),o=t=>{if((null==r?void 0:r.current)&&null!==t){if(!r.current.contains(t.target)){const r=(null==n?void 0:n.length)?n.join(", "):"",o=t.target,i=!(!o||!r)&&o.matches(r);r&&i||e()}}};return kt(document,"mousedown",o,t),kt(document,"touchstart",o,t),r},Ot=()=>{const[e,t]=l({width:null,height:null});return i((()=>{const e="undefined"==typeof window,n=()=>{e||t({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",n);const r=e?()=>null:()=>window.removeEventListener("resize",n);return n(),r}),[]),e},Dt=(e,t)=>{const[n,r]=l([]),[o,a]=l(t||!1),[s,c]=l(!1),[u,d]=l(0);i((()=>{if(null==e?void 0:e.length){const n=e.map((e=>Object.assign(Object.assign({},e),{selected:t||!1})));r(n)}}),[]);return i((()=>{const e=n.every((e=>e.selected)),t=n.some((e=>e.selected));e?(c(!1),a(!0),d(n.length)):t?(c(!0),a(!1),d(n.filter((e=>e.selected)).length)):(c(!1),a(!1),d(0))}),[n]),{list:n,partial:s,allSelected:o,count:u,onSelectAll:e=>{r((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{r((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}};function Pt(e,t,{signal:n,edges:r}={}){let o,i=null;const a=null!=r&&r.includes("leading"),l=null==r||r.includes("trailing"),s=()=>{null!==i&&(e.apply(o,i),o=void 0,i=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout((()=>{c=null,l&&s(),f()}),t)},d=()=>{null!==c&&(clearTimeout(c),c=null)},f=()=>{d(),o=void 0,i=null},p=function(...e){if(n?.aborted)return;o=this,i=e;const t=null==c;u(),a&&t&&s()};return p.schedule=u,p.cancel=f,p.flush=()=>{d(),s()},n?.addEventListener("abort",f,{once:!0}),p}function Tt(){}function At(e,t,n){if(null==t&&(t=e,e=0),null==n&&(n=1),!Number.isInteger(n)||0===n)throw new Error("The step value must be a non-zero integer.");const r=Math.max(Math.ceil((t-e)/n),0),o=new Array(r);for(let t=0;t<r;t++)o[t]=e+t*n;return o}function Mt(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==e.toString())return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function _t(e){return Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))}function jt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Lt="[object RegExp]",Rt="[object String]",It="[object Number]",Nt="[object Boolean]",$t="[object Arguments]",zt="[object Symbol]",Ft="[object Date]",Bt="[object Map]",Kt="[object Set]",Vt="[object Array]",Ht="[object Function]",Ut="[object ArrayBuffer]",Wt="[object Object]",Zt="[object Error]",qt="[object DataView]",Gt="[object Uint8Array]",Yt="[object Uint8ClampedArray]",Xt="[object Uint16Array]",Jt="[object Uint32Array]",Qt="[object BigUint64Array]",en="[object Int8Array]",tn="[object Int16Array]",nn="[object Int32Array]",rn="[object BigInt64Array]",on="[object Float32Array]",an="[object Float64Array]";function ln(e,t,n,r,o,i,a){const l=a(e,t,n,r,o,i);if(void 0!==l)return l;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return e===t;case"number":return e===t||Object.is(e,t);case"object":return sn(e,t,i,a)}return sn(e,t,i,a)}function sn(e,t,n,r){if(Object.is(e,t))return!0;let o=jt(e),i=jt(t);if(o===$t&&(o=Wt),i===$t&&(i=Wt),o!==i)return!1;switch(o){case Rt:return e.toString()===t.toString();case It:{const n=e.valueOf(),r=t.valueOf();return(a=n)===(l=r)||Number.isNaN(a)&&Number.isNaN(l)}case Nt:case Ft:case zt:return Object.is(e.valueOf(),t.valueOf());case Lt:return e.source===t.source&&e.flags===t.flags;case Ht:return e===t}var a,l;const s=(n=n??new Map).get(e),c=n.get(t);if(null!=s&&null!=c)return s===t;n.set(e,t),n.set(t,e);try{switch(o){case Bt:if(e.size!==t.size)return!1;for(const[o,i]of e.entries())if(!t.has(o)||!ln(i,t.get(o),o,e,t,n,r))return!1;return!0;case Kt:{if(e.size!==t.size)return!1;const o=Array.from(e.values()),i=Array.from(t.values());for(let a=0;a<o.length;a++){const l=o[a],s=i.findIndex((o=>ln(l,o,void 0,e,t,n,r)));if(-1===s)return!1;i.splice(s,1)}return!0}case Vt:case Gt:case Yt:case Xt:case Jt:case Qt:case en:case tn:case nn:case rn:case on:case an:if("undefined"!=typeof Buffer&&Buffer.isBuffer(e)!==Buffer.isBuffer(t))return!1;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ln(e[o],t[o],o,e,t,n,r))return!1;return!0;case Ut:return e.byteLength===t.byteLength&&sn(new Uint8Array(e),new Uint8Array(t),n,r);case qt:return e.byteLength===t.byteLength&&e.byteOffset===t.byteOffset&&sn(new Uint8Array(e),new Uint8Array(t),n,r);case Zt:return e.name===t.name&&e.message===t.message;case Wt:{if(!(sn(e.constructor,t.constructor,n,r)||Mt(e)&&Mt(t)))return!1;const o=[...Object.keys(e),..._t(e)],i=[...Object.keys(t),..._t(t)];if(o.length!==i.length)return!1;for(let i=0;i<o.length;i++){const a=o[i],l=e[a];if(!Object.hasOwn(t,a))return!1;if(!ln(l,t[a],a,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function cn(e,t){return function(e,t,n){return ln(e,t,void 0,void 0,void 0,void 0,n)}(e,t,Tt)}const un=({options:e,select:t,close:n,open:r,searchText:o,isOpen:s,isFocused:c})=>{const[u,d]=l(-1),[f,p]=l(""),h=a(null),g="string"==typeof o,m=()=>{d(-1),p("")},v=()=>{m(),n()};i((()=>{!1===s&&m()}),[s]),i((()=>{const{current:e}=h;if(e){const{childNodes:t}=e,n=null==t?void 0:t[u];if(n){const{offsetTop:t,offsetHeight:r}=n,{scrollTop:o,offsetHeight:i}=e,a=o+i-r,l=t+r-i;t<o?e.scrollTo(0,t):t>a&&e.scrollTo(0,l)}}}),[u]);const y=Pt((()=>p("")),1e3);i((()=>{if(f||g){const n=g?o:f,r=e.findIndex((e=>{const t=n.toLowerCase(),r=e.label.toLowerCase().startsWith(t);return""!==o&&r}));s?d(r):s||g||t(e[r]),g||y()}}),[f,o]);return kt(document,"keydown",(i=>{const{key:a,altKey:l,ctrlKey:h,metaKey:m}=i;if(!(l||h||m)&&a)switch(a){case"ArrowDown":if(i.preventDefault(),!s){r();break}d((t=>{const n=t+1;return n>=e.length?0:n}));break;case"ArrowUp":if(i.preventDefault(),!s){r();break}d((t=>{const n=t-1,r=n<0,o=e.length-1;return r?o:n}));break;case"Tab":case"Enter":if(s){g&&(g&&"Tab"===a)||i.preventDefault();const r=e[u];r?r.onClick?(r.onClick(),n()):t(r,i):g?t(o,i):v()}break;case" ":c&&(g||i.preventDefault(),s?v():r());break;case"Escape":s&&(i.preventDefault(),v());break;default:1===a.length&&a.match(/[a-z0-9]/i)&&!g&&(i.preventDefault(),p(f+a));break}}),s||c,[u,f,s,o]),[u,h]};var dn=o["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"];function fn(){}function pn(e,t,n){void 0===n&&(n={});var r=gn(n.polyfill),o=(e=>{var t=a(e);return i((()=>{t.current=e})),t})(t);return dn((()=>{function t(e,t){n||o.current(e,t)}var n=0,i=e&&"current"in e?e.current:e;return i?(r.subscribe(i,t),()=>{n=1,r.unsubscribe(i,t)}):fn}),[e,r,o]),r.observer}var hn,gn=e=>hn||(hn=function(e){var t=0,n=[],r=new Map,o=new(e||window.ResizeObserver)(((e,o)=>{n=n.concat(e),t||window.requestAnimationFrame((function(){for(var e=new Set,i=function(t){if(e.has(n[t].target))return"continue";e.add(n[t].target);var i=r.get(n[t].target);null==i||i.forEach((e=>e(n[t],o)))},a=0;a<n.length;a++)i(a);n=[],t=0})),t=1}));return{observer:o,subscribe(e,t){var n;o.observe(e);var i=null!==(n=r.get(e))&&void 0!==n?n:[];i.push(t),r.set(e,i)},unsubscribe(e,t){var n,i=null!==(n=r.get(e))&&void 0!==n?n:[];if(1===i.length)return o.unobserve(e),void r.delete(e);var a=i.indexOf(t);-1!==a&&i.splice(a,1),r.set(e,i)}}}(e));const mn=(e,t)=>{pn(e,(e=>t(e.target)))},vn=e=>{const t=a(e);return i((()=>{t.current=e}),[e]),t.current},yn=({width:e,height:t})=>({width:e,height:t}),bn=({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}),wn=({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}),Cn=({position:e,top:t,bottom:n,right:r,left:o})=>({position:e,top:t,bottom:n,right:r,left:o});const xn={"activity-history":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.85714 5H12.1429C13.1643 5 14 5.83571 14 6.85714V16.1429C14 17.1643 13.1643 18 12.1429 18H2.85714C1.83571 18 1 17.1643 1 16.1429V6.85714C1 5.83571 1.83571 5 2.85714 5ZM10.0536 10.1071C10.0536 8.69571 8.91143 7.55357 7.5 7.55357C6.08857 7.55357 4.94643 8.69571 4.94643 10.1071C4.94643 11.5186 6.08857 12.6607 7.5 12.6607C8.91143 12.6607 10.0536 11.5186 10.0536 10.1071ZM2.85714 15.7714V16.1429H12.1429V15.7714C12.1429 15.0286 11.7157 14.3507 11.0379 14.0629C9.95143 13.6079 8.75357 13.3571 7.5 13.3571C6.24643 13.3571 5.04857 13.6079 3.96214 14.0721C3.28429 14.3507 2.85714 15.0379 2.85714 15.7714ZM17.5 5C16.6716 5 16 5.67157 16 6.5C16 7.32843 16.6716 8 17.5 8H21.5C22.3284 8 23 7.32843 23 6.5C23 5.67157 22.3284 5 21.5 5H17.5ZM16 11.5C16 10.6716 16.6716 10 17.5 10H21.5C22.3284 10 23 10.6716 23 11.5C23 12.3284 22.3284 13 21.5 13H17.5C16.6716 13 16 12.3284 16 11.5ZM17.5 15C16.6716 15 16 15.6716 16 16.5C16 17.3284 16.6716 18 17.5 18H21.5C22.3284 18 23 17.3284 23 16.5C23 15.6716 22.3284 15 21.5 15H17.5Z",fill:"currentColor"})}))},add:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M18 13H13V18C13 18.55 12.55 19 12 19C11.45 19 11 18.55 11 18V13H6C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11H11V6C11 5.45 11.45 5 12 5C12.55 5 13 5.45 13 6V11H18C18.55 11 19 11.45 19 12C19 12.55 18.55 13 18 13Z",fill:"currentColor"})}))},"add-circle":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM16 13H13V16C13 16.55 12.55 17 12 17C11.45 17 11 16.55 11 16V13H8C7.45 13 7 12.55 7 12C7 11.45 7.45 11 8 11H11V8C11 7.45 11.45 7 12 7C12.55 7 13 7.45 13 8V11H16C16.55 11 17 11.45 17 12C17 12.55 16.55 13 16 13Z",fill:"currentColor"})}))},"add-circle-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 7C11.45 7 11 7.45 11 8V11H8C7.45 11 7 11.45 7 12C7 12.55 7.45 13 8 13H11V16C11 16.55 11.45 17 12 17C12.55 17 13 16.55 13 16V13H16C16.55 13 17 12.55 17 12C17 11.45 16.55 11 16 11H13V8C13 7.45 12.55 7 12 7ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})}))},"add-person":function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M9 12C11.2091 12 13 10.2091 13 8C13 5.79086 11.2091 4 9 4C6.79086 4 5 5.79086 5 8C5 10.2091 6.79086 12 9 12Z",fill:"currentColor"}),e("path",{d:"M9 14C6.33 14 1 15.34 1 18V19C1 19.55 1.45 20 2 20H16C16.55 20 17 19.55 17 19V18C17 15.34 11.67 14 9 14Z",fill:"currentColor"}),e("path",{d:"M20 10V7H18V10H15V12H18V15H20V12H23V10H20Z",fill:"currentColor"})]}))},"arrow-down":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11 5V16.17L6.12 11.29C5.73 10.9 5.09 10.9 4.7 11.29C4.31 11.68 4.31 12.31 4.7 12.7L11.29 19.29C11.68 19.68 12.31 19.68 12.7 19.29L19.29 12.7C19.68 12.31 19.68 11.68 19.29 11.29C18.9 10.9 18.27 10.9 17.88 11.29L13 16.17V5C13 4.45 12.55 4 12 4C11.45 4 11 4.45 11 5Z",fill:"currentColor"})}))},"arrow-left":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 11H7.83L12.71 6.12C13.1 5.73 13.1 5.09 12.71 4.7C12.32 4.31 11.69 4.31 11.3 4.7L4.71 11.29C4.32 11.68 4.32 12.31 4.71 12.7L11.3 19.29C11.69 19.68 12.32 19.68 12.71 19.29C13.1 18.9 13.1 18.27 12.71 17.88L7.83 13H19C19.55 13 20 12.55 20 12C20 11.45 19.55 11 19 11Z",fill:"currentColor"})}))},"arrow-right":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M5 13H16.17L11.29 17.88C10.9 18.27 10.9 18.91 11.29 19.3C11.68 19.69 12.31 19.69 12.7 19.3L19.29 12.71C19.68 12.32 19.68 11.69 19.29 11.3L12.71 4.7C12.32 4.31 11.69 4.31 11.3 4.7C10.91 5.09 10.91 5.72 11.3 6.11L16.17 11H5C4.45 11 4 11.45 4 12C4 12.55 4.45 13 5 13Z",fill:"currentColor"})}))},"arrow-up":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M13 19V7.83L17.88 12.71C18.27 13.1 18.91 13.1 19.3 12.71C19.69 12.32 19.69 11.69 19.3 11.3L12.71 4.71C12.32 4.32 11.69 4.32 11.3 4.71L4.7 11.29C4.31 11.68 4.31 12.31 4.7 12.7C5.09 13.09 5.72 13.09 6.11 12.7L11 7.83V19C11 19.55 11.45 20 12 20C12.55 20 13 19.55 13 19Z",fill:"currentColor"})}))},attachment:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M16.5 6.75V17.33C16.5 19.42 14.97 21.28 12.89 21.48C10.5 21.71 8.5 19.84 8.5 17.5V5.14C8.5 3.83 9.44 2.64 10.74 2.51C12.24 2.36 13.5 3.53 13.5 5V15.5C13.5 16.05 13.05 16.5 12.5 16.5C11.95 16.5 11.5 16.05 11.5 15.5V6.75C11.5 6.34 11.16 6 10.75 6C10.34 6 10 6.34 10 6.75V15.36C10 16.67 10.94 17.86 12.24 17.99C13.74 18.14 15 16.97 15 15.5V5.17C15 3.08 13.47 1.22 11.39 1.02C9.01 0.790001 7 2.66 7 5V17.27C7 20.14 9.1 22.71 11.96 22.98C15.25 23.28 18 20.72 18 17.5V6.75C18 6.34 17.66 6 17.25 6C16.84 6 16.5 6.34 16.5 6.75Z",fill:"currentColor"})}))},auto:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("g",{id:"auto mode",children:e("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M11 1.04999V3.05999C9.26997 3.24999 7.68997 3.93999 6.38997 4.97999L4.96997 3.55999C6.63997 2.16999 8.70997 1.24999 11 1.04999ZM13 1.04999C15.29 1.25999 17.36 2.16999 19.03 3.55999L17.61 4.97999C16.31 3.93999 14.73 3.24999 13 3.05999V1.04999ZM4.98005 6.39L3.56005 4.97C2.17005 6.64 1.26005 8.71 1.05005 11H3.06005C3.25005 9.27 3.94005 7.69 4.98005 6.39ZM22.95 11H20.94C20.75 9.27 20.06 7.69 19.02 6.39L20.44 4.97C21.83 6.64 22.74 8.71 22.95 11ZM7 12L10.44 13.56L12 17L13.56 13.56L17 12L13.56 10.44L12 7L10.44 10.44L7 12ZM4.54 17C6.15 19.41 8.89 21 12 21C15.92 21 19.25 18.48 20.48 14.99L22.44 15.44C21 19.83 16.87 23 12 23C8.27 23 4.99 21.14 3 18.3V21H1V15H7V17H4.54Z",fill:"currentColor"})})})),calendar:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M16 13H13C12.45 13 12 13.45 12 14V17C12 17.55 12.45 18 13 18H16C16.55 18 17 17.55 17 17V14C17 13.45 16.55 13 16 13ZM16 3V4H8V3C8 2.45 7.55 2 7 2C6.45 2 6 2.45 6 3V4H5C3.89 4 3.01 4.9 3.01 6L3 20C3 21.1 3.89 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4H18V3C18 2.45 17.55 2 17 2C16.45 2 16 2.45 16 3ZM18 20H6C5.45 20 5 19.55 5 19V9H19V19C19 19.55 18.55 20 18 20Z",fill:"currentColor"})}))},camera:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.83 5H20C21.1 5 22 5.9 22 7V19C22 20.1 21.1 21 20 21H4C2.9 21 2 20.1 2 19V7C2 5.9 2.9 5 4 5H7.17L8.4 3.65C8.78 3.24 9.32 3 9.88 3H14.12C14.68 3 15.22 3.24 15.59 3.65L16.83 5ZM7 13C7 15.76 9.24 18 12 18C14.76 18 17 15.76 17 13C17 10.24 14.76 8 12 8C9.24 8 7 10.24 7 13ZM15 13C15 14.6569 13.6569 16 12 16C10.3431 16 9 14.6569 9 13C9 11.3431 10.3431 10 12 10C13.6569 10 15 11.3431 15 13Z",fill:"currentColor"})}))},card:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M20 4H4C2.89 4 2 4.89 2 6V17C2 18.11 2.89 19 4 19H8H9H12H15H16H20C21.11 19 22 18.11 22 17V6C22 4.89 21.11 4 20 4ZM20 17H4V15H20V17ZM20 12H4V7C4 6.45 4.45 6 5 6H19C19.55 6 20 6.45 20 7V12Z",fill:"currentColor"})}))},"caret-down":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M8.71001 11.71L11.3 14.3C11.69 14.69 12.32 14.69 12.71 14.3L15.3 11.71C15.93 11.08 15.48 10 14.59 10H9.41001C8.52001 10 8.08001 11.08 8.71001 11.71Z",fill:"currentColor"})}))},"caret-up":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M8.70999 12.29L11.3 9.7C11.69 9.31 12.32 9.31 12.71 9.7L15.3 12.29C15.93 12.92 15.48 14 14.59 14H9.40999C8.51999 14 8.07999 12.92 8.70999 12.29Z",fill:"currentColor"})}))},check:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M9 16.2L5.5 12.7C5.11 12.31 4.49 12.31 4.1 12.7C3.71 13.09 3.71 13.71 4.1 14.1L8.29 18.29C8.68 18.68 9.31 18.68 9.7 18.29L20.3 7.70001C20.69 7.31001 20.69 6.69001 20.3 6.30001C19.91 5.91001 19.29 5.91001 18.9 6.30001L9 16.2Z",fill:"currentColor"})})),"check-badge":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M23 12L20.56 9.21L20.9 5.52L17.29 4.7L15.4 1.5L12 2.96L8.6 1.5L6.71 4.69L3.1 5.5L3.44 9.2L1 12L3.44 14.79L3.1 18.49L6.71 19.31L8.6 22.5L12 21.03L15.4 22.49L17.29 19.3L20.9 18.48L20.56 14.79L23 12ZM10.09 16.72L6.29 12.91L7.77 11.43L10.09 13.76L15.94 7.89L17.42 9.37L10.09 16.72Z",fill:"currentColor"})})),"check-circle":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"currentColor"})}))},"check-circle-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM15.54 8.82L10.59 13.77L8.47 11.65C8.08 11.26 7.45 11.26 7.06 11.65C6.67 12.04 6.67 12.67 7.06 13.06L9.89 15.89C10.28 16.28 10.91 16.28 11.3 15.89L16.96 10.23C17.35 9.84 17.35 9.21 16.96 8.82C16.56 8.43 15.93 8.43 15.54 8.82Z",fill:"currentColor"})}))},checkbox:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM10.71 16.29C10.32 16.68 9.69 16.68 9.3 16.29L5.71 12.7C5.32 12.31 5.32 11.68 5.71 11.29C6.1 10.9 6.73 10.9 7.12 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.71 16.29Z",fill:"currentColor"})}))},"checkbox-off":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M18 19H6C5.45 19 5 18.55 5 18V6C5 5.45 5.45 5 6 5H18C18.55 5 19 5.45 19 6V18C19 18.55 18.55 19 18 19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z",fill:"currentColor"})}))},"checkbox-partial":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM16 13H8C7.45 13 7 12.55 7 12C7 11.45 7.45 11 8 11H16C16.55 11 17 11.45 17 12C17 12.55 16.55 13 16 13Z",fill:"currentColor"})}))},"chevron-down":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M15.88 9.29L12 13.17L8.12 9.29C7.73 8.9 7.1 8.9 6.71 9.29C6.32 9.68 6.32 10.31 6.71 10.7L11.3 15.29C11.69 15.68 12.32 15.68 12.71 15.29L17.3 10.7C17.69 10.31 17.69 9.68 17.3 9.29C16.91 8.91 16.27 8.9 15.88 9.29Z",fill:"currentColor"})}))},"chevron-left":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M14.71 6.71C14.32 6.32 13.69 6.32 13.3 6.71L8.71 11.3C8.32 11.69 8.32 12.32 8.71 12.71L13.3 17.3C13.69 17.69 14.32 17.69 14.71 17.3C15.1 16.91 15.1 16.28 14.71 15.89L10.83 12L14.71 8.12C15.1 7.73 15.09 7.09 14.71 6.71Z",fill:"currentColor"})}))},"chevron-right":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M9.29 6.71C8.9 7.1 8.9 7.73 9.29 8.12L13.17 12L9.29 15.88C8.9 16.27 8.9 16.9 9.29 17.29C9.68 17.68 10.31 17.68 10.7 17.29L15.29 12.7C15.68 12.31 15.68 11.68 15.29 11.29L10.7 6.7C10.32 6.32 9.68 6.32 9.29 6.71Z",fill:"currentColor"})}))},"chevron-up":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11.29 8.71L6.7 13.3C6.31 13.69 6.31 14.32 6.7 14.71C7.09 15.1 7.72 15.1 8.11 14.71L12 10.83L15.88 14.71C16.27 15.1 16.9 15.1 17.29 14.71C17.68 14.32 17.68 13.69 17.29 13.3L12.7 8.71C12.32 8.32 11.68 8.32 11.29 8.71Z",fill:"currentColor"})}))},clapperboard:function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M2.01 6C2.01 4.9 2.90045 4 4.001 4V18H20.009V4H22V18C22 19.1 21.1096 20 20.009 20H4.001C2.90045 20 2 19.1 2 18L2.01 6Z",fill:"currentColor"}),e("path",{d:"M20 8L18 4H21.99L22 10H20H5.76L4 6.47V4H5L7 8H10L8 4L10 4L12 8H15L13 4H15L17 8H20Z",fill:"currentColor"})]}))},"clapperboard-open":function(t){return n("svg",Object.assign({viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M9.05353 18.0588L9.994 16.1276L10.9345 18.0588L12.9955 18.9401L10.9345 19.8213L9.994 21.7526L9.05353 19.8213L6.9925 18.9401L9.05353 18.0588Z",fill:"currentColor"}),e("path",{d:"M2.01 11.4401C2.01 10.4088 2.90045 9.56506 4.001 9.56506V22.6901H20.009V9.56506H22V22.6901C22 23.7213 21.1096 24.5651 20.009 24.5651H4.001C2.90045 24.5651 2 23.7213 2 22.6901L2.01 11.4401Z",fill:"currentColor"}),e("path",{d:"M15.3667 16.4744L15.997 15.1901L16.6273 16.4744L17.998 17.0651L16.6273 17.6557L15.997 18.9401L15.3667 17.6557L13.996 17.0651L15.3667 16.4744Z",fill:"currentColor"}),e("path",{d:"M18.7746 5.08006L15.0435 2.61664L17 1.56506L21.1788 4.22431C21.7952 4.61654 21.7966 5.5158 21.1815 5.90995L19.7743 6.81163L7.4455 13.9297L4.1572 11.7532L2.99982 11.5656L4 9.56506L7.51935 11.5783L10.1167 10.0787L6.38569 7.61526L8.11726 6.61554L11.8483 9.07896L14.4456 7.57938L10.7146 5.11595L12.4462 4.11623L16.1772 6.57965L18.7746 5.08006Z",fill:"currentColor"})]}))},close:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M18.3 5.71C17.91 5.32 17.28 5.32 16.89 5.71L12 10.59L7.11 5.7C6.72 5.31 6.09 5.31 5.7 5.7C5.31 6.09 5.31 6.72 5.7 7.11L10.59 12L5.7 16.89C5.31 17.28 5.31 17.91 5.7 18.3C6.09 18.69 6.72 18.69 7.11 18.3L12 13.41L16.89 18.3C17.28 18.69 17.91 18.69 18.3 18.3C18.69 17.91 18.69 17.28 18.3 16.89L13.41 12L18.3 7.11C18.68 6.73 18.68 6.09 18.3 5.71Z",fill:"currentColor"})}))},"close-circle":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM16.3 16.3C15.91 16.69 15.28 16.69 14.89 16.3L12 13.41L9.11 16.3C8.72 16.69 8.09 16.69 7.7 16.3C7.31 15.91 7.31 15.28 7.7 14.89L10.59 12L7.7 9.11C7.31 8.72 7.31 8.09 7.7 7.7C8.09 7.31 8.72 7.31 9.11 7.7L12 10.59L14.89 7.7C15.28 7.31 15.91 7.31 16.3 7.7C16.69 8.09 16.69 8.72 16.3 9.11L13.41 12L16.3 14.89C16.68 15.27 16.68 15.91 16.3 16.3Z",fill:"currentColor"})}))},"close-circle-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M13.89 8.7L12 10.59L10.11 8.7C9.72 8.31 9.09 8.31 8.7 8.7C8.31 9.09 8.31 9.72 8.7 10.11L10.59 12L8.7 13.89C8.31 14.28 8.31 14.91 8.7 15.3C9.09 15.69 9.72 15.69 10.11 15.3L12 13.41L13.89 15.3C14.28 15.69 14.91 15.69 15.3 15.3C15.69 14.91 15.69 14.28 15.3 13.89L13.41 12L15.3 10.11C15.69 9.72 15.69 9.09 15.3 8.7C14.91 8.32 14.27 8.32 13.89 8.7ZM12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})}))},copy:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M15 20H5V7C5 6.45 4.55 6 4 6C3.45 6 3 6.45 3 7V20C3 21.1 3.9 22 5 22H15C15.55 22 16 21.55 16 21C16 20.45 15.55 20 15 20ZM20 16V4C20 2.9 19.1 2 18 2H9C7.9 2 7 2.9 7 4V16C7 17.1 7.9 18 9 18H18C19.1 18 20 17.1 20 16ZM18 16H9V4H18V16Z",fill:"currentColor"})}))},cycle:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 6V9L16 5L12 1V4C7.58 4 4 7.58 4 12C4 13.57 4.46 15.03 5.24 16.26L6.7 14.8C6.25 13.97 6 13.01 6 12C6 8.69 8.69 6 12 6ZM18.76 7.74L17.3 9.2C17.74 10.04 18 10.99 18 12C18 15.31 15.31 18 12 18V15L8 19L12 23V20C16.42 20 20 16.42 20 12C20 10.43 19.54 8.97 18.76 7.74Z",fill:"currentColor"})})),dash:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M5 12.5V11H19V12.5H5Z",fill:"currentColor"})})),devices:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M4 7C4 6.45 4.45 6 5 6H21C21.55 6 22 5.55 22 5C22 4.45 21.55 4 21 4H4C2.9 4 2 4.9 2 6V17H1.5C0.67 17 0 17.67 0 18.5C0 19.33 0.67 20 1.5 20H14V17H4V7ZM23 8H17C16.45 8 16 8.45 16 9V19C16 19.55 16.45 20 17 20H23C23.55 20 24 19.55 24 19V9C24 8.45 23.55 8 23 8ZM22 17H18V10H22V17Z",fill:"currentColor"})}))},dialpad:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 19C10.9 19 10 19.9 10 21C10 22.1 10.9 23 12 23C13.1 23 14 22.1 14 21C14 19.9 13.1 19 12 19ZM6 1C4.9 1 4 1.9 4 3C4 4.1 4.9 5 6 5C7.1 5 8 4.1 8 3C8 1.9 7.1 1 6 1ZM6 7C4.9 7 4 7.9 4 9C4 10.1 4.9 11 6 11C7.1 11 8 10.1 8 9C8 7.9 7.1 7 6 7ZM6 13C4.9 13 4 13.9 4 15C4 16.1 4.9 17 6 17C7.1 17 8 16.1 8 15C8 13.9 7.1 13 6 13ZM18 5C19.1 5 20 4.1 20 3C20 1.9 19.1 1 18 1C16.9 1 16 1.9 16 3C16 4.1 16.9 5 18 5ZM12 13C10.9 13 10 13.9 10 15C10 16.1 10.9 17 12 17C13.1 17 14 16.1 14 15C14 13.9 13.1 13 12 13ZM18 13C16.9 13 16 13.9 16 15C16 16.1 16.9 17 18 17C19.1 17 20 16.1 20 15C20 13.9 19.1 13 18 13ZM18 7C16.9 7 16 7.9 16 9C16 10.1 16.9 11 18 11C19.1 11 20 10.1 20 9C20 7.9 19.1 7 18 7ZM12 7C10.9 7 10 7.9 10 9C10 10.1 10.9 11 12 11C13.1 11 14 10.1 14 9C14 7.9 13.1 7 12 7ZM12 1C10.9 1 10 1.9 10 3C10 4.1 10.9 5 12 5C13.1 5 14 4.1 14 3C14 1.9 13.1 1 12 1Z",fill:"currentColor"})}))},"double-arrow-left":function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M17.8675 6.71C18.2575 7.1 18.2575 7.73 17.8675 8.12L13.9875 12L17.8675 15.88C18.2575 16.27 18.2575 16.9 17.8675 17.29C17.4775 17.68 16.8475 17.68 16.4575 17.29L11.8675 12.7C11.4775 12.31 11.4775 11.68 11.8675 11.29L16.4575 6.7C16.8375 6.32 17.4775 6.32 17.8675 6.71Z",fill:"currentColor"}),e("path",{d:"M12.2973 6.71C12.6876 7.1 12.6876 7.73 12.2973 8.12L8.41433 12L12.2973 15.88C12.6876 16.27 12.6876 16.9 12.2973 17.29C11.907 17.68 11.2765 17.68 10.8862 17.29L6.29272 12.7C5.90243 12.31 5.90243 11.68 6.29272 11.29L10.8862 6.7C11.2665 6.32 11.907 6.32 12.2973 6.71Z",fill:"currentColor"})]}))},"double-arrow-right":function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M6.2925 6.71C5.9025 7.1 5.9025 7.73 6.2925 8.12L10.1725 12L6.2925 15.88C5.9025 16.27 5.9025 16.9 6.2925 17.29C6.6825 17.68 7.3125 17.68 7.7025 17.29L12.2925 12.7C12.6825 12.31 12.6825 11.68 12.2925 11.29L7.7025 6.7C7.3225 6.32 6.6825 6.32 6.2925 6.71Z",fill:"currentColor"}),e("path",{d:"M11.8627 6.71C11.4724 7.1 11.4724 7.73 11.8627 8.12L15.7457 12L11.8627 15.88C11.4724 16.27 11.4724 16.9 11.8627 17.29C12.253 17.68 12.8835 17.68 13.2738 17.29L17.8673 12.7C18.2576 12.31 18.2576 11.68 17.8673 11.29L13.2738 6.7C12.8935 6.32 12.253 6.32 11.8627 6.71Z",fill:"currentColor"})]}))},download:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M16.59 9H15V4C15 3.45 14.55 3 14 3H10C9.45 3 9 3.45 9 4V9H7.41C6.52 9 6.07 10.08 6.7 10.71L11.29 15.3C11.68 15.69 12.31 15.69 12.7 15.3L17.29 10.71C17.92 10.08 17.48 9 16.59 9ZM5 19C5 19.55 5.45 20 6 20H18C18.55 20 19 19.55 19 19C19 18.45 18.55 18 18 18H6C5.45 18 5 18.45 5 19Z",fill:"currentColor"})}))},drag:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M20 9H4V11H20V9ZM4 15H20V13H4V15Z",fill:"currentColor"})})),edit:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M3 17.46V20.5C3 20.78 3.22 21 3.5 21H6.54C6.67 21 6.8 20.95 6.89 20.85L17.81 9.94L14.06 6.19L3.15 17.1C3.05 17.2 3 17.32 3 17.46ZM20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C17.98 2.9 17.35 2.9 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04Z",fill:"currentColor"})}))},emoji:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM8.5 8C9.33 8 10 8.67 10 9.5C10 10.33 9.33 11 8.5 11C7.67 11 7 10.33 7 9.5C7 8.67 7.67 8 8.5 8ZM16.71 14.72C15.8 16.67 14.04 18 12 18C9.96 18 8.2 16.67 7.29 14.72C7.13 14.39 7.37 14 7.74 14H16.26C16.63 14 16.87 14.39 16.71 14.72ZM15.5 11C14.67 11 14 10.33 14 9.5C14 8.67 14.67 8 15.5 8C16.33 8 17 8.67 17 9.5C17 10.33 16.33 11 15.5 11Z",fill:"currentColor"})}))},exclamation:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("g",{id:"exclamation",children:e("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M14 3H10V15H14V3ZM14 19C14 20.1046 13.1046 21 12 21C10.8954 21 10 20.1046 10 19C10 17.8954 10.8954 17 12 17C13.1046 17 14 17.8954 14 19Z",fill:"currentColor"})})})),"eye-off":function(t){return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t,{children:[e("path",{d:"M0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0zm0 0h24v24H0V0z",fill:"none"}),e("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM2.71 3.16c-.39.39-.39 1.02 0 1.41l1.97 1.97C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"})]}))},"eye-on":function(t){return n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},t,{children:[e("path",{d:"M0 0h24v24H0V0z",fill:"none"}),e("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"})]}))},facebook:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17 5.625 21.125 10.375 21.875V14.875H7.875V12H10.375V9.75C10.375 7.25 11.875 5.875 14.125 5.875C15.25 5.875 16.375 6.125 16.375 6.125V8.625H15.125C13.875 8.625 13.5 9.375 13.5 10.125V12H16.25L15.75 14.875H13.375V22C18.375 21.25 22 17 22 12Z",fill:"currentColor"})}))},filter:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11 18H13C13.55 18 14 17.55 14 17C14 16.45 13.55 16 13 16H11C10.45 16 10 16.45 10 17C10 17.55 10.45 18 11 18ZM3 7C3 7.55 3.45 8 4 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H4C3.45 6 3 6.45 3 7ZM7 13H17C17.55 13 18 12.55 18 12C18 11.45 17.55 11 17 11H7C6.45 11 6 11.45 6 12C6 12.55 6.45 13 7 13Z",fill:"currentColor"})}))},flag:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M14.4 6L14 4H5V21H7V14H12.6L13 16H20V6H14.4Z",fill:"currentColor"})})),flask:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M13 11.33L18 18H6L11 11.33V6H13V11.33ZM15.96 4H8.04C7.62 4 7.39 4.48 7.65 4.81L9 6.5V10.67L3.2 18.4C2.71 19.06 3.18 20 4 20H20C20.82 20 21.29 19.06 20.8 18.4L15 10.67V6.5L16.35 4.81C16.61 4.48 16.38 4 15.96 4Z",fill:"currentColor"})}))},funnel:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11 20C10.7167 20 10.4792 19.9042 10.2875 19.7125C10.0959 19.5208 10 19.2833 10 19V13L4.02503 5.375C3.7917 5.09167 3.75836 4.79167 3.92503 4.475C4.0917 4.15833 4.35003 4 4.70003 4H19.3C19.65 4 19.9084 4.15833 20.075 4.475C20.2417 4.79167 20.2084 5.09167 19.975 5.375L14 13V19C14 19.2833 13.9042 19.5208 13.7125 19.7125C13.5209 19.9042 13.2834 20 13 20H11ZM12 13.1L18 5.5H6.00003L12 13.1Z",fill:"currentColor"})})),group:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M4 13C5.1 13 6 12.1 6 11C6 9.9 5.1 9 4 9C2.9 9 2 9.9 2 11C2 12.1 2.9 13 4 13ZM5.13 14.1C4.76 14.04 4.39 14 4 14C3.01 14 2.07 14.21 1.22 14.58C0.48 14.9 0 15.62 0 16.43V18H4.5V16.39C4.5 15.56 4.73 14.78 5.13 14.1ZM20 13C21.1 13 22 12.1 22 11C22 9.9 21.1 9 20 9C18.9 9 18 9.9 18 11C18 12.1 18.9 13 20 13ZM24 16.43C24 15.62 23.52 14.9 22.78 14.58C21.93 14.21 20.99 14 20 14C19.61 14 19.24 14.04 18.87 14.1C19.27 14.78 19.5 15.56 19.5 16.39V18H24V16.43ZM16.24 13.65C15.07 13.13 13.63 12.75 12 12.75C10.37 12.75 8.93 13.14 7.76 13.65C6.68 14.13 6 15.21 6 16.39V18H18V16.39C18 15.21 17.32 14.13 16.24 13.65ZM8.07 16C8.16 15.77 8.2 15.61 8.98 15.31C9.95 14.93 10.97 14.75 12 14.75C13.03 14.75 14.05 14.93 15.02 15.31C15.79 15.61 15.83 15.77 15.93 16H8.07ZM12 8C12.55 8 13 8.45 13 9C13 9.55 12.55 10 12 10C11.45 10 11 9.55 11 9C11 8.45 11.45 8 12 8ZM12 6C10.34 6 9 7.34 9 9C9 10.66 10.34 12 12 12C13.66 12 15 10.66 15 9C15 7.34 13.66 6 12 6Z",fill:"currentColor"})}))},hash:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M20.68 9.27L20.69 9.21C20.85 8.59 20.39 8 19.76 8H17L17.7 5.21C17.85 4.59 17.39 4 16.76 4C16.31 4 15.93 4.3 15.82 4.73L15 8H11L11.7 5.21C11.85 4.59 11.39 4 10.76 4C10.31 4 9.93003 4.3 9.82003 4.73L9.00003 8H5.76003C5.31003 8 4.92003 8.3 4.82003 8.73L4.80003 8.79C4.65003 9.41 5.11003 10 5.74003 10H8.50003L7.50003 14H4.26003C3.81003 14 3.43003 14.3 3.32003 14.73L3.30003 14.79C3.15003 15.41 3.61003 16 4.24003 16H7.00003L6.30003 18.79C6.15003 19.41 6.61003 20 7.24003 20C7.69003 20 8.07003 19.7 8.18003 19.27L9.00003 16H13L12.3 18.79C12.15 19.41 12.61 20 13.24 20C13.69 20 14.07 19.7 14.18 19.27L15 16H18.24C18.69 16 19.07 15.7 19.18 15.27L19.19 15.21C19.34 14.6 18.88 14 18.25 14H15.5L16.5 10H19.74C20.19 10 20.58 9.7 20.68 9.27ZM13.5 14H9.50003L10.5 10H14.5L13.5 14Z",fill:"currentColor"})})),heart:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M13.35 20.13C12.59 20.82 11.42 20.82 10.66 20.12L10.55 20.02C5.3 15.27 1.87 12.16 2 8.28C2.06 6.58 2.93 4.95 4.34 3.99C6.98 2.19 10.24 3.03 12 5.09C13.76 3.03 17.02 2.18 19.66 3.99C21.07 4.95 21.94 6.58 22 8.28C22.14 12.16 18.7 15.27 13.45 20.04L13.35 20.13Z",fill:"currentColor"})}))},"heart-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19.66 3.99C17.02 2.19 13.76 3.03 12 5.09C10.24 3.03 6.98 2.18 4.34 3.99C2.94 4.95 2.06 6.57 2 8.28C1.86 12.16 5.3 15.27 10.55 20.04L10.65 20.13C11.41 20.82 12.58 20.82 13.34 20.12L13.45 20.02C18.7 15.26 22.13 12.15 22 8.27C21.94 6.57 21.06 4.95 19.66 3.99ZM12.1 18.55L12 18.65L11.9 18.55C7.14 14.24 4 11.39 4 8.5C4 6.5 5.5 5 7.5 5C9.04 5 10.54 5.99 11.07 7.36H12.94C13.46 5.99 14.96 5 16.5 5C18.5 5 20 6.5 20 8.5C20 11.39 16.86 14.24 12.1 18.55Z",fill:"currentColor"})}))},help:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM11 16H13V18H11V16ZM12.61 6.04C10.55 5.74 8.73 7.01 8.18 8.83C8 9.41 8.44 10 9.05 10H9.25C9.66 10 9.99 9.71 10.13 9.33C10.45 8.44 11.4 7.83 12.43 8.05C13.38 8.25 14.08 9.18 14 10.15C13.9 11.49 12.38 11.78 11.55 13.03C11.55 13.04 11.54 13.04 11.54 13.05C11.53 13.07 11.52 13.08 11.51 13.1C11.42 13.25 11.33 13.42 11.26 13.6C11.25 13.63 11.23 13.65 11.22 13.68C11.21 13.7 11.21 13.72 11.2 13.75C11.08 14.09 11 14.5 11 15H13C13 14.58 13.11 14.23 13.28 13.93C13.3 13.9 13.31 13.87 13.33 13.84C13.41 13.7 13.51 13.57 13.61 13.45C13.62 13.44 13.63 13.42 13.64 13.41C13.74 13.29 13.85 13.18 13.97 13.07C14.93 12.16 16.23 11.42 15.96 9.51C15.72 7.77 14.35 6.3 12.61 6.04Z",fill:"currentColor"})}))},home:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z",fill:"currentColor"})})),hourglass:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M6 2L6.01 8L10 12L6.01 16.01L6 22H18V16L14 12L18 8.01V2H6ZM16 16.5V20H8V16.5L12 12.5L16 16.5Z",fill:"currentColor"})}))},info:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11 7.5C11 7.22386 11.2239 7 11.5 7H12.5C12.7761 7 13 7.22386 13 7.5V8.5C13 8.77614 12.7761 9 12.5 9H11.5C11.2239 9 11 8.77614 11 8.5V7.5ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})}))},instagram:function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M12 3.80723C14.6506 3.80723 15.0121 3.80723 16.0964 3.80723C17.0602 3.80723 17.5422 4.04819 17.9036 4.16868C18.3855 4.40964 18.747 4.53012 19.1084 4.89157C19.4699 5.25301 19.7108 5.61446 19.8313 6.09639C19.9518 6.45783 20.0723 6.93976 20.1928 7.90362C20.1928 8.98795 20.1928 9.22892 20.1928 12C20.1928 14.7711 20.1928 15.0121 20.1928 16.0964C20.1928 17.0602 19.9518 17.5422 19.8313 17.9036C19.5904 18.3855 19.4699 18.747 19.1084 19.1084C18.747 19.4699 18.3855 19.7108 17.9036 19.8313C17.5422 19.9518 17.0602 20.0723 16.0964 20.1928C15.0121 20.1928 14.7711 20.1928 12 20.1928C9.22892 20.1928 8.98795 20.1928 7.90362 20.1928C6.93976 20.1928 6.45783 19.9518 6.09639 19.8313C5.61446 19.5904 5.25301 19.4699 4.89157 19.1084C4.53012 18.747 4.28916 18.3855 4.16868 17.9036C4.04819 17.5422 3.92771 17.0602 3.80723 16.0964C3.80723 15.0121 3.80723 14.7711 3.80723 12C3.80723 9.22892 3.80723 8.98795 3.80723 7.90362C3.80723 6.93976 4.04819 6.45783 4.16868 6.09639C4.40964 5.61446 4.53012 5.25301 4.89157 4.89157C5.25301 4.53012 5.61446 4.28916 6.09639 4.16868C6.45783 4.04819 6.93976 3.92771 7.90362 3.80723C8.98795 3.80723 9.3494 3.80723 12 3.80723ZM12 2C9.22892 2 8.98795 2 7.90362 2C6.81928 2 6.09639 2.24096 5.49398 2.48193C4.89157 2.72289 4.28916 3.08434 3.68675 3.68675C3.08434 4.28916 2.84337 4.77109 2.48193 5.49398C2.24096 6.09639 2.12048 6.81928 2 7.90362C2 8.98795 2 9.3494 2 12C2 14.7711 2 15.0121 2 16.0964C2 17.1807 2.24096 17.9036 2.48193 18.506C2.72289 19.1084 3.08434 19.7108 3.68675 20.3133C4.28916 20.9157 4.77109 21.1566 5.49398 21.5181C6.09639 21.759 6.81928 21.8795 7.90362 22C8.98795 22 9.3494 22 12 22C14.6506 22 15.0121 22 16.0964 22C17.1807 22 17.9036 21.759 18.506 21.5181C19.1084 21.2771 19.7108 20.9157 20.3133 20.3133C20.9157 19.7108 21.1566 19.2289 21.5181 18.506C21.759 17.9036 21.8795 17.1807 22 16.0964C22 15.0121 22 14.6506 22 12C22 9.3494 22 8.98795 22 7.90362C22 6.81928 21.759 6.09639 21.5181 5.49398C21.2771 4.89157 20.9157 4.28916 20.3133 3.68675C19.7108 3.08434 19.2289 2.84337 18.506 2.48193C17.9036 2.24096 17.1807 2.12048 16.0964 2C15.0121 2 14.7711 2 12 2Z",fill:"currentColor"}),e("path",{d:"M12 6.81928C9.10843 6.81928 6.81928 9.10843 6.81928 12C6.81928 14.8916 9.10843 17.1807 12 17.1807C14.8916 17.1807 17.1807 14.8916 17.1807 12C17.1807 9.10843 14.8916 6.81928 12 6.81928ZM12 15.3735C10.1928 15.3735 8.62651 13.9277 8.62651 12C8.62651 10.1928 10.0723 8.62651 12 8.62651C13.8072 8.62651 15.3735 10.0723 15.3735 12C15.3735 13.8072 13.8072 15.3735 12 15.3735Z",fill:"currentColor"}),e("path",{d:"M17.3012 7.90362C17.9666 7.90362 18.506 7.3642 18.506 6.6988C18.506 6.03339 17.9666 5.49398 17.3012 5.49398C16.6358 5.49398 16.0964 6.03339 16.0964 6.6988C16.0964 7.3642 16.6358 7.90362 17.3012 7.90362Z",fill:"currentColor"})]}))},"kebab-menu":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 8C13.1 8 14 7.1 14 6C14 4.9 13.1 4 12 4C10.9 4 10 4.9 10 6C10 7.1 10.9 8 12 8ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM12 16C10.9 16 10 16.9 10 18C10 19.1 10.9 20 12 20C13.1 20 14 19.1 14 18C14 16.9 13.1 16 12 16Z",fill:"currentColor"})}))},link:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 7H14C13.45 7 13 7.45 13 8C13 8.55 13.45 9 14 9H17C18.65 9 20 10.35 20 12C20 13.65 18.65 15 17 15H14C13.45 15 13 15.45 13 16C13 16.55 13.45 17 14 17H17C19.76 17 22 14.76 22 12C22 9.24 19.76 7 17 7ZM8 12C8 12.55 8.45 13 9 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H9C8.45 11 8 11.45 8 12ZM10 15H7C5.35 15 4 13.65 4 12C4 10.35 5.35 9 7 9H10C10.55 9 11 8.55 11 8C11 7.45 10.55 7 10 7H7C4.24 7 2 9.24 2 12C2 14.76 4.24 17 7 17H10C10.55 17 11 16.55 11 16C11 15.45 10.55 15 10 15Z",fill:"currentColor"})}))},linkedin:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M6.50001 22H2.25V8.625H6.50001V22ZM4.375 6.75C3 6.75 2 5.75 2 4.375C2 3 3.125 2 4.375 2C5.75 2 6.75 3 6.75 4.375C6.75 5.75 5.75 6.75 4.375 6.75ZM22 22H17.75V14.75C17.75 12.625 16.875 12 15.625 12C14.375 12 13.125 13 13.125 14.875V22H8.875V8.625H12.875V10.5C13.25 9.625 14.75 8.25 16.875 8.25C19.25 8.25 21.75 9.625 21.75 13.75V22H22Z",fill:"currentColor"})}))},loading:function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M20.479 10.479H18.0439C17.2038 10.479 16.5227 11.1601 16.5227 12.0002C16.5227 12.8403 17.2038 13.5214 18.0439 13.5214H20.479C21.3191 13.5214 22.0002 12.8403 22.0002 12.0002C22.0002 11.1601 21.3191 10.479 20.479 10.479Z",fill:"currentColor"}),e("path",{d:"M7.47748 12.0002C7.47748 11.1601 6.79639 10.479 5.95627 10.479H3.52121C2.6811 10.479 2 11.1601 2 12.0002C2 12.8403 2.6811 13.5214 3.52121 13.5214H5.95627C6.79639 13.5214 7.47748 12.8404 7.47748 12.0002Z",fill:"currentColor"}),e("path",{d:"M11.9663 16.5227C11.1262 16.5227 10.4451 17.2038 10.4451 18.0439V20.479C10.4451 21.3191 11.1262 22.0002 11.9663 22.0002C12.8064 22.0002 13.4875 21.3191 13.4875 20.479V18.0439C13.4875 17.2038 12.8065 16.5227 11.9663 16.5227Z",fill:"currentColor"}),e("path",{d:"M11.9662 2.00024C11.1261 2.00024 10.4451 2.68144 10.4451 3.52156V5.95651C10.4451 6.79663 11.1263 7.47763 11.9664 7.47763C12.8065 7.47763 13.4875 6.79643 13.4875 5.95631V3.52136C13.4875 2.68124 12.8064 2.00024 11.9662 2.00024Z",fill:"currentColor"}),e("path",{d:"M17.3493 15.1981C16.7553 14.6041 15.792 14.6041 15.198 15.1981C14.6039 15.7921 14.6039 16.7553 15.198 17.3494L16.9198 19.0713C17.2168 19.3683 17.6061 19.5169 17.9955 19.5169C18.3848 19.5169 18.7741 19.3683 19.0711 19.0713C19.6651 18.4773 19.6651 17.5141 19.0711 16.92L17.3493 15.1981Z",fill:"currentColor"}),e("path",{d:"M7.08035 4.92909C6.48636 4.3349 5.52313 4.3351 4.92905 4.92909C4.33496 5.52317 4.33506 6.4864 4.92905 7.08039L6.65096 8.8023C6.948 9.09944 7.33733 9.24791 7.72656 9.24791C8.11589 9.24791 8.50522 9.09934 8.80216 8.8023C9.39624 8.20821 9.39614 7.24508 8.80216 6.651L7.08035 4.92909Z",fill:"currentColor"}),e("path",{d:"M6.65065 15.1981L4.92874 16.9201C4.33476 17.5142 4.33486 18.4774 4.92884 19.0715C5.22599 19.3686 5.61522 19.517 6.00444 19.517C6.39377 19.517 6.7832 19.3684 7.08014 19.0715L8.80206 17.3495C9.39604 16.7554 9.39594 15.7922 8.80196 15.1981C8.20787 14.6039 7.24474 14.604 6.65065 15.1981Z",fill:"currentColor"})]}))},"local-area":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 21.6971C10.3289 21.6971 8.96157 21.4462 7.89812 20.9443C6.83465 20.4425 6.30292 19.7944 6.30292 19C6.30292 18.5398 6.49763 18.1236 6.88704 17.7514C7.27646 17.3793 7.81992 17.0715 8.51742 16.8279L8.93172 18.1635C8.61827 18.2809 8.35529 18.4133 8.14279 18.5607C7.93029 18.708 7.78686 18.8545 7.71249 19C7.88396 19.3699 8.38676 19.6787 9.22089 19.9265C10.055 20.1742 10.9814 20.2981 12 20.2981C13.0122 20.2981 13.9396 20.1742 14.7821 19.9265C15.6246 19.6787 16.1331 19.3699 16.3077 19C16.2302 18.8545 16.0851 18.7097 15.8726 18.5655C15.6601 18.4214 15.3971 18.2873 15.0837 18.1635L15.4962 16.8279C16.1962 17.0715 16.7388 17.3793 17.124 17.7514C17.5093 18.1236 17.7019 18.5398 17.7019 19C17.7019 19.7944 17.1694 20.4425 16.1043 20.9443C15.0393 21.4462 13.6712 21.6971 12 21.6971ZM12.0008 18.3692C11.8385 18.3692 11.6894 18.3158 11.5536 18.2091C11.4179 18.1024 11.3183 17.9663 11.2548 17.8009C10.8459 16.6952 10.362 15.7652 9.80314 15.011C9.24434 14.2567 8.70677 13.5344 8.19042 12.844C7.68272 12.1567 7.24954 11.4423 6.89089 10.7008C6.53224 9.95922 6.35292 9.04884 6.35292 7.96962C6.35292 6.39244 6.89971 5.05626 7.99329 3.96107C9.08688 2.86587 10.4225 2.31828 12 2.31828C13.5776 2.31828 14.914 2.86587 16.0091 3.96107C17.1043 5.05626 17.6519 6.39203 17.6519 7.9684C17.6519 9.04707 17.4739 9.95789 17.1178 10.7009C16.7617 11.4439 16.3236 12.1586 15.8035 12.8452C15.2999 13.5317 14.7675 14.253 14.2064 15.009C13.6452 15.765 13.1598 16.6956 12.75 17.8009C12.6844 17.9663 12.5837 18.1024 12.448 18.2091C12.3122 18.3158 12.1632 18.3692 12.0008 18.3692ZM12.002 9.64325C12.4667 9.64325 12.8622 9.48026 13.1885 9.15428C13.5148 8.82829 13.6779 8.43294 13.6779 7.96823C13.6779 7.50351 13.5146 7.10802 13.1879 6.78175C12.8613 6.45547 12.4651 6.29232 11.9995 6.29232C11.5338 6.29232 11.1387 6.45565 10.814 6.7823C10.4893 7.10895 10.327 7.5051 10.327 7.97075C10.327 8.4364 10.49 8.83156 10.8159 9.15623C11.1419 9.48091 11.5373 9.64325 12.002 9.64325Z",fill:"currentColor"})})),location:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z",fill:"currentColor"})})),logout:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 8L15.59 9.41L17.17 11H9V13H17.17L15.59 14.58L17 16L21 12L17 8ZM5 5H12V3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H12V19H5V5Z",fill:"currentColor"})})),maximize:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M5 18L5 6C5 5.45 5.45 5 6 5L18 5C18.55 5 19 5.45 19 6L19 11C19 11.55 19.45 12 20 12C20.55 12 21 11.55 21 11L21 5C21 3.89 20.1 3 19 3L5 3C3.9 3 3 3.9 3 5L3 19C3 20.1 3.9 21 5 21L11 21C11.55 21 12 20.55 12 20C12 19.45 11.55 19 11 19L6 19C5.45 19 5 18.55 5 18ZM9.1675 15.1675C9.7175 15.1675 10.1675 14.7175 10.1675 14.1675L10.1675 11.5775L19.2975 20.7075C19.6875 21.0975 20.3175 21.0975 20.7075 20.7075C21.0975 20.3175 21.0975 19.6875 20.7075 19.2975L11.5775 10.1675L14.1675 10.1675C14.7175 10.1675 15.1675 9.7175 15.1675 9.1675C15.1675 8.6175 14.7175 8.1675 14.1675 8.1675L9.1675 8.1675C8.6175 8.1675 8.1675 8.6175 8.1675 9.1675L8.1675 14.1675C8.1675 14.7175 8.6175 15.1675 9.1675 15.1675Z",fill:"currentColor"})}))},menu:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M3 18H21V16H3V18ZM3 13H21V11H3V13ZM3 6V8H21V6H3Z",fill:"currentColor"})}))},merge:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 20.41L18.41 19L15 15.59L13.59 17L17 20.41ZM7.49997 8H11V13.59L5.58997 19L6.99997 20.41L13 14.41V8H16.5L12 3.5L7.49997 8Z",fill:"currentColor"})})),"merge-field":function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M6.93945 20.2002C4.83008 19.6084 3.77539 18.2461 3.77539 16.1133V14.373C3.77539 13.1895 3.30078 12.5977 2.35156 12.5977V10.6025C3.30078 10.6025 3.77539 10.0078 3.77539 8.81836V6.97266C3.79297 5.91797 4.06543 5.06543 4.59277 4.41504C5.12598 3.76465 5.9082 3.29297 6.93945 3L7.49316 4.54688C6.75488 4.82812 6.37109 5.61621 6.3418 6.91113V8.81836C6.3418 10.1309 5.7998 11.0566 4.71582 11.5957C5.7998 12.1348 6.3418 13.0635 6.3418 14.3818V16.2803C6.37109 17.5752 6.75488 18.3633 7.49316 18.6445L6.93945 20.2002Z",fill:"currentColor"}),e("path",{d:"M17.1787 18.6445C17.917 18.3633 18.3008 17.5752 18.3301 16.2803V14.373C18.3301 13.0547 18.875 12.1289 19.9648 11.5957C18.875 11.0625 18.3301 10.1367 18.3301 8.81836V6.91113C18.3008 5.61621 17.917 4.82812 17.1787 4.54688L17.7324 3C18.7812 3.29297 19.5693 3.77344 20.0967 4.44141C20.624 5.10352 20.8906 5.97363 20.8965 7.05176V8.81836C20.8965 10.0078 21.3711 10.6025 22.3203 10.6025V12.5977C21.3711 12.5977 20.8965 13.1865 20.8965 14.3643V16.2363C20.8555 18.2988 19.8008 19.6201 17.7324 20.2002L17.1787 18.6445Z",fill:"currentColor"})]}))},message:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M20 2H4C2.9 2 2.01 2.9 2.01 4L2 22L6 18H20C21.1 18 22 17.1 22 16V4C22 2.9 21.1 2 20 2ZM9 11H7V9H9V11ZM13 11H11V9H13V11ZM17 11H15V9H17V11Z",fill:"currentColor"})}))},mic:function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("g",{clipPath:"url(#clip0)",children:e("path",{d:"M12 14C13.66 14 15 12.66 15 11V5C15 3.34 13.66 2 12 2C10.34 2 8.99999 3.34 8.99999 5V11C8.99999 12.66 10.34 14 12 14ZM17.91 11C17.42 11 17.01 11.36 16.93 11.85C16.52 14.2 14.47 16 12 16C9.52999 16 7.47999 14.2 7.06999 11.85C6.98999 11.36 6.57999 11 6.08999 11C5.47999 11 4.99999 11.54 5.08999 12.14C5.57999 15.14 7.97999 17.49 11 17.92V20C11 20.55 11.45 21 12 21C12.55 21 13 20.55 13 20V17.92C16.02 17.49 18.42 15.14 18.91 12.14C19.01 11.54 18.52 11 17.91 11Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0",children:e("rect",{width:24,height:24,fill:"currentColor"})})})]}))},"mic-off":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M15 10.6V5C15 3.34 13.66 2 12 2C10.46 2 9.21 3.16 9.04 4.65L15 10.6ZM18.08 11C17.67 11 17.31 11.3 17.25 11.71C17.2 12.03 17.13 12.35 17.03 12.64L18.3 13.91C18.6 13.31 18.82 12.66 18.93 11.97C19 11.46 18.6 11 18.08 11ZM3.71 3.56C3.32 3.95 3.32 4.58 3.71 4.97L9 10.27V10.7C9 11.89 9.6 13.02 10.63 13.61C11.38 14.04 12.04 14.05 12.65 13.92L14.31 15.58C13.6 15.91 12.81 16.1 12 16.1C9.46 16.1 7.12 14.33 6.75 11.71C6.69 11.3 6.33 11 5.92 11C5.4 11 5 11.46 5.07 11.97C5.53 14.93 8.03 17.27 11 17.72V20C11 20.55 11.45 21 12 21C12.55 21 13 20.55 13 20V17.72C13.91 17.59 14.77 17.27 15.55 16.82L19.04 20.31C19.43 20.7 20.06 20.7 20.45 20.31C20.84 19.92 20.84 19.29 20.45 18.9L5.12 3.56C4.73 3.17 4.1 3.17 3.71 3.56Z",fill:"currentColor"})}))},minimize:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 6L19 18C19 18.55 18.55 19 18 19L6 19C5.45 19 5 18.55 5 18L5 13C5 12.45 4.55 12 4 12C3.45 12 3 12.45 3 13L3 19C3 20.11 3.9 21 5 21L19 21C20.1 21 21 20.1 21 19L21 5C21 3.9 20.1 3 19 3L13 3C12.45 3 12 3.45 12 4C12 4.55 12.45 5 13 5L18 5C18.55 5 19 5.45 19 6ZM14.8325 8.8325C14.2825 8.8325 13.8325 9.2825 13.8325 9.8325L13.8325 12.4225L4.7025 3.2925C4.3125 2.9025 3.6825 2.9025 3.2925 3.2925C2.9025 3.6825 2.9025 4.3125 3.2925 4.7025L12.4225 13.8325L9.8325 13.8325C9.2825 13.8325 8.8325 14.2825 8.8325 14.8325C8.8325 15.3825 9.2825 15.8325 9.8325 15.8325L14.8325 15.8325C15.3825 15.8325 15.8325 15.3825 15.8325 14.8325L15.8325 9.8325C15.8325 9.2825 15.3825 8.8325 14.8325 8.8325Z",fill:"currentColor"})}))},mobile:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M15.5 1H7.5C6.12 1 5 2.12 5 3.5V20.5C5 21.88 6.12 23 7.5 23H15.5C16.88 23 18 21.88 18 20.5V3.5C18 2.12 16.88 1 15.5 1ZM11.5 22C10.67 22 10 21.33 10 20.5C10 19.67 10.67 19 11.5 19C12.33 19 13 19.67 13 20.5C13 21.33 12.33 22 11.5 22ZM16 18H7V4H16V18Z",fill:"currentColor"})}))},"not-allowed":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 10.15 4.63 8.45 5.69 7.1L16.9 18.31C15.55 19.37 13.85 20 12 20ZM18.31 16.9L7.1 5.69C8.45 4.63 10.15 4 12 4C16.42 4 20 7.58 20 12C20 13.85 19.37 15.55 18.31 16.9Z",fill:"currentColor"})}))},notes:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M21 11.01L3 11V13H21V11.01ZM3 16H15V18H3V16ZM21 6H3V8.01L21 8V6Z",fill:"currentColor"})})),open:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 18L19 6C19 5.45 18.55 5 18 5L6 5C5.45 5 5 5.45 5 6L5 11C5 11.55 4.55 12 4 12C3.45 12 3 11.55 3 11L3 5C3 3.89 3.9 3 5 3L19 3C20.1 3 21 3.9 21 5L21 19C21 20.1 20.1 21 19 21L13 21C12.45 21 12 20.55 12 20C12 19.45 12.45 19 13 19L18 19C18.55 19 19 18.55 19 18ZM14.8325 15.1675C14.2825 15.1675 13.8325 14.7175 13.8325 14.1675L13.8325 11.5775L4.7025 20.7075C4.3125 21.0975 3.6825 21.0975 3.2925 20.7075C2.9025 20.3175 2.9025 19.6875 3.2925 19.2975L12.4225 10.1675L9.8325 10.1675C9.2825 10.1675 8.8325 9.7175 8.8325 9.1675C8.8325 8.6175 9.2825 8.1675 9.8325 8.1675L14.8325 8.1675C15.3825 8.1675 15.8325 8.6175 15.8325 9.1675L15.8325 14.1675C15.8325 14.7175 15.3825 15.1675 14.8325 15.1675Z",fill:"currentColor"})}))},pause:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2zm6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2z"})}))},"pause-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M10 16C10.55 16 11 15.55 11 15V9C11 8.45 10.55 8 10 8C9.45 8 9 8.45 9 9V15C9 15.55 9.45 16 10 16ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM14 16C14.55 16 15 15.55 15 15V9C15 8.45 14.55 8 14 8C13.45 8 13 8.45 13 9V15C13 15.55 13.45 16 14 16Z",fill:"currentColor"})}))},person:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12ZM12 14C9.33 14 4 15.34 4 18V19C4 19.55 4.45 20 5 20H19C19.55 20 20 19.55 20 19V18C20 15.34 14.67 14 12 14Z",fill:"currentColor"})}))},phone:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19.23 15.26L16.69 14.97C16.08 14.9 15.48 15.11 15.05 15.54L13.21 17.38C10.38 15.94 8.06001 13.63 6.62001 10.79L8.47001 8.93999C8.90001 8.50999 9.11001 7.90999 9.04001 7.29999L8.75001 4.77999C8.63001 3.76999 7.78001 3.00999 6.76001 3.00999H5.03001C3.90001 3.00999 2.96001 3.94999 3.03001 5.07999C3.56001 13.62 10.39 20.44 18.92 20.97C20.05 21.04 20.99 20.1 20.99 18.97V17.24C21 16.23 20.24 15.38 19.23 15.26Z",fill:"currentColor"})}))},"phone-add":t=>n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("g",{clipPath:"url(#clip0_5137_89685)",children:e("path",{d:"M20 15.5C18.75 15.5 17.55 15.3 16.43 14.93C16.08 14.82 15.69 14.9 15.41 15.17L13.21 17.37C10.38 15.93 8.06 13.62 6.62 10.78L8.82 8.57C9.1 8.31 9.18 7.92 9.07 7.57C8.7 6.45 8.5 5.25 8.5 4C8.5 3.45 8.05 3 7.5 3H4C3.45 3 3 3.45 3 4C3 13.39 10.61 21 20 21C20.55 21 21 20.55 21 20V16.5C21 15.95 20.55 15.5 20 15.5ZM21 6H18V3H16V6H13V8H16V11H18V8H21V6Z",fill:"currentColor"})}),e("defs",{children:e("clipPath",{id:"clip0_5137_89685",children:e("rect",{width:24,height:24,fill:"currentColor"})})})]})),"phone-blocked":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M14.54 17.37C11.91 19.45 8.65 20.76 5.09 20.98C3.96 21.05 3.02 20.11 3.02 18.98V17.25C3.01 16.24 3.77 15.39 4.78 15.27L7.32 14.98C7.93 14.91 8.53 15.12 8.96 15.55L10.8 17.39C11.61 16.98 12.39 16.49 13.11 15.94L2.1 4.93C1.71 4.54 1.71 3.91 2.1 3.52C2.49 3.13 3.13 3.13 3.52 3.52L20.49 20.5C20.88 20.89 20.88 21.52 20.49 21.91C20.1 22.3 19.47 22.3 19.08 21.91L14.54 17.37ZM17.39 10.8L15.54 8.95C15.11 8.52 14.9 7.92 14.97 7.31L15.26 4.79C15.38 3.78 16.23 3.02 17.25 3.02H18.98C20.11 3.02 21.05 3.96 20.98 5.09C20.76 8.66 19.44 11.92 17.36 14.56L15.93 13.13C16.48 12.4 16.97 11.62 17.39 10.8Z",fill:"currentColor"})}))},"phone-callback":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.69 14.97L19.23 15.26C20.24 15.38 21 16.23 20.99 17.24V18.97C20.99 20.1 20.05 21.04 18.92 20.97C10.39 20.44 3.56004 13.62 3.03004 5.08001C2.96004 3.95001 3.90004 3.01001 5.03004 3.01001H6.76004C7.78004 3.01001 8.63004 3.77001 8.75004 4.78001L9.04004 7.30001C9.11004 7.91001 8.90004 8.51001 8.47004 8.94001L6.62004 10.79C8.06004 13.63 10.38 15.94 13.21 17.38L15.05 15.54C15.48 15.11 16.08 14.9 16.69 14.97ZM12.9334 11.3636C11.8334 11.3636 11.8334 13 12.9334 13H18.0667C19.6874 13 21.0001 11.5355 21.0001 9.72727C21.0001 7.91909 19.6874 6.45455 18.0667 6.45455H12.9334V4L10.0001 7.27273L12.9334 10.5455V8.09091L18.0667 8.09091C18.8734 8.09091 19.5334 8.82727 19.5334 9.72727C19.5334 10.6273 18.8734 11.3636 18.0667 11.3636H12.9334Z",fill:"currentColor"})})),"phone-end":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M4.51 15.48L6.51 13.89C6.99 13.51 7.27 12.93 7.27 12.32V9.72C10.29 8.74 13.56 8.73 16.59 9.72V12.33C16.59 12.94 16.87 13.52 17.35 13.9L19.34 15.48C20.14 16.11 21.28 16.05 22 15.33L23.22 14.11C24.02 13.31 24.02 11.98 23.17 11.23C16.76 5.57 7.1 5.57 0.690004 11.23C-0.159996 11.98 -0.159996 13.31 0.640004 14.11L1.86 15.33C2.57 16.05 3.71 16.11 4.51 15.48Z",fill:"currentColor"})}))},"phone-forward":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M22.65 5.65L18.86 1.86C18.54 1.54 18 1.76 18 2.21V4H14.5C14.22 4 14 4.22 14 4.5V7.5C14 7.78 14.22 8 14.5 8H18V9.79C18 10.24 18.54 10.46 18.85 10.14L22.64 6.35C22.84 6.16 22.84 5.84 22.65 5.65ZM19.23 15.26L16.69 14.97C16.08 14.9 15.48 15.11 15.05 15.54L13.21 17.38C10.38 15.94 8.06004 13.63 6.62004 10.79L8.47004 8.94C8.90004 8.51 9.11004 7.91 9.04004 7.3L8.75004 4.78C8.63004 3.77 7.78004 3.01 6.76004 3.01H5.03004C3.90004 3.01 2.96004 3.95 3.03004 5.08C3.56004 13.62 10.39 20.44 18.92 20.97C20.05 21.04 20.99 20.1 20.99 18.97V17.24C21 16.23 20.24 15.38 19.23 15.26Z",fill:"currentColor"})})),"phone-history":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.1114 17.9L14.6314 15.4C14.8614 15.17 15.2014 15.07 15.5314 15.14L19.2014 15.87C19.6614 15.96 20.0014 16.37 20.0014 16.85V21C20.0014 21.56 19.5314 22.03 18.9714 22C16.0814 21.83 13.3714 20.94 11.0014 19.57C8.28136 17.99 6.01136 15.73 4.43136 13C3.05136 10.63 2.17136 7.92 2.00136 5.03C1.97136 4.47 2.44136 4 3.00136 4H7.15136C7.63136 4 8.04136 4.34 8.13136 4.8L8.88136 8.48C8.94136 8.81 8.84136 9.14 8.61136 9.38L6.11136 11.9C7.54136 14.4 9.61136 16.47 12.1114 17.9ZM12.0014 8C12.0014 5.792 13.7894 4 15.9974 4C18.2094 4 20.0014 5.792 20.0014 8C20.0014 10.208 18.2094 12 15.9974 12C13.7894 12 12.0014 10.208 12.0014 8ZM17.0374 9.6C17.1934 9.756 17.4454 9.756 17.6014 9.6C17.7574 9.444 17.7574 9.192 17.6014 9.036L16.4014 7.836V6.4C16.4014 6.18 16.2214 6 16.0014 6C15.7814 6 15.6014 6.18 15.6014 6.4V8C15.6014 8.108 15.6454 8.208 15.7214 8.284L17.0374 9.6Z",fill:"currentColor"})}))},"phone-hold":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M16 3C15.45 3 15 3.45 15 4V9C15 9.55 15.45 10 16 10C16.55 10 17 9.55 17 9V4C17 3.45 16.55 3 16 3ZM19 4V9C19 9.55 19.45 10 20 10C20.55 10 21 9.55 21 9V4C21 3.45 20.55 3 20 3C19.45 3 19 3.45 19 4ZM19.23 15.26L16.69 14.97C16.08 14.9 15.48 15.11 15.05 15.54L13.21 17.38C10.38 15.94 8.06004 13.63 6.62004 10.79L8.47004 8.94C8.90004 8.51 9.11004 7.91 9.04004 7.3L8.75004 4.78C8.63004 3.77 7.78004 3.01 6.76004 3.01H5.03004C3.90004 3.01 2.96004 3.95 3.03004 5.08C3.56004 13.62 10.39 20.44 18.92 20.97C20.05 21.04 20.99 20.1 20.99 18.97V17.24C21 16.23 20.24 15.38 19.23 15.26Z",fill:"currentColor"})})),"phone-incoming":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.7071 4.70711C21.0976 4.31658 21.0976 3.68342 20.7071 3.29289C20.3166 2.90237 19.6834 2.90237 19.2929 3.29289L14 8.58579V6C14 5.44772 13.5523 5 13 5C12.4477 5 12 5.44772 12 6V11C12 11.5523 12.4477 12 13 12H17.5C18.0523 12 18.5 11.5523 18.5 11C18.5 10.4477 18.0523 10 17.5 10H15.4142L20.7071 4.70711ZM16.69 14.97L19.23 15.26C20.24 15.38 21 16.23 20.99 17.24V18.97C20.99 20.1 20.05 21.04 18.92 20.97C10.39 20.44 3.56004 13.62 3.03004 5.08001C2.96004 3.95001 3.90004 3.01001 5.03004 3.01001H6.76004C7.78004 3.01001 8.63004 3.77001 8.75004 4.78001L9.04004 7.30001C9.11004 7.91001 8.90004 8.51001 8.47004 8.94001L6.62004 10.79C8.06004 13.63 10.38 15.94 13.21 17.38L15.05 15.54C15.48 15.11 16.08 14.9 16.69 14.97Z",fill:"currentColor"})})),"phone-talk":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M20 15.5C18.75 15.5 17.55 15.3 16.43 14.93C16.08 14.82 15.69 14.9 15.41 15.17L13.21 17.37C10.38 15.93 8.06 13.62 6.62 10.78L8.82 8.57C9.1 8.31 9.18 7.92 9.07 7.57C8.7 6.45 8.5 5.25 8.5 4C8.5 3.45 8.05 3 7.5 3H4C3.45 3 3 3.45 3 4C3 13.39 10.61 21 20 21C20.55 21 21 20.55 21 20V16.5C21 15.95 20.55 15.5 20 15.5ZM19 12H21C21 7.03 16.97 3 12 3V5C15.87 5 19 8.13 19 12ZM15 12H17C17 9.24 14.76 7 12 7V9C13.66 9 15 10.34 15 12Z",fill:"currentColor"})}))},"phone-transfer":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.69 14.97L19.23 15.26C20.24 15.38 21 16.23 20.99 17.24V18.97C20.99 20.1 20.05 21.04 18.92 20.97C10.39 20.44 3.56004 13.62 3.03004 5.08001C2.96004 3.95001 3.90004 3.01001 5.03004 3.01001H6.76004C7.78004 3.01001 8.63004 3.77001 8.75004 4.78001L9.04004 7.30001C9.11004 7.91001 8.90004 8.51001 8.47004 8.94001L6.62004 10.79C8.06004 13.63 10.38 15.94 13.21 17.38L15.05 15.54C15.48 15.11 16.08 14.9 16.69 14.97ZM15.375 8.75002L13 6.37502L15.375 4.00002L16.25 4.87502L15.375 5.75002H21V7.00002H15.375L16.25 7.87502L15.375 8.75002ZM18.625 13.15L17.75 12.275L18.625 11.4H13V10.15H18.625L17.75 9.27502L18.625 8.40002L21 10.775L18.625 13.15Z",fill:"currentColor"})})),play:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M8 6.82V17.18C8 17.97 8.87 18.45 9.54 18.02L17.68 12.84C18.3 12.45 18.3 11.55 17.68 11.15L9.54 5.98C8.87 5.55 8 6.03 8 6.82Z",fill:"currentColor"})}))},"play-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM11.04 15.51L15.19 12.84C15.8 12.45 15.8 11.55 15.19 11.16L11.04 8.49C10.38 8.06 9.5 8.54 9.5 9.33V14.67C9.5 15.46 10.38 15.94 11.04 15.51Z",fill:"currentColor"})}))},"profile-user":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 5C13.66 5 15 6.34 15 8C15 9.66 13.66 11 12 11C10.34 11 9 9.66 9 8C9 6.34 10.34 5 12 5ZM12 19.2C9.5 19.2 7.29 17.92 6 15.98C6.03 13.99 10 12.9 12 12.9C13.99 12.9 17.97 13.99 18 15.98C16.71 17.92 14.5 19.2 12 19.2Z",fill:"currentColor"})}))},"radio-button":function(t){return n("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:[e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"}),e("path",{className:"radio-fill",d:"M12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7C9.23858 7 7 9.23858 7 12C7 14.7614 9.23858 17 12 17Z",fill:"currentColor"})]}))},"radio-button-off":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20Z",fill:"currentColor"})}))},record:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("circle",{cx:12,cy:12,r:6,transform:"rotate(-90 12 12)",fill:"currentColor"})}))},refresh:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17.65 6.34999C16.02 4.71999 13.71 3.77999 11.17 4.03999C7.50001 4.40999 4.48001 7.38999 4.07001 11.06C3.52001 15.91 7.27001 20 12 20C15.19 20 17.93 18.13 19.21 15.44C19.53 14.77 19.05 14 18.31 14C17.94 14 17.59 14.2 17.43 14.53C16.3 16.96 13.59 18.5 10.63 17.84C8.41001 17.35 6.62001 15.54 6.15001 13.32C5.31001 9.43999 8.26001 5.99999 12 5.99999C13.66 5.99999 15.14 6.68999 16.22 7.77999L14.71 9.28999C14.08 9.91999 14.52 11 15.41 11H19C19.55 11 20 10.55 20 9.99999V6.40999C20 5.51999 18.92 5.06999 18.29 5.69999L17.65 6.34999Z",fill:"currentColor"})}))},rocket:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M8.68185 5.87296C6.64185 8.16296 5.69685 11.908 5.56685 12.218L3.30685 11.248C2.65685 10.968 2.49685 10.118 2.99685 9.61796L5.55185 6.15296C6.02185 5.68296 6.70185 5.47296 7.36185 5.60296L8.68185 5.87296ZM10.6269 16.488C10.9269 16.788 11.3669 16.868 11.7469 16.688C13.0591 16.7058 16.104 15.5851 17.714 13.9751C22.304 9.38506 21.6369 4.93796 21.3669 3.33796C21.2969 2.93796 20.9769 2.61796 20.5769 2.54796C18.9769 2.27796 14.5297 1.61085 9.93975 6.20085C8.32975 7.81085 7.4226 10.3622 7.22685 12.168C7.04685 12.548 7.13685 12.998 7.42685 13.288L10.6269 16.488ZM18.0519 15.243C15.7619 17.283 12.0169 18.228 11.7069 18.358L12.6769 20.618C12.9569 21.268 13.8069 21.428 14.3069 20.928L17.7719 18.373C18.2419 17.903 18.4519 17.223 18.3219 16.563L18.0519 15.243ZM8.88685 17.388C9.08685 18.448 8.73685 19.428 8.06685 20.098C7.29685 20.868 4.90685 21.438 3.35685 21.738C2.66685 21.868 2.05685 21.258 2.18685 20.568C2.48685 19.018 3.04685 16.628 3.82685 15.858C4.49685 15.188 5.47685 14.838 6.53685 15.038C7.70685 15.258 8.66685 16.218 8.88685 17.388ZM12.9469 8.97796C12.9469 7.87796 13.8469 6.97796 14.9469 6.97796C16.0469 6.97796 16.9469 7.87796 16.9469 8.97796C16.9469 10.078 16.0469 10.978 14.9469 10.978C13.8469 10.978 12.9469 10.078 12.9469 8.97796Z",fill:"currentColor"})}))},schedule:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM16 16C15.61 16.39 14.98 16.39 14.59 16L11.3 12.71C11.11 12.52 11 12.27 11 12V8C11 7.45 11.45 7 12 7C12.55 7 13 7.45 13 8V11.59L16 14.59C16.39 14.98 16.39 15.61 16 16Z",fill:"currentColor"})}))},"schedule-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20ZM11.78 7H11.72C11.32 7 11 7.32 11 7.72V12.44C11 12.79 11.18 13.12 11.49 13.3L15.64 15.79C15.98 15.99 16.42 15.89 16.62 15.55C16.83 15.21 16.72 14.76 16.37 14.56L12.5 12.26V7.72C12.5 7.32 12.18 7 11.78 7Z",fill:"currentColor"})}))},screenshot:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 1.01L7 1C5.9 1 5 1.9 5 3V21C5 22.1 5.9 23 7 23H17C18.1 23 19 22.1 19 21V3C19 1.9 18.1 1.01 17 1.01ZM17 21H7V20H17V21ZM17 18H7V6H17V18ZM17 4H7V3H17V4ZM9.5 8.5H12V7H8V11H9.5V8.5ZM12 17H16V13H14.5V15.5H12V17Z",fill:"currentColor"})})),search:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M15.5 14H14.71L14.43 13.73C15.63 12.33 16.25 10.42 15.91 8.39002C15.44 5.61002 13.12 3.39002 10.32 3.05002C6.09001 2.53002 2.53002 6.09001 3.05002 10.32C3.39002 13.12 5.61002 15.44 8.39002 15.91C10.42 16.25 12.33 15.63 13.73 14.43L14 14.71V15.5L18.25 19.75C18.66 20.16 19.33 20.16 19.74 19.75C20.15 19.34 20.15 18.67 19.74 18.26L15.5 14ZM9.50002 14C7.01002 14 5.00002 11.99 5.00002 9.50002C5.00002 7.01002 7.01002 5.00002 9.50002 5.00002C11.99 5.00002 14 7.01002 14 9.50002C14 11.99 11.99 14 9.50002 14Z",fill:"currentColor"})}))},settings:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19.43 12.98C19.47 12.66 19.5 12.34 19.5 12C19.5 11.66 19.47 11.34 19.43 11.02L21.54 9.37C21.73 9.22 21.78 8.95 21.66 8.73L19.66 5.27C19.54 5.05 19.27 4.97 19.05 5.05L16.56 6.05C16.04 5.65 15.48 5.32 14.87 5.07L14.49 2.42C14.46 2.18 14.25 2 14 2H9.99999C9.74999 2 9.53999 2.18 9.50999 2.42L9.12999 5.07C8.51999 5.32 7.95999 5.66 7.43999 6.05L4.94999 5.05C4.71999 4.96 4.45999 5.05 4.33999 5.27L2.33999 8.73C2.20999 8.95 2.26999 9.22 2.45999 9.37L4.56999 11.02C4.52999 11.34 4.49999 11.67 4.49999 12C4.49999 12.33 4.52999 12.66 4.56999 12.98L2.45999 14.63C2.26999 14.78 2.21999 15.05 2.33999 15.27L4.33999 18.73C4.45999 18.95 4.72999 19.03 4.94999 18.95L7.43999 17.95C7.95999 18.35 8.51999 18.68 9.12999 18.93L9.50999 21.58C9.53999 21.82 9.74999 22 9.99999 22H14C14.25 22 14.46 21.82 14.49 21.58L14.87 18.93C15.48 18.68 16.04 18.34 16.56 17.95L19.05 18.95C19.28 19.04 19.54 18.95 19.66 18.73L21.66 15.27C21.78 15.05 21.73 14.78 21.54 14.63L19.43 12.98ZM12 15.5C10.07 15.5 8.49999 13.93 8.49999 12C8.49999 10.07 10.07 8.5 12 8.5C13.93 8.5 15.5 10.07 15.5 12C15.5 13.93 13.93 15.5 12 15.5Z",fill:"currentColor"})}))},share:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08ZM18 4C18.55 4 19 4.45 19 5C19 5.55 18.55 6 18 6C17.45 6 17 5.55 17 5C17 4.45 17.45 4 18 4ZM6 13C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11C6.55 11 7 11.45 7 12C7 12.55 6.55 13 6 13ZM18 20.02C17.45 20.02 17 19.57 17 19.02C17 18.47 17.45 18.02 18 18.02C18.55 18.02 19 18.47 19 19.02C19 19.57 18.55 20.02 18 20.02Z",fill:"currentColor"})})),shield:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 22C9.66667 21.4167 7.75 20.0625 6.25 17.9375C4.75 15.8125 4 13.4833 4 10.95V5L12 2L20 5V10.95C20 13.4833 19.25 15.8125 17.75 17.9375C16.25 20.0625 14.3333 21.4167 12 22ZM12 20.45C13.9167 19.8167 15.4792 18.6208 16.6875 16.8625C17.8958 15.1042 18.5 13.1333 18.5 10.95V6.05L12 3.6L5.5 6.05V10.95C5.5 13.1333 6.10417 15.1042 7.3125 16.8625C8.52083 18.6208 10.0833 19.8167 12 20.45Z",fill:"currentColor"})})),"shield-check":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M10.9 15.35L16.6 9.65L15.55 8.625L10.975 13.2L8.45 10.675L7.35 11.775L10.9 15.35ZM12 22C9.66667 21.4167 7.75 20.0625 6.25 17.9375C4.75 15.8125 4 13.4833 4 10.95V5L12 2L20 5V10.95C20 13.4833 19.25 15.8125 17.75 17.9375C16.25 20.0625 14.3333 21.4167 12 22ZM12 20.45C13.9167 19.8167 15.4792 18.6208 16.6875 16.8625C17.8958 15.1042 18.5 13.1333 18.5 10.95V6.05L12 3.6L5.5 6.05V10.95C5.5 13.1333 6.10417 15.1042 7.3125 16.8625C8.52083 18.6208 10.0833 19.8167 12 20.45Z",fill:"currentColor"})})),"shield-health":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M10.744 15.3873H13.256V12.6883H15.9863V10.2051H13.256V7.50607H10.744V10.2051H8.01365V12.6883H10.744V15.3873ZM12 22C9.68828 21.3702 7.77702 20.0207 6.26621 17.9514C4.7554 15.8821 4 13.57 4 11.0148V4.96896L12 2L20 4.96896V11.0148C20 13.57 19.2446 15.8821 17.7338 17.9514C16.223 20.0207 14.3117 21.3702 12 22ZM12 20.4076C13.8749 19.8138 15.4221 18.6399 16.6416 16.8858C17.8612 15.1311 18.471 13.1741 18.471 11.0148V5.9946L12 3.59244L5.52901 5.9946V11.0148C5.52901 13.1741 6.13879 15.1311 7.35836 16.8858C8.57793 18.6399 10.1251 19.8138 12 20.4076Z",fill:"currentColor"})})),"shield-slash":t=>e("svg",Object.assign({viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12.7999 11.0999L12.0499 10.3333C12.2721 9.94436 12.4444 9.44714 12.5666 8.84159C12.6888 8.23603 12.7499 7.71659 12.7499 7.28325V4.01659L8.41659 2.41659L5.28325 3.56659L4.51659 2.79992L8.41659 1.33325L13.7499 3.31659V7.28325C13.7499 7.93881 13.6666 8.59159 13.4999 9.24158C13.3333 9.89159 13.0999 10.511 12.7999 11.0999ZM13.9166 15.0666L11.5833 12.7666C11.0944 13.2555 10.5944 13.6555 10.0833 13.9666C9.57214 14.2777 9.01659 14.511 8.41659 14.6666C6.8277 14.2333 5.54159 13.3194 4.55825 11.9249C3.57492 10.5305 3.08325 8.98325 3.08325 7.28325V4.23325L1.33325 2.48325L2.04992 1.76659L14.6333 14.3499L13.9166 15.0666ZM8.41659 13.6333C8.88325 13.4777 9.33047 13.2583 9.75825 12.9749C10.186 12.6916 10.561 12.3833 10.8833 12.0499L4.08325 5.23325V7.28325C4.08325 8.7277 4.48881 10.0416 5.29992 11.2249C6.11103 12.4083 7.14992 13.211 8.41659 13.6333Z",fill:"currentColor"})})),"shield-wavv":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("g",{id:"spam protection shield",children:e("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M6.2625 18.0125C7.77083 20.0875 9.68333 21.4167 12 22C14.3167 21.4167 16.2292 20.0875 17.7375 18.0125C19.2458 15.9375 20 13.6333 20 11.1V5L12 2L4 5V11.1C4 13.6333 4.75417 15.9375 6.2625 18.0125ZM11.653 15.3298C11.6549 15.3024 11.65 15.2749 11.6386 15.2499L8.74877 9.05524H8.75291C8.73968 9.02689 8.71862 9.00291 8.69221 8.98612C8.66581 8.96933 8.63515 8.96044 8.60386 8.96048V8.96324H7.16308V8.96048C7.13556 8.96067 7.10853 8.96778 7.08447 8.98114C7.06041 8.99451 7.0401 9.01371 7.02539 9.03698C7.01069 9.06024 7.00207 9.08683 7.00033 9.1143C6.99859 9.14177 7.00377 9.16923 7.01542 9.19417L9.90388 15.3874C9.91702 15.4156 9.93786 15.4394 9.964 15.4562C9.99013 15.4729 10.0205 15.482 10.0515 15.4822H11.4891C11.5166 15.4822 11.5437 15.4753 11.5678 15.4621C11.5919 15.449 11.6124 15.43 11.6273 15.4068C11.6421 15.3837 11.651 15.3572 11.653 15.3298ZM14.312 15.2499C14.3234 15.2749 14.3283 15.3024 14.3263 15.3298C14.3243 15.3572 14.3155 15.3837 14.3006 15.4068C14.2857 15.43 14.2653 15.449 14.2411 15.4621C14.217 15.4753 14.1899 15.4822 14.1625 15.4822H12.7249C12.6938 15.4819 12.6634 15.4728 12.6372 15.456C12.6111 15.4391 12.5903 15.4152 12.5772 15.387L9.68876 9.19417C9.67711 9.16923 9.67193 9.14177 9.67367 9.1143C9.67541 9.08683 9.68403 9.06024 9.69873 9.03698C9.71344 9.01371 9.73375 8.99451 9.75781 8.98114C9.78187 8.96778 9.8089 8.96067 9.83642 8.96048V8.96324H11.2772V8.96048C11.3085 8.96044 11.3391 8.96933 11.3656 8.98612C11.392 9.00291 11.413 9.02689 11.4263 9.05524H11.4221L14.312 15.2499ZM16.9996 15.3298C17.0016 15.3024 16.9966 15.2749 16.9852 15.2499L14.0912 9.05524H14.0954C14.0821 9.02689 14.0611 9.00291 14.0347 8.98612C14.0083 8.96933 13.9776 8.96044 13.9463 8.96048V8.96324H12.5083V8.96048C12.4808 8.96067 12.4538 8.96778 12.4297 8.98114C12.4056 8.99451 12.3853 9.01371 12.3706 9.03698C12.3559 9.06024 12.3473 9.08683 12.3456 9.1143C12.3438 9.14177 12.349 9.16923 12.3606 9.19417L15.25 15.3902C15.2634 15.4177 15.2843 15.4409 15.3102 15.4572C15.3362 15.4734 15.3662 15.4821 15.3968 15.4822H16.8357C16.8632 15.4822 16.8903 15.4753 16.9144 15.4621C16.9385 15.449 16.959 15.43 16.9739 15.4068C16.9888 15.3837 16.9976 15.3572 16.9996 15.3298Z",fill:"currentColor"})})})),sort:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M4 18H8C8.55 18 9 17.55 9 17C9 16.45 8.55 16 8 16H4C3.45 16 3 16.45 3 17C3 17.55 3.45 18 4 18ZM3 7C3 7.55 3.45 8 4 8H20C20.55 8 21 7.55 21 7C21 6.45 20.55 6 20 6H4C3.45 6 3 6.45 3 7ZM4 13H14C14.55 13 15 12.55 15 12C15 11.45 14.55 11 14 11H4C3.45 11 3 11.45 3 12C3 12.55 3.45 13 4 13Z",fill:"currentColor"})}))},spotify:function(t){return e("svg",Object.assign({viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19.894 11.082C15.864 8.689 9.22 8.469 5.372 9.636a1.169 1.169 0 1 1-.679-2.237C9.11 6.059 16.45 6.317 21.088 9.07a1.17 1.17 0 0 1-1.194 2.01zm-.132 3.544a.975.975 0 0 1-1.34.32c-3.36-2.064-8.482-2.662-12.456-1.456a.976.976 0 0 1-1.216-.65.976.976 0 0 1 .65-1.215c4.54-1.377 10.183-.71 14.042 1.66a.975.975 0 0 1 .32 1.34zm-1.53 3.403a.778.778 0 0 1-1.07.26c-2.936-1.794-6.63-2.2-10.982-1.206a.779.779 0 1 1-.347-1.518c4.762-1.089 8.846-.62 12.141 1.393a.78.78 0 0 1 .259 1.071zM12.5 0C5.597 0 0 5.596 0 12.5S5.597 25 12.5 25C19.404 25 25 19.404 25 12.5S19.404 0 12.5 0z",fill:"currentColor",fillRule:"evenodd"})}))},star:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M14.43 9.5525L12.96 4.7125C12.67 3.7625 11.33 3.7625 11.05 4.7125L9.57002 9.5525H5.12002C4.15002 9.5525 3.75002 10.8025 4.54002 11.3625L8.18002 13.9625L6.75002 18.5725C6.46002 19.5025 7.54002 20.2525 8.31002 19.6625L12 16.8625L15.69 19.6725C16.46 20.2625 17.54 19.5125 17.25 18.5825L15.82 13.9725L19.46 11.3725C20.25 10.8025 19.85 9.5625 18.88 9.5625H14.43V9.5525Z",fill:"currentColor"})}))},"star-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M11.8796 8.4325L12.8196 11.5425H15.6396L13.3696 13.1625L14.2996 16.1725L11.8796 14.3325L9.4596 16.1725L10.3896 13.1625L8.1196 11.5425H10.9396L11.8796 8.4325ZM9.4596 9.5425H4.9996C4.0296 9.5425 3.6296 10.7925 4.4196 11.3525L8.0596 13.9525L6.6296 18.5625C6.3396 19.4925 7.4196 20.2425 8.1896 19.6525L11.8796 16.8525L15.5696 19.6625C16.3396 20.2525 17.4196 19.5025 17.1296 18.5725L15.6996 13.9625L19.3396 11.3625C20.1296 10.7925 19.7296 9.5525 18.7596 9.5525H14.2996L12.8296 4.7125C12.5396 3.7625 11.1996 3.7625 10.9196 4.7125L9.4596 9.5425Z",fill:"currentColor"})}))},stars:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 9L20.25 6.25L23 5L20.25 3.75L19 1L17.75 3.75L15 5L17.75 6.25L19 9ZM11.5 9.5L9 4L6.5 9.5L1 12L6.5 14.5L9 20L11.5 14.5L17 12L11.5 9.5ZM19 15L17.75 17.75L15 19L17.75 20.25L19 23L20.25 20.25L23 19L20.25 17.75L19 15Z",fill:"currentColor"})})),stats:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M5 9.2H8V19H5V9.2ZM10.6 5H13.4V19H10.6V5ZM16.2 13H19V19H16.2V13Z",fill:"currentColor"})})),stop:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M8 6H16C17.1 6 18 6.9 18 8V16C18 17.1 17.1 18 16 18H8C6.9 18 6 17.1 6 16V8C6 6.9 6.9 6 8 6Z",fill:"currentColor"})}))},"stop-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12ZM8 9.5C8 8.67157 8.67157 8 9.5 8H14.5C15.3284 8 16 8.67157 16 9.5V14.5C16 15.3284 15.3284 16 14.5 16H9.5C8.67157 16 8 15.3284 8 14.5V9.5Z",fill:"currentColor"})}))},team:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M16 11C17.66 11 18.99 9.66 18.99 8C18.99 6.34 17.66 5 16 5C14.34 5 13 6.34 13 8C13 9.66 14.34 11 16 11ZM8 11C9.66 11 10.99 9.66 10.99 8C10.99 6.34 9.66 5 8 5C6.34 5 5 6.34 5 8C5 9.66 6.34 11 8 11ZM8 13C5.67 13 1 14.17 1 16.5V19H15V16.5C15 14.17 10.33 13 8 13ZM16 13C15.71 13 15.38 13.02 15.03 13.05C16.19 13.89 17 15.02 17 16.5V19H23V16.5C23 14.17 18.33 13 16 13Z",fill:"currentColor"})})),template:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M14.59 2.59C14.21 2.21 13.7 2 13.17 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.89 22 5.99 22H18C19.1 22 20 21.1 20 20V8.83C20 8.3 19.79 7.79 19.41 7.42L14.59 2.59ZM15 18H9C8.45 18 8 17.55 8 17C8 16.45 8.45 16 9 16H15C15.55 16 16 16.45 16 17C16 17.55 15.55 18 15 18ZM15 14H9C8.45 14 8 13.55 8 13C8 12.45 8.45 12 9 12H15C15.55 12 16 12.45 16 13C16 13.55 15.55 14 15 14ZM13 8V3.5L18.5 9H14C13.45 9 13 8.55 13 8Z",fill:"currentColor"})}))},"toggle-off":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 7H7C4.24 7 2 9.24 2 12C2 14.76 4.24 17 7 17H17C19.76 17 22 14.76 22 12C22 9.24 19.76 7 17 7ZM7 15C5.34 15 4 13.66 4 12C4 10.34 5.34 9 7 9C8.66 9 10 10.34 10 12C10 13.66 8.66 15 7 15Z",fill:"currentColor"})}))},"toggle-on":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 7H7C4.24 7 2 9.24 2 12C2 14.76 4.24 17 7 17H17C19.76 17 22 14.76 22 12C22 9.24 19.76 7 17 7ZM17 15C15.34 15 14 13.66 14 12C14 10.34 15.34 9 17 9C18.66 9 20 10.34 20 12C20 13.66 18.66 15 17 15Z",fill:"currentColor"})}))},transfer:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M7 21L2 16L7 11L8.425 12.4L5.825 15H21V17H5.825L8.425 19.6L7 21ZM17 13L15.575 11.6L18.175 9H3V7H18.175L15.575 4.4L17 3L22 8L17 13Z",fill:"currentColor"})})),"transfer-cancel":t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.49795 2L2.08374 3.41421L5.66952 7H3V9H7.66952L13.6695 15H5.825L8.425 12.4L7 11L2 16L7 21L8.425 19.6L5.825 17H15.6695L20.5396 21.8701L21.9538 20.4558L18.498 17H18.4981L16.4981 15H16.498L10.498 9H10.4981L8.49808 7H8.49795L3.49795 2ZM18.175 9L15.753 11.422L17.1655 12.8345L22 8L17 3L15.575 4.4L18.175 7H11.3309L13.3309 9H18.175ZM19.3309 15L21 16.6691V15H19.3309Z",fill:"currentColor"})})),trash:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M6 19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V9C18 7.9 17.1 7 16 7H8C6.9 7 6 7.9 6 9V19ZM18 4H15.5L14.79 3.29C14.61 3.11 14.35 3 14.09 3H9.91C9.65 3 9.39 3.11 9.21 3.29L8.5 4H6C5.45 4 5 4.45 5 5C5 5.55 5.45 6 6 6H18C18.55 6 19 5.55 19 5C19 4.45 18.55 4 18 4Z",fill:"currentColor"})}))},trophy:t=>e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M19 5H17V3H7V5H5C3.9 5 3 5.9 3 7V8C3 10.55 4.92 12.63 7.39 12.94C8.02 14.44 9.37 15.57 11 15.9V19H7V21H17V19H13V15.9C14.63 15.57 15.98 14.44 16.61 12.94C19.08 12.63 21 10.55 21 8V7C21 5.9 20.1 5 19 5ZM5 8V7H7V10.82C5.84 10.4 5 9.3 5 8ZM12 14C10.35 14 9 12.65 9 11V5H15V11C15 12.65 13.65 14 12 14ZM19 8C19 9.3 18.16 10.4 17 10.82V7H19V8Z",fill:"currentColor"})})),twitter:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M22 5.84615C21.25 6.21538 20.5 6.33846 19.625 6.46154C20.5 5.96923 21.125 5.23077 21.375 4.24615C20.625 4.73846 19.75 4.98462 18.75 5.23077C18 4.49231 16.875 4 15.75 4C13.125 4 11.125 6.46154 11.75 8.92308C8.375 8.8 5.375 7.2 3.25 4.73846C2.125 6.58462 2.75 8.92308 4.5 10.1538C3.875 10.1538 3.25 9.90769 2.625 9.66154C2.625 11.5077 4 13.2308 5.875 13.7231C5.25 13.8462 4.625 13.9692 4 13.8462C4.5 15.4462 6 16.6769 7.875 16.6769C6.375 17.7846 4.125 18.4 2 18.1538C3.875 19.2615 6 20 8.25 20C15.875 20 20.125 13.7231 19.875 7.93846C20.75 7.44615 21.5 6.70769 22 5.84615Z",fill:"currentColor"})}))},upload:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M7.4 10H8.99V15C8.99 15.55 9.44 16 9.99 16H13.99C14.54 16 14.99 15.55 14.99 15V10H16.58C17.47 10 17.92 8.92 17.29 8.29L12.7 3.7C12.31 3.31 11.68 3.31 11.29 3.7L6.7 8.29C6.07 8.92 6.51 10 7.4 10ZM5 19C5 19.55 5.45 20 6 20H18C18.55 20 19 19.55 19 19C19 18.45 18.55 18 18 18H6C5.45 18 5 18.45 5 19Z",fill:"currentColor"})}))},video:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17 10.5V7C17 6.45 16.55 6 16 6H4C3.45 6 3 6.45 3 7V17C3 17.55 3.45 18 4 18H16C16.55 18 17 17.55 17 17V13.5L19.29 15.79C19.92 16.42 21 15.97 21 15.08V8.91C21 8.02 19.92 7.57 19.29 8.2L17 10.5Z",fill:"currentColor"})}))},voicemail:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M17.5 7C15.01 7 13 9.01 13 11.5C13 12.43 13.28 13.28 13.76 14H10.24C10.72 13.28 11 12.43 11 11.5C11 9.01 8.99 7 6.5 7C4.01 7 2 9.01 2 11.5C2 13.99 4.01 16 6.5 16H17.5C19.99 16 22 13.99 22 11.5C22 9.01 19.99 7 17.5 7ZM4 11.5C4 10.12 5.12 9 6.5 9C7.88 9 9 10.12 9 11.5C9 12.88 7.88 14 6.5 14C5.12 14 4 12.88 4 11.5ZM17.5 14C16.12 14 15 12.88 15 11.5C15 10.12 16.12 9 17.5 9C18.88 9 20 10.12 20 11.5C20 12.88 18.88 14 17.5 14Z",fill:"currentColor"})}))},"vol-on":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M3 10V14C3 14.55 3.45 15 4 15H7L10.29 18.29C10.92 18.92 12 18.47 12 17.58V6.41C12 5.52 10.92 5.07 10.29 5.7L7 9H4C3.45 9 3 9.45 3 10ZM16.5 12C16.5 10.23 15.48 8.71 14 7.97V16.02C15.48 15.29 16.5 13.77 16.5 12ZM14 4.45V4.65C14 5.03 14.25 5.36 14.6 5.5C17.18 6.53 19 9.06 19 12C19 14.94 17.18 17.47 14.6 18.5C14.24 18.64 14 18.97 14 19.35V19.55C14 20.18 14.63 20.62 15.21 20.4C18.6 19.11 21 15.84 21 12C21 8.16 18.6 4.89 15.21 3.6C14.63 3.37 14 3.82 14 4.45Z",fill:"currentColor"})}))},warning:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M2.73288 21.0025H21.2629C22.0329 21.0025 22.5129 20.1725 22.1329 19.5025L12.8629 3.5025C12.4729 2.8325 11.5129 2.8325 11.1329 3.5025L1.86288 19.5025C1.48288 20.1725 1.96288 21.0025 2.73288 21.0025ZM13.0029 18.0025H11.0029V16.0025H13.0029V18.0025ZM12.0029 14.0025C11.4529 14.0025 11.0029 13.5525 11.0029 13.0025V11.0025C11.0029 10.4525 11.4529 10.0025 12.0029 10.0025C12.5529 10.0025 13.0029 10.4525 13.0029 11.0025V13.0025C13.0029 13.5525 12.5529 14.0025 12.0029 14.0025Z",fill:"currentColor"})}))},"warning-circle-outline":function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M12 7C12.55 7 13 7.45 13 8V12C13 12.55 12.55 13 12 13C11.45 13 11 12.55 11 12V8C11 7.45 11.45 7 12 7ZM11.99 2C6.47 2 2 6.48 2 12C2 17.52 6.47 22 11.99 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 11.99 2ZM12 20C7.58 20 4 16.42 4 12C4 7.58 7.58 4 12 4C16.42 4 20 7.58 20 12C20 16.42 16.42 20 12 20ZM13 17H11V15H13V17Z",fill:"currentColor"})}))},youtube:function(t){return e("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t,{children:e("path",{d:"M22.45 6.42857C22.175 5.42857 21.4875 4.71429 20.525 4.42857C18.875 4 11.8625 4 11.8625 4C11.8625 4 4.98751 4 3.20001 4.42857C2.23751 4.71429 1.55 5.42857 1.275 6.42857C0.999996 8.28572 1 12 1 12C1 12 1 15.7143 1.4125 17.5714C1.6875 18.5714 2.375 19.2857 3.3375 19.5714C4.9875 20 12 20 12 20C12 20 18.875 20 20.6625 19.5714C21.625 19.2857 22.3125 18.5714 22.5875 17.5714C23 15.7143 23 12 23 12C23 12 23 8.28572 22.45 6.42857ZM9.79999 15.4286V8.57143L15.575 12L9.79999 15.4286Z",fill:"currentColor"})}))}},Sn=s(((t,n)=>{var{name:r,svg:o,size:i,width:a,height:l,color:s,hoverColor:u,pointer:d=!1,inheritColor:f=!1,animation:p,style:h,onClick:g}=t,m=j(t,["name","svg","size","width","height","color","hoverColor","pointer","inheritColor","animation","style","onClick"]);let v=null;if(r)v=xn[r];else if(o){let e=o;"function"==typeof o&&(e=o());const t=c(e,{width:a||i,height:l||i});v=()=>t}const y={small:16,medium:24,large:40};let b=i||y.medium;return"small"!==i&&"medium"!==i&&"large"!==i||(b=y[i]),v?e(En,Object.assign({pointer:d,hoverColor:u,inheritColor:f,color:s,style:h,onClick:g,as:g?"button":void 0,tabIndex:g?0:-1,animation:p,ref:n},m,{children:e(kn,{size:b,width:a,height:l,xmlns:"http://www.w3.org/2000/svg",children:e(v,{})})})):null})),kn=se.svg((({size:e,width:t,height:n})=>({width:t||e,height:n||e}))),En=se.div((({theme:e,color:t,pointer:n,hoverColor:r,inheritColor:o,animation:i})=>{const a=t||e.scale8;return{width:"max-content",height:"max-content",display:"flex",color:o?"inherit":a,cursor:n?"pointer":void 0,border:"none",backgroundColor:"transparent",padding:0,animation:i,"&:hover":{color:r||void 0},"&:focus-visible":{outline:`${e.accent} solid 1px`,outlineOffset:-1}}}),wn),On=t=>{var{children:n,defaultItem:r,preventCollapse:o,triggers:i,spaced:a,background:l,innerBackground:s,width:d,maxHeight:f,height:p}=t,h=j(t,["children","defaultItem","preventCollapse","triggers","spaced","background","innerBackground","width","maxHeight","height"]);return e(An,Object.assign({type:"single",defaultValue:r,collapsible:!o,spaced:a,style:{width:d,height:p,maxHeight:f}},h,{children:u.map(n,(e=>e?c(e,{trigger:i,spaced:a,background:l,innerBackground:s}):null))}))};On.Item=({children:t,id:r,text:o,content:i,trigger:a,spaced:l,background:s,innerBackground:c})=>n(wt,{value:r,children:[e(Dn,{text:o,content:i,reversed:null==a?void 0:a.reversed,spaced:null==a?void 0:a.spaced,rounded:l,background:s}),e(Pn,{defaultPadding:"string"==typeof t,rounded:l,background:c,children:t})]});const Dn=t=>{var{text:r,content:o,reversed:i,spaced:a,rounded:l,background:s}=t,c=j(t,["text","content","reversed","spaced","rounded","background"]);return n(_n,{reverse:i,hasContent:!!o,rounded:l,background:s,children:[n(jn,Object.assign({reverse:i,spaced:a},c,{children:[e(Sn,{name:"caret-down",className:"trigger-caret"}),r]})),o]})},Pn=t=>{var{children:n,defaultPadding:r,rounded:o,background:i}=t,s=j(t,["children","defaultPadding","rounded","background"]);const c=a(null),[u,d]=l(),[f,p]=l();return mn(c,(e=>{var t,n;if(!("open"===e.getAttribute("data-state")))return;const r=e.parentElement,i=null==r?void 0:r.parentElement,a=null==i?void 0:i.style.maxHeight,l=null==i?void 0:i.style.height,s=a?null===(t=a.match(/^[0-9]+/g))||void 0===t?void 0:t.pop():void 0,c=l?null===(n=l.match(/^[0-9]+/g))||void 0===n?void 0:n.pop():void 0;if(!s&&!c||!i)return;const h=[...i.childNodes],g=h.findIndex((e=>e===r))+1,m=h.slice(g),v=m.length>0?m.reduce(((e,t)=>e+t.clientHeight),0):0,{offsetTop:y}=e,b=+(s||c||0)-y-v-(o?8*(h.length-1):0);b!==u&&d(b),c&&b!==f&&p(b),e.scrollTo(0,0)})),e(Mn,Object.assign({ref:c,maxHeight:u,minHeight:f,defaultPadding:r,rounded:o,background:i},s,{children:n}))},Tn=(e,t)=>!t.includes(e),An=se(bt,{shouldForwardProp:e=>Tn(e,["spaced","margin","marginTop","marginBottom","marginRight","marginLeft"])})((({theme:e,spaced:t})=>({overflow:"hidden",position:"relative",[`& > div:not(:last-child) > ${_n}`]:{borderBottom:t?void 0:e.defaultBorder},"& > div:not(:last-child)":{marginBottom:t?8:void 0}})),wn),Mn=se(St,{shouldForwardProp:e=>Tn(e,["defaultPadding","maxHeight","minHeight","rounded"])})((({theme:e,maxHeight:t,minHeight:n,defaultPadding:r,rounded:o,background:i})=>{const a=o?e.background2:e.background1;return{backgroundColor:i||a,padding:r?"4px 16px":void 0,fontSize:e.font.size.md,overflow:"auto",maxHeight:t,minHeight:n,'&[data-state="open"]':{borderBottomLeftRadius:o?4:void 0,borderBottomRightRadius:o?4:void 0}}})),_n=se(Ct,{shouldForwardProp:e=>Tn(e,["reverse","rounded","hasContent"])})((({theme:e,reverse:t,rounded:n,hasContent:r,background:o})=>{const i=n?e.background1:e.background0;return{margin:0,display:"flex",flexDirection:t?"row-reverse":"row",paddingLeft:r&&t?void 0:8,paddingRight:!r||t?8:void 0,backgroundColor:o||i,justifyContent:"space-between",alignItems:"center",fontSize:"1rem",fontWeight:"normal",color:"inherit",'&[data-state="closed"]':{borderRadius:n?4:void 0},'&[data-state="open"]':{borderTopLeftRadius:n?4:void 0,borderTopRightRadius:n?4:void 0}}})),jn=se(xt,{shouldForwardProp:e=>Tn(e,["reverse","spaced"])})((({theme:e,reverse:t,spaced:n})=>({backgroundColor:"transparent",color:e.scale10,border:"none",display:"flex",flexDirection:t?"row-reverse":"row",justifyContent:n?"space-between":void 0,alignItems:"center",fontSize:e.font.size.md,padding:"8px 0",width:"100%",textAlign:"left","& > .trigger-caret":{transition:"transform 300ms"},'&[data-state="open"] > .trigger-caret':{transform:"rotate(180deg)"}})));function Ln(){return Ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ln.apply(this,arguments)}function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function In(e){return In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},In(e)}function Nn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nn=function(){return!!e})()}function $n(e){var t="function"==typeof Map?new Map:void 0;return $n=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Nn())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Rn(o,n.prototype),o}(e,arguments,In(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Rn(n,e)},$n(e)}var zn={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function Fn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0],i=[];for(r=1;r<t.length;r+=1)i.push(t[r]);return i.forEach((function(e){o=o.replace(/%[a-z]/,e)})),o}var Bn=function(e){var t,n;function r(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];n=e.call(this,Fn.apply(void 0,[zn[t]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Rn(t,n),r}($n(Error));function Kn(e){return Math.round(255*e)}function Vn(e,t,n){return Kn(e)+","+Kn(t)+","+Kn(n)}function Hn(e,t,n,r){if(void 0===r&&(r=Vn),0===t)return r(n,n,n);var o=(e%360+360)%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),l=0,s=0,c=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,c=a):o>=3&&o<4?(s=a,c=i):o>=4&&o<5?(l=a,c=i):o>=5&&o<6&&(l=i,c=a);var u=n-i/2;return r(l+u,s+u,c+u)}var Un={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var Wn=/^#[a-fA-F0-9]{6}$/,Zn=/^#[a-fA-F0-9]{8}$/,qn=/^#[a-fA-F0-9]{3}$/,Gn=/^#[a-fA-F0-9]{4}$/,Yn=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Xn=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Jn=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Qn=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function er(e){if("string"!=typeof e)throw new Bn(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Un[t]?"#"+Un[t]:e}(e);if(t.match(Wn))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Zn)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(qn))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Gn)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=Yn.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Xn.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=Jn.exec(t);if(a){var l="rgb("+Hn(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",s=Yn.exec(l);if(!s)throw new Bn(4,t,l);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var c=Qn.exec(t.substring(0,50));if(c){var u="rgb("+Hn(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Yn.exec(u);if(!d)throw new Bn(4,t,u);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Bn(5)}function tr(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),l=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var s=i-a,c=l>.5?s/(2-i-a):s/(i+a);switch(i){case n:t=(r-o)/s+(r<o?6:0);break;case r:t=(o-n)/s+2;break;default:t=(n-r)/s+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:c,lightness:l,alpha:e.alpha}:{hue:t,saturation:c,lightness:l}}(er(e))}var nr=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function rr(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function or(e){return rr(Math.round(255*e))}function ir(e,t,n){return nr("#"+or(e)+or(t)+or(n))}function ar(e,t,n){return Hn(e,t,n,ir)}function lr(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return nr("#"+rr(e)+rr(t)+rr(n));if("object"==typeof e&&void 0===t&&void 0===n)return nr("#"+rr(e.red)+rr(e.green)+rr(e.blue));throw new Bn(6)}function sr(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=er(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?lr(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?lr(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Bn(7)}var cr=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},ur=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},dr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},fr=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha};function pr(e){if("object"!=typeof e)throw new Bn(8);if(ur(e))return sr(e);if(cr(e))return lr(e);if(fr(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?ar(e,t,n):"rgba("+Hn(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?ar(e.hue,e.saturation,e.lightness):"rgba("+Hn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Bn(2)}(e);if(dr(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return ar(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return ar(e.hue,e.saturation,e.lightness);throw new Bn(1)}(e);throw new Bn(8)}function hr(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):hr(e,t,r)}}function gr(e){return hr(e,e.length,[])}function mr(e,t,n){return Math.max(e,Math.min(t,n))}gr((function(e,t){if("transparent"===t)return t;var n=tr(t);return pr(Ln({},n,{hue:n.hue+parseFloat(e)}))}));var vr=gr((function(e,t){if("transparent"===t)return t;var n=tr(t);return pr(Ln({},n,{lightness:mr(0,1,n.lightness-parseFloat(e))}))})),yr=vr;gr((function(e,t){if("transparent"===t)return t;var n=tr(t);return pr(Ln({},n,{saturation:mr(0,1,n.saturation-parseFloat(e))}))}));var br=gr((function(e,t){if("transparent"===t)return t;var n=tr(t);return pr(Ln({},n,{lightness:mr(0,1,n.lightness+parseFloat(e))}))})),wr=br;var Cr=gr((function(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var r=er(t),o=Ln({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),i=er(n),a=Ln({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),l=o.alpha-a.alpha,s=2*parseFloat(e)-1,c=((s*l==-1?s:s+l)/(1+s*l)+1)/2,u=1-c;return sr({red:Math.floor(o.red*c+a.red*u),green:Math.floor(o.green*c+a.green*u),blue:Math.floor(o.blue*c+a.blue*u),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))})})),xr=Cr;gr((function(e,t){if("transparent"===t)return t;var n=er(t);return sr(Ln({},n,{alpha:mr(0,1,(100*("number"==typeof n.alpha?n.alpha:1)+100*parseFloat(e))/100)}))})),gr((function(e,t){if("transparent"===t)return t;var n=tr(t);return pr(Ln({},n,{saturation:mr(0,1,n.saturation+parseFloat(e))}))})),gr((function(e,t){return"transparent"===t?t:pr(Ln({},tr(t),{hue:parseFloat(e)}))})),gr((function(e,t){return"transparent"===t?t:pr(Ln({},tr(t),{lightness:parseFloat(e)}))})),gr((function(e,t){return"transparent"===t?t:pr(Ln({},tr(t),{saturation:parseFloat(e)}))})),gr((function(e,t){return"transparent"===t?t:xr(parseFloat(e),"rgb(0, 0, 0)",t)})),gr((function(e,t){return"transparent"===t?t:xr(parseFloat(e),"rgb(255, 255, 255)",t)}));var Sr=gr((function(e,t){if("transparent"===t)return t;var n=er(t);return sr(Ln({},n,{alpha:mr(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))})),kr=Sr;const Er=d(null);d(null),d(null),d(null),d(null);const Or=d({});class Dr{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new Dr(this.type,this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e}constructor(e,t){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.type=e,this.key=t}}class Pr{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=null!=this.firstKey?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=null!=e.nextKey?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let n=t.get(e),r=null!=(null==n?void 0:n.firstChildKey)?t.get(n.firstChildKey):null;for(;r;)yield r,r=null!=r.nextKey?t.get(r.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(null!=t.prevKey){for(t=this.keyMap.get(t.prevKey);t&&"item"!==t.type&&null!=t.lastChildKey;)t=this.keyMap.get(t.lastChildKey);var n;return null!==(n=null==t?void 0:t.key)&&void 0!==n?n:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if("item"!==t.type&&null!=t.firstChildKey)return t.firstChildKey;for(;t;){if(null!=t.nextKey)return t.nextKey;if(null==t.parentKey)return null;t=this.keyMap.get(t.parentKey)}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=null!=this.lastKey?this.keyMap.get(this.lastKey):null;for(;null!=(null==e?void 0:e.lastChildKey);)e=this.keyMap.get(e.lastChildKey);var t;return null!==(t=null==e?void 0:e.key)&&void 0!==t?t:null}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(){throw new Error("Not implemented")}clone(){let e=new(0,this.constructor);return e.keyMap=new Map(this.keyMap),e.firstKey=this.firstKey,e.lastKey=this.lastKey,e}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(e.key,e)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(e)}commit(e,t,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!n}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}class Tr{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return(null===(e=this.parentNode)||void 0===e?void 0:e.isConnected)||!1}appendChild(e){this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),null==this.firstChild&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}insertBefore(e,t){if(null==t)return this.appendChild(e);this.ownerDocument.startTransaction(),e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode;let n=t;for(;n;)n.index++,n=n.nextSibling;e.hasSetProps&&this.ownerDocument.addNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}removeChild(e){if(e.parentNode!==this||!this.ownerDocument.isMounted)return;this.ownerDocument.startTransaction();let t=e.nextSibling;for(;t;)t.index--,t=t.nextSibling;e.nextSibling&&(e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.removeNode(e),this.ownerDocument.endTransaction(),this.ownerDocument.queueUpdate()}addEventListener(){}removeEventListener(){}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this.ownerDocument=e}}class Ar extends Tr{get index(){return this._index}set index(e){this._index=e,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof Ar?this.parentNode.level+("item"===this.node.type?1:0):0}updateNode(){var e,t,n,r;let o=this.ownerDocument.getMutableNode(this);var i,a,l,s;o.index=this.index,o.level=this.level,o.parentKey=this.parentNode instanceof Ar?this.parentNode.node.key:null,o.prevKey=null!==(i=null===(e=this.previousSibling)||void 0===e?void 0:e.node.key)&&void 0!==i?i:null,o.nextKey=null!==(a=null===(t=this.nextSibling)||void 0===t?void 0:t.node.key)&&void 0!==a?a:null,o.hasChildNodes=!!this.firstChild,o.firstChildKey=null!==(l=null===(n=this.firstChild)||void 0===n?void 0:n.node.key)&&void 0!==l?l:null,o.lastChildKey=null!==(s=null===(r=this.lastChild)||void 0===r?void 0:r.node.key)&&void 0!==s?s:null}setProps(e,t,n,r){let o=this.ownerDocument.getMutableNode(this),{value:i,textValue:a,id:l,...s}=e;if(s.ref=t,o.props=s,o.rendered=n,o.render=r,o.value=i,o.textValue=a||("string"==typeof s.children?s.children:"")||e["aria-label"]||"",null!=l&&l!==o.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");o.key=l}this.hasSetProps||(this.ownerDocument.addNode(this),this.ownerDocument.endTransaction(),this.hasSetProps=!0),this.ownerDocument.queueUpdate()}get style(){return{}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(e,t){super(t),this.nodeType=8,this._index=0,this.hasSetProps=!1,this.node=new Dr(e,"react-aria-"+ ++t.nodeId),this.ownerDocument.startTransaction()}}class Mr extends Tr{get isConnected(){return this.isMounted}createElement(e){return new Ar(e,this)}getMutableNode(e){let t=e.node;return this.mutatedNodes.has(e)||(t=e.node.clone(),this.mutatedNodes.add(e),e.node=t),this.markDirty(e),t}getMutableCollection(){return this.isSSR||this.collectionMutated||(this.collection=this.collection.clone(),this.collectionMutated=!0),this.collection}markDirty(e){this.dirtyNodes.add(e)}startTransaction(){this.transactionCount++}endTransaction(){this.transactionCount--}addNode(e){let t=this.getMutableCollection();if(!t.getItem(e.node.key)){t.addNode(e.node);for(let t of e)this.addNode(t)}this.markDirty(e)}removeNode(e){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key),this.markDirty(e)}getCollection(){return this.transactionCount>0||this.updateCollection(),this.collection}updateCollection(){for(let e of this.dirtyNodes)e instanceof Ar&&e.isConnected&&e.updateNode();if(this.dirtyNodes.clear(),this.mutatedNodes.size||this.collectionMutated){var e,t;let o=this.getMutableCollection();for(let e of this.mutatedNodes)e.isConnected&&o.addNode(e.node);var n,r;o.commit(null!==(n=null===(e=this.firstChild)||void 0===e?void 0:e.node.key)&&void 0!==n?n:null,null!==(r=null===(t=this.lastChild)||void 0===t?void 0:t.node.key)&&void 0!==r?r:null,this.isSSR),this.mutatedNodes.clear()}this.collectionMutated=!1}queueUpdate(){if(!(0===this.dirtyNodes.size||this.transactionCount>0))for(let e of this.subscriptions)e()}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.mutatedNodes=new Set,this.subscriptions=new Set,this.transactionCount=0,this.collection=e,this.collectionMutated=!0}}function _r(e){let{children:t,items:n,idScope:r,addIdAndValue:o,dependencies:i=[]}=e,a=f((()=>new WeakMap),i);return f((()=>{if(n&&"function"==typeof t){let l=[];for(let s of n){let n=a.get(s);if(!n){var e,i;n=t(s);let l=null!==(i=null!==(e=n.props.id)&&void 0!==e?e:s.key)&&void 0!==i?i:s.id;if(null==l)throw new Error("Could not determine key for item");r&&(l=r+":"+l),n=c(n,o?{key:l,id:l,value:s}:{key:l}),a.set(s,n)}l.push(n)}return l}if("function"!=typeof t)return t}),[t,n,a,r,o])}const jr={prefix:String(Math.round(1e10*Math.random())),current:0},Lr=o.createContext(jr),Rr=o.createContext(!1);let Ir=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Nr=new WeakMap;const $r="function"==typeof o.useId?function(e){let t=o.useId(),[n]=l(Kr()),r=n||"test"===process.env.NODE_ENV?"react-aria":`react-aria${jr.prefix}`;return e||`${r}-${t}`}:function(e){let t=p(Lr);t!==jr||Ir||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=p(Lr),n=a(null);if(null===n.current&&!e){var r,i;let e=null===(i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(r=i.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=Nr.get(e);null==n?Nr.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,Nr.delete(e))}n.current=++t.current}return n.current}(!!e),r=t===jr&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`};function zr(){return!1}function Fr(){return!0}function Br(e){return()=>{}}function Kr(){return"function"==typeof o.useSyncExternalStore?o.useSyncExternalStore(Br,zr,Fr):p(Rr)}if("undefined"!=typeof HTMLTemplateElement){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Vr=d(!1),Hr="undefined"!=typeof DocumentFragment?new DocumentFragment:null;function Ur(e){let t=p(Vr),n=Kr();if(t)return o.createElement(o.Fragment,null,e.children);let r=o.createElement(Vr.Provider,{value:!0},e.children);return n?o.createElement("template",{"data-react-aria-hidden":!0},r):A(r,Hr)}function Wr(e){let t=(t,n)=>p(Vr)?null:e(t,n);return t.displayName=e.displayName||e.name,s(t)}const Zr="undefined"!=typeof document?o.useLayoutEffect:()=>{};function qr(e){const t=a(null);return Zr((()=>{t.current=e}),[e]),h(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}let Gr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Yr=new Map;function Xr(e){let[t,n]=l(e),r=a(null),o=$r(t),s=h((e=>{r.current=e}),[]);return Gr&&(Yr.has(o)&&!Yr.get(o).includes(s)?Yr.set(o,[...Yr.get(o),s]):Yr.set(o,[s])),Zr((()=>{let e=o;return()=>{Yr.delete(e)}}),[o]),i((()=>{let e=r.current;e&&(r.current=null,n(e))})),o}function Jr(e,t){if(e===t)return e;let n=Yr.get(e);if(n)return n.forEach((e=>e(t))),t;let r=Yr.get(t);return r?(r.forEach((t=>t(e))),e):t}function Qr(e=[]){let t=Xr(),[n,r]=function(e){let[t,n]=l(e),r=a(null),o=qr((()=>{if(!r.current)return;let e=r.current.next();e.done?r.current=null:t===e.value?o():n(e.value)}));Zr((()=>{r.current&&o()}));let i=qr((e=>{r.current=e(t),o()}));return[t,i]}(t),o=h((()=>{r((function*(){yield t,yield document.getElementById(t)?t:void 0}))}),[t,r]);return Zr(o,[t,o,...e]),n}function eo(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}const to=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},no=e=>{if(e&&"window"in e&&e.window===e)return e;return to(e).defaultView||window};function ro(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ro(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function oo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ro(e))&&(r&&(r+=" "),r+=t);return r}function io(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=eo(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Jr(n,o):t[e]=void 0!==o?o:n:t[e]=oo(n,o)}}return t}function ao(...e){return 1===e.length&&e[0]?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}const lo=new Set(["id"]),so=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),co=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),uo=/^(data-.*)$/;function fo(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(lo.has(t)||n&&so.has(t)||r&&co.has(t)||(null==o?void 0:o.has(t))||uo.test(t))&&(i[t]=e[t]);return i}function po(e){if(function(){if(null==ho){ho=!1;try{document.createElement("div").focus({get preventScroll(){return ho=!0,!0}})}catch(e){}}return ho}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft});return n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let ho=null;function go(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function mo(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function vo(e){let t=null;return()=>(null==t&&(t=e()),t)}const yo=vo((function(){return mo(/^Mac/i)})),bo=vo((function(){return mo(/^iPhone/i)})),wo=vo((function(){return mo(/^iPad/i)||yo()&&navigator.maxTouchPoints>1})),Co=vo((function(){return bo()||wo()})),xo=vo((function(){return yo()||Co()})),So=vo((function(){return go(/AppleWebKit/i)&&!ko()})),ko=vo((function(){return go(/Chrome/i)})),Eo=vo((function(){return go(/Android/i)})),Oo=vo((function(){return go(/Firefox/i)})),Do=d({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}(e,(e=>To(e,t)))},useHref:e=>e});function Po(){return p(Do)}function To(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}=t;Oo()&&(null===(o=window.event)||void 0===o||null===(r=o.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(yo()?i=!0:a=!0);let c=So()&&yo()&&!wo()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});To.isOpening=n,po(e),e.dispatchEvent(c),To.isOpening=!1}function Ao(e){var t;const n=Po().useHref(null!==(t=null==e?void 0:e.href)&&void 0!==t?t:"");return{href:(null==e?void 0:e.href)?n:void 0,target:null==e?void 0:e.target,rel:null==e?void 0:e.rel,download:null==e?void 0:e.download,ping:null==e?void 0:e.ping,referrerPolicy:null==e?void 0:e.referrerPolicy}}To.isOpening=!1;let Mo=new Map,_o=new Set;function jo(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=Mo.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),Mo.delete(n.target)),0===Mo.size)){for(let e of _o)e();_o.clear()}};document.body.addEventListener("transitionrun",(n=>{if(!e(n)||!n.target)return;let r=Mo.get(n.target);r||(r=new Set,Mo.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)})),document.body.addEventListener("transitionend",t)}function Lo(e){requestAnimationFrame((()=>{0===Mo.size?e():_o.add(e)}))}function Ro(){let e=a(new Map),t=h(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=h(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=h((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return i((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Io(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Xr(n),o&&r){let e=new Set([n,...o.trim().split(/\s+/)]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function No(e){const t=a(null);return f((()=>({get current(){return t.current},set current(n){t.current=n,"function"==typeof e?e(n):e&&(e.current=n)}})),[e])}function $o(e,t){const n=a(!0),r=a(null);i((()=>(n.current=!0,()=>{n.current=!1})),[]),i((()=>{n.current?n.current=!1:r.current&&!t.some(((e,t)=>!Object.is(e,r[t])))||e(),r.current=t}),t)}function zo(e){const{ref:t,box:n,onResize:r}=e;i((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{const t=new window.ResizeObserver((e=>{e.length&&r()}));return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}}}),[r,t,n])}function Fo(e,t){Zr((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}}))}function Bo(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Ko(e,t){let n=e;for(Bo(n,t)&&(n=n.parentElement);n&&!Bo(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}"undefined"!=typeof document&&("loading"!==document.readyState?jo():document.addEventListener("DOMContentLoaded",jo));let Vo="undefined"!=typeof document&&window.visualViewport;function Ho(){return{width:Vo&&(null==Vo?void 0:Vo.width)||window.innerWidth,height:Vo&&(null==Vo?void 0:Vo.height)||window.innerHeight}}let Uo=0;const Wo=new Map;function Zo(e){let[t,n]=l();return Zr((()=>{if(!e)return;let t=Wo.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+Uo++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},Wo.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),Wo.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}function qo(e,t,n,r){let o=qr(n),a=null==n;i((()=>{if(a||!e.current)return;let n=e.current;return n.addEventListener(t,o,r),()=>{n.removeEventListener(t,o,r)}}),[e,t,r,a,o])}function Go(e,t){let n=Yo(e,t,"left"),r=Yo(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:c}=getComputedStyle(e),u=e.scrollLeft+parseInt(c,10),d=e.scrollTop+parseInt(s,10),f=u+e.clientWidth,p=d+e.clientHeight;n<=a?a=n-parseInt(c,10):n+o>f&&(a+=n+o-f),r<=d?l=r-parseInt(s,10):r+i>p&&(l+=r+i-p),e.scrollLeft=a,e.scrollTop=l}function Yo(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Xo(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow){let t=function(e,t){const n=[];for(;e&&e!==document.documentElement;)Bo(e,t)&&n.push(e),e=e.parentElement;return n}(e);for(let n of t)Go(n,e)}else{var n;let{left:a,top:l}=e.getBoundingClientRect();null==e||null===(n=e.scrollIntoView)||void 0===n||n.call(e,{block:"nearest"});let{left:s,top:c}=e.getBoundingClientRect();var r,o,i;if(Math.abs(a-s)>1||Math.abs(l-c)>1)null==t||null===(o=t.containingElement)||void 0===o||null===(r=o.scrollIntoView)||void 0===r||r.call(o,{block:"center",inline:"center"}),null===(i=e.scrollIntoView)||void 0===i||i.call(e,{block:"nearest"})}}}function Jo(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Eo()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Qo(e,t){let n=a(null);return e&&n.current&&t(e,n.current)&&(e=n.current),n.current=e,e}function ei(e,t,n){let r=a(t),o=qr((()=>{n&&n(r.current)}));i((()=>{var t;let n=null==e||null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",o),()=>{null==n||n.removeEventListener("reset",o)}}),[e,o])}function ti(e,t,n){let[r,o]=l(e||t),s=a(void 0!==e),c=void 0!==e;i((()=>{let e=s.current;e!==c&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),s.current=c}),[c]);let u=c?e:r,d=h(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(u,e)||n(e,...t)),c||(u=e)};if("function"==typeof e){console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(((n,...o)=>{let i=e(c?u:n,...o);return r(i,...t),c?n:i}))}else c||o(e),r(e,...t)}),[c,u,n]);return[u,d]}function ni(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function ri(e,t){let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let e=Math.pow(10,i);n=Math.round(n*e)/e}return n}function oi(e,t,n,r){t=Number(t),n=Number(n);let o=(e-(isNaN(t)?0:t))%r,i=ri(2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o,r);return isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(ri(n/r,r))*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor(ri((n-t)/r,r))*r),i=ri(i,r),i}var ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var li,si={exports:{}},ci={};var ui,di={};"production"===process.env.NODE_ENV?si.exports=function(){if(li)return ci;li=1;var e=o,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useState,r=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var o=t(),s=n({inst:{value:o,getSnapshot:t}}),c=s[0].inst,u=s[1];return i((function(){c.value=o,c.getSnapshot=t,l(c)&&u({inst:c})}),[e,o,t]),r((function(){return l(c)&&u({inst:c}),e((function(){l(c)&&u({inst:c})}))}),[e]),a(o),o};return ci.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,ci}():si.exports=(ui||(ui=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=o,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];!function(e,n,r){var o=t.ReactDebugCurrentFrame.getStackAddendum();""!==o&&(n+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+n),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=e.useState,a=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue,c=!1,u=!1;function d(e){var t=e.getSnapshot,n=e.value;try{var o=t();return!r(n,o)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(t,o,f){c||void 0!==e.startTransition&&(c=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var p=o();if(!u){var h=o();r(p,h)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}var g=i({inst:{value:p,getSnapshot:o}}),m=g[0].inst,v=g[1];return l((function(){m.value=p,m.getSnapshot=o,d(m)&&v({inst:m})}),[t,p,o]),a((function(){return d(m)&&v({inst:m}),t((function(){d(m)&&v({inst:m})}))}),[t]),s(p),p},p=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:f;di.useSyncExternalStore=p,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),di);var fi=si.exports;const pi=d(!1),hi=d(null);function gi(e){if(p(hi))return e.content;let{collection:t,document:n}=function(e){let[t]=l((()=>new Mr((null==e?void 0:e())||new Pr))),n=h((e=>t.subscribe(e)),[t]),r=h((()=>{let e=t.getCollection();return t.isSSR&&t.resetAfterSSR(),e}),[t]),o=h((()=>(t.isSSR=!0,t.getCollection())),[t]),i=vi(n,r,o);return Zr((()=>(t.isMounted=!0,()=>{t.isMounted=!1})),[t]),{collection:i,document:t}}(e.createCollection);return o.createElement(o.Fragment,null,o.createElement(Ur,null,o.createElement(hi.Provider,{value:n},e.content)),o.createElement(mi,{render:e.children,collection:t}))}function mi({collection:e,render:t}){return t(e)}const vi="function"==typeof o.useSyncExternalStore?o.useSyncExternalStore:function(e,t,n){let r=Kr(),o=a(r);o.current=r;let i=h((()=>o.current?n():t()),[t,n]);return fi.useSyncExternalStore(e,i)};const yi=d(null);function bi(e,t,n,r,i,a){let l=h((e=>{null==e||e.setProps(t,n,r,a)}),[t,n,r,a]),s=p(yi);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e),l.setProps(t,n,r,a),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),i?o.createElement(yi.Provider,{value:l},i):null}return o.createElement(e,{ref:l},i)}function wi(e,t){let n=({node:e})=>t(e.props,e.props.ref,e),r=s(((r,i)=>{if(!p(pi)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(r,i)}return bi(e,r,i,"children"in r?r.children:null,null,(e=>o.createElement(n,{node:e})))}));return r.displayName=t.name,r}function Ci(e,t,n=xi){let r=({node:e})=>t(e.props,e.props.ref,e),i=s(((t,i)=>{let a=n(t);var l;return null!==(l=bi(e,t,i,null,a,(e=>o.createElement(r,{node:e}))))&&void 0!==l?l:o.createElement(o.Fragment,null)}));return i.displayName=t.name,i}function xi(e){return _r({...e,addIdAndValue:!0})}const Si=d(null);function ki(e){let t=p(Si),n=((null==t?void 0:t.dependencies)||[]).concat(e.dependencies),r=e.idScope||(null==t?void 0:t.idScope),i=xi({...e,idScope:r,dependencies:n});return p(hi)&&(i=o.createElement(Ei,null,i)),t=f((()=>({dependencies:n,idScope:r})),[r,...n]),o.createElement(Si.Provider,{value:t},i)}function Ei({children:e}){let t=p(hi),n=f((()=>o.createElement(hi.Provider,{value:null},o.createElement(pi.Provider,{value:!0},e))),[e]);return Kr()?o.createElement(yi.Provider,{value:t},n):A(n,t)}const Oi=d(null),Di=Ci("section",((e,t,n)=>{let{render:r}=p(Oi);return r(e,t,n)})),Pi={CollectionRoot:({collection:e,renderDropIndicator:t})=>Ti(e,null,t),CollectionBranch:({collection:e,parent:t,renderDropIndicator:n})=>Ti(e,t,n)};function Ti(e,t,n){return _r({items:t?e.getChildren(t.key):e,dependencies:[n],children(t){var r;let i=t.render(t);if(!n||"item"!==t.type)return i;let a=t.key,l=e.getKeyAfter(a);return o.createElement(o.Fragment,null,n({type:"item",key:a,dropPosition:"before"}),i,(null==l||"item"!==(null===(r=e.getItem(l))||void 0===r?void 0:r.type))&&n({type:"item",key:a,dropPosition:"after"}))}})}const Ai=d(Pi);const Mi=Symbol("default");function _i({values:e,children:t}){for(let[n,r]of e)t=o.createElement(n.Provider,{value:r},t);return t}function ji(e){let{className:t,style:n,children:r,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:l}=e;return f((()=>{let e,s,c;return e="function"==typeof t?t({...l,defaultClassName:o}):t,s="function"==typeof n?n({...l,defaultStyle:a||{}}):n,c="function"==typeof r?r({...l,defaultChildren:i}):null==r?i:r,{className:null!=e?e:o,style:s||a?{...a,...s}:void 0,children:null!=c?c:i,"data-rac":""}}),[t,n,r,o,i,a,l])}function Li(e,t){let n=p(e);if(null===t)return null;if(n&&"object"==typeof n&&"slots"in n&&n.slots){let e=(new Intl.ListFormat).format(Object.keys(n.slots).map((e=>`"${e}"`)));if(!t&&!n.slots[Mi])throw new Error(`A slot prop is required. Valid slot names are ${e}.`);let r=t||Mi;if(!n.slots[r])throw new Error(`Invalid slot "${t}". Valid slot names are ${e}.`);return n.slots[r]}return n}function Ri(e,t,n){let r=Li(n,e.slot)||{},{ref:o,...i}=r,a=No(f((()=>ao(t,o)),[t,o])),l=io(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&("function"==typeof i.style||"function"==typeof e.style?l.style=t=>{let n="function"==typeof i.style?i.style(t):i.style,r={...t.defaultStyle,...n},o="function"==typeof e.style?e.style({...t,defaultStyle:r}):e.style;return{...r,...o}}:l.style={...i.style,...e.style}),[l,a]}function Ii(){let[e,t]=l(!0),n=a(!1),r=h((e=>{n.current=!0,t(!!e)}),[]);return Zr((()=>{n.current||t(!1)}),[]),[r,e]}function Ni(e,t=!0){let[n,r]=l(!0);return zi(e,n&&t,h((()=>r(!1)),[])),n&&t}function $i(e,t){let[n,r]=l(!1),[o,i]=l("idle");return!t&&e.current&&"idle"===o&&(n=!0,r(!0),i("exiting")),e.current||"exited"!==o||i("idle"),zi(e,n,h((()=>{i("exited"),r(!1)}),[])),n}function zi(e,t,n){let r=a(null);t&&e.current&&(r.current=window.getComputedStyle(e.current).animation),Zr((()=>{if(t&&e.current){let t=window.getComputedStyle(e.current);if(t.animationName&&"none"!==t.animationName&&t.animation!==r.current){let t=o=>{o.target===e.current&&(r.removeEventListener("animationend",t),T.flushSync((()=>{n()})))},r=e.current;return r.addEventListener("animationend",t),()=>{r.removeEventListener("animationend",t)}}n()}}),[e,t,n])}function Fi(e){const t=/^(data-.*)$/;let n={};for(const r in e)t.test(r)||(n[r]=e[r]);return n}let Bi="default",Ki="",Vi=new WeakMap;function Hi(e){if(Co()){if("default"===Bi){const t=to(e);Ki=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Bi="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Vi.set(e,e.style.userSelect),e.style.userSelect="none")}function Ui(e){if(Co()){if("disabled"!==Bi)return;Bi="restoring",setTimeout((()=>{Lo((()=>{if("restoring"===Bi){const t=to(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=Ki||""),Ki="",Bi="default"}}))}),300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Vi.has(e)){let t=Vi.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Vi.delete(e)}}const Wi=o.createContext({register:()=>{}});function Zi(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function qi(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function Gi(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Zi(e,t,"set"),n),n}Wi.displayName="PressResponderContext";var Yi=new WeakMap;class Xi{continuePropagation(){Gi(this,Yi,!1)}get shouldStopPropagation(){return function(e,t){return t.get?t.get.call(e):t.value}(e=this,Zi(e,Yi,"get"));var e}constructor(e,t,n,r){var o;qi(this,Yi,{writable:!0,value:void 0}),Gi(this,Yi,!0);let i=null!==(o=null==r?void 0:r.target)&&void 0!==o?o:n.currentTarget;const a=null==i?void 0:i.getBoundingClientRect();let l,s,c=0,u=null;null!=n.clientX&&null!=n.clientY&&(s=n.clientX,u=n.clientY),a&&(null!=s&&null!=u?(l=s-a.left,c=u-a.top):(l=a.width/2,c=a.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const Ji=Symbol("linkClicked");function Qi(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:s,isDisabled:c,isPressed:u,preventFocusOnPress:d,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:g,ref:m,...v}=function(e){let t=p(Wi);if(t){let{register:n,...r}=t;e=io(r,e),n()}return Fo(t,e.ref),e}(e),[y,b]=l(!1),w=a({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:C,removeAllGlobalListeners:x}=Ro(),S=qr(((e,t)=>{let o=w.current;if(c||o.didFirePressStart)return!1;let i=!0;if(o.isTriggeringEvent=!0,r){let n=new Xi("pressstart",t,e);r(n),i=n.shouldStopPropagation}return n&&n(!0),o.isTriggeringEvent=!1,o.didFirePressStart=!0,b(!0),i})),k=qr(((e,r,i=!0)=>{let a=w.current;if(!a.didFirePressStart)return!1;a.ignoreClickAfterPress=!0,a.didFirePressStart=!1,a.isTriggeringEvent=!0;let l=!0;if(o){let t=new Xi("pressend",r,e);o(t),l=t.shouldStopPropagation}if(n&&n(!1),b(!1),t&&i&&!c){let n=new Xi("press",r,e);t(n),l&&(l=n.shouldStopPropagation)}return a.isTriggeringEvent=!1,l})),E=qr(((e,t)=>{let n=w.current;if(c)return!1;if(s){n.isTriggeringEvent=!0;let r=new Xi("pressup",t,e);return s(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0})),O=qr((e=>{let t=w.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&k(oa(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,x(),g||Ui(t.target))})),D=qr((e=>{h&&O(e)})),P=f((()=>{let e=w.current,t={onKeyDown(t){if(ta(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var r;sa(t.target,t.key)&&t.preventDefault();let o=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,o=S(t,"keyboard");let r=t.currentTarget,i=t=>{ta(t,r)&&!t.repeat&&r.contains(t.target)&&e.target&&E(oa(e.target,t),"keyboard")};C(to(t.currentTarget),"keyup",eo(i,n),!0)}o&&t.stopPropagation(),t.metaKey&&yo()&&(null===(r=e.metaKeyEvents)||void 0===r||r.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!To.isOpening){let n=!0;if(c&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||Jo(t.nativeEvent))){c||d||po(t.currentTarget);let e=S(t,"virtual"),r=E(t,"virtual"),o=k(t,"virtual");n=e&&r&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},n=t=>{var n;if(e.isPressed&&e.target&&ta(t,e.target)){var r;sa(t.target,t.key)&&t.preventDefault();let n=t.target;k(oa(e.target,t),"keyboard",e.target.contains(n)),x(),"Enter"!==t.key&&ea(e.target)&&e.target.contains(n)&&!t[Ji]&&(t[Ji]=!0,To(e.target,t,!1)),e.isPressed=!1,null===(r=e.metaKeyEvents)||void 0===r||r.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){var o;let t=e.metaKeyEvents;e.metaKeyEvents=void 0;for(let n of t.values())null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(o=t.nativeEvent,!Eo()&&0===o.width&&0===o.height||1===o.width&&1===o.height&&0===o.pressure&&0===o.detail&&"mouse"===o.pointerType)return void(e.pointerType="virtual");var o;aa(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let a=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,c||d||po(t.currentTarget),g||Hi(e.target),a=S(t,e.pointerType),C(to(t.currentTarget),"pointermove",n,!1),C(to(t.currentTarget),"pointerup",r,!1),C(to(t.currentTarget),"pointercancel",i,!1)),a&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(aa(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&ia(t,t.currentTarget)&&E(t,e.pointerType||t.pointerType)};let n=t=>{t.pointerId===e.activePointerId&&(e.target&&ia(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,S(oa(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,k(oa(e.target,t),e.pointerType,!1),D(t)))},r=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(ia(t,e.target)&&null!=e.pointerType?k(oa(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&k(oa(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,x(),g||Ui(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&C(e.target,"touchend",o,{once:!0}))},o=e=>{la(e.target)&&e.preventDefault()},i=e=>{O(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}else{t.onMouseDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if(aa(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents)return void t.stopPropagation();e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=Jo(t.nativeEvent)?"virtual":"mouse",c||d||po(t.currentTarget),S(t,e.pointerType)&&t.stopPropagation(),C(to(t.currentTarget),"mouseup",n,!1)},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=S(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=k(t,e.pointerType,!1),D(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||E(t,e.pointerType||"mouse"))};let n=t=>{0===t.button&&(e.isPressed=!1,x(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(e.target&&ia(t,e.target)&&null!=e.pointerType?k(oa(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&k(oa(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",c||d||po(t.currentTarget),g||Hi(e.target),S(ra(e.target,t),e.pointerType)&&t.stopPropagation(),C(no(t.currentTarget),"scroll",r,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=na(t.nativeEvent,e.activePointerId),r=!0;n&&ia(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,r=S(ra(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,r=k(ra(e.target,t),e.pointerType,!1),D(ra(e.target,t))),r&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed)return void t.stopPropagation();let n=na(t.nativeEvent,e.activePointerId),r=!0;n&&ia(n,t.currentTarget)&&null!=e.pointerType?(E(ra(e.target,t),e.pointerType),r=k(ra(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(r=k(ra(e.target,t),e.pointerType,!1)),r&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!g&&Ui(e.target),x()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&O(ra(e.target,t)))};let r=t=>{e.isPressed&&t.target.contains(e.target)&&O({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&O(e)}}return t}),[C,c,d,x,g,O,D,k,S,E]);return i((()=>()=>{var e;g||Ui(null!==(e=w.current.target)&&void 0!==e?e:void 0)}),[g]),{isPressed:u||y,pressProps:io(v,P)}}function ea(e){return"A"===e.tagName&&e.hasAttribute("href")}function ta(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return!("Enter"!==n&&" "!==n&&"Spacebar"!==n&&"Space"!==r||o instanceof no(o).HTMLInputElement&&!ua(o,n)||o instanceof no(o).HTMLTextAreaElement||o.isContentEditable||("link"===i||!i&&ea(o))&&"Enter"!==n)}function na(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function ra(e,t){let n=0,r=0;return t.targetTouches&&1===t.targetTouches.length&&(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function oa(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r}}function ia(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=0,n=0;return void 0!==e.width?t=e.width/2:void 0!==e.radiusX&&(t=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(n,r)}function aa(e){return!(e instanceof HTMLElement&&e.hasAttribute("draggable"))}function la(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!ea(e))}function sa(e,t){return e instanceof HTMLInputElement?!ua(e,t):la(e)}const ca=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ua(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:ca.has(e.type)}const da=o.forwardRef((({children:e,...t},n)=>{let r=a(!1),l=p(Wi);n=No(n||(null==l?void 0:l.ref));let s=io(l||{},{...t,ref:n,register(){r.current=!0,l&&l.register()}});return Fo(l,n),i((()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)}),[]),o.createElement(Wi.Provider,{value:s},e)}));function fa({children:e}){let t=f((()=>({register:()=>{}})),[]);return o.createElement(Wi.Provider,{value:t},e)}class pa{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function ha(e){let t=a({isFocused:!1,observer:null});Zr((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=qr((t=>{null==e||e(t)}));return h((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new pa("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}function ga(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=h((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=ha(i),l=h((e=>{const t=to(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:t||!r&&!o?void 0:i}}}let ma=null,va=new Set,ya=new Map,ba=!1,wa=!1;const Ca={Tab:!0,Escape:!0};function xa(e,t){for(let n of va)n(e,t)}function Sa(e){ba=!0,function(e){return!(e.metaKey||!yo()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(ma="keyboard",xa("keyboard",e))}function ka(e){ma="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(ba=!0,xa("pointer",e))}function Ea(e){Jo(e)&&(ba=!0,ma="virtual")}function Oa(e){e.target!==window&&e.target!==document&&(ba||wa||(ma="virtual",xa("virtual",e)),ba=!1,wa=!1)}function Da(){ba=!1,wa=!0}function Pa(e){if("undefined"==typeof window||ya.get(no(e)))return;const t=no(e),n=to(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ba=!0,r.apply(this,arguments)},n.addEventListener("keydown",Sa,!0),n.addEventListener("keyup",Sa,!0),n.addEventListener("click",Ea,!0),t.addEventListener("focus",Oa,!0),t.addEventListener("blur",Da,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",ka,!0),n.addEventListener("pointermove",ka,!0),n.addEventListener("pointerup",ka,!0)):(n.addEventListener("mousedown",ka,!0),n.addEventListener("mousemove",ka,!0),n.addEventListener("mouseup",ka,!0)),t.addEventListener("beforeunload",(()=>{Ta(e)}),{once:!0}),ya.set(t,{focus:r})}const Ta=(e,t)=>{const n=no(e),r=to(e);t&&r.removeEventListener("DOMContentLoaded",t),ya.has(n)&&(n.HTMLElement.prototype.focus=ya.get(n).focus,r.removeEventListener("keydown",Sa,!0),r.removeEventListener("keyup",Sa,!0),r.removeEventListener("click",Ea,!0),n.removeEventListener("focus",Oa,!0),n.removeEventListener("blur",Da,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",ka,!0),r.removeEventListener("pointermove",ka,!0),r.removeEventListener("pointerup",ka,!0)):(r.removeEventListener("mousedown",ka,!0),r.removeEventListener("mousemove",ka,!0),r.removeEventListener("mouseup",ka,!0)),ya.delete(n))};function Aa(){return"pointer"!==ma}function Ma(){return ma}function _a(e){ma=e,xa(e,null)}function ja(){Pa();let[e,t]=l(ma);return i((()=>{let e=()=>{t(ma)};return va.add(e),()=>{va.delete(e)}}),[]),Kr()?null:e}"undefined"!=typeof document&&function(e){const t=to(e);let n;"loading"!==t.readyState?Pa(e):(n=()=>{Pa(e)},t.addEventListener("DOMContentLoaded",n))}();const La=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ra(e,t,n){Pa(),i((()=>{let t=(t,r)=>{(function(e,t,n){var r;const o="undefined"!=typeof window?no(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?no(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?no(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?no(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!La.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!Ca[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Aa())};return va.add(t),()=>{va.delete(t)}}),t)}function Ia(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=a({isFocusWithin:!1}),l=h((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),s=ha(l),c=h((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e))}),[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}let Na=!1,$a=0;function za(){Na=!0,setTimeout((()=>{Na=!1}),50)}function Fa(e){"touch"===e.pointerType&&za()}function Ba(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Fa):document.addEventListener("touchend",za),$a++,()=>{$a--,$a>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Fa):document.removeEventListener("touchend",za))}}function Ka(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[s,c]=l(!1),u=a({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;i(Ba,[]);let{hoverProps:d,triggerHoverEnd:p}=f((()=>{let e=(e,r)=>{if(u.pointerType=r,o||"touch"===r||u.isHovered||!e.currentTarget.contains(e.target))return;u.isHovered=!0;let i=e.currentTarget;u.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),c(!0)},i=(e,t)=>{if(u.pointerType="",u.target=null,"touch"===t||!u.isHovered)return;u.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),c(!1)},a={};return"undefined"!=typeof PointerEvent?(a.onPointerEnter=t=>{Na&&"mouse"===t.pointerType||e(t,t.pointerType)},a.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(a.onTouchStart=()=>{u.ignoreEmulatedMouseEvents=!0},a.onMouseEnter=t=>{u.ignoreEmulatedMouseEvents||Na||e(t,"mouse"),u.ignoreEmulatedMouseEvents=!1},a.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:a,triggerHoverEnd:i}}),[t,n,r,o,u]);return i((()=>{o&&p({currentTarget:u.target},u.pointerType)}),[o]),{hoverProps:d,isHovered:s}}function Va(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,l=a({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=qr((e=>{n&&Ha(e,t)&&(o&&o(e),l.current.isPointerDown=!0)})),c=qr((e=>{n&&n(e)}));i((()=>{let e=l.current;if(r)return;const n=t.current,o=to(n);if("undefined"!=typeof PointerEvent){let n=n=>{e.isPointerDown&&Ha(n,t)&&c(n),e.isPointerDown=!1};return o.addEventListener("pointerdown",s,!0),o.addEventListener("pointerup",n,!0),()=>{o.removeEventListener("pointerdown",s,!0),o.removeEventListener("pointerup",n,!0)}}{let n=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&Ha(n,t)&&c(n),e.isPointerDown=!1},r=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&Ha(n,t)&&c(n),e.isPointerDown=!1};return o.addEventListener("mousedown",s,!0),o.addEventListener("mouseup",n,!0),o.addEventListener("touchstart",s,!0),o.addEventListener("touchend",r,!0),()=>{o.removeEventListener("mousedown",s,!0),o.removeEventListener("mouseup",n,!0),o.removeEventListener("touchstart",s,!0),o.removeEventListener("touchend",r,!0)}}}),[t,r,s,c])}function Ha(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1;if(e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Ua(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Wa(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ua(e.onKeyDown),onKeyUp:Ua(e.onKeyUp)}}}const Za=500;function qa(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Za,accessibilityDescription:l}=e;const s=a(void 0);let{addGlobalListener:c,removeGlobalListener:u}=Ro(),{pressProps:d}=Qi({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=void 0}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};c(e.target,"contextmenu",t,{once:!0}),c(window,"pointerup",(()=>{setTimeout((()=>{u(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:io(d,Zo(o&&!t?l:void 0))}}function Ga(e){const t=to(e);if("virtual"===Ma()){let n=t.activeElement;Lo((()=>{t.activeElement===n&&e.isConnected&&po(e)}))}else po(e)}function Ya(e,t){return"#comment"!==e.nodeName&&function(e){const t=no(e);if(!(e instanceof t.HTMLElement||e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o="none"!==n&&"hidden"!==r&&"collapse"!==r;if(o){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:r}=t(e);o="none"!==n&&"hidden"!==r&&"collapse"!==r}return o}(e)&&function(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||Ya(e.parentElement,e))}const Xa=o.createContext(null),Ja="react-aria-focus-scope-restore";let Qa=null;function el(e){let{children:t,contain:n,restoreFocus:r,autoFocus:l}=e,s=a(null),c=a(null),u=a([]),{parentNode:d}=p(Xa)||{},h=f((()=>new yl({scopeRef:u})),[u]);Zr((()=>{let e=d||bl.root;if(bl.getTreeNode(e.scopeRef)&&Qa&&!cl(Qa,e.scopeRef)){let t=bl.getTreeNode(Qa);t&&(e=t)}e.addChild(h),bl.addNode(h)}),[h,d]),Zr((()=>{let e=bl.getTreeNode(u);e&&(e.contain=!!n)}),[n]),Zr((()=>{var e;let t=null===(e=s.current)||void 0===e?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==c.current;)n.push(t),t.addEventListener(Ja,r),t=t.nextSibling;return u.current=n,()=>{for(let e of n)e.removeEventListener(Ja,r)}}),[t]),function(e,t,n){Zr((()=>{if(t||n)return;let r=e.current;const o=to(r?r[0]:void 0);let i=t=>{let n=t.target;ll(n,e.current)?Qa=e:al(n)||(Qa=null)};return o.addEventListener("focusin",i,!1),null==r||r.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{o.removeEventListener("focusin",i,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[e,t,n])}(u,r,n),function(e,t){let n=a(void 0),r=a(void 0);Zr((()=>{let o=e.current;if(!t)return void(r.current&&(cancelAnimationFrame(r.current),r.current=void 0));const i=to(o?o[0]:void 0);let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!il(e)||t.isComposing)return;let n=i.activeElement,r=e.current;if(!r||!ll(n,r))return;let o=hl(ol(r),{tabbable:!0},r);if(!n)return;o.currentNode=n;let a=t.shiftKey?o.previousNode():o.nextNode();a||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,a=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),a&&ul(a,!0)},l=t=>{Qa&&!cl(Qa,e)||!ll(t.target,e.current)?il(e)&&!sl(t.target,e)?n.current?n.current.focus():Qa&&Qa.current&&fl(Qa.current):il(e)&&(n.current=t.target):(Qa=e,n.current=t.target)},s=t=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame((()=>{var r;i.activeElement&&il(e)&&!sl(i.activeElement,e)&&(Qa=e,i.body.contains(t.target)?(n.current=t.target,null===(r=n.current)||void 0===r||r.focus()):Qa.current&&fl(Qa.current))}))};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",l,!1),null==o||o.forEach((e=>e.addEventListener("focusin",l,!1))),null==o||o.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",l,!1),null==o||o.forEach((e=>e.removeEventListener("focusin",l,!1))),null==o||o.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),Zr((()=>()=>{r.current&&cancelAnimationFrame(r.current)}),[r])}(u,n),function(e,t,n){const r=a("undefined"!=typeof document?to(e.current?e.current[0]:void 0).activeElement:null);Zr((()=>{let r=e.current;const o=to(r?r[0]:void 0);if(!t||n)return;let i=()=>{Qa&&!cl(Qa,e)||!ll(o.activeElement,e.current)||(Qa=e)};return o.addEventListener("focusin",i,!1),null==r||r.forEach((e=>e.addEventListener("focusin",i,!1))),()=>{o.removeEventListener("focusin",i,!1),null==r||r.forEach((e=>e.removeEventListener("focusin",i,!1)))}}),[e,n]),Zr((()=>{const r=to(e.current?e.current[0]:void 0);if(!t)return;let o=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!il(e)||t.isComposing)return;let n=r.activeElement;if(!ll(n,e.current))return;let o=bl.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=hl(r.body,{tabbable:!0});a.currentNode=n;let l=t.shiftKey?a.previousNode():a.nextNode();if(i&&r.body.contains(i)&&i!==r.body||(i=void 0,o.nodeToRestore=void 0),(!l||!ll(l,e.current))&&i){a.currentNode=i;do{l=t.shiftKey?a.previousNode():a.nextNode()}while(ll(l,e.current));t.preventDefault(),t.stopPropagation(),l?ul(l,!0):al(i)?ul(i,!0):n.blur()}};return n||r.addEventListener("keydown",o,!0),()=>{n||r.removeEventListener("keydown",o,!0)}}),[e,t,n]),Zr((()=>{const n=to(e.current?e.current[0]:void 0);if(!t)return;let o=bl.getTreeNode(e);var i;return o?(o.nodeToRestore=null!==(i=r.current)&&void 0!==i?i:void 0,()=>{let r=bl.getTreeNode(e);if(!r)return;let o=r.nodeToRestore;if(t&&o&&(ll(n.activeElement,e.current)||n.activeElement===n.body&&function(e){let t=bl.getTreeNode(Qa);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=bl.clone();requestAnimationFrame((()=>{if(n.activeElement===n.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected)return void pl(n.nodeToRestore);n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&bl.getTreeNode(n.scopeRef)){return void pl(dl(n.scopeRef.current,!0))}n=n.parent}}}))}}):void 0}),[e,t])}(u,r,n),function(e,t){const n=o.useRef(t);i((()=>{if(n.current){Qa=e;!ll(to(e.current?e.current[0]:void 0).activeElement,Qa.current)&&e.current&&fl(e.current)}n.current=!1}),[e])}(u,l),i((()=>{const e=to(u.current?u.current[0]:void 0).activeElement;let t=null;if(ll(e,u.current)){for(let n of bl.traverse())n.scopeRef&&ll(e,n.scopeRef.current)&&(t=n);t===bl.getTreeNode(u)&&(Qa=t.scopeRef)}}),[u]),Zr((()=>()=>{var e,t,n;let r=null!==(n=null===(t=bl.getTreeNode(u))||void 0===t||null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;u!==Qa&&!cl(u,Qa)||r&&!bl.getTreeNode(r)||(Qa=r),bl.removeTreeNode(u)}),[u]);let g=f((()=>function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||to(n[0]).activeElement,s=n[0].previousElementSibling,c=hl(ol(n),{tabbable:o,accept:a},n);c.currentNode=ll(l,n)?l:s;let u=c.nextNode();return!u&&i&&(c.currentNode=s,u=c.nextNode()),u&&ul(u,!0),u},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:a}=t,l=r||to(n[0]).activeElement,s=n[n.length-1].nextElementSibling,c=hl(ol(n),{tabbable:o,accept:a},n);c.currentNode=ll(l,n)?l:s;let u=c.previousNode();return!u&&i&&(c.currentNode=s,u=c.previousNode()),u&&ul(u,!0),u},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=hl(ol(n),{tabbable:r,accept:o},n);i.currentNode=n[0].previousElementSibling;let a=i.nextNode();return a&&ul(a,!0),a},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=hl(ol(n),{tabbable:r,accept:o},n);i.currentNode=n[n.length-1].nextElementSibling;let a=i.previousNode();return a&&ul(a,!0),a}}}(u)),[]),m=f((()=>({focusManager:g,parentNode:h})),[h,g]);return o.createElement(Xa.Provider,{value:m},o.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,o.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:c}))}const tl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],nl=tl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";tl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const rl=tl.join(':not([hidden]):not([tabindex="-1"]),');function ol(e){return e[0].parentElement}function il(e){let t=bl.getTreeNode(Qa);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function al(e){return sl(e)}function ll(e,t){return!!e&&(!!t&&t.some((t=>t.contains(e))))}function sl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of bl.traverse(bl.getTreeNode(t)))if(n&&ll(e,n.current))return!0;return!1}function cl(e,t){var n;let r=null===(n=bl.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function ul(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Ga(e)}catch(e){}}function dl(e,t=!0){let n=e[0].previousElementSibling,r=ol(e),o=hl(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();return t&&!i&&(r=ol(e),o=hl(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),i}function fl(e,t=!0){ul(dl(e,t))}function pl(e){e.dispatchEvent(new CustomEvent(Ja,{bubbles:!0,cancelable:!0}))&&ul(e)}function hl(e,t,n){let r=(null==t?void 0:t.tabbable)?rl:nl,o=to(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:!e.matches(r)||!Ya(e)||n&&!ll(e,n)||(null==t?void 0:t.accept)&&!t.accept(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}function gl(e,t={}){return{focusNext(n={}){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=n,s=o||to(r).activeElement,c=hl(r,{tabbable:i,accept:l});r.contains(s)&&(c.currentNode=s);let u=c.nextNode();return!u&&a&&(c.currentNode=r,u=c.nextNode()),u&&ul(u,!0),u},focusPrevious(n=t){let r=e.current;if(!r)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:l=t.accept}=n,s=o||to(r).activeElement,c=hl(r,{tabbable:i,accept:l});if(!r.contains(s)){let e=ml(c);return e&&ul(e,!0),null!=e?e:null}c.currentNode=s;let u=c.previousNode();if(!u&&a){c.currentNode=r;let e=ml(c);if(!e)return null;u=e}return u&&ul(u,!0),null!=u?u:null},focusFirst(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=hl(r,{tabbable:o,accept:i}).nextNode();return a&&ul(a,!0),a},focusLast(n=t){let r=e.current;if(!r)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=n,a=ml(hl(r,{tabbable:o,accept:i}));return a&&ul(a,!0),null!=a?a:null}}}function ml(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}class vl{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new yl({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&ll(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new vl;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new yl({scopeRef:null}),this.fastMap.set(null,this.root)}}class yl{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let bl=new vl;function wl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=a({isFocused:!1,isFocusVisible:t||Aa()}),[i,s]=l(!1),[c,u]=l((()=>o.current.isFocused&&o.current.isFocusVisible)),d=h((()=>u(o.current.isFocused&&o.current.isFocusVisible)),[]),f=h((e=>{o.current.isFocused=e,s(e),d()}),[d]);Ra((e=>{o.current.isFocusVisible=e,d()}),[],{isTextInput:n});let{focusProps:p}=ga({isDisabled:r,onFocusChange:f}),{focusWithinProps:g}=Ia({isDisabled:!r,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:c,focusProps:r?g:p}}let Cl=o.createContext(null);function xl(e,t){let{children:n,...r}=e,i={...r,ref:No(t)};return o.createElement(Cl.Provider,{value:i},n)}let Sl=o.forwardRef(xl);function kl(e,t){let{focusProps:n}=ga(e),{keyboardProps:r}=Wa(e),o=io(n,r),l=function(e){let t=p(Cl)||{};Fo(t,e);let{ref:n,...r}=t;return r}(t),s=e.isDisabled?{}:l,c=a(e.autoFocus);return i((()=>{c.current&&t.current&&Ga(t.current),c.current=!1}),[t]),{focusableProps:io({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}const El=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Ol=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Dl(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return El.has(t.script)}let t=e.split("-")[0];return Ol.has(t)}const Pl=Symbol.for("react-aria.i18n.locale");function Tl(){let e="undefined"!=typeof window&&window[Pl]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:Dl(e)?"rtl":"ltr"}}let Al=Tl(),Ml=new Set;function _l(){Al=Tl();for(let e of Ml)e(Al)}const jl=o.createContext(null);function Ll(){let e=function(){let e=Kr(),[t,n]=l(Al);return i((()=>(0===Ml.size&&window.addEventListener("languagechange",_l),Ml.add(n),()=>{Ml.delete(n),0===Ml.size&&window.removeEventListener("languagechange",_l)})),[]),e?{locale:"en-US",direction:"ltr"}:t}();return p(jl)||e}const Rl=Symbol.for("react-aria.i18n.locale"),Il=Symbol.for("react-aria.i18n.strings");let Nl;class $l{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw new Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[Rl];if(void 0===Nl){let e=window[Il];if(!e)return null;Nl={};for(let n in e)Nl[n]=new $l({[t]:e[n]},t)}let n=null==Nl?void 0:Nl[e];if(!n)throw new Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter((([,e])=>e))),this.defaultLocale=t}}const zl=new Map,Fl=new Map;class Bl{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let o=this.locale+":"+n,i=zl.get(o);return i||(i=new Intl.PluralRules(this.locale,{type:n}),zl.set(o,i)),r=t[i.select(e)]||t.other,"function"==typeof r?r():r}number(e){let t=Fl.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),Fl.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}const Kl=new WeakMap;function Vl(e,t){return t&&$l.getGlobalDictionaryForPackage(t)||function(e){let t=Kl.get(e);return t||(t=new $l(e),Kl.set(e,t)),t}(e)}function Hl(e,t){let{locale:n}=Ll(),r=Vl(e,t);return f((()=>new Bl(n,r)),[n,r])}function Ul(e,t){return e-t*Math.floor(e/t)}const Wl=1721426;function Zl(e,t,n,r){let o=(t=Gl(e,t))-1,i=-2;return n<=2?i=0:ql(t)&&(i=-1),1721425+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function ql(e){return e%4==0&&(e%100!=0||e%400==0)}function Gl(e,t){return"BC"===e?1-t:t}function Yl(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Xl={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Jl{fromJulianDay(e){let t=e,n=t-Wl,r=Math.floor(n/146097),o=Ul(n,146097),i=Math.floor(o/36524),a=Ul(o,36524),l=Math.floor(a/1461),s=Ul(a,1461),c=Math.floor(s/365),u=400*r+100*i+4*l+c+(4!==i&&4!==c?1:0),[d,f]=Yl(u),p=t-Zl(d,f,1,1),h=2;t<Zl(d,f,3,1)?h=0:ql(f)&&(h=1);let g=Math.floor((12*(p+h)+373)/367),m=t-Zl(d,f,g,1)+1;return new lc(d,f,g,m)}toJulianDay(e){return Zl(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return Xl[ql(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return ql(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}isInverseEra(e){return"BC"===e.era}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}const Ql={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function es(e,t){return t=Ms(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function ts(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function ns(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=function(e){if(Intl.Locale){let t=gs.get(e);return t||(t=new Intl.Locale(e).maximize().region,t&&gs.set(e,t)),t}let t=e.split("-")[1];return"u"===t?void 0:t}(e);return t&&Ql[t]||0}(t))%7;return r<0&&(r+=7),r}function rs(e){return Ds(Date.now(),e)}function os(e){return Ps(rs(e))}function is(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function as(e,t){return ls(e)-ls(t)}function ls(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}let ss=null;function cs(){return null==ss&&(ss=(new Intl.DateTimeFormat).resolvedOptions().timeZone),ss}function us(e){return e.subtract({days:e.day-1})}function ds(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function fs(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function ps(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function hs(e,t){let n=ns(e,t);return e.subtract({days:n})}const gs=new Map;function ms(e,t){return e&&t?e.compare(t)<=0?e:t:e||t}function vs(e,t){return e&&t?e.compare(t)>=0?e:t:e||t}function ys(e){return bs(Gl((e=Ms(e,new Jl)).era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function bs(e,t,n,r,o,i,a){let l=new Date;return l.setUTCHours(r,o,i,a),l.setUTCFullYear(e,t-1,n),l.getTime()}function ws(e,t){if("UTC"===t)return 0;if(e>0&&t===cs())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:o,hour:i,minute:a,second:l}=xs(e,t);return bs(n,r,o,i,a,l,0)-1e3*Math.floor(e/1e3)}const Cs=new Map;function xs(e,t){let n=Cs.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Cs.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era||"B"===o.era?1-o.year:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}const Ss=864e5;function ks(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=xs(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}function Es(e,t,n="compatible"){let r=Ts(e);if("UTC"===t)return ys(r);if(t===cs()&&"compatible"===n){r=Ms(r,new Jl);let e=new Date,t=Gl(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let o=ys(r),i=ws(o-Ss,t),a=ws(o+Ss,t),l=ks(r,t,o-i,o-a);if(1===l.length)return l[0];if(l.length>1)switch(n){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function Os(e,t,n="compatible"){return new Date(Es(e,t,n))}function Ds(e,t){let n=ws(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),l=r.getUTCHours(),s=r.getUTCMinutes(),c=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new pc(o,i,a,t,n,l,s,c,u)}function Ps(e){return new lc(e.calendar,e.era,e.year,e.month,e.day)}function Ts(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new dc(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function As(e){return new cc(e.hour,e.minute,e.second,e.millisecond)}function Ms(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,$s(r),r}function _s(e,t,n){if(e instanceof pc)return e.timeZone===t?e:function(e,t){let n=ys(e)-e.offset;return Ms(Ds(n,t),e.calendar)}(e,t);return Ds(Es(e,t,n),t)}const js=36e5;function Ls(e,t){let n=e.copy(),r="hour"in n?Us(n,t):0;Rs(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Is(n),Ns(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,Is(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Is(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let e=null===(i=(a=n.calendar).isInverseEra)||void 0===i?void 0:i.call(a,n);n.year=o,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Rs(e,t){var n,r;(null===(n=(r=e.calendar).isInverseEra)||void 0===n?void 0:n.call(r,e))&&(t=-t),e.year+=t}function Is(e){for(;e.month<1;)Rs(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Rs(e,1)}function Ns(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function $s(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Ns(e)}function zs(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function Fs(e,t){return Ls(e,zs(t))}function Bs(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),$s(n),n}function Ks(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),Vs(n),n}function Vs(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Hs(e,t){let n=e%t;return n<0&&(n+=t),n}function Us(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Hs(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Hs(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Hs(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Hs(e.hour,24),t}(e)}function Ws(e,t){let n=e.copy();return Us(n,t),n}function Zs(e,t,n,r){let o=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=Gs(i,n,0,t.length-1,null==r?void 0:r.round),o.era=t[i],$s(o);break}case"year":var i,a;(null===(i=(a=o.calendar).isInverseEra)||void 0===i?void 0:i.call(a,o))&&(n=-n),o.year=Gs(e.year,n,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Gs(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=Gs(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),$s(o),o}function qs(e,t,n,r){let o=e.copy();switch(t){case"hour":{let t=e.hour,i=0,a=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;i=e?12:0,a=e?23:11}o.hour=Gs(t,n,i,a,null==r?void 0:r.round);break}case"minute":o.minute=Gs(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":o.second=Gs(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=Gs(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Gs(e,t,n,r,o=!1){if(o){(e+=Math.sign(t))<n&&(e=r);let o=Math.abs(t);(e=t>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Ys(e,t){let n;if(null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.weeks&&0!==t.weeks||null!=t.days&&0!==t.days){n=Es(Ls(Ts(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone)}else n=ys(e)-e.offset;return n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),Ms(Ds(n,e.timeZone),e.calendar)}const Xs=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Js=/^(\d{4})-(\d{2})-(\d{2})$/;function Qs(e){let t=e.match(Xs);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new cc(ec(t[1],0,23),t[2]?ec(t[2],0,59):0,t[3]?ec(t[3],0,59):0,t[4]?1e3*ec(t[4],0,1/0):0)}function ec(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function tc(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function nc(e){let t=Ms(e,new Jl);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function rc(e){return`${nc(e)}T${tc(e)}`}function oc(e){return`${rc(e)}${function(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}(e.offset)}[${e.timeZone}]`}function ic(e){let t,n="object"==typeof e[0]?e.shift():new Jl;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}var ac=new WeakMap;class lc{copy(){return this.era?new lc(this.calendar,this.era,this.year,this.month,this.day):new lc(this.calendar,this.year,this.month,this.day)}add(e){return Ls(this,e)}subtract(e){return Fs(this,e)}set(e){return Bs(this,e)}cycle(e,t,n){return Zs(this,e,t,n)}toDate(e){return Os(this,e)}toString(){return nc(this)}compare(e){return is(this,e)}constructor(...e){qi(this,ac,{writable:!0,value:void 0});let[t,n,r,o,i]=ic(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,$s(this)}}var sc=new WeakMap;class cc{copy(){return new cc(this.hour,this.minute,this.second,this.millisecond)}add(e){return Ws(this,e)}subtract(e){return function(e,t){return Ws(e,zs(t))}(this,e)}set(e){return Ks(this,e)}cycle(e,t,n){return qs(this,e,t,n)}toString(){return tc(this)}compare(e){return as(this,e)}constructor(e=0,t=0,n=0,r=0){qi(this,sc,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,Vs(this)}}var uc=new WeakMap;class dc{copy(){return this.era?new dc(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new dc(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ls(this,e)}subtract(e){return Fs(this,e)}set(e){return Bs(Ks(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return Zs(this,e,t,n);default:return qs(this,e,t,n)}}toDate(e,t){return Os(this,e,t)}toString(){return rc(this)}compare(e){let t=is(this,e);return 0===t?as(this,Ts(e)):t}constructor(...e){qi(this,uc,{writable:!0,value:void 0});let[t,n,r,o,i]=ic(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,$s(this)}}var fc=new WeakMap;class pc{copy(){return this.era?new pc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new pc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ys(this,e)}subtract(e){return function(e,t){return Ys(e,zs(t))}(this,e)}set(e,t){return function(e,t,n){let r=Ts(e),o=Ks(Bs(r,t),t);return 0===o.compare(r)?e:Ms(Ds(Es(o,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,o=n?23:11}let i=Ts(e),a=Ms(Ks(i,{hour:t}),new Jl),l=[Es(a,e.timeZone,"earlier"),Es(a,e.timeZone,"later")].filter((t=>Ds(t,e.timeZone).day===a.day))[0],s=Ms(Ks(i,{hour:o}),new Jl),c=[Es(s,e.timeZone,"earlier"),Es(s,e.timeZone,"later")].filter((t=>Ds(t,e.timeZone).day===s.day)).pop(),u=ys(e)-e.offset,d=Math.floor(u/js),f=u%js;return u=Gs(d,n,Math.floor(l/js),Math.floor(c/js),null==r?void 0:r.round)*js+f,Ms(Ds(u,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return qs(e,t,n,r);case"era":case"year":case"month":case"day":return Ms(Ds(Es(Zs(Ts(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return function(e){let t=ys(e)-e.offset;return new Date(t)}(this)}toString(){return oc(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-_s(e,this.timeZone).toDate().getTime()}constructor(...e){qi(this,fc,{writable:!0,value:void 0});let[t,n,r,o,i]=ic(e),a=e.shift(),l=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,this.timeZone=a,this.offset=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,$s(this)}}const hc=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],gc=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],mc=[1867,1911,1925,1988,2018],vc=["meiji","taisho","showa","heisei","reiwa"];function yc(e){const t=hc.findIndex((([t,n,r])=>e.year<t||(e.year===t&&e.month<n||e.year===t&&e.month===n&&e.day<r)));return-1===t?hc.length-1:0===t?0:t-1}function bc(e){let t=mc[vc.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new lc(e.year+t,e.month,e.day)}class wc extends Jl{fromJulianDay(e){let t=super.fromJulianDay(e),n=yc(t);return new lc(this,vc[n],t.year-mc[n],t.month,t.day)}toJulianDay(e){return super.toJulianDay(bc(e))}balanceDate(e){let t=bc(e),n=yc(t);vc[n]!==e.era&&(e.era=vc[n],e.year=t.year-mc[n]),this.constrainDate(e)}constrainDate(e){let t=vc.indexOf(e.era),n=gc[t];if(null!=n){let[r,o,i]=n,a=r-mc[t];e.year=Math.max(1,Math.min(a,e.year)),e.year===a&&(e.month=Math.min(o,e.month),e.month===o&&(e.day=Math.min(i,e.day)))}if(1===e.year&&t>=0){let[,n,r]=hc[t];e.month=Math.max(n,e.month),e.month===n&&(e.day=Math.max(r,e.day))}}getEras(){return vc}getYearsInEra(e){let t=vc.indexOf(e.era),n=hc[t],r=hc[t+1];if(null==r)return 9999-n[0]+1;let o=r[0]-n[0];return(e.month<r[1]||e.month===r[1]&&e.day<r[2])&&o++,o}getDaysInMonth(e){return super.getDaysInMonth(bc(e))}getMinimumMonthInYear(e){let t=Cc(e);return t?t[1]:1}getMinimumDayInMonth(e){let t=Cc(e);return t&&e.month===t[1]?t[2]:1}constructor(...e){super(...e),this.identifier="japanese"}}function Cc(e){if(1===e.year){let t=vc.indexOf(e.era);return hc[t]}}class xc extends Jl{fromJulianDay(e){let t=super.fromJulianDay(e),n=Gl(t.era,t.year);return new lc(this,n- -543,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Sc(e))}getEras(){return["BE"]}getDaysInMonth(e){return super.getDaysInMonth(Sc(e))}balanceDate(){}constructor(...e){super(...e),this.identifier="buddhist"}}function Sc(e){let[t,n]=Yl(e.year+-543);return new lc(t,n,e.month,e.day)}const kc=1911;function Ec(e){return"minguo"===e.era?e.year+kc:1-e.year+kc}function Oc(e){let t=e-kc;return t>0?["minguo",t]:["before_minguo",1-t]}class Dc extends Jl{fromJulianDay(e){let t=super.fromJulianDay(e),n=Gl(t.era,t.year),[r,o]=Oc(n);return new lc(this,r,o,t.month,t.day)}toJulianDay(e){return super.toJulianDay(Pc(e))}getEras(){return["before_minguo","minguo"]}balanceDate(e){let[t,n]=Oc(Ec(e));e.era=t,e.year=n}isInverseEra(e){return"before_minguo"===e.era}getDaysInMonth(e){return super.getDaysInMonth(Pc(e))}getYearsInEra(e){return"before_minguo"===e.era?9999:9999-kc}constructor(...e){super(...e),this.identifier="roc"}}function Pc(e){let[t,n]=Yl(Ec(e));return new lc(t,n,e.month,e.day)}const Tc=1948320,Ac=[0,31,62,93,124,155,186,216,246,276,306,336];class Mc{fromJulianDay(e){let t=e-Tc,n=1+Math.floor((33*t+3)/12053),r=t-(365*(n-1)+Math.floor((8*n+21)/33)),o=r<216?Math.floor(r/31):Math.floor((r-6)/30);return new lc(this,n,o+1,r-Ac[o]+1)}toJulianDay(e){let t=1948319+365*(e.year-1)+Math.floor((8*e.year+21)/33);return t+=Ac[e.month-1],t+=e.day,t}getMonthsInYear(){return 12}getDaysInMonth(e){if(e.month<=6)return 31;if(e.month<=11)return 30;return Ul(25*e.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}class _c extends Jl{fromJulianDay(e){let t,n,r,o=super.fromJulianDay(e),i=o.year-78,a=e-Zl(o.era,o.year,1,1);if(a<80?(i--,t=ql(o.year-1)?31:30,a+=t+155+90+10):(t=ql(o.year)?31:30,a-=80),a<t)n=1,r=a+1;else{let e=a-t;e<155?(n=Math.floor(e/31)+2,r=e%31+1):(e-=155,n=Math.floor(e/30)+7,r=e%30+1)}return new lc(this,i,n,r)}toJulianDay(e){let t,n,r=e.year+78,[o,i]=Yl(r);return ql(i)?(t=31,n=Zl(o,i,3,21)):(t=30,n=Zl(o,i,3,22)),1===e.month?n+e.day-1:(n+=t+31*Math.min(e.month-2,5),e.month>=8&&(n+=30*(e.month-7)),n+=e.day-1,n)}getDaysInMonth(e){return 1===e.month&&ql(e.year+78)||e.month>=2&&e.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...e){super(...e),this.identifier="indian"}}const jc=1948440,Lc=1948439,Rc=1300,Ic=1600,Nc=460322;function $c(e,t,n,r){return r+Math.ceil(29.5*(n-1))+354*(t-1)+Math.floor((3+11*t)/30)+e-1}function zc(e,t,n){let r=Math.floor((30*(n-t)+10646)/10631),o=Math.min(12,Math.ceil((n-(29+$c(t,r,1,1)))/29.5)+1),i=n-$c(t,r,o,1)+1;return new lc(e,r,o,i)}function Fc(e){return(14+11*e)%30<11}class Bc{fromJulianDay(e){return zc(this,jc,e)}toJulianDay(e){return $c(jc,e.year,e.month,e.day)}getDaysInMonth(e){let t=29+e.month%2;return 12===e.month&&Fc(e.year)&&t++,t}getMonthsInYear(){return 12}getDaysInYear(e){return Fc(e.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class Kc extends Bc{fromJulianDay(e){return zc(this,Lc,e)}toJulianDay(e){return $c(Lc,e.year,e.month,e.day)}constructor(...e){super(...e),this.identifier="islamic-tbla"}}let Vc,Hc;function Uc(e){return Nc+Hc[e-Rc]}function Wc(e,t){let n=1<<11-(t-1);return 0==(Vc[e-Rc]&n)?29:30}function Zc(e,t){let n=Uc(e);for(let r=1;r<t;r++)n+=Wc(e,r);return n}function qc(e){return Hc[e+1-Rc]-Hc[e-Rc]}class Gc extends Bc{fromJulianDay(e){let t=e-jc,n=Uc(Rc),r=Uc(Ic);if(t<n||t>r)return super.fromJulianDay(e);{let e=Rc-1,n=1,r=1;for(;r>0;){e++,r=t-Uc(e)+1;let o=qc(e);if(r===o){n=12;break}if(r<o){let t=Wc(e,n);for(n=1;r>t;)r-=t,n++,t=Wc(e,n);break}}return new lc(this,e,n,t-Zc(e,n)+1)}}toJulianDay(e){return e.year<Rc||e.year>Ic?super.toJulianDay(e):jc+Zc(e.year,e.month)+(e.day-1)}getDaysInMonth(e){return e.year<Rc||e.year>Ic?super.getDaysInMonth(e):Wc(e.year,e.month)}getDaysInYear(e){return e.year<Rc||e.year>Ic?super.getDaysInYear(e):qc(e.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Vc||(Vc=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),(e=>e.charCodeAt(0))).buffer)),!Hc){Hc=new Uint32Array(Ic-Rc+1);let e=0;for(let t=Rc;t<=Ic;t++){Hc[t-Rc]=e;for(let n=1;n<=12;n++)e+=Wc(t,n)}}}}const Yc=347997;function Xc(e){return Ul(7*e+1,19)<7}function Jc(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,r=29*t+Math.floor(n/25920);return Ul(3*(r+1),7)<3&&(r+=1),r}function Qc(e){return Jc(e)+function(e){let t=Jc(e-1),n=Jc(e);return Jc(e+1)-n==356?2:n-t==382?1:0}(e)}function eu(e){return Qc(e+1)-Qc(e)}function tu(e,t){if(t>=6&&!Xc(e)&&t++,4===t||7===t||9===t||11===t||13===t)return 29;let n=function(e){let t=eu(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}(e);return 2===t?2===n?30:29:3===t?0===n?29:30:6===t?Xc(e)?30:0:30}class nu{fromJulianDay(e){let t=e-Yc,n=25920*t/765433,r=Math.floor((19*n+234)/235)+1,o=Qc(r),i=Math.floor(t-o);for(;i<1;)r--,o=Qc(r),i=Math.floor(t-o);let a=1,l=0;for(;l<i;)l+=tu(r,a),a++;return a--,l-=tu(r,a),new lc(this,r,a,i-l)}toJulianDay(e){let t=Qc(e.year);for(let n=1;n<e.month;n++)t+=tu(e.year,n);return t+e.day+Yc}getDaysInMonth(e){return tu(e.year,e.month)}getMonthsInYear(e){return Xc(e.year)?13:12}getDaysInYear(e){return eu(e.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(e,t){t.year!==e.year&&(Xc(t.year)&&!Xc(e.year)&&t.month>6?e.month--:!Xc(t.year)&&Xc(e.year)&&t.month>6&&e.month++)}constructor(){this.identifier="hebrew"}}const ru=1723856,ou=1824665,iu=5500;function au(e,t,n,r){return e+365*t+Math.floor(t/4)+30*(n-1)+r-1}function lu(e,t){let n=Math.floor(4*(t-e)/1461),r=1+Math.floor((t-au(e,n,1,1))/30);return[n,r,t+1-au(e,n,r,1)]}function su(e){return Math.floor(e%4/3)}function cu(e,t){return t%13!=0?30:su(e)+5}class uu{fromJulianDay(e){let[t,n,r]=lu(ru,e),o="AM";return t<=0&&(o="AA",t+=iu),new lc(this,o,t,n,r)}toJulianDay(e){let t=e.year;return"AA"===e.era&&(t-=iu),au(ru,t,e.month,e.day)}getDaysInMonth(e){return cu(e.year,e.month)}getMonthsInYear(){return 13}getDaysInYear(e){return 365+su(e.year)}getYearsInEra(e){return"AA"===e.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class du extends uu{fromJulianDay(e){let[t,n,r]=lu(ru,e);return t+=iu,new lc(this,"AA",t,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...e){super(...e),this.identifier="ethioaa"}}class fu extends uu{fromJulianDay(e){let[t,n,r]=lu(ou,e),o="CE";return t<=0&&(o="BCE",t=1-t),new lc(this,o,t,n,r)}toJulianDay(e){let t=e.year;return"BCE"===e.era&&(t=1-t),au(ou,t,e.month,e.day)}getDaysInMonth(e){let t=e.year;return"BCE"===e.era&&(t=1-t),cu(t,e.month)}isInverseEra(e){return"BCE"===e.era}balanceDate(e){e.year<=0&&(e.era="BCE"===e.era?"CE":"BCE",e.year=1-e.year)}getEras(){return["BCE","CE"]}getYearsInEra(e){return"BCE"===e.era?9999:9715}constructor(...e){super(...e),this.identifier="coptic"}}function pu(e){switch(e){case"buddhist":return new xc;case"ethiopic":return new uu;case"ethioaa":return new du;case"coptic":return new fu;case"hebrew":return new nu;case"indian":return new _c;case"islamic-civil":return new Bc;case"islamic-tbla":return new Kc;case"islamic-umalqura":return new Gc;case"japanese":return new wc;case"persian":return new Mc;case"roc":return new Dc;default:return new Jl}}let hu=new Map;class gu{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return function(){null==bu&&(bu="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle);return bu}()&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=vu(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===o)return"h23";if(24===r&&23===o)return"h24";if(0===r&&11===o)return"h11";if(12===r&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===e.calendar&&(e.calendar="ethioaa"),e}constructor(e,t={}){this.formatter=vu(e,t),this.options=t}}const mu={true:{ja:"h11"},false:{}};function vu(e,t={}){if("boolean"==typeof t.hour12&&function(){null==yu&&(yu="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0)));return yu}()){t={...t};let n=mu[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(hu.has(n))return hu.get(n);let r=new Intl.DateTimeFormat(e,t);return hu.set(n,r),r}let yu=null;let bu=null;function wu(e){e=Qo(null!=e?e:{},Cu);let{locale:t}=Ll();return f((()=>new gu(t,e)),[t,e])}function Cu(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}let xu=new Map,Su=!1;try{Su="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(fn){}let ku=!1;try{ku="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(fn){}const Eu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Ou{format(e){let t="";if(t=Su||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!ku){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions();if(!e)return t;let i=null===(n=Eu[e])||void 0===n?void 0:n[r];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(e),r=this.numberFormatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Su||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),ku||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`);if("unit"===t.style&&!ku){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=Eu[e])||void 0===r?void 0:r[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(xu.has(o))return xu.get(o);let i=new Intl.NumberFormat(e,t);return xu.set(o,i),i}(e,t),this.options=t}}const Du=new RegExp("^.*\\(.*\\).*$"),Pu=["latn","arab","hanidec"];class Tu{parse(e){return Mu(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,n){return Mu(this.locale,this.options,e).isValidPartialNumber(e,t,n)}getNumberingSystem(e){return Mu(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const Au=new Map;function Mu(e,t,n){let r=_u(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n))for(let o of Pu)if(o!==r.options.numberingSystem){let r=_u(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(r.isValidPartialNumber(n))return r}return r}function _u(e,t){let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():""),r=Au.get(n);return r||(r=new ju(e,t),Au.set(n,r)),r}class ju{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=Iu(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-","");let n=t.indexOf(".");-1===n&&(n=t.length),t=t.replace(".",""),t=n-2==0?`0.${t}`:n-2==-1?`0.0${t}`:n-2==-2?"0.00":`${t.slice(0,n-2)}.${t.slice(n-2)}`,e>-1&&(t=`-${t}`)}let n=t?+t:NaN;if(isNaN(n))return NaN;if("percent"===this.options.style){var r,o;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(o=this.options.maximumFractionDigits)&&void 0!==o?o:0)+2,20)};return new Tu(this.locale,e).parse(new Ou(this.locale,e).format(n))}return"accounting"===this.options.currencySign&&Du.test(e)&&(n*=-1),n}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=Iu(e,".",this.symbols.group))),"fr-FR"===this.options.locale&&(e=Iu(e,".",String.fromCharCode(8239))),e}isValidPartialNumber(e,t=-1/0,n=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&n>0&&(e=e.slice(this.symbols.plusSign.length)),(!this.symbols.group||!e.startsWith(this.symbols.group))&&(!(this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits)&&(this.symbols.group&&(e=Iu(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0===e.length))}constructor(e,t={}){var n,r;this.locale=e,this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,n,r){var o,i,a,l;let s=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21}),c=s.formatToParts(-10000.111),u=s.formatToParts(10000.111),d=Ru.map((e=>s.formatToParts(e)));var f;let p=null!==(f=null===(o=c.find((e=>"minusSign"===e.type)))||void 0===o?void 0:o.value)&&void 0!==f?f:"-",h=null===(i=u.find((e=>"plusSign"===e.type)))||void 0===i?void 0:i.value;h||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(h="+");let g=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001),m=null===(a=g.find((e=>"decimal"===e.type)))||void 0===a?void 0:a.value,v=null===(l=c.find((e=>"group"===e.type)))||void 0===l?void 0:l.value,y=c.filter((e=>!Lu.has(e.type))).map((e=>Nu(e.value))),b=d.flatMap((e=>e.filter((e=>!Lu.has(e.type))).map((e=>Nu(e.value))))),w=[...new Set([...y,...b])].sort(((e,t)=>t.length-e.length)),C=0===w.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${w.join("|")}|[\\p{White_Space}]`,"gu"),x=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),S=new Map(x.map(((e,t)=>[e,t]))),k=new RegExp(`[${x.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:m,group:v,literals:C,numeral:k,index:e=>String(S.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)>18||(null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Lu=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Ru=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Iu(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Nu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $u(e={}){let{locale:t}=Ll();return f((()=>new Ou(t,e)),[t,e])}let zu=new Map;function Fu(e){let{locale:t}=Ll(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(zu.has(n))return zu.get(n);let r=new Intl.Collator(t,e);return zu.set(n,r),r}function Bu(e){let t=Fu({usage:"search",...e}),n=h(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n))),[t]),r=h(((e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n))),[t]),o=h(((e,n)=>{if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}),[t]);return f((()=>({startsWith:n,endsWith:r,contains:o})),[n,r,o])}var Ku;Ku={dateRange:e=>`${e.startDate} إلى ${e.endDate}`,dateSelected:e=>`${e.date} المحدد`,finishRangeSelectionPrompt:"انقر لإنهاء عملية تحديد نطاق التاريخ",maximumDate:"آخر تاريخ متاح",minimumDate:"أول تاريخ متاح",next:"التالي",previous:"السابق",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.dateRange}`,startRangeSelectionPrompt:"انقر لبدء عملية تحديد نطاق التاريخ",todayDate:e=>`اليوم، ${e.date}`,todayDateSelected:e=>`اليوم، ${e.date} محدد`};var Vu;Vu={dateRange:e=>`${e.startDate} до ${e.endDate}`,dateSelected:e=>`Избрано е ${e.date}`,finishRangeSelectionPrompt:"Натиснете, за да довършите избора на времеви интервал",maximumDate:"Последна налична дата",minimumDate:"Първа налична дата",next:"Напред",previous:"Назад",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натиснете, за да пристъпите към избора на времеви интервал",todayDate:e=>`Днес, ${e.date}`,todayDateSelected:e=>`Днес, ${e.date} са избрани`};var Hu;Hu={dateRange:e=>`${e.startDate} až ${e.endDate}`,dateSelected:e=>`Vybráno ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výběr rozsahu dat",maximumDate:"Poslední dostupné datum",minimumDate:"První dostupné datum",next:"Další",previous:"Předchozí",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím zahájíte výběr rozsahu dat",todayDate:e=>`Dnes, ${e.date}`,todayDateSelected:e=>`Dnes, vybráno ${e.date}`};var Uu;Uu={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klik for at fuldføre valg af datoområde",maximumDate:"Sidste ledige dato",minimumDate:"Første ledige dato",next:"Næste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.dateRange}`,startRangeSelectionPrompt:"Klik for at starte valg af datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var Wu;Wu={dateRange:e=>`${e.startDate} bis ${e.endDate}`,dateSelected:e=>`${e.date} ausgewählt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:"Letztes verfügbares Datum",minimumDate:"Erstes verfügbares Datum",next:"Weiter",previous:"Zurück",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:e=>`Heute, ${e.date}`,todayDateSelected:e=>`Heute, ${e.date} ausgewählt`};var Zu;Zu={dateRange:e=>`${e.startDate} έως ${e.endDate}`,dateSelected:e=>`Επιλέχθηκε ${e.date}`,finishRangeSelectionPrompt:"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών",maximumDate:"Τελευταία διαθέσιμη ημερομηνία",minimumDate:"Πρώτη διαθέσιμη ημερομηνία",next:"Επόμενο",previous:"Προηγούμενο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.dateRange}`,startRangeSelectionPrompt:"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών",todayDate:e=>`Σήμερα, ${e.date}`,todayDateSelected:e=>`Σήμερα, επιλέχτηκε ${e.date}`};var qu;qu={previous:"Previous",next:"Next",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.dateRange}`,todayDate:e=>`Today, ${e.date}`,todayDateSelected:e=>`Today, ${e.date} selected`,dateSelected:e=>`${e.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:e=>`${e.startDate} to ${e.endDate}`};var Gu;Gu={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:"Última fecha disponible",minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo seleccionado: ${e.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:e=>`Hoy, ${e.date}`,todayDateSelected:e=>`Hoy, ${e.date} seleccionado`};var Yu;Yu={dateRange:e=>`${e.startDate} kuni ${e.endDate}`,dateSelected:e=>`${e.date} valitud`,finishRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimise lõpetamiseks",maximumDate:"Viimane saadaolev kuupäev",minimumDate:"Esimene saadaolev kuupäev",next:"Järgmine",previous:"Eelmine",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.dateRange}`,startRangeSelectionPrompt:"Klõpsake kuupäevavahemiku valimiseks",todayDate:e=>`Täna, ${e.date}`,todayDateSelected:e=>`Täna, ${e.date} valitud`};var Xu;Xu={dateRange:e=>`${e.startDate} – ${e.endDate}`,dateSelected:e=>`${e.date} valittu`,finishRangeSelectionPrompt:"Lopeta päivämääräalueen valinta napsauttamalla tätä.",maximumDate:"Viimeinen varattavissa oleva päivämäärä",minimumDate:"Ensimmäinen varattavissa oleva päivämäärä",next:"Seuraava",previous:"Edellinen",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.dateRange}`,startRangeSelectionPrompt:"Aloita päivämääräalueen valinta napsauttamalla tätä.",todayDate:e=>`Tänään, ${e.date}`,todayDateSelected:e=>`Tänään, ${e.date} valittu`};var Ju;Ju={dateRange:e=>`${e.startDate} à ${e.endDate}`,dateSelected:e=>`${e.date} sélectionné`,finishRangeSelectionPrompt:"Cliquer pour finir de sélectionner la plage de dates",maximumDate:"Dernière date disponible",minimumDate:"Première date disponible",next:"Suivant",previous:"Précédent",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.dateRange}`,startRangeSelectionPrompt:"Cliquer pour commencer à sélectionner la plage de dates",todayDate:e=>`Aujourd'hui, ${e.date}`,todayDateSelected:e=>`Aujourd’hui, ${e.date} sélectionné`};var Qu;Qu={dateRange:e=>`${e.startDate} עד ${e.endDate}`,dateSelected:e=>`${e.date} נבחר`,finishRangeSelectionPrompt:"חץ כדי לסיים את בחירת טווח התאריכים",maximumDate:"תאריך פנוי אחרון",minimumDate:"תאריך פנוי ראשון",next:"הבא",previous:"הקודם",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.dateRange}`,startRangeSelectionPrompt:"לחץ כדי להתחיל בבחירת טווח התאריכים",todayDate:e=>`היום, ${e.date}`,todayDateSelected:e=>`היום, ${e.date} נבחר`};var ed;ed={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} odabran`,finishRangeSelectionPrompt:"Kliknite da dovršite raspon odabranih datuma",maximumDate:"Posljednji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sljedeći",previous:"Prethodni",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete raspon odabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, odabran ${e.date}`};var td;td={dateRange:e=>`${e.startDate}–${e.endDate}`,dateSelected:e=>`${e.date} kiválasztva`,finishRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének befejezéséhez",maximumDate:"Utolsó elérhető dátum",minimumDate:"Az első elérhető dátum",next:"Következő",previous:"Előző",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.dateRange}`,startRangeSelectionPrompt:"Kattintson a dátumtartomány kijelölésének indításához",todayDate:e=>`Ma, ${e.date}`,todayDateSelected:e=>`Ma, ${e.date} kijelölve`};var nd;nd={dateRange:e=>`Da ${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selezionata`,finishRangeSelectionPrompt:"Fai clic per completare la selezione dell’intervallo di date",maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: ${e.dateRange}`,startRangeSelectionPrompt:"Fai clic per selezionare l’intervallo di date",todayDate:e=>`Oggi, ${e.date}`,todayDateSelected:e=>`Oggi, ${e.date} selezionata`};var rd;rd={dateRange:e=>`${e.startDate} から ${e.endDate}`,dateSelected:e=>`${e.date} を選択`,finishRangeSelectionPrompt:"クリックして日付範囲の選択を終了",maximumDate:"最終利用可能日",minimumDate:"最初の利用可能日",next:"次へ",previous:"前へ",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.dateRange}`,startRangeSelectionPrompt:"クリックして日付範囲の選択を開始",todayDate:e=>`本日、${e.date}`,todayDateSelected:e=>`本日、${e.date} を選択`};var od;od={dateRange:e=>`${e.startDate} ~ ${e.endDate}`,dateSelected:e=>`${e.date} 선택됨`,finishRangeSelectionPrompt:"날짜 범위 선택을 완료하려면 클릭하십시오.",maximumDate:"마지막으로 사용 가능한 일자",minimumDate:"처음으로 사용 가능한 일자",next:"다음",previous:"이전",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.dateRange}`,startRangeSelectionPrompt:"날짜 범위 선택을 시작하려면 클릭하십시오.",todayDate:e=>`오늘, ${e.date}`,todayDateSelected:e=>`오늘, ${e.date} 선택됨`};var id;id={dateRange:e=>`Nuo ${e.startDate} iki ${e.endDate}`,dateSelected:e=>`Pasirinkta ${e.date}`,finishRangeSelectionPrompt:"Spustelėkite, kad baigtumėte pasirinkti datų intervalą",maximumDate:"Paskutinė galima data",minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: ${e.dateRange}`,startRangeSelectionPrompt:"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą",todayDate:e=>`Šiandien, ${e.date}`,todayDateSelected:e=>`Šiandien, pasirinkta ${e.date}`};var ad;ad={dateRange:e=>`No ${e.startDate} līdz ${e.endDate}`,dateSelected:e=>`Atlasīts: ${e.date}`,finishRangeSelectionPrompt:"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi",maximumDate:"Pēdējais pieejamais datums",minimumDate:"Pirmais pieejamais datums",next:"Tālāk",previous:"Atpakaļ",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: ${e.dateRange}`,startRangeSelectionPrompt:"Noklikšķiniet, lai sāktu datumu diapazona atlasi",todayDate:e=>`Šodien, ${e.date}`,todayDateSelected:e=>`Atlasīta šodiena, ${e.date}`};var ld;ld={dateRange:e=>`${e.startDate} til ${e.endDate}`,dateSelected:e=>`${e.date} valgt`,finishRangeSelectionPrompt:"Klikk for å fullføre valg av datoområde",maximumDate:"Siste tilgjengelige dato",minimumDate:"Første tilgjengelige dato",next:"Neste",previous:"Forrige",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.dateRange}`,startRangeSelectionPrompt:"Klikk for å starte valg av datoområde",todayDate:e=>`I dag, ${e.date}`,todayDateSelected:e=>`I dag, ${e.date} valgt`};var sd;sd={dateRange:e=>`${e.startDate} tot ${e.endDate}`,dateSelected:e=>`${e.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:e=>`Vandaag, ${e.date}`,todayDateSelected:e=>`Vandaag, ${e.date} geselecteerd`};var cd;cd={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`Wybrano ${e.date}`,finishRangeSelectionPrompt:"Kliknij, aby zakończyć wybór zakresu dat",maximumDate:"Ostatnia dostępna data",minimumDate:"Pierwsza dostępna data",next:"Dalej",previous:"Wstecz",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknij, aby rozpocząć wybór zakresu dat",todayDate:e=>`Dzisiaj, ${e.date}`,todayDateSelected:e=>`Dzisiaj wybrano ${e.date}`};var ud;ud={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para concluir a seleção do intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para iniciar a seleção do intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var dd;dd={dateRange:e=>`${e.startDate} a ${e.endDate}`,dateSelected:e=>`${e.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:"Última data disponível",minimumDate:"Primeira data disponível",next:"Próximo",previous:"Anterior",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.dateRange}`,startRangeSelectionPrompt:"Clique para começar a selecionar o intervalo de datas",todayDate:e=>`Hoje, ${e.date}`,todayDateSelected:e=>`Hoje, ${e.date} selecionado`};var fd;fd={dateRange:e=>`De la ${e.startDate} până la ${e.endDate}`,dateSelected:e=>`${e.date} selectată`,finishRangeSelectionPrompt:"Apăsaţi pentru a finaliza selecţia razei pentru dată",maximumDate:"Ultima dată disponibilă",minimumDate:"Prima dată disponibilă",next:"Următorul",previous:"Înainte",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: ${e.dateRange}`,startRangeSelectionPrompt:"Apăsaţi pentru a începe selecţia razei pentru dată",todayDate:e=>`Astăzi, ${e.date}`,todayDateSelected:e=>`Azi, ${e.date} selectată`};var pd;pd={dateRange:e=>`С ${e.startDate} по ${e.endDate}`,dateSelected:e=>`Выбрано ${e.date}`,finishRangeSelectionPrompt:"Щелкните, чтобы завершить выбор диапазона дат",maximumDate:"Последняя доступная дата",minimumDate:"Первая доступная дата",next:"Далее",previous:"Назад",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Щелкните, чтобы начать выбор диапазона дат",todayDate:e=>`Сегодня, ${e.date}`,todayDateSelected:e=>`Сегодня, выбрано ${e.date}`};var hd;hd={dateRange:e=>`Od ${e.startDate} do ${e.endDate}`,dateSelected:e=>`Vybratý dátum ${e.date}`,finishRangeSelectionPrompt:"Kliknutím dokončíte výber rozsahu dátumov",maximumDate:"Posledný dostupný dátum",minimumDate:"Prvý dostupný dátum",next:"Nasledujúce",previous:"Predchádzajúce",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknutím spustíte výber rozsahu dátumov",todayDate:e=>`Dnes ${e.date}`,todayDateSelected:e=>`Vybratý dnešný dátum ${e.date}`};var gd;gd={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izbrano`,finishRangeSelectionPrompt:"Kliknite za dokončanje izbire datumskega obsega",maximumDate:"Zadnji razpoložljivi datum",minimumDate:"Prvi razpoložljivi datum",next:"Naprej",previous:"Nazaj",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite za začetek izbire datumskega obsega",todayDate:e=>`Danes, ${e.date}`,todayDateSelected:e=>`Danes, ${e.date} izbrano`};var md;md={dateRange:e=>`${e.startDate} do ${e.endDate}`,dateSelected:e=>`${e.date} izabran`,finishRangeSelectionPrompt:"Kliknite da dovršite opseg izabranih datuma",maximumDate:"Zadnji raspoloživi datum",minimumDate:"Prvi raspoloživi datum",next:"Sledeći",previous:"Prethodni",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani period: ${e.dateRange}`,startRangeSelectionPrompt:"Kliknite da započnete opseg izabranih datuma",todayDate:e=>`Danas, ${e.date}`,todayDateSelected:e=>`Danas, izabran ${e.date}`};var vd;vd={dateRange:e=>`${e.startDate} till ${e.endDate}`,dateSelected:e=>`${e.date} har valts`,finishRangeSelectionPrompt:"Klicka för att avsluta val av datumintervall",maximumDate:"Sista tillgängliga datum",minimumDate:"Första tillgängliga datum",next:"Nästa",previous:"Föregående",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.dateRange}`,startRangeSelectionPrompt:"Klicka för att välja datumintervall",todayDate:e=>`Idag, ${e.date}`,todayDateSelected:e=>`Idag, ${e.date} har valts`};var yd;yd={dateRange:e=>`${e.startDate} - ${e.endDate}`,dateSelected:e=>`${e.date} seçildi`,finishRangeSelectionPrompt:"Tarih aralığı seçimini tamamlamak için tıklayın",maximumDate:"Son müsait tarih",minimumDate:"İlk müsait tarih",next:"Sonraki",previous:"Önceki",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.dateRange}`,startRangeSelectionPrompt:"Tarih aralığı seçimini başlatmak için tıklayın",todayDate:e=>`Bugün, ${e.date}`,todayDateSelected:e=>`Bugün, ${e.date} seçildi`};var bd;bd={dateRange:e=>`${e.startDate} — ${e.endDate}`,dateSelected:e=>`Вибрано ${e.date}`,finishRangeSelectionPrompt:"Натисніть, щоб завершити вибір діапазону дат",maximumDate:"Остання доступна дата",minimumDate:"Перша доступна дата",next:"Наступний",previous:"Попередній",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.dateRange}`,startRangeSelectionPrompt:"Натисніть, щоб почати вибір діапазону дат",todayDate:e=>`Сьогодні, ${e.date}`,todayDateSelected:e=>`Сьогодні, вибрано ${e.date}`};var wd;wd={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已选择 ${e.date}`,finishRangeSelectionPrompt:"单击以完成选择日期范围",maximumDate:"最后一个可用日期",minimumDate:"第一个可用日期",next:"下一页",previous:"上一页",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.dateRange}`,startRangeSelectionPrompt:"单击以开始选择日期范围",todayDate:e=>`今天,即 ${e.date}`,todayDateSelected:e=>`已选择今天,即 ${e.date}`};var Cd;Cd={dateRange:e=>`${e.startDate} 至 ${e.endDate}`,dateSelected:e=>`已選取 ${e.date}`,finishRangeSelectionPrompt:"按一下以完成選取日期範圍",maximumDate:"最後一個可用日期",minimumDate:"第一個可用日期",next:"下一頁",previous:"上一頁",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.dateRange}`,startRangeSelectionPrompt:"按一下以開始選取日期範圍",todayDate:e=>`今天,${e.date}`,todayDateSelected:e=>`已選取今天,${e.date}`};var xd={};function Sd(e){return e&&e.__esModule?e.default:e}xd={"ar-AE":Ku,"bg-BG":Vu,"cs-CZ":Hu,"da-DK":Uu,"de-DE":Wu,"el-GR":Zu,"en-US":qu,"es-ES":Gu,"et-EE":Yu,"fi-FI":Xu,"fr-FR":Ju,"he-IL":Qu,"hr-HR":ed,"hu-HU":td,"it-IT":nd,"ja-JP":rd,"ko-KR":od,"lt-LT":id,"lv-LV":ad,"nb-NO":ld,"nl-NL":sd,"pl-PL":cd,"pt-BR":ud,"pt-PT":dd,"ro-RO":fd,"ru-RU":pd,"sk-SK":hd,"sl-SI":gd,"sr-SP":md,"sv-SE":vd,"tr-TR":yd,"uk-UA":bd,"zh-CN":wd,"zh-TW":Cd};const kd=new WeakMap;function Ed(e){return"gregory"===(null==e?void 0:e.calendar.identifier)&&"BC"===e.era?"short":void 0}function Od(e,t,n,r){let o=Hl(Sd(xd),"@react-aria/calendar"),i=Ed(e)||Ed(t),a=wu({month:"long",year:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n}),l=wu({month:"long",year:"numeric",day:"numeric",era:i,calendar:e.calendar.identifier,timeZone:n});return f((()=>{if(es(e,us(e))){if(es(t,ds(e)))return a.format(e.toDate(n));if(es(t,ds(t)))return r?Dd(a,o,e,t,n):a.formatRange(e.toDate(n),t.toDate(n))}return r?Dd(l,o,e,t,n):l.formatRange(e.toDate(n),t.toDate(n))}),[e,t,a,l,o,n,r])}function Dd(e,t,n,r,o){let i=e.formatRangeToParts(n.toDate(o),r.toDate(o)),a=-1;for(let e=0;e<i.length;e++){let t=i[e];if("shared"===t.source&&"literal"===t.type)a=e;else if("endRange"===t.source)break}let l="",s="";for(let e=0;e<i.length;e++)e<a?l+=i[e].value:e>a&&(s+=i[e].value);return t.format("dateRange",{startDate:l,endDate:s})}const Pd=7e3;let Td=null;function Ad(e,t="assertive",n=Pd){Td?Td.announce(e,t,n):(Td=new Md,("boolean"==typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:"undefined"!=typeof jest)?Td.announce(e,t,n):setTimeout((()=>{(null==Td?void 0:Td.isAttached())&&(null==Td||Td.announce(e,t,n))}),100))}class Md{isAttached(){var e;return null===(e=this.node)||void 0===e?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",n=Pd){var r,o;if(!this.node)return;let i=document.createElement("div");"object"==typeof e?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,"assertive"===t?null===(r=this.assertiveLog)||void 0===r||r.appendChild(i):null===(o=this.politeLog)||void 0===o||o.appendChild(i),""!==e&&setTimeout((()=>{i.remove()}),n)}clear(e){this.node&&(e&&"assertive"!==e||!this.assertiveLog||(this.assertiveLog.innerHTML=""),e&&"polite"!==e||!this.politeLog||(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,"undefined"!=typeof document&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}function _d(e,t){let n=Hl(function(e){return e&&e.__esModule?e.default:e}(xd),"@react-aria/calendar"),r=fo(e),o=Od(t.visibleRange.start,t.visibleRange.end,t.timeZone,!1),i=Od(t.visibleRange.start,t.visibleRange.end,t.timeZone,!0);$o((()=>{t.isFocused||Ad(i)}),[i]);let a=function(e){let t,n,r=Hl(Sd(xd),"@react-aria/calendar");"highlightedRange"in e?({start:t,end:n}=e.highlightedRange||{}):t=n=e.value;let o=wu({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Ed(t)||Ed(n),timeZone:e.timeZone}),i="anchorDate"in e?e.anchorDate:null;return f((()=>{if(!i&&t&&n){if(es(t,n)){let n=o.format(t.toDate(e.timeZone));return r.format("selectedDateDescription",{date:n})}{let i=Dd(o,r,t,n,e.timeZone);return r.format("selectedRangeDescription",{dateRange:i})}}return""}),[t,n,i,e.timeZone,r,o])}(t);$o((()=>{a&&Ad(a,"polite",4e3)}),[a]);let s=Qr([Boolean(e.errorMessage),e.isInvalid,e.validationState]);kd.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:e["aria-labelledby"],errorMessageId:s,selectedDateDescription:a});let[c,u]=l(!1),d=e.isDisabled||t.isNextVisibleRangeInvalid();d&&c&&(u(!1),t.setFocused(!0));let[p,h]=l(!1),g=e.isDisabled||t.isPreviousVisibleRangeInvalid();return g&&p&&(h(!1),t.setFocused(!0)),{calendarProps:io(r,Io({id:e.id,"aria-label":[e["aria-label"],i].filter(Boolean).join(", "),"aria-labelledby":e["aria-labelledby"]}),{role:"application","aria-describedby":e["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>t.focusNextPage(),"aria-label":n.format("next"),isDisabled:d,onFocusChange:u},prevButtonProps:{onPress:()=>t.focusPreviousPage(),"aria-label":n.format("previous"),isDisabled:g,onFocusChange:h},errorMessageProps:{id:s},title:o}}function jd(e,t,n){let{date:r,isDisabled:o}=e,{errorMessageId:l,selectedDateDescription:s}=kd.get(t),c=Hl(function(e){return e&&e.__esModule?e.default:e}(xd),"@react-aria/calendar"),u=wu({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Ed(r),timeZone:t.timeZone}),d=t.isSelected(r),p=t.isCellFocused(r);o=o||t.isCellDisabled(r);let h=t.isCellUnavailable(r),g=!o&&!h,m=t.isValueInvalid&&("highlightedRange"in t?!t.anchorDate&&t.highlightedRange&&r.compare(t.highlightedRange.start)>=0&&r.compare(t.highlightedRange.end)<=0:t.value&&es(t.value,r));m&&(d=!0),r=Qo(r,ts);let v=f((()=>r.toDate(t.timeZone)),[r,t.timeZone]),y=function(e,t){return es(e,os(t))}(r,t.timeZone),b=f((()=>{let e="";return"highlightedRange"in t&&t.value&&!t.anchorDate&&(es(r,t.value.start)||es(r,t.value.end))&&(e=s+", "),e+=u.format(v),y?e=c.format(d?"todayDateSelected":"todayDate",{date:e}):d&&(e=c.format("dateSelected",{date:e})),t.minValue&&es(r,t.minValue)?e+=", "+c.format("minimumDate"):t.maxValue&&es(r,t.maxValue)&&(e+=", "+c.format("maximumDate")),e}),[u,v,c,d,y,r,t,s]),w="";"anchorDate"in t&&p&&!t.isReadOnly&&g&&(w=t.anchorDate?c.format("finishRangeSelectionPrompt"):c.format("startRangeSelectionPrompt"));let C=Zo(w),x=a(!1),S=a(!1),k=a(null),{pressProps:E,isPressed:O}=Qi({shouldCancelOnPointerExit:"anchorDate"in t&&!!t.anchorDate,preventFocusOnPress:!0,isDisabled:!g||t.isReadOnly,onPressStart(e){if(t.isReadOnly)t.setFocusedDate(r);else if("highlightedRange"in t&&!t.anchorDate&&("mouse"===e.pointerType||"touch"===e.pointerType)){if(t.highlightedRange&&!m){if(es(r,t.highlightedRange.start))return t.setAnchorDate(t.highlightedRange.end),t.setFocusedDate(r),t.setDragging(!0),void(S.current=!0);if(es(r,t.highlightedRange.end))return t.setAnchorDate(t.highlightedRange.start),t.setFocusedDate(r),t.setDragging(!0),void(S.current=!0)}let n=()=>{t.setDragging(!0),k.current=null,t.selectDate(r),t.setFocusedDate(r),x.current=!0};"touch"===e.pointerType?k.current=setTimeout(n,200):n()}},onPressEnd(){S.current=!1,x.current=!1,clearTimeout(k.current),k.current=null},onPress(){"anchorDate"in t||t.isReadOnly||(t.selectDate(r),t.setFocusedDate(r))},onPressUp(e){if(!t.isReadOnly&&("anchorDate"in t&&k.current&&(t.selectDate(r),t.setFocusedDate(r)),"anchorDate"in t))if(S.current)t.setAnchorDate(r);else if(t.anchorDate&&!x.current)t.selectDate(r),t.setFocusedDate(r);else if("keyboard"!==e.pointerType||t.anchorDate)"virtual"===e.pointerType&&(t.selectDate(r),t.setFocusedDate(r));else{t.selectDate(r);let e=r.add({days:1});t.isInvalid(e)&&(e=r.subtract({days:1})),t.isInvalid(e)||t.setFocusedDate(e)}}}),D=null;o||(D=es(r,t.focusedDate)?0:-1),i((()=>{p&&n.current&&(po(n.current),"pointer"!==Ma()&&document.activeElement===n.current&&Xo(n.current,{containingElement:Ko(n.current)}))}),[p,n]);let P=wu({day:"numeric",timeZone:t.timeZone,calendar:r.calendar.identifier}),T=f((()=>P.formatToParts(v).find((e=>"day"===e.type)).value),[P,v]);return{cellProps:{role:"gridcell","aria-disabled":!g||null,"aria-selected":d||null,"aria-invalid":m||null},buttonProps:io(E,{onFocus(){o||t.setFocusedDate(r)},tabIndex:D,role:"button","aria-disabled":!g||null,"aria-label":b,"aria-invalid":m||null,"aria-describedby":[m?l:null,C["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(e){"highlightDate"in t&&("touch"!==e.pointerType||t.isDragging)&&g&&t.highlightDate(r)},onPointerDown(e){"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId)},onContextMenu(e){e.preventDefault()}}),isPressed:O,isFocused:p,isSelected:d,isDisabled:o,isUnavailable:h,isOutsideVisibleRange:r.compare(t.visibleRange.start)<0||r.compare(t.visibleRange.end)>0,isInvalid:m,formattedDate:T}}function Ld(e,t,n){let{validationBehavior:r,focus:o}=e;Zr((()=>{if("native"===r&&(null==n?void 0:n.current)){let r=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(r),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=n.current).validity.valid,validationDetails:Rd(e),validationErrors:e.validationMessage?[e.validationMessage]:[]})}var e}));let a=qr((()=>{t.resetValidation()})),l=qr((e=>{var r;t.displayValidation.isInvalid||t.commitValidation();let i=null==n||null===(r=n.current)||void 0===r?void 0:r.form;var a;!e.defaultPrevented&&n&&i&&function(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}(i)===n.current&&(o?o():null===(a=n.current)||void 0===a||a.focus(),_a("keyboard"));e.preventDefault()})),s=qr((()=>{t.commitValidation()}));i((()=>{let e=null==n?void 0:n.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",l),e.addEventListener("change",s),null==t||t.addEventListener("reset",a),()=>{e.removeEventListener("invalid",l),e.removeEventListener("change",s),null==t||t.removeEventListener("reset",a)}}),[n,l,s,a,r])}function Rd(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}const Id={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Nd={...Id,customError:!0,valid:!1},$d={isInvalid:!1,validationDetails:Id,validationErrors:[]},zd=d({}),Fd="__formValidationState"+Date.now();function Bd(e){if(e[Fd]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[Fd];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return function(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:s,validate:c,validationBehavior:u="aria"}=e;n&&(t||(t="invalid"===n));let d=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:Nd}:null,h=f((()=>Vd(function(e,t){if("function"==typeof e){let n=e(t);if(n&&"boolean"!=typeof n)return Kd(n)}return[]}(c,o))),[c,o]);(null==s?void 0:s.validationDetails.valid)&&(s=null);let g=p(zd),m=f((()=>r?Array.isArray(r)?r.flatMap((e=>Kd(g[e]))):Kd(g[r]):[]),[g,r]),[v,y]=l(g),[b,w]=l(!1);g!==v&&(y(g),w(!1));let C=f((()=>Vd(b?[]:m)),[b,m]),x=a($d),[S,k]=l($d),E=a($d),O=()=>{if(!D)return;P(!1);let e=h||s||x.current;Hd(e,E.current)||(E.current=e,k(e))},[D,P]=l(!1);return i(O),{realtimeValidation:d||C||h||s||$d,displayValidation:"native"===u?d||C||S:d||C||h||s||S,updateValidation(e){"aria"!==u||Hd(S,e)?x.current=e:k(e)},resetValidation(){let e=$d;Hd(e,E.current)||(E.current=e,k(e)),"native"===u&&P(!1),w(!0)},commitValidation(){"native"===u&&P(!0),w(!0)}}}(e)}function Kd(e){return e?Array.isArray(e)?e:[e]:[]}function Vd(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Nd}:null}function Hd(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every(((e,n)=>e===t.validationErrors[n]))&&Object.entries(e.validationDetails).every((([e,n])=>t.validationDetails[e]===n))}function Ud(...e){let t=new Set,n=!1,r={...Id};for(let a of e){var o,i;for(let e of a.validationErrors)t.add(e);n||(n=a.isInvalid);for(let e in r)(o=r)[i=e]||(o[i]=a.validationDetails[e])}return r.valid=!n,{isInvalid:n,validationErrors:[...t],validationDetails:r}}function Wd(e,t,n){let r=Bd({...e,value:t.isSelected}),{isInvalid:o,validationErrors:a,validationDetails:l}=r.displayValidation,{labelProps:s,inputProps:c,isSelected:u,isPressed:d,isDisabled:f,isReadOnly:p}=function(e,t,n){let{isDisabled:r=!1,isReadOnly:o=!1,value:i,name:a,children:l,"aria-label":s,"aria-labelledby":c,validationState:u="valid",isInvalid:d}=e;null!=l||null!=s||null!=c||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:f,isPressed:p}=Qi({isDisabled:r}),{pressProps:h,isPressed:g}=Qi({isDisabled:r||o,onPress(){t.toggle()}}),{focusableProps:m}=kl(e,n),v=io(f,m),y=fo(e,{labelable:!0});return ei(n,t.isSelected,t.setSelected),{labelProps:io(h,{onClick:e=>e.preventDefault()}),inputProps:io(y,{"aria-invalid":d||"invalid"===u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,...null==i?{}:{value:i},name:a,type:"checkbox",...v}),isSelected:t.isSelected,isPressed:p||g,isDisabled:r,isReadOnly:o,isInvalid:d||"invalid"===u}}({...e,isInvalid:o},t,n);Ld(e,r,n);let{isIndeterminate:h,isRequired:g,validationBehavior:m="aria"}=e;return i((()=>{n.current&&(n.current.indeterminate=!!h)})),{labelProps:s,inputProps:{...c,checked:u,"aria-required":g&&"aria"===m||void 0,required:g&&"native"===m},isSelected:u,isPressed:d,isDisabled:f,isReadOnly:p,isInvalid:o,validationErrors:a,validationDetails:l}}const Zd=new WeakMap;function qd(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Xr(t);let a=Xr(),l={};return n?(r=r?`${a} ${r}`:a,l={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:Io({id:t,"aria-label":o,"aria-labelledby":r})}}function Gd(e){let{description:t,errorMessage:n,isInvalid:r,validationState:o}=e,{labelProps:i,fieldProps:a}=qd(e),l=Qr([Boolean(t),Boolean(n),r,o]),s=Qr([Boolean(t),Boolean(n),r,o]);return a=io(a,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:l},errorMessageProps:{id:s}}}function Yd(e={}){let{isReadOnly:t}=e,[n,r]=ti(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}function Xd(e,t,n){let r="+"===e?t+n:t-n;if(t%1!=0||n%1!=0){const o=t.toString().split("."),i=n.toString().split("."),a=o[1]&&o[1].length||0,l=i[1]&&i[1].length||0,s=Math.pow(10,Math.max(a,l));t=Math.round(t*s),n=Math.round(n*s),r="+"===e?t+n:t-n,r/=s}return r}const Jd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Qd(e={}){let{style:t,isFocusable:n}=e,[r,o]=l(!1),{focusWithinProps:i}=Ia({isDisabled:!n,onFocusWithinChange:e=>o(e)});return{visuallyHiddenProps:{...i,style:f((()=>r?t:t?{...Jd,...t}:Jd),[r])}}}function ef(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:l}=Qd(e);return o.createElement(n,io(a,l),t)}function tf(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:a=!1,type:l="text",validationBehavior:s="aria"}=e,[c,u]=ti(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=kl(e,t),f=Bd({...e,value:c}),{isInvalid:p,validationErrors:h,validationDetails:g}=f.displayValidation,{labelProps:m,fieldProps:v,descriptionProps:y,errorMessageProps:b}=Gd({...e,isInvalid:p,errorMessage:e.errorMessage||h}),w=fo(e,{labelable:!0});const C={type:l,pattern:e.pattern};return ei(t,c,u),Ld(e,f,t),i((()=>{if(t.current instanceof no(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}}),[t]),{labelProps:m,inputProps:io(w,"input"===n?C:void 0,{disabled:r,readOnly:a,required:o&&"native"===s,"aria-required":o&&"aria"===s||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:e=>u(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...v}),descriptionProps:y,errorMessageProps:b,isInvalid:p,validationErrors:h,validationDetails:g}}function nf(){return"undefined"!=typeof window&&window.InputEvent&&"function"==typeof InputEvent.prototype.getTargetRanges}var rf={};function of(e){const t=a(void 0);let{value:n,textValue:r,minValue:o,maxValue:l,isDisabled:s,isReadOnly:c,isRequired:u,onIncrement:d,onIncrementPage:f,onDecrement:p,onDecrementPage:h,onDecrementToMin:g,onIncrementToMax:m}=e;const v=Hl(function(e){return e&&e.__esModule?e.default:e}(rf),"@react-aria/spinbutton"),y=()=>clearTimeout(t.current);i((()=>()=>y()),[]);let b=a(!1),w=()=>{b.current=!0},C=()=>{b.current=!1},x=""===r?v.format("Empty"):(r||`${n}`).replace("-","−");i((()=>{var e;b.current&&(e="assertive",Td&&Td.clear(e),Ad(x,"assertive"))}),[x]);const S=qr((e=>{y(),null==d||d(),t.current=window.setTimeout((()=>{(void 0===l||isNaN(l)||void 0===n||isNaN(n)||n<l)&&S(60)}),e)})),k=qr((e=>{y(),null==p||p(),t.current=window.setTimeout((()=>{(void 0===o||isNaN(o)||void 0===n||isNaN(n)||n>o)&&k(60)}),e)}));let E=e=>{e.preventDefault()},{addGlobalListener:O,removeAllGlobalListeners:D}=Ro();return{spinButtonProps:{role:"spinbutton","aria-valuenow":void 0===n||isNaN(n)?void 0:n,"aria-valuetext":x,"aria-valuemin":o,"aria-valuemax":l,"aria-disabled":s||void 0,"aria-readonly":c||void 0,"aria-required":u||void 0,onKeyDown:e=>{if(!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||c))switch(e.key){case"PageUp":if(f){e.preventDefault(),null==f||f();break}case"ArrowUp":case"Up":d&&(e.preventDefault(),null==d||d());break;case"PageDown":if(h){e.preventDefault(),null==h||h();break}case"ArrowDown":case"Down":p&&(e.preventDefault(),null==p||p());break;case"Home":g&&(e.preventDefault(),null==g||g());break;case"End":m&&(e.preventDefault(),null==m||m())}},onFocus:w,onBlur:C},incrementButtonProps:{onPressStart:()=>{S(400),O(window,"contextmenu",E)},onPressEnd:()=>{y(),D()},onFocus:w,onBlur:C},decrementButtonProps:{onPressStart:()=>{k(400),O(window,"contextmenu",E)},onPressEnd:()=>{y(),D()},onFocus:w,onBlur:C}}}rf={"ar-AE":{Empty:"فارغ"},"bg-BG":{Empty:"Изпразни"},"cs-CZ":{Empty:"Prázdné"},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:"Άδειο"},"en-US":{Empty:"Empty"},"es-ES":{Empty:"Vacío"},"et-EE":{Empty:"Tühjenda"},"fi-FI":{Empty:"Tyhjä"},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:"ריק"},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:"Üres"},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:"空"},"ko-KR":{Empty:"비어 있음"},"lt-LT":{Empty:"Tuščias"},"lv-LV":{Empty:"Tukšs"},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:"Не заполнено"},"sk-SK":{Empty:"Prázdne"},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:"Boş"},"uk-UA":{Empty:"Пусто"},"zh-CN":{Empty:"空"},"zh-TW":{Empty:"空白"}};var af;af={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var lf;lf={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var sf;sf={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var cf;cf={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var uf;uf={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var df;df={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var ff;ff={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var pf;pf={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var hf;hf={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var gf;gf={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var mf;mf={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var vf;vf={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var yf;yf={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var bf;bf={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var wf;wf={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var Cf;Cf={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var xf;xf={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var Sf;Sf={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var kf;kf={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var Ef;Ef={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var Of;Of={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var Df;Df={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var Pf;Pf={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Tf;Tf={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var Af;Af={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var Mf;Mf={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var _f;_f={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var jf;jf={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var Lf;Lf={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var Rf;Rf={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var If;If={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var Nf;Nf={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var $f;$f={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var zf;zf={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"};var Ff={};function Bf(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:s,isDisabled:c,isReadOnly:u,isRequired:d,minValue:p,maxValue:g,autoFocus:m,label:v,formatOptions:y,onBlur:b=(()=>{}),onFocus:w,onFocusChange:C,onKeyDown:x,onKeyUp:S,description:k,errorMessage:E,isWheelDisabled:O,...D}=e,{increment:P,incrementToMax:T,decrement:A,decrementToMin:M,numberValue:_,inputValue:j,commit:L,commitValidation:R}=t;const I=Hl(function(e){return e&&e.__esModule?e.default:e}(Ff),"@react-aria/numberfield");let N=Xr(r),{focusProps:$}=ga({onBlur(){L()}}),z=$u(y),F=f((()=>z.resolvedOptions()),[z]),B=$u({...y,currencySign:void 0}),K=f((()=>isNaN(_)?"":B.format(_)),[B,_]),{spinButtonProps:V,incrementButtonProps:H,decrementButtonProps:U}=of({isDisabled:c,isReadOnly:u,isRequired:d,maxValue:g,minValue:p,onIncrement:P,onIncrementToMax:T,onDecrement:A,onDecrementToMin:M,value:_,textValue:K}),[W,Z]=l(!1),{focusWithinProps:q}=Ia({isDisabled:c,onFocusWithinChange:Z}),G=h((e=>{Math.abs(e.deltaY)<=Math.abs(e.deltaX)||(e.deltaY>0?P():e.deltaY<0&&A())}),[A,P]);var Y;!function(e,t){let{onScroll:n,isDisabled:r}=e,o=h((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);qo(t,"wheel",r?void 0:o)}({onScroll:G,isDisabled:O||c||u||!W},n);let X=(null!==(Y=F.maximumFractionDigits)&&void 0!==Y?Y:0)>0,J=void 0===t.minValue||isNaN(t.minValue)||t.minValue<0,Q="numeric";bo()?J?Q="text":X&&(Q="decimal"):Eo()&&(J?Q="numeric":X&&(Q="decimal"));let ee=fo(e),te=h((e=>{"Enter"===e.key?(L(),R()):e.continuePropagation()}),[L,R]),{isInvalid:ne,validationErrors:re,validationDetails:oe}=t.displayValidation,{labelProps:ie,inputProps:ae,descriptionProps:le,errorMessageProps:se}=function(e,t,n){let r=qr((e=>{let r,o=n.current;switch(e.inputType){case"historyUndo":case"historyRedo":case"insertLineBreak":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":r=o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentForward":r=o.selectionEnd===o.selectionStart?o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd+1):o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteContentBackward":r=o.selectionEnd===o.selectionStart?o.value.slice(0,o.selectionStart-1)+o.value.slice(o.selectionStart):o.value.slice(0,o.selectionStart)+o.value.slice(o.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":r=o.value.slice(o.selectionStart);break;default:null!=e.data&&(r=o.value.slice(0,o.selectionStart)+e.data+o.value.slice(o.selectionEnd))}null!=r&&t.validate(r)||e.preventDefault()}));i((()=>{if(!nf())return;let e=n.current;return e.addEventListener("beforeinput",r,!1),()=>{e.removeEventListener("beforeinput",r,!1)}}),[n,r]);let o=nf()?null:e=>{let n=e.target.value.slice(0,e.target.selectionStart)+e.data+e.target.value.slice(e.target.selectionEnd);t.validate(n)||e.preventDefault()},{labelProps:l,inputProps:s,descriptionProps:c,errorMessageProps:u,...d}=tf(e,n),f=a(null);return{inputProps:io(s,{onBeforeInput:o,onCompositionStart(){let{value:e,selectionStart:t,selectionEnd:r}=n.current;f.current={value:e,selectionStart:t,selectionEnd:r}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:e,selectionStart:r,selectionEnd:o}=f.current;n.current.value=e,n.current.setSelectionRange(r,o),t.setInputValue(e)}}}),labelProps:l,descriptionProps:c,errorMessageProps:u,...d}}({...D,...ee,name:void 0,label:v,autoFocus:m,isDisabled:c,isReadOnly:u,isRequired:d,validate:void 0,[Fd]:t,value:j,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||void 0,"aria-labelledby":e["aria-labelledby"]||void 0,id:N,type:"text",inputMode:Q,onChange:e=>{t.validate(e)&&t.setInputValue(e)},onBlur:b,onFocus:w,onFocusChange:C,onKeyDown:f((()=>eo(te,x)),[te,x]),onKeyUp:S,description:k,errorMessage:E},t,n);ei(n,t.numberValue,t.setNumberValue);let ce=io(V,$,ae,{role:null,"aria-roledescription":Co()?null:I.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"});"native"===e.validationBehavior&&(ce["aria-required"]=void 0);let ue,de=e=>{var t;document.activeElement!==n.current&&("mouse"===e.pointerType?null===(t=n.current)||void 0===t||t.focus():e.target.focus())},fe=e["aria-label"]||("string"==typeof e.label?e.label:"");fe||(ue=null!=e.label?ie.id:e["aria-labelledby"]);let pe=Xr(),he=Xr();return{groupProps:{...q,role:"group","aria-disabled":c,"aria-invalid":ne?"true":void 0},labelProps:ie,inputProps:ce,incrementButtonProps:io(H,{"aria-label":s||I.format("increase",{fieldLabel:fe}).trim(),id:ue&&!s?pe:null,"aria-labelledby":ue&&!s?`${pe} ${ue}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:de}),decrementButtonProps:io(U,{"aria-label":o||I.format("decrease",{fieldLabel:fe}).trim(),id:ue&&!o?he:null,"aria-labelledby":ue&&!o?`${he} ${ue}`:null,"aria-controls":N,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:de}),errorMessageProps:se,descriptionProps:le,isInvalid:ne,validationErrors:re,validationDetails:oe}}Ff={"ar-AE":af,"bg-BG":lf,"cs-CZ":sf,"da-DK":cf,"de-DE":uf,"el-GR":df,"en-US":ff,"es-ES":pf,"et-EE":hf,"fi-FI":gf,"fr-FR":mf,"he-IL":vf,"hr-HR":yf,"hu-HU":bf,"it-IT":wf,"ja-JP":Cf,"ko-KR":xf,"lt-LT":Sf,"lv-LV":kf,"nb-NO":Ef,"nl-NL":Of,"pl-PL":Df,"pt-BR":Pf,"pt-PT":Tf,"ro-RO":Af,"ru-RU":Mf,"sk-SK":_f,"sl-SI":jf,"sr-SP":Lf,"sv-SE":Rf,"tr-TR":If,"uk-UA":Nf,"zh-CN":$f,"zh-TW":zf};var Kf;Kf={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var Vf;Vf={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Hf;Hf={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var Uf;Uf={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Wf;Wf={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Zf;Zf={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var qf;qf={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Gf;Gf={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Yf;Yf={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Xf;Xf={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Jf;Jf={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} rejoint, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Qf;Qf={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var ep;ep={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var tp;tp={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var np;np={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var rp;rp={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var op;op={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var ip;ip={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var ap;ap={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var lp;lp={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var sp;sp={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var cp;cp={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var up;up={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var dp;dp={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var fp;fp={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var pp;pp={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var hp;hp={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var gp;gp={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var mp;mp={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var vp;vp={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var yp;yp={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var bp;bp={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var wp;wp={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var Cp;Cp={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var xp={};xp={"ar-AE":Kf,"bg-BG":Vf,"cs-CZ":Hf,"da-DK":Uf,"de-DE":Wf,"el-GR":Zf,"en-US":qf,"es-ES":Gf,"et-EE":Yf,"fi-FI":Xf,"fr-FR":Jf,"he-IL":Qf,"hr-HR":ep,"hu-HU":tp,"it-IT":np,"ja-JP":rp,"ko-KR":op,"lt-LT":ip,"lv-LV":ap,"nb-NO":lp,"nl-NL":sp,"pl-PL":cp,"pt-BR":up,"pt-PT":dp,"ro-RO":fp,"ru-RU":pp,"sk-SK":hp,"sl-SI":gp,"sr-SP":mp,"sv-SE":vp,"tr-TR":yp,"uk-UA":bp,"zh-CN":wp,"zh-TW":Cp};const Sp={top:"top",bottom:"top",left:"left",right:"left"},kp={top:"bottom",bottom:"top",left:"right",right:"left"},Ep={top:"left",left:"top"},Op={top:"height",left:"width"},Dp={width:"totalWidth",height:"totalHeight"},Pp={};let Tp="undefined"!=typeof document&&window.visualViewport;function Ap(e){let t=0,n=0,r=0,o=0,i=0,a=0,l={},s=(null==Tp?void 0:Tp.scale)>1;if("BODY"===e.tagName){let s=document.documentElement;var c,u;r=s.clientWidth,o=s.clientHeight,t=null!==(c=null==Tp?void 0:Tp.width)&&void 0!==c?c:r,n=null!==(u=null==Tp?void 0:Tp.height)&&void 0!==u?u:o,l.top=s.scrollTop||e.scrollTop,l.left=s.scrollLeft||e.scrollLeft,Tp&&(i=Tp.offsetTop,a=Tp.offsetLeft)}else({width:t,height:n,top:i,left:a}=Np(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,o=n;return So()&&("BODY"===e.tagName||"HTML"===e.tagName)&&s&&(l.top=0,l.left=0,i=Tp.pageTop,a=Tp.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:o,scroll:l,top:i,left:a}}function Mp(e,t,n,r,o,i,a){let l=o.scroll[e],s=r[Op[e]],c=r.scroll[Sp[e]]+i,u=s+r.scroll[Sp[e]]-i,d=t-l+a[e]-r[Sp[e]],f=t-l+n+a[e]-r[Sp[e]];return d<c?c-d:f>u?Math.max(u-f,c-d):0}function _p(e){if(Pp[e])return Pp[e];let[t,n]=e.split(" "),r=Sp[t]||"right",o=Ep[r];Sp[n]||(n="center");let i=Op[r],a=Op[o];return Pp[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:a},Pp[e]}function jp(e,t,n,r,o,i,a,l,s,c){let{placement:u,crossPlacement:d,axis:f,crossAxis:p,size:h,crossSize:g}=r,m={};m[p]=e[p],"center"===d?m[p]+=(e[g]-n[g])/2:d!==p&&(m[p]+=e[g]-n[g]),m[p]+=i;const v=e[p]-n[g]+s+c,y=e[p]+e[g]-s-c;if(m[p]=ni(m[p],v,y),u===f){const n=l?a[h]:t[Dp[h]];m[kp[f]]=Math.floor(n-e[f]+o)}else m[f]=Math.floor(e[f]+e[h]+o);return m}function Lp(e,t,n,r,o,i){let{placement:a,axis:l,size:s}=i;return a===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[kp[l]]-o):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[kp[l]]-o)}function Rp(e,t,n,r,o,i,a,l,s,c,u,d,f,p,h,g){let m=_p(e),{size:v,crossAxis:y,crossSize:b,placement:w,crossPlacement:C}=m,x=jp(t,l,n,m,u,d,c,f,h,g),S=u,k=Lp(l,c,t,o,i+u,m);if(a&&r[v]>k){let e=_p(`${kp[w]} ${C}`),r=jp(t,l,n,e,u,d,c,f,h,g);Lp(l,c,t,o,i+u,e)>k&&(m=e,x=r,S=u)}let E="bottom";"top"===m.axis?"top"===m.placement?E="top":"bottom"===m.placement&&(E="bottom"):"top"===m.crossAxis&&("top"===m.crossPlacement?E="bottom":"bottom"===m.crossPlacement&&(E="top"));let O=Mp(y,x[y],n[b],l,s,i,c);x[y]+=O;let D=function(e,t,n,r,o,i,a,l){const s=r?n.height:t[Dp.height];let c=null!=e.top?n.top+e.top:n.top+(s-e.bottom-a),u="top"!==l?Math.max(0,t.height+t.top+t.scroll.top-c-(o.top+o.bottom+i)):Math.max(0,c+a-(t.top+t.scroll.top)-(o.top+o.bottom+i));return Math.min(t.height-2*i,u)}(x,l,c,f,o,i,n.height,E);p&&p<D&&(D=p),n.height=Math.min(n.height,D),x=jp(t,l,n,m,S,d,c,f,h,g),O=Mp(y,x[y],n[b],l,s,i,c),x[y]+=O;let P={},T=t[y]+.5*t[b]-x[y]-o[Sp[y]];const A=h/2+g,M="left"===Sp[y]?o.left+o.right:o.top+o.bottom,_=n[b]-M-h/2-g,j=ni(T,t[y]+h/2-(x[y]+o[Sp[y]]),t[y]+t[b]-h/2-(x[y]+o[Sp[y]]));return P[y]=ni(j,A,_),{position:x,maxHeight:D,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:m.placement}}function Ip(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:l,offset:s,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:f=0}=e,p=r instanceof HTMLElement?function(e){let t=e.offsetParent;t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!zp(t)&&(t=document.documentElement);if(null==t)for(t=e.parentElement;t&&!zp(t);)t=t.parentElement;return t||document.documentElement}(r):document.documentElement,h=p===document.documentElement;const g=window.getComputedStyle(p).position;let m=!!g&&"static"!==g,v=h?Np(n):$p(n,p);if(!h){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);v.top+=parseInt(e,10)||0,v.left+=parseInt(t,10)||0}let y=Np(r),b=function(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}(r);y.width+=b.left+b.right,y.height+=b.top+b.bottom;let w={top:(C=o).scrollTop,left:C.scrollLeft,width:C.scrollWidth,height:C.scrollHeight};var C;let x=Ap(l),S=Ap(p),k="BODY"===l.tagName?Np(p):$p(p,l);return"HTML"===p.tagName&&"BODY"===l.tagName&&(S.scroll.top=0,S.scroll.left=0),Rp(t,v,y,w,b,i,a,x,S,k,s,c,m,u,d,f)}function Np(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+i-l,left:n+a-s,width:r,height:o}}function $p(e,t){let n,r=window.getComputedStyle(e);if("fixed"===r.position){let{top:t,left:r,width:o,height:i}=e.getBoundingClientRect();n={top:t,left:r,width:o,height:i}}else{n=Np(e);let r=Np(t),o=window.getComputedStyle(t);r.top+=(parseInt(o.borderTopWidth,10)||0)-t.scrollTop,r.left+=(parseInt(o.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=r.top,n.left-=r.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function zp(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}const Fp=new WeakMap;let Bp="undefined"!=typeof document&&window.visualViewport;function Kp(e){let{direction:t}=Ll(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:s=o,placement:c="bottom",containerPadding:u=12,shouldFlip:d=!0,boundaryElement:f=("undefined"!=typeof document?document.body:null),offset:p=0,crossOffset:g=0,shouldUpdatePosition:m=!0,isOpen:v=!0,onClose:y,maxHeight:b,arrowBoundaryOffset:w=0}=e,[C,x]=l({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),S=[m,c,o.current,r.current,s.current,u,d,f,p,g,v,t,b,w,n],k=a(null==Bp?void 0:Bp.scale);i((()=>{v&&(k.current=null==Bp?void 0:Bp.scale)}),[v]);let E=h((()=>{if(!(!1!==m&&v&&o.current&&r.current&&f))return;if((null==Bp?void 0:Bp.scale)!==k.current)return;let e=null;if(s.current&&s.current.contains(document.activeElement)){let t=document.activeElement.getBoundingClientRect(),n=s.current.getBoundingClientRect();e={type:"top",offset:t.top-n.top},e.offset>n.height/2&&(e.type="bottom",e.offset=t.bottom-n.bottom)}let i=o.current;var a,l;!b&&o.current&&(i.style.top="0px",i.style.bottom="",i.style.maxHeight=(null!==(l=null===(a=window.visualViewport)||void 0===a?void 0:a.height)&&void 0!==l?l:window.innerHeight)+"px");let h=Ip({placement:Vp(c,t),overlayNode:o.current,targetNode:r.current,scrollNode:s.current||o.current,padding:u,shouldFlip:d,boundaryElement:f,offset:p,crossOffset:g,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});if(i.style.top="",i.style.bottom="",i.style.left="",i.style.right="",Object.keys(h.position).forEach((e=>i.style[e]=h.position[e]+"px")),i.style.maxHeight=null!=h.maxHeight?h.maxHeight+"px":void 0,e){let t=document.activeElement.getBoundingClientRect(),n=s.current.getBoundingClientRect(),r=t[e.type]-n[e.type];s.current.scrollTop+=r-e.offset}x(h)}),S);var O;Zr(E,S),Zr((()=>(window.addEventListener("resize",O,!1),()=>{window.removeEventListener("resize",O,!1)})),[O=E]),zo({ref:o,onResize:E}),zo({ref:r,onResize:E});let D=a(!1);Zr((()=>{let e,t=()=>{D.current=!0,clearTimeout(e),e=setTimeout((()=>{D.current=!1}),500),E()},n=()=>{D.current&&t()};return null==Bp||Bp.addEventListener("resize",t),null==Bp||Bp.addEventListener("scroll",n),()=>{null==Bp||Bp.removeEventListener("resize",t),null==Bp||Bp.removeEventListener("scroll",n)}}),[E]);let P=h((()=>{D.current||y()}),[y,D]);var T;return function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;i((()=>{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current))return;if(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let o=r||Fp.get(t.current);o&&o()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}}),[n,r,t])}({triggerRef:r,isOpen:v,onClose:y&&P}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...C.position,maxHeight:null!==(T=C.maxHeight)&&void 0!==T?T:"100vh"}},placement:C.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:C.arrowOffsetLeft,top:C.arrowOffsetTop}},updatePosition:E}}function Vp(e,t){return"rtl"===t?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Hp=[];function Up(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:a=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=e;i((()=>(o&&Hp.push(t),()=>{let e=Hp.indexOf(t);e>=0&&Hp.splice(e,1)})),[o,t]);let c=()=>{Hp[Hp.length-1]===t&&n&&n()};Va({ref:t,onInteractOutside:a&&o?e=>{s&&!s(e.target)||(Hp[Hp.length-1]===t&&(e.stopPropagation(),e.preventDefault()),c())}:null,onInteractOutsideStart:e=>{s&&!s(e.target)||Hp[Hp.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:u}=Ia({isDisabled:!r,onBlurWithin:e=>{e.relatedTarget&&!sl(e.relatedTarget,Qa)&&(s&&!s(e.relatedTarget)||n())}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||l||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),c())},...u},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}const Wp="undefined"!=typeof document&&window.visualViewport,Zp=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let qp,Gp=0;function Yp(e={}){let{isDisabled:t}=e;Zr((()=>{if(!t)return Gp++,1===Gp&&(qp=Co()?function(){let e,t,n=n=>{e=Ko(n.target,!0),e===document.documentElement&&e===document.body||e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=Xp(e,"overscrollBehavior","contain"))},r=t=>{e&&e!==document.documentElement&&e!==document.body?e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault():t.preventDefault()},o=e=>{let n=e.target;eh(n)&&n!==document.activeElement&&(e.preventDefault(),l(),n.style.transform="translateY(-2000px)",n.focus(),requestAnimationFrame((()=>{n.style.transform=""}))),t&&t()},i=e=>{let t=e.target;eh(t)&&(l(),t.style.transform="translateY(-2000px)",requestAnimationFrame((()=>{t.style.transform="",Wp&&(Wp.height<window.innerHeight?requestAnimationFrame((()=>{Qp(t)})):Wp.addEventListener("resize",(()=>Qp(t)),{once:!0}))})))},a=null,l=()=>{if(a)return;let e=()=>{window.scrollTo(0,0)},t=window.pageXOffset,n=window.pageYOffset;a=eo(Jp(window,"scroll",e),Xp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Xp(document.documentElement,"overflow","hidden"),Xp(document.body,"marginTop",`-${n}px`),(()=>{window.scrollTo(t,n)})),window.scrollTo(0,0)},s=eo(Jp(document,"touchstart",n,{passive:!1,capture:!0}),Jp(document,"touchmove",r,{passive:!1,capture:!0}),Jp(document,"touchend",o,{passive:!1,capture:!0}),Jp(document,"focus",i,!0));return()=>{null==t||t(),null==a||a(),s()}}():eo(Xp(document.documentElement,"paddingRight",window.innerWidth-document.documentElement.clientWidth+"px"),Xp(document.documentElement,"overflow","hidden"))),()=>{Gp--,0===Gp&&qp()}}),[t])}function Xp(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Jp(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Qp(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Ko(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;r>n+e.clientHeight&&(t.scrollTop+=r-n)}e=t.parentElement}}function eh(e){return e instanceof HTMLInputElement&&!Zp.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const th=o.createContext(null);function nh(e){let{children:t}=e,n=p(th),[r,i]=l(0),a=f((()=>({parent:n,modalCount:r,addModal(){i((e=>e+1)),n&&n.addModal()},removeModal(){i((e=>e-1)),n&&n.removeModal()}})),[n,r]);return o.createElement(th.Provider,{value:a},t)}function rh(e){let{modalProviderProps:t}=function(){let e=p(th);return{modalProviderProps:{"aria-hidden":!!(e&&e.modalCount>0)||null}}}();return o.createElement("div",{"data-overlay-container":!0,...e,...t})}function oh(e){return o.createElement(nh,null,o.createElement(rh,e))}function ih(e){let t=Kr(),{portalContainer:n=(t?null:document.body),...r}=e;if(o.useEffect((()=>{if(null==n?void 0:n.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")}),[n]),!n)return null;let i=o.createElement(oh,r);return T.createPortal(i,n)}var ah={};function lh(e){let{onDismiss:t,...n}=e,r=Hl(function(e){return e&&e.__esModule?e.default:e}(ah),"@react-aria/overlays"),i=Io(n,r.format("dismiss"));return o.createElement(ef,null,o.createElement("button",{...i,tabIndex:-1,onClick:()=>{t&&t()},style:{width:1,height:1}}))}ah={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};let sh=new WeakMap,ch=[];function uh(e,t=document.body){let n=new Set(e),r=new Set,o=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),a=t(e);if(a===NodeFilter.FILTER_ACCEPT&&i(e),a!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)i(e),e=o.nextNode()}},i=e=>{var t;let n=null!==(t=sh.get(e))&&void 0!==t?t:0;"true"===e.getAttribute("aria-hidden")&&0===n||(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),sh.set(e,n+1))};ch.length&&ch[ch.length-1].disconnect(),o(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&o(e):n.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let l={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return ch.push(l),()=>{a.disconnect();for(let e of r){let t=sh.get(e);1===t?(e.removeAttribute("aria-hidden"),sh.delete(e)):sh.set(e,t-1)}l===ch[ch.length-1]?(ch.pop(),ch.length&&ch[ch.length-1].observe()):ch.splice(ch.indexOf(l),1)}}const dh=d({});const fh=o.createContext(null);function ph(e){let t=Kr(),{portalContainer:n=(t?null:document.body),isExiting:r}=e,[i,a]=l(!1),s=f((()=>({contain:i,setContain:a})),[i,a]),{getContainer:c}=null!==(u=p(dh))&&void 0!==u?u:{};var u;if(!e.portalContainer&&c&&(n=c()),!n)return null;let d=e.children;return e.disableFocusManagement||(d=o.createElement(el,{restoreFocus:!0,contain:i&&!r},d)),d=o.createElement(fh.Provider,{value:s},o.createElement(fa,null,d)),T.createPortal(d,n)}function hh(){let e=p(fh),t=null==e?void 0:e.setContain;Zr((()=>{null==t||t(!0)}),[t])}const gh=new WeakMap;function mh(e,t){let n=gh.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${r=t,"string"==typeof r?r.replace(/\s*/g,""):""+r}`;var r}function vh(e){return xo()?e.altKey:e.ctrlKey}function yh(e){return yo()?e.metaKey:e.ctrlKey}const bh=1e3;function wh(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=a({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===i&&o.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=i;let a=t.getKeyForSearch(o.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(o.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout((()=>{o.search=""}),bh)}:null}}}function Ch(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:l=!1,disallowEmptySelection:s=!1,disallowSelectAll:c=!1,selectOnFocus:u="replace"===t.selectionBehavior,disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:g=r,linkBehavior:m="action"}=e,{direction:v}=Ll(),y=Po(),b=a({top:0,left:0});qo(g,"scroll",h?null:()=>{b.current={top:g.current.scrollTop,left:g.current.scrollLeft}});const w=a(o);i((()=>{if(w.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;if(i.size)for(let n of i)if(t.canSelectItem(n)){e=n;break}t.setFocused(!0),t.setFocusedKey(e),null!=e||f||Ga(r.current)}}),[]);let C=a(t.focusedKey);i((()=>{if(t.isFocused&&null!=t.focusedKey&&(t.focusedKey!==C.current||w.current)&&(null==g?void 0:g.current)){let e=Ma(),n=r.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(!n)return;("keyboard"===e||w.current)&&(Go(g.current,n),"virtual"!==e&&Xo(n,{containingElement:r.current}))}!f&&t.isFocused&&null==t.focusedKey&&null!=C.current&&Ga(r.current),C.current=t.focusedKey,w.current=!1})),qo(r,"react-aria-focus-scope-restore",(e=>{e.preventDefault(),t.setFocused(!0)}));let x,S={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!r.current.contains(e.target))return;const o=(n,r)=>{if(null!=n){if(t.isLink(n)&&"selection"===m&&u&&!vh(e)){M((()=>{t.setFocusedKey(n,r)}));let o=g.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`),i=t.getItemProps(n);return void y.open(o,e,i.href,i.routerOptions)}if(t.setFocusedKey(n,r),t.isLink(n)&&"override"===m)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):u&&!vh(e)&&t.replaceSelection(n)}};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var i,a,d;let r=null!=t.focusedKey?null===(i=n.getKeyBelow)||void 0===i?void 0:i.call(n,t.focusedKey):null===(a=n.getFirstKey)||void 0===a?void 0:a.call(n);null==r&&l&&(r=null===(d=n.getFirstKey)||void 0===d?void 0:d.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),o(r))}break;case"ArrowUp":if(n.getKeyAbove){var f,h,b;let r=null!=t.focusedKey?null===(f=n.getKeyAbove)||void 0===f?void 0:f.call(n,t.focusedKey):null===(h=n.getLastKey)||void 0===h?void 0:h.call(n);null==r&&l&&(r=null===(b=n.getLastKey)||void 0===b?void 0:b.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),o(r))}break;case"ArrowLeft":if(n.getKeyLeftOf){var w,C,x;let r=null===(w=n.getKeyLeftOf)||void 0===w?void 0:w.call(n,t.focusedKey);null==r&&l&&(r="rtl"===v?null===(C=n.getFirstKey)||void 0===C?void 0:C.call(n,t.focusedKey):null===(x=n.getLastKey)||void 0===x?void 0:x.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),o(r,"rtl"===v?"first":"last"))}break;case"ArrowRight":if(n.getKeyRightOf){var S,k,E;let r=null===(S=n.getKeyRightOf)||void 0===S?void 0:S.call(n,t.focusedKey);null==r&&l&&(r="rtl"===v?null===(k=n.getLastKey)||void 0===k?void 0:k.call(n,t.focusedKey):null===(E=n.getFirstKey)||void 0===E?void 0:E.call(n,t.focusedKey)),null!=r&&(e.preventDefault(),o(r,"rtl"===v?"last":"first"))}break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,yh(e));t.setFocusedKey(r),yh(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):u&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,yh(e));t.setFocusedKey(r),yh(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):u&&t.replaceSelection(r)}break;case"PageDown":if(n.getKeyPageBelow){let r=n.getKeyPageBelow(t.focusedKey);null!=r&&(e.preventDefault(),o(r))}break;case"PageUp":if(n.getKeyPageAbove){let r=n.getKeyPageAbove(t.focusedKey);null!=r&&(e.preventDefault(),o(r))}break;case"a":yh(e)&&"multiple"===t.selectionMode&&!0!==c&&(e.preventDefault(),t.selectAll());break;case"Escape":s||0===t.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(e.shiftKey)r.current.focus();else{let e,t,n=hl(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&po(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let r=e=>{null!=e&&(t.setFocusedKey(e),u&&t.replaceSelection(e))},a=e.relatedTarget;var o,i;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?r(null!==(o=t.lastSelectedKey)&&void 0!==o?o:n.getLastKey()):r(null!==(i=t.firstSelectedKey)&&void 0!==i?i:n.getFirstKey())}else h||(g.current.scrollTop=b.current.top,g.current.scrollLeft=b.current.left);if(null!=t.focusedKey){let e=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);if(e){e.contains(document.activeElement)||po(e),"keyboard"===Ma()&&Xo(e,{containingElement:r.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){g.current===e.target&&e.preventDefault()}},{typeSelectProps:k}=wh({keyboardDelegate:n,selectionManager:t});return d||(S=io(k,S)),f||(x=null==t.focusedKey?0:-1),{collectionProps:{...S,tabIndex:x}}}function xh(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:l,focus:s,isDisabled:c,onAction:u,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,p=Po(),h=e=>{if("keyboard"===e.pointerType&&vh(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;if(t.isLink(n)){if("selection"===f){let o=t.getItemProps(n);return p.open(r.current,e,o.href,o.routerOptions),void t.setSelectedKeys(t.selectedKeys)}if("override"===f||"none"===f)return}"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(yh(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}};i((()=>{n===t.focusedKey&&t.isFocused&&!l&&(s?s():document.activeElement!==r.current&&Ga(r.current))}),[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,l]),c=c||t.isDisabled(n);let g={};l||c?c&&(g.onMouseDown=e=>{e.preventDefault()}):g={tabIndex:n===t.focusedKey?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}};let m=t.isLink(n)&&"override"===f,v=t.isLink(n)&&"selection"!==f&&"none"!==f,y=!c&&t.canSelectItem(n)&&!m,b=(u||v)&&!c,w=b&&("replace"===t.selectionBehavior?!y:!y||t.isEmpty),C=b&&y&&"replace"===t.selectionBehavior,x=w||C,S=a(null),k=x&&y,E=a(!1),O=a(!1),D=e=>{if(u&&u(),v){let o=t.getItemProps(n);p.open(r.current,e,o.href,o.routerOptions)}},P={};o?(P.onPressStart=e=>{S.current=e.pointerType,E.current=k,"keyboard"!==e.pointerType||x&&!kh()||h(e)},d?(P.onPressUp=w?null:e=>{"keyboard"!==e.pointerType&&y&&h(e)},P.onPress=w?D:null):P.onPress=e=>{if(w||C&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!Sh())return;D(e)}else"keyboard"!==e.pointerType&&y&&h(e)}):(P.onPressStart=e=>{S.current=e.pointerType,E.current=k,O.current=w,y&&("mouse"===e.pointerType&&!w||"keyboard"===e.pointerType&&(!b||kh()))&&h(e)},P.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&x&&Sh()||"mouse"===e.pointerType&&O.current)&&(x?D(e):y&&h(e))}),g["data-key"]=n,P.preventFocusOnPress=l;let{pressProps:T,isPressed:A}=Qi(P),M=C?e=>{"mouse"===S.current&&(e.stopPropagation(),e.preventDefault(),D(e))}:void 0,{longPressProps:_}=qa({isDisabled:!k,onLongPress(e){"touch"===e.pointerType&&(h(e),t.setSelectionBehavior("toggle"))}}),j=t.isLink(n)?e=>{To.isOpening||e.preventDefault()}:void 0;return{itemProps:io(g,y||w?T:{},k?_:{},{onDoubleClick:M,onDragStartCapture:e=>{"touch"===S.current&&E.current&&e.preventDefault()},onClick:j}),isPressed:A,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:c,allowsSelection:y,hasAction:x}}function Sh(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function kh(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class Eh{getItemRect(e){let t=this.ref.current,n=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!n)return null;let r=t.getBoundingClientRect(),o=n.getBoundingClientRect();return{x:o.left-r.left+t.scrollLeft,y:o.top-r.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;return{width:e.scrollWidth,height:e.scrollHeight}}getVisibleRect(){let e=this.ref.current;return{x:e.scrollLeft,y:e.scrollTop,width:e.offsetWidth,height:e.offsetHeight}}constructor(e){this.ref=e}}class Oh{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){for(;null!=e;){let n=this.collection.getItem(e);if("item"===(null==n?void 0:n.type)&&!this.isDisabled(n))return e;e=t(e)}return null}getNextKey(e){return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,(e=>this.collection.getKeyAfter(e)))}getPreviousKey(e){return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,(e=>this.collection.getKeyBefore(e)))}findKey(e,t,n){let r=this.layoutDelegate.getItemRect(e);if(!r)return null;let o=r;do{e=t(e),r=this.layoutDelegate.getItemRect(e)}while(r&&n(o,r));return e}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,(e=>this.layoutDelegate[t](e)))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,(e=>this.layoutDelegate[t](e)))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,(e=>this.collection.getKeyAfter(e)))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,(e=>this.collection.getKeyBefore(e)))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(!Bo(t))return this.getFirstKey();if("horizontal"===this.orientation){let t=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>t;)n=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>t;)n=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(!Bo(t))return this.getLastKey();if("horizontal"===this.orientation){let t=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<t;)n=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<t;)n=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),o=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(o,e))return r;r=this.getNextKey(r)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new Eh(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new Eh(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function Dh(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,l=Fu({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,c=f((()=>i||new Oh({collection:n,disabledKeys:r,disabledBehavior:s,ref:o,collator:l,layoutDelegate:a})),[i,a,n,r,o,l,s]),{collectionProps:u}=Ch({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}class Ph{build(e,t){return this.context=t,Th((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if(o.isValidElement(t)&&t.type===o.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];o.Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let o=t.value;if(null!=o){var i;let e=null!==(i=o.key)&&void 0!==i?i:o.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){if(o.isValidElement(e.element)&&e.element.type===o.Fragment){let i=[];o.Children.forEach(e.element.props.children,(e=>{i.push(e)}));let a=e.index;for(const e of i)yield*this.getFullNode({element:e,index:a++},t,n,r);return}let i=e.element;if(!i&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=r?r.key:null,void(yield n);i=t.renderer(e.value)}if(o.isValidElement(i)){let o=i.type;if("function"!=typeof o&&"function"!=typeof o.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=o.getCollectionNode(i.props,this.context),l=e.index,s=a.next();for(;!s.done&&s.value;){let o=s.value;e.index=l;let c=o.key;c||(c=o.element?null:this.getKey(i,e,t,n));let u=[...this.getFullNode({...o,key:c,index:l,wrapper:Ah(e.wrapper,o.wrapper)},this.getChildState(t,o),n?`${n}${i.key}`:i.key,r)];for(let t of u){if(t.value=o.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Mh(t.type)}> in <${Mh(r.type)}>. Only <${Mh(e.type)}> is supported.`);l++,yield t}s=a.next(u)}return}if(null==e.key)return;let a=this,l={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:Th((function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${l.key}${r.key}`),r.index=n;let e=a.getFullNode(r,a.getChildState(t,r),l.key,l);for(let t of e)n++,yield t}}))};yield l}constructor(){this.cache=new WeakMap}}function Th(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function Ah(e,t){return e&&t?n=>e(t(n)):e||(t||void 0)}function Mh(e){return e[0].toUpperCase()+e.slice(1)}function _h(e,t,n){let r=f((()=>new Ph),[]),{children:o,items:i,collection:a}=e;return f((()=>{if(a)return a;let e=r.build({children:o,items:i},n);return t(e)}),[r,o,i,a,n,t])}function jh(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function Lh(e){return Rh(e,0)}function Rh(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ih(e){let t;for(let n of e)t=n;return t}function Nh(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...$h(e,t),t],o=[...$h(e,n),n],i=r.slice(0,o.length).findIndex(((e,t)=>e!==o[t]));return-1!==i?(t=r[i],n=o[i],t.index-n.index):r.findIndex((e=>e===n))>=0?1:(o.findIndex((e=>e===t)),-1)}function $h(e,t){let n=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),n.unshift(t);return n}const zh=new WeakMap;function Fh(e){let t=zh.get(e);if(null!=t)return t;t=0;let n=r=>{for(let o of r)"section"===o.type?n(jh(o,e)):t++};return n(e),zh.set(e,t),t}var Bh={};function Kh(e,t,n){let{type:r="menu",isDisabled:o,trigger:a="press"}=e,l=Xr(),{triggerProps:s,overlayProps:c}=function(e,t,n){let r,{type:o}=e,{isOpen:a}=t;i((()=>{n&&n.current&&Fp.set(n.current,t.close)})),"menu"===o?r=!0:"listbox"===o&&(r="listbox");let l=Xr();return{triggerProps:{"aria-haspopup":r,"aria-expanded":a,"aria-controls":a?l:null,onPress:t.toggle},overlayProps:{id:l}}}({type:r},t,n),u=Hl(function(e){return e&&e.__esModule?e.default:e}(Bh),"@react-aria/menu"),{longPressProps:d}=qa({isDisabled:o||"longPress"!==a,accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||o||t.open("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||o||t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,..."press"===a?f:d,id:l,onKeyDown:e=>{if(!o&&("longPress"!==a||e.altKey)&&n&&n.current)switch(e.key){case"Enter":case" ":if("longPress"===a)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...c,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}Bh={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};const Vh=new WeakMap;const Hh=2,Uh=50,Wh=1e3,Zh=Math.PI/12;function qh(e,t,n){let{parentMenuRef:r,submenuRef:o,type:s="menu",isDisabled:c,delay:u=200}=e,d=Xr(),f=Xr(),{direction:p}=Ll(),g=a(void 0),m=h((()=>{g.current&&(clearTimeout(g.current),g.current=void 0)}),[g]),v=qr((e=>{m(),t.open(e)})),y=qr((()=>{m(),t.close()}));Zr((()=>()=>{m()}),[m]);let b={id:f,"aria-labelledby":d,submenuLevel:t.submenuLevel,..."menu"===s&&{onClose:t.closeAll,autoFocus:t.focusStrategy,onKeyDown:e=>{switch(e.key){case"ArrowLeft":"ltr"===p&&e.currentTarget.contains(e.target)&&(e.stopPropagation(),y(),n.current.focus());break;case"ArrowRight":"rtl"===p&&e.currentTarget.contains(e.target)&&(e.stopPropagation(),y(),n.current.focus());break;case"Escape":e.stopPropagation(),t.closeAll()}}}};return function(e){let{menuRef:t,submenuRef:n,isOpen:r,isDisabled:o}=e,s=a(void 0),c=a(void 0),u=a(0),d=a(void 0),f=a(void 0),p=a(void 0),h=a(2),[g,m]=l(!1);zo({ref:n,onResize:()=>{n.current&&(c.current=n.current.getBoundingClientRect(),p.current=void 0)}});let v=()=>{m(!1),h.current=Hh,s.current=void 0},y=ja();i((()=>{g&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""}),[t,g]),i((()=>{let e=n.current,i=t.current;if(o||!e||!r||"pointer"!==y)return void v();c.current=e.getBoundingClientRect();let a=e=>{if("touch"===e.pointerType||"pen"===e.pointerType)return;let t=Date.now();if(t-u.current<Uh)return;clearTimeout(d.current),clearTimeout(f.current);let{clientX:n,clientY:r}=e;if(!s.current)return void(s.current={x:n,y:r});if(!c.current)return;if(p.current||(p.current=n>c.current.right?"left":"right"),n<i.getBoundingClientRect().left||n>i.getBoundingClientRect().right||r<i.getBoundingClientRect().top||r>i.getBoundingClientRect().bottom)return void v();let o=s.current.x,a=s.current.y,l="right"===p.current?c.current.left-o:o-c.current.right,g=Math.atan2(a-c.current.top,l)+Zh,y=Math.atan2(a-c.current.bottom,l)-Zh,b=Math.atan2(a-r,"left"===p.current?-(n-o):n-o),w=b<g&&b>y;h.current=w?Math.min(h.current+1,Hh):Math.max(h.current-1,0),h.current>=Hh?m(!0):m(!1),u.current=t,s.current={x:n,y:r},w&&(d.current=setTimeout((()=>{v(),f.current=setTimeout((()=>{let e=document.elementFromPoint(n,r);e&&i.contains(e)&&e.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))}),100)}),Wh))};return window.addEventListener("pointermove",a),()=>{window.removeEventListener("pointermove",a),clearTimeout(d.current),clearTimeout(f.current),h.current=Hh}}),[o,r,t,y,m,n])}({menuRef:r,submenuRef:o,isOpen:t.isOpen,isDisabled:c}),{submenuTriggerProps:{id:d,"aria-controls":t.isOpen?f:void 0,"aria-haspopup":c?void 0:s,"aria-expanded":t.isOpen?"true":"false",onPressStart:e=>{c||"virtual"!==e.pointerType&&"keyboard"!==e.pointerType||v("first")},onPress:e=>{c||"touch"!==e.pointerType&&"mouse"!==e.pointerType||v()},onHoverChange:e=>{c||(e&&!t.isOpen?g.current||(g.current=setTimeout((()=>{v()}),u)):e||m())},onKeyDown:e=>{switch(e.key){case"ArrowRight":c||("ltr"===p?(t.isOpen||v("first"),"menu"===s&&(null==o?void 0:o.current)&&document.activeElement===(null==n?void 0:n.current)&&o.current.focus()):t.isOpen?y():e.continuePropagation());break;case"ArrowLeft":c||("rtl"===p?(t.isOpen||v("first"),"menu"===s&&(null==o?void 0:o.current)&&document.activeElement===(null==n?void 0:n.current)&&o.current.focus()):t.isOpen?y():e.continuePropagation());break;case"Escape":t.closeAll();break;default:e.continuePropagation()}},onBlur:e=>{t.isOpen&&r.current.contains(e.relatedTarget)&&y()},isOpen:t.isOpen},submenuProps:b,popoverProps:{isNonModal:!0,disableFocusManagement:!0,shouldCloseOnInteractOutside:e=>e!==n.current}}}var Gh;Gh={calendar:"التقويم",day:"يوم",dayPeriod:"ص/م",endDate:"تاريخ الانتهاء",era:"العصر",hour:"الساعات",minute:"الدقائق",month:"الشهر",second:"الثواني",selectedDateDescription:e=>`تاريخ محدد: ${e.date}`,selectedRangeDescription:e=>`المدى الزمني المحدد: ${e.startDate} إلى ${e.endDate}`,selectedTimeDescription:e=>`الوقت المحدد: ${e.time}`,startDate:"تاريخ البدء",timeZoneName:"التوقيت",weekday:"اليوم",year:"السنة"};var Yh;Yh={calendar:"Календар",day:"ден",dayPeriod:"пр.об./сл.об.",endDate:"Крайна дата",era:"ера",hour:"час",minute:"минута",month:"месец",second:"секунда",selectedDateDescription:e=>`Избрана дата: ${e.date}`,selectedRangeDescription:e=>`Избран диапазон: ${e.startDate} до ${e.endDate}`,selectedTimeDescription:e=>`Избрано време: ${e.time}`,startDate:"Начална дата",timeZoneName:"часова зона",weekday:"ден от седмицата",year:"година"};var Xh;Xh={calendar:"Kalendář",day:"den",dayPeriod:"část dne",endDate:"Konečné datum",era:"letopočet",hour:"hodina",minute:"minuta",month:"měsíc",second:"sekunda",selectedDateDescription:e=>`Vybrané datum: ${e.date}`,selectedRangeDescription:e=>`Vybrané období: ${e.startDate} až ${e.endDate}`,selectedTimeDescription:e=>`Vybraný čas: ${e.time}`,startDate:"Počáteční datum",timeZoneName:"časové pásmo",weekday:"den v týdnu",year:"rok"};var Jh;Jh={calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:"æra",hour:"time",minute:"minut",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt interval: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tidspunkt: ${e.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:"år"};var Qh;Qh={calendar:"Kalender",day:"Tag",dayPeriod:"Tageshälfte",endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:e=>`Ausgewähltes Datum: ${e.date}`,selectedRangeDescription:e=>`Ausgewählter Bereich: ${e.startDate} bis ${e.endDate}`,selectedTimeDescription:e=>`Ausgewählte Zeit: ${e.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"};var eg;eg={calendar:"Ημερολόγιο",day:"ημέρα",dayPeriod:"π.μ./μ.μ.",endDate:"Ημερομηνία λήξης",era:"περίοδος",hour:"ώρα",minute:"λεπτό",month:"μήνας",second:"δευτερόλεπτο",selectedDateDescription:e=>`Επιλεγμένη ημερομηνία: ${e.date}`,selectedRangeDescription:e=>`Επιλεγμένο εύρος: ${e.startDate} έως ${e.endDate}`,selectedTimeDescription:e=>`Επιλεγμένη ώρα: ${e.time}`,startDate:"Ημερομηνία έναρξης",timeZoneName:"ζώνη ώρας",weekday:"καθημερινή",year:"έτος"};var tg;tg={era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:e=>`Selected Date: ${e.date}`,selectedRangeDescription:e=>`Selected Range: ${e.startDate} to ${e.endDate}`,selectedTimeDescription:e=>`Selected Time: ${e.time}`};var ng;ng={calendar:"Calendario",day:"día",dayPeriod:"a. m./p. m.",endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:e=>`Fecha seleccionada: ${e.date}`,selectedRangeDescription:e=>`Rango seleccionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora seleccionada: ${e.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:"día de la semana",year:"año"};var rg;rg={calendar:"Kalender",day:"päev",dayPeriod:"enne/pärast lõunat",endDate:"Lõppkuupäev",era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:e=>`Valitud kuupäev: ${e.date}`,selectedRangeDescription:e=>`Valitud vahemik: ${e.startDate} kuni ${e.endDate}`,selectedTimeDescription:e=>`Valitud aeg: ${e.time}`,startDate:"Alguskuupäev",timeZoneName:"ajavöönd",weekday:"nädalapäev",year:"aasta"};var og;og={calendar:"Kalenteri",day:"päivä",dayPeriod:"vuorokaudenaika",endDate:"Päättymispäivä",era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:e=>`Valittu päivämäärä: ${e.date}`,selectedRangeDescription:e=>`Valittu aikaväli: ${e.startDate} – ${e.endDate}`,selectedTimeDescription:e=>`Valittu aika: ${e.time}`,startDate:"Alkamispäivä",timeZoneName:"aikavyöhyke",weekday:"viikonpäivä",year:"vuosi"};var ig;ig={calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:"ère",hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:e=>`Date sélectionnée : ${e.date}`,selectedRangeDescription:e=>`Plage sélectionnée : ${e.startDate} au ${e.endDate}`,selectedTimeDescription:e=>`Heure choisie : ${e.time}`,startDate:"Date de début",timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:"année"};var ag;ag={calendar:"לוח שנה",day:"יום",dayPeriod:"לפנה״צ/אחה״צ",endDate:"תאריך סיום",era:"תקופה",hour:"שעה",minute:"דקה",month:"חודש",second:"שנייה",selectedDateDescription:e=>`תאריך נבחר: ${e.date}`,selectedRangeDescription:e=>`טווח נבחר: ${e.startDate} עד ${e.endDate}`,selectedTimeDescription:e=>`זמן נבחר: ${e.time}`,startDate:"תאריך התחלה",timeZoneName:"אזור זמן",weekday:"יום בשבוע",year:"שנה"};var lg;lg={calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:"Datum završetka",era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:e=>`Odabrani datum: ${e.date}`,selectedRangeDescription:e=>`Odabrani raspon: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Odabrano vrijeme: ${e.time}`,startDate:"Datum početka",timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"};var sg;sg={calendar:"Naptár",day:"nap",dayPeriod:"napszak",endDate:"Befejező dátum",era:"éra",hour:"óra",minute:"perc",month:"hónap",second:"másodperc",selectedDateDescription:e=>`Kijelölt dátum: ${e.date}`,selectedRangeDescription:e=>`Kijelölt tartomány: ${e.startDate}–${e.endDate}`,selectedTimeDescription:e=>`Kijelölt idő: ${e.time}`,startDate:"Kezdő dátum",timeZoneName:"időzóna",weekday:"hét napja",year:"év"};var cg;cg={calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:e=>`Data selezionata: ${e.date}`,selectedRangeDescription:e=>`Intervallo selezionato: da ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Ora selezionata: ${e.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"};var ug;ug={calendar:"カレンダー",day:"日",dayPeriod:"午前/午後",endDate:"終了日",era:"時代",hour:"時",minute:"分",month:"月",second:"秒",selectedDateDescription:e=>`選択した日付 : ${e.date}`,selectedRangeDescription:e=>`選択範囲 : ${e.startDate} から ${e.endDate}`,selectedTimeDescription:e=>`選択した時間 : ${e.time}`,startDate:"開始日",timeZoneName:"タイムゾーン",weekday:"曜日",year:"年"};var dg;dg={calendar:"달력",day:"일",dayPeriod:"오전/오후",endDate:"종료일",era:"연호",hour:"시",minute:"분",month:"월",second:"초",selectedDateDescription:e=>`선택 일자: ${e.date}`,selectedRangeDescription:e=>`선택 범위: ${e.startDate} ~ ${e.endDate}`,selectedTimeDescription:e=>`선택 시간: ${e.time}`,startDate:"시작일",timeZoneName:"시간대",weekday:"요일",year:"년"};var fg;fg={calendar:"Kalendorius",day:"diena",dayPeriod:"iki pietų / po pietų",endDate:"Pabaigos data",era:"era",hour:"valanda",minute:"minutė",month:"mėnuo",second:"sekundė",selectedDateDescription:e=>`Pasirinkta data: ${e.date}`,selectedRangeDescription:e=>`Pasirinktas intervalas: nuo ${e.startDate} iki ${e.endDate}`,selectedTimeDescription:e=>`Pasirinktas laikas: ${e.time}`,startDate:"Pradžios data",timeZoneName:"laiko juosta",weekday:"savaitės diena",year:"metai"};var pg;pg={calendar:"Kalendārs",day:"diena",dayPeriod:"priekšpusdienā/pēcpusdienā",endDate:"Beigu datums",era:"ēra",hour:"stundas",minute:"minūtes",month:"mēnesis",second:"sekundes",selectedDateDescription:e=>`Atlasītais datums: ${e.date}`,selectedRangeDescription:e=>`Atlasītais diapazons: no ${e.startDate} līdz ${e.endDate}`,selectedTimeDescription:e=>`Atlasītais laiks: ${e.time}`,startDate:"Sākuma datums",timeZoneName:"laika josla",weekday:"nedēļas diena",year:"gads"};var hg;hg={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:"måned",second:"sekund",selectedDateDescription:e=>`Valgt dato: ${e.date}`,selectedRangeDescription:e=>`Valgt område: ${e.startDate} til ${e.endDate}`,selectedTimeDescription:e=>`Valgt tid: ${e.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:"år"};var gg;gg={calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:e=>`Geselecteerde datum: ${e.date}`,selectedRangeDescription:e=>`Geselecteerd bereik: ${e.startDate} tot ${e.endDate}`,selectedTimeDescription:e=>`Geselecteerde tijd: ${e.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"};var mg;mg={calendar:"Kalendarz",day:"dzień",dayPeriod:"rano / po południu / wieczorem",endDate:"Data końcowa",era:"era",hour:"godzina",minute:"minuta",month:"miesiąc",second:"sekunda",selectedDateDescription:e=>`Wybrana data: ${e.date}`,selectedRangeDescription:e=>`Wybrany zakres: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Wybrany czas: ${e.time}`,startDate:"Data początkowa",timeZoneName:"strefa czasowa",weekday:"dzień tygodnia",year:"rok"};var vg;vg={calendar:"Calendário",day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data inicial",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var yg;yg={calendar:"Calendário",day:"dia",dayPeriod:"am/pm",endDate:"Data de Término",era:"era",hour:"hora",minute:"minuto",month:"mês",second:"segundo",selectedDateDescription:e=>`Data selecionada: ${e.date}`,selectedRangeDescription:e=>`Intervalo selecionado: ${e.startDate} a ${e.endDate}`,selectedTimeDescription:e=>`Hora selecionada: ${e.time}`,startDate:"Data de Início",timeZoneName:"fuso horário",weekday:"dia da semana",year:"ano"};var bg;bg={calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:"Dată final",era:"eră",hour:"oră",minute:"minut",month:"lună",second:"secundă",selectedDateDescription:e=>`Dată selectată: ${e.date}`,selectedRangeDescription:e=>`Interval selectat: de la ${e.startDate} până la ${e.endDate}`,selectedTimeDescription:e=>`Ora selectată: ${e.time}`,startDate:"Dată început",timeZoneName:"fus orar",weekday:"ziua din săptămână",year:"an"};var wg;wg={calendar:"Календарь",day:"день",dayPeriod:"AM/PM",endDate:"Дата окончания",era:"эра",hour:"час",minute:"минута",month:"месяц",second:"секунда",selectedDateDescription:e=>`Выбранная дата: ${e.date}`,selectedRangeDescription:e=>`Выбранный диапазон: с ${e.startDate} по ${e.endDate}`,selectedTimeDescription:e=>`Выбранное время: ${e.time}`,startDate:"Дата начала",timeZoneName:"часовой пояс",weekday:"день недели",year:"год"};var Cg;Cg={calendar:"Kalendár",day:"deň",dayPeriod:"AM/PM",endDate:"Dátum ukončenia",era:"letopočet",hour:"hodina",minute:"minúta",month:"mesiac",second:"sekunda",selectedDateDescription:e=>`Vybratý dátum: ${e.date}`,selectedRangeDescription:e=>`Vybratý rozsah: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Vybratý čas: ${e.time}`,startDate:"Dátum začatia",timeZoneName:"časové pásmo",weekday:"deň týždňa",year:"rok"};var xg;xg={calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:e=>`Izbrani datum: ${e.date}`,selectedRangeDescription:e=>`Izbrano območje: ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izbrani čas: ${e.time}`,startDate:"Datum začetka",timeZoneName:"časovni pas",weekday:"dan v tednu",year:"leto"};var Sg;Sg={calendar:"Kalendar",day:"дан",dayPeriod:"пре подне/по подне",endDate:"Datum završetka",era:"ера",hour:"сат",minute:"минут",month:"месец",second:"секунд",selectedDateDescription:e=>`Izabrani datum: ${e.date}`,selectedRangeDescription:e=>`Izabrani opseg: od ${e.startDate} do ${e.endDate}`,selectedTimeDescription:e=>`Izabrano vreme: ${e.time}`,startDate:"Datum početka",timeZoneName:"временска зона",weekday:"дан у недељи",year:"година"};var kg;kg={calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:"månad",second:"sekund",selectedDateDescription:e=>`Valt datum: ${e.date}`,selectedRangeDescription:e=>`Valt intervall: ${e.startDate} till ${e.endDate}`,selectedTimeDescription:e=>`Vald tid: ${e.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:"år"};var Eg;Eg={calendar:"Takvim",day:"gün",dayPeriod:"ÖÖ/ÖS",endDate:"Bitiş Tarihi",era:"çağ",hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:e=>`Seçilen Tarih: ${e.date}`,selectedRangeDescription:e=>`Seçilen Aralık: ${e.startDate} - ${e.endDate}`,selectedTimeDescription:e=>`Seçilen Zaman: ${e.time}`,startDate:"Başlangıç Tarihi",timeZoneName:"saat dilimi",weekday:"haftanın günü",year:"yıl"};var Og;Og={calendar:"Календар",day:"день",dayPeriod:"дп/пп",endDate:"Дата завершення",era:"ера",hour:"година",minute:"хвилина",month:"місяць",second:"секунда",selectedDateDescription:e=>`Вибрана дата: ${e.date}`,selectedRangeDescription:e=>`Вибраний діапазон: ${e.startDate} — ${e.endDate}`,selectedTimeDescription:e=>`Вибраний час: ${e.time}`,startDate:"Дата початку",timeZoneName:"часовий пояс",weekday:"день тижня",year:"рік"};var Dg;Dg={calendar:"日历",day:"日",dayPeriod:"上午/下午",endDate:"结束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`选定的日期:${e.date}`,selectedRangeDescription:e=>`选定的范围:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`选定的时间:${e.time}`,startDate:"开始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Pg;Pg={calendar:"日曆",day:"日",dayPeriod:"上午/下午",endDate:"結束日期",era:"纪元",hour:"小时",minute:"分钟",month:"月",second:"秒",selectedDateDescription:e=>`選定的日期:${e.date}`,selectedRangeDescription:e=>`選定的範圍:${e.startDate} 至 ${e.endDate}`,selectedTimeDescription:e=>`選定的時間:${e.time}`,startDate:"開始日期",timeZoneName:"时区",weekday:"工作日",year:"年"};var Tg={};function Ag(e,t,n){let{direction:r}=Ll(),o=f((()=>gl(t)),[t]),i=()=>{var e;let n=null===(e=window.event)||void 0===e?void 0:e.target,r=hl(t.current,{tabbable:!0});if(n&&(r.currentNode=n,n=r.previousNode()),!n){let e;do{e=r.lastChild(),e&&(n=e)}while(e)}for(;null==n?void 0:n.hasAttribute("data-placeholder");){let e=r.previousNode();if(!e||!e.hasAttribute("data-placeholder"))break;n=e}n&&n.focus()},{pressProps:a}=Qi({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(e){"mouse"===e.pointerType&&i()},onPress(e){"mouse"!==e.pointerType&&i()}});return io(a,{onKeyDown:t=>{if(t.currentTarget.contains(t.target)&&(t.altKey&&("ArrowDown"===t.key||"ArrowUp"===t.key)&&"setOpen"in e&&(t.preventDefault(),t.stopPropagation(),e.setOpen(!0)),!n))switch(t.key){case"ArrowLeft":t.preventDefault(),t.stopPropagation(),"rtl"===r?o.focusNext():o.focusPrevious();break;case"ArrowRight":t.preventDefault(),t.stopPropagation(),"rtl"===r?o.focusPrevious():o.focusNext()}}})}Tg={"ar-AE":Gh,"bg-BG":Yh,"cs-CZ":Xh,"da-DK":Jh,"de-DE":Qh,"el-GR":eg,"en-US":tg,"es-ES":ng,"et-EE":rg,"fi-FI":og,"fr-FR":ig,"he-IL":ag,"hr-HR":lg,"hu-HU":sg,"it-IT":cg,"ja-JP":ug,"ko-KR":dg,"lt-LT":fg,"lv-LV":pg,"nb-NO":hg,"nl-NL":gg,"pl-PL":mg,"pt-BR":vg,"pt-PT":yg,"ro-RO":bg,"ru-RU":wg,"sk-SK":Cg,"sl-SI":xg,"sr-SP":Sg,"sv-SE":kg,"tr-TR":Eg,"uk-UA":Og,"zh-CN":Dg,"zh-TW":Pg};const Mg=new WeakMap,_g="__role_"+Date.now(),jg="__focusManager_"+Date.now();function Lg(e,t,n){var r;let{isInvalid:o,validationErrors:l,validationDetails:s}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:p}=Gd({...e,labelElementType:"span",isInvalid:o,errorMessage:e.errorMessage||l}),h=a(null),{focusWithinProps:g}=Ia({...e,onFocusWithin(n){var r;h.current=t.value,null===(r=e.onFocus)||void 0===r||r.call(e,n)},onBlurWithin:n=>{var r;t.confirmPlaceholder(),t.value!==h.current&&t.commitValidation(),null===(r=e.onBlur)||void 0===r||r.call(e,n)},onFocusWithinChange:e.onFocusChange}),m=Hl(function(e){return e&&e.__esModule?e.default:e}(Tg),"@react-aria/datepicker"),v="hour"===t.maxGranularity?"selectedTimeDescription":"selectedDateDescription",y="hour"===t.maxGranularity?"time":"date",b=Zo(t.value?m.format(v,{[y]:t.formatValue({month:"long"})}):""),w="presentation"===e[_g]?u["aria-describedby"]:[b["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")||void 0,C=e[jg],x=f((()=>C||gl(n)),[C,n]),S=Ag(t,n,"presentation"===e[_g]);Mg.set(t,{ariaLabel:e["aria-label"],ariaLabelledBy:[c.id,e["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:w,focusManager:x});let k,E=a(e.autoFocus);k="presentation"===e[_g]?{role:"presentation"}:io(u,{role:"group","aria-disabled":e.isDisabled||void 0,"aria-describedby":w}),i((()=>{E.current&&x.focusFirst(),E.current=!1}),[x]),ei(e.inputRef,t.value,t.setValue),Ld({...e,focus(){x.focusFirst()}},t,e.inputRef);let O={type:"hidden",name:e.name,value:(null===(r=t.value)||void 0===r?void 0:r.toString())||"",disabled:e.isDisabled};"native"===e.validationBehavior&&(O.type="text",O.hidden=!0,O.required=e.isRequired,O.onChange=()=>{});let D=fo(e);return{labelProps:{...c,onClick:()=>{x.focusFirst()}},fieldProps:io(D,k,S,g,{onKeyDown(t){e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){e.onKeyUp&&e.onKeyUp(t)}}),inputProps:O,descriptionProps:d,errorMessageProps:p,isInvalid:o,validationErrors:l,validationDetails:s}}class Rg{of(e){return this.dictionary.getStringForLocale(e,this.locale)}constructor(e,t){this.locale=e,this.dictionary=t}}function Ig(e,t,n){let r=a(""),{locale:i}=Ll(),l=function(){let{locale:e}=Ll(),t=Vl(function(e){return e&&e.__esModule?e.default:e}(Tg),"@react-aria/datepicker");return f((()=>{try{return new Intl.DisplayNames(e,{type:"dateTimeField"})}catch(n){return new Rg(e,t)}}),[e,t])}(),{ariaLabel:s,ariaLabelledBy:c,ariaDescribedBy:u,focusManager:d}=Mg.get(t),p=e.isPlaceholder?"":e.text,h=f((()=>t.dateFormatter.resolvedOptions()),[t.dateFormatter]),g=wu({month:"long",timeZone:h.timeZone}),m=wu({hour:"numeric",hour12:h.hour12,timeZone:h.timeZone});if("month"!==e.type||e.isPlaceholder)"hour"!==e.type||e.isPlaceholder||(p=m.format(t.dateValue));else{let e=g.format(t.dateValue);p=e!==p?`${p} – ${e}`:e}let{spinButtonProps:v}=of({value:e.value,textValue:p,minValue:e.minValue,maxValue:e.maxValue,isDisabled:t.isDisabled,isReadOnly:t.isReadOnly||!e.isEditable,isRequired:t.isRequired,onIncrement:()=>{r.current="",t.increment(e.type)},onDecrement:()=>{r.current="",t.decrement(e.type)},onIncrementPage:()=>{r.current="",t.incrementPage(e.type)},onDecrementPage:()=>{r.current="",t.decrementPage(e.type)},onIncrementToMax:()=>{r.current="",t.setSegment(e.type,e.maxValue)},onDecrementToMin:()=>{r.current="",t.setSegment(e.type,e.minValue)}}),y=f((()=>new Tu(i,{maximumFractionDigits:0})),[i]),b=()=>{if(e.text===e.placeholder&&d.focusPrevious(),!y.isValidPartialNumber(e.text)||t.isReadOnly||e.isPlaceholder)"dayPeriod"===e.type&&t.clearSegment(e.type);else{let n=e.text.slice(0,-1),o=y.parse(n);n=0===o?"":n,0===n.length||0===o?t.clearSegment(e.type):t.setSegment(e.type,o),r.current=n}},{startsWith:w}=Bu({sensitivity:"base"}),C=wu({hour:"numeric",hour12:!0}),x=f((()=>{let e=new Date;return e.setHours(0),C.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[C]),S=f((()=>{let e=new Date;return e.setHours(12),C.formatToParts(e).find((e=>"dayPeriod"===e.type)).value}),[C]),k=wu({year:"numeric",era:"narrow",timeZone:"UTC"}),E=f((()=>{if("era"!==e.type)return[];let n=Ms(new lc(1,1,1),t.calendar),r=t.calendar.getEras().map((e=>{let t=n.set({year:1,month:1,day:1,era:e}).toDate("UTC"),r=k.formatToParts(t).find((e=>"era"===e.type)).value;return{era:e,formatted:r}})),o=function(e){e.sort();let t=e[0],n=e[e.length-1];for(let e=0;e<t.length;e++)if(t[e]!==n[e])return e;return 0}(r.map((e=>e.formatted)));if(o)for(let e of r)e.formatted=e.formatted.slice(o);return r}),[k,t.calendar,e.type]),O=n=>{if(t.isDisabled||t.isReadOnly)return;let o=r.current+n;switch(e.type){case"dayPeriod":if(w(x,n))t.setSegment("dayPeriod",0);else{if(!w(S,n))break;t.setSegment("dayPeriod",12)}d.focusNext();break;case"era":{let e=E.find((e=>w(e.formatted,n)));e&&(t.setSegment("era",e.era),d.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!y.isValidPartialNumber(o))return;let i=y.parse(o),a=i,l=0===e.minValue;if("hour"===e.type&&t.dateFormatter.resolvedOptions().hour12){switch(t.dateFormatter.resolvedOptions().hourCycle){case"h11":i>11&&(a=y.parse(n));break;case"h12":l=!1,i>12&&(a=y.parse(n))}e.value>=12&&i>1&&(i+=12)}else i>e.maxValue&&(a=y.parse(n));if(isNaN(i))return;let s=0!==a||l;s&&t.setSegment(e.type,a),Number(i+"0")>e.maxValue||o.length>=String(e.maxValue).length?(r.current="",s&&d.focusNext()):r.current=o;break}}};qo(a("undefined"!=typeof document?document:null),"selectionchange",(()=>{let e=window.getSelection();n.current&&n.current.contains(e.anchorNode)&&e.collapse(n.current)}));let D=a("");qo(n,"beforeinput",(r=>{switch(r.preventDefault(),r.inputType){case"deleteContentBackward":case"deleteContentForward":y.isValidPartialNumber(e.text)&&!t.isReadOnly&&b();break;case"insertCompositionText":D.current=n.current.textContent,n.current.textContent=n.current.textContent;break;default:null!=r.data&&O(r.data)}})),qo(n,"input",(e=>{let{inputType:t,data:r}=e;if("insertCompositionText"===t)n.current.textContent=D.current,(w(x,r)||w(S,r))&&O(r)})),Zr((()=>{let e=n.current;return()=>{if(document.activeElement===e){d.focusPrevious()||d.focusNext()}}}),[n,d]);let P=Co()||"timeZoneName"===e.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{},T=f((()=>t.segments.find((e=>e.isEditable))),[t.segments]);e===T||t.isInvalid||(u=void 0);let A=Xr(),M=!t.isDisabled&&!t.isReadOnly&&e.isEditable,_=Io({"aria-label":`${"literal"===e.type?"":l.of(e.type)}${s?`, ${s}`:""}${c?", ":""}`,"aria-labelledby":c});return"literal"===e.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:io(v,_,{id:A,...P,"aria-invalid":t.isInvalid?"true":void 0,"aria-describedby":u,"aria-readonly":t.isReadOnly||!e.isEditable?"true":void 0,"data-placeholder":e.isPlaceholder||void 0,contentEditable:M,suppressContentEditableWarning:M,spellCheck:M?"false":void 0,autoCorrect:M?"off":void 0,[parseInt(o.version,10)>=17?"enterKeyHint":"enterkeyhint"]:M?"next":void 0,inputMode:t.isDisabled||"dayPeriod"===e.type||"era"===e.type||!M?void 0:"numeric",tabIndex:t.isDisabled?void 0:0,onKeyDown:e=>{if("a"===e.key&&(yo()?e.metaKey:e.ctrlKey)&&e.preventDefault(),!(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey))switch(e.key){case"Backspace":case"Delete":e.preventDefault(),e.stopPropagation(),b()}},onFocus:()=>{r.current="",Xo(n.current,{containingElement:Ko(n.current)}),window.getSelection().collapse(n.current)},style:{caretColor:"transparent"},onPointerDown(e){e.stopPropagation()},onMouseDown(e){e.stopPropagation()}})}}class Ng{isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findPreviousKey(e,t){let n=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=n;){let e=this.collection.getItem(n);if(!this.isDisabled(e)&&(!t||t(e)))return n;n=this.collection.getKeyBefore(n)}}findNextKey(e,t){let n=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=n;){let e=this.collection.getItem(n);if(!this.isDisabled(e)&&(!t||t(e)))return n;n=this.collection.getKeyAfter(n)}}getKeyBelow(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findNextKey(e,(e=>"item"===e.type))))){if(this.isCell(t)){return Rh(jh(this.collection.getItem(e),this.collection),t.index).key}if("row"===this.focusMode)return e}}getKeyAbove(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findPreviousKey(e,(e=>"item"===e.type))))){if(this.isCell(t)){return Rh(jh(this.collection.getItem(e),this.collection),t.index).key}if("row"===this.focusMode)return e}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=jh(t,this.collection);return"rtl"===this.direction?Ih(e).key:Lh(e).key}if(this.isCell(t)){let n=jh(this.collection.getItem(t.parentKey),this.collection),r="rtl"===this.direction?Rh(n,t.index-1):Rh(n,t.index+1);return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=jh(t,this.collection);return"rtl"===this.direction?Lh(e).key:Ih(e).key}if(this.isCell(t)){let n=jh(this.collection.getItem(t.parentKey),this.collection),r="rtl"===this.direction?Rh(n,t.index+1):Rh(n,t.index-1);return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,t){let n;if(null!=e){if(n=this.collection.getItem(e),!n)return;if(this.isCell(n)&&!t){return Lh(jh(this.collection.getItem(n.parentKey),this.collection)).key}}if(e=this.findNextKey(null,(e=>"item"===e.type)),null!=e&&n&&this.isCell(n)&&t||"cell"===this.focusMode){e=Lh(jh(this.collection.getItem(e),this.collection)).key}return e}getLastKey(e,t){let n;if(null!=e){if(n=this.collection.getItem(e),!n)return;if(this.isCell(n)&&!t){return Ih(jh(this.collection.getItem(n.parentKey),this.collection)).key}}if(e=this.findPreviousKey(null,(e=>"item"===e.type)),null!=e&&n&&this.isCell(n)&&t||"cell"===this.focusMode){e=Ih(jh(this.collection.getItem(e),this.collection)).key}return e}getKeyPageAbove(e){let t=this.layoutDelegate.getItemRect(e);if(!t)return null;let n=Math.max(0,t.y+t.height-this.layoutDelegate.getVisibleRect().height);for(;t&&t.y>n;)e=this.getKeyAbove(e),t=this.layoutDelegate.getItemRect(e);return e}getKeyPageBelow(e){let t=this.layoutDelegate.getItemRect(e);if(!t)return null;let n=this.layoutDelegate.getVisibleRect().height,r=Math.min(this.layoutDelegate.getContentSize().height,t.y+n);for(;t&&t.y+t.height<r;){let n=this.getKeyBelow(e);if(null==n)break;t=this.layoutDelegate.getItemRect(n),e=n}return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=null!=t?t:this.getFirstKey(),o=n.getItem(r);"cell"===o.type&&(r=o.parentKey);let i=!1;for(;null!=r;){let t=n.getItem(r);if(t.textValue){let n=t.textValue.slice(0,e.length);if(0===this.collator.compare(n,e))return this.isRow(t)&&"cell"===this.focusMode?Lh(jh(t,this.collection)).key:t.key}r=this.findNextKey(r,(e=>"item"===e.type)),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,this.layoutDelegate=e.layoutDelegate||(e.layout?new $g(e.layout):new Eh(e.ref)),this.focusMode=e.focusMode||"row"}}class $g{getContentSize(){return this.layout.getContentSize()}getItemRect(e){var t;return(null===(t=this.layout.getLayoutInfo(e))||void 0===t?void 0:t.rect)||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}constructor(e){this.layout=e}}const zg=new WeakMap;var Fg;Fg={deselectedItem:e=>`${e.item} غير المحدد`,longPressToSelect:"اضغط مطولًا للدخول إلى وضع التحديد.",select:"تحديد",selectedAll:"جميع العناصر المحددة.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"لم يتم تحديد عناصر",one:()=>`${t.number(e.count)} عنصر محدد`,other:()=>`${t.number(e.count)} عنصر محدد`})}.`,selectedItem:e=>`${e.item} المحدد`};var Bg;Bg={deselectedItem:e=>`${e.item} не е избран.`,longPressToSelect:"Натиснете и задръжте за да влезете в избирателен режим.",select:"Изберете",selectedAll:"Всички елементи са избрани.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани елементи",one:()=>`${t.number(e.count)} избран елемент`,other:()=>`${t.number(e.count)} избрани елементи`})}.`,selectedItem:e=>`${e.item} избран.`};var Kg;Kg={deselectedItem:e=>`Položka ${e.item} není vybrána.`,longPressToSelect:"Dlouhým stisknutím přejdete do režimu výběru.",select:"Vybrat",selectedAll:"Vybrány všechny položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nevybrány žádné položky",one:()=>`Vybrána ${t.number(e.count)} položka`,other:()=>`Vybráno ${t.number(e.count)} položek`})}.`,selectedItem:e=>`Vybrána položka ${e.item}.`};var Vg;Vg={deselectedItem:e=>`${e.item} ikke valgt.`,longPressToSelect:"Lav et langt tryk for at aktivere valgtilstand.",select:"Vælg",selectedAll:"Alle elementer valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer valgt",one:()=>`${t.number(e.count)} element valgt`,other:()=>`${t.number(e.count)} elementer valgt`})}.`,selectedItem:e=>`${e.item} valgt.`};var Hg;Hg={deselectedItem:e=>`${e.item} nicht ausgewählt.`,longPressToSelect:"Gedrückt halten, um Auswahlmodus zu öffnen.",select:"Auswählen",selectedAll:"Alle Elemente ausgewählt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Keine Elemente ausgewählt",one:()=>`${t.number(e.count)} Element ausgewählt`,other:()=>`${t.number(e.count)} Elemente ausgewählt`})}.`,selectedItem:e=>`${e.item} ausgewählt.`};var Ug;Ug={deselectedItem:e=>`Δεν επιλέχθηκε το στοιχείο ${e.item}.`,longPressToSelect:"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.",select:"Επιλογή",selectedAll:"Επιλέχθηκαν όλα τα στοιχεία.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκαν στοιχεία",one:()=>`Επιλέχθηκε ${t.number(e.count)} στοιχείο`,other:()=>`Επιλέχθηκαν ${t.number(e.count)} στοιχεία`})}.`,selectedItem:e=>`Επιλέχθηκε το στοιχείο ${e.item}.`};var Wg;Wg={deselectedItem:e=>`${e.item} not selected.`,select:"Select",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"No items selected",one:()=>`${t.number(e.count)} item selected`,other:()=>`${t.number(e.count)} items selected`})}.`,selectedAll:"All items selected.",selectedItem:e=>`${e.item} selected.`,longPressToSelect:"Long press to enter selection mode."};var Zg;Zg={deselectedItem:e=>`${e.item} no seleccionado.`,longPressToSelect:"Mantenga pulsado para abrir el modo de selección.",select:"Seleccionar",selectedAll:"Todos los elementos seleccionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ningún elemento seleccionado",one:()=>`${t.number(e.count)} elemento seleccionado`,other:()=>`${t.number(e.count)} elementos seleccionados`})}.`,selectedItem:e=>`${e.item} seleccionado.`};var qg;qg={deselectedItem:e=>`${e.item} pole valitud.`,longPressToSelect:"Valikurežiimi sisenemiseks vajutage pikalt.",select:"Vali",selectedAll:"Kõik üksused valitud.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Üksusi pole valitud",one:()=>`${t.number(e.count)} üksus valitud`,other:()=>`${t.number(e.count)} üksust valitud`})}.`,selectedItem:e=>`${e.item} valitud.`};var Gg;Gg={deselectedItem:e=>`Kohdetta ${e.item} ei valittu.`,longPressToSelect:"Siirry valintatilaan painamalla pitkään.",select:"Valitse",selectedAll:"Kaikki kohteet valittu.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ei yhtään kohdetta valittu",one:()=>`${t.number(e.count)} kohde valittu`,other:()=>`${t.number(e.count)} kohdetta valittu`})}.`,selectedItem:e=>`${e.item} valittu.`};var Yg;Yg={deselectedItem:e=>`${e.item} non sélectionné.`,longPressToSelect:"Appuyez de manière prolongée pour passer en mode de sélection.",select:"Sélectionner",selectedAll:"Tous les éléments sélectionnés.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",one:()=>`${t.number(e.count)} élément sélectionné`,other:()=>`${t.number(e.count)} éléments sélectionnés`})}.`,selectedItem:e=>`${e.item} sélectionné.`};var Xg;Xg={deselectedItem:e=>`${e.item} לא נבחר.`,longPressToSelect:"הקשה ארוכה לכניסה למצב בחירה.",select:"בחר",selectedAll:"כל הפריטים נבחרו.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"לא נבחרו פריטים",one:()=>`פריט ${t.number(e.count)} נבחר`,other:()=>`${t.number(e.count)} פריטים נבחרו`})}.`,selectedItem:e=>`${e.item} נבחר.`};var Jg;Jg={deselectedItem:e=>`Stavka ${e.item} nije odabrana.`,longPressToSelect:"Dugo pritisnite za ulazak u način odabira.",select:"Odaberite",selectedAll:"Odabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije odabrana nijedna stavka",one:()=>`Odabrana je ${t.number(e.count)} stavka`,other:()=>`Odabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`Stavka ${e.item} je odabrana.`};var Qg;Qg={deselectedItem:e=>`${e.item} nincs kijelölve.`,longPressToSelect:"Nyomja hosszan a kijelöléshez.",select:"Kijelölés",selectedAll:"Az összes elem kijelölve.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Egy elem sincs kijelölve",one:()=>`${t.number(e.count)} elem kijelölve`,other:()=>`${t.number(e.count)} elem kijelölve`})}.`,selectedItem:e=>`${e.item} kijelölve.`};var em;em={deselectedItem:e=>`${e.item} non selezionato.`,longPressToSelect:"Premi a lungo per passare alla modalità di selezione.",select:"Seleziona",selectedAll:"Tutti gli elementi selezionati.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nessun elemento selezionato",one:()=>`${t.number(e.count)} elemento selezionato`,other:()=>`${t.number(e.count)} elementi selezionati`})}.`,selectedItem:e=>`${e.item} selezionato.`};var tm;tm={deselectedItem:e=>`${e.item} が選択されていません。`,longPressToSelect:"長押しして選択モードを開きます。",select:"選択",selectedAll:"すべての項目を選択しました。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"項目が選択されていません",one:()=>`${t.number(e.count)} 項目を選択しました`,other:()=>`${t.number(e.count)} 項目を選択しました`})}。`,selectedItem:e=>`${e.item} を選択しました。`};var nm;nm={deselectedItem:e=>`${e.item}이(가) 선택되지 않았습니다.`,longPressToSelect:"선택 모드로 들어가려면 길게 누르십시오.",select:"선택",selectedAll:"모든 항목이 선택되었습니다.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목이 없습니다",one:()=>`${t.number(e.count)}개 항목이 선택되었습니다`,other:()=>`${t.number(e.count)}개 항목이 선택되었습니다`})}.`,selectedItem:e=>`${e.item}이(가) 선택되었습니다.`};var rm;rm={deselectedItem:e=>`${e.item} nepasirinkta.`,longPressToSelect:"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.",select:"Pasirinkti",selectedAll:"Pasirinkti visi elementai.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nepasirinktas nė vienas elementas",one:()=>`Pasirinktas ${t.number(e.count)} elementas`,other:()=>`Pasirinkta elementų: ${t.number(e.count)}`})}.`,selectedItem:e=>`Pasirinkta: ${e.item}.`};var om;om={deselectedItem:e=>`Vienums ${e.item} nav atlasīts.`,longPressToSelect:"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.",select:"Atlasīt",selectedAll:"Atlasīti visi vienumi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts neviens vienums",one:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`,other:()=>`Atlasīto vienumu skaits: ${t.number(e.count)}`})}.`,selectedItem:e=>`Atlasīts vienums ${e.item}.`};var im;im={deselectedItem:e=>`${e.item} er ikke valgt.`,longPressToSelect:"Bruk et langt trykk for å gå inn i valgmodus.",select:"Velg",selectedAll:"Alle elementer er valgt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Ingen elementer er valgt",one:()=>`${t.number(e.count)} element er valgt`,other:()=>`${t.number(e.count)} elementer er valgt`})}.`,selectedItem:e=>`${e.item} er valgt.`};var am;am={deselectedItem:e=>`${e.item} niet geselecteerd.`,longPressToSelect:"Druk lang om de selectiemodus te openen.",select:"Selecteren",selectedAll:"Alle items geselecteerd.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Geen items geselecteerd",one:()=>`${t.number(e.count)} item geselecteerd`,other:()=>`${t.number(e.count)} items geselecteerd`})}.`,selectedItem:e=>`${e.item} geselecteerd.`};var lm;lm={deselectedItem:e=>`Nie zaznaczono ${e.item}.`,longPressToSelect:"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.",select:"Zaznacz",selectedAll:"Wszystkie zaznaczone elementy.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnych elementów",one:()=>`${t.number(e.count)} zaznaczony element`,other:()=>`${t.number(e.count)} zaznaczonych elementów`})}.`,selectedItem:e=>`Zaznaczono ${e.item}.`};var sm;sm={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Mantenha pressionado para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var cm;cm={deselectedItem:e=>`${e.item} não selecionado.`,longPressToSelect:"Prima continuamente para entrar no modo de seleção.",select:"Selecionar",selectedAll:"Todos os itens selecionados.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum item selecionado",one:()=>`${t.number(e.count)} item selecionado`,other:()=>`${t.number(e.count)} itens selecionados`})}.`,selectedItem:e=>`${e.item} selecionado.`};var um;um={deselectedItem:e=>`${e.item} neselectat.`,longPressToSelect:"Apăsați lung pentru a intra în modul de selectare.",select:"Selectare",selectedAll:"Toate elementele selectate.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Niciun element selectat",one:()=>`${t.number(e.count)} element selectat`,other:()=>`${t.number(e.count)} elemente selectate`})}.`,selectedItem:e=>`${e.item} selectat.`};var dm;dm={deselectedItem:e=>`${e.item} не выбрано.`,longPressToSelect:"Нажмите и удерживайте для входа в режим выбора.",select:"Выбрать",selectedAll:"Выбраны все элементы.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Нет выбранных элементов",one:()=>`${t.number(e.count)} элемент выбран`,other:()=>`${t.number(e.count)} элементов выбрано`})}.`,selectedItem:e=>`${e.item} выбрано.`};var fm;fm={deselectedItem:e=>`Nevybraté položky: ${e.item}.`,longPressToSelect:"Dlhším stlačením prejdite do režimu výberu.",select:"Vybrať",selectedAll:"Všetky vybraté položky.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",one:()=>`${t.number(e.count)} vybratá položka`,other:()=>`Počet vybratých položiek:${t.number(e.count)}`})}.`,selectedItem:e=>`Vybraté položky: ${e.item}.`};var pm;pm={deselectedItem:e=>`Element ${e.item} ni izbran.`,longPressToSelect:"Za izbirni način pritisnite in dlje časa držite.",select:"Izberite",selectedAll:"Vsi elementi so izbrani.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Noben element ni izbran",one:()=>`${t.number(e.count)} element je izbran`,other:()=>`${t.number(e.count)} elementov je izbranih`})}.`,selectedItem:e=>`Element ${e.item} je izbran.`};var hm;hm={deselectedItem:e=>`${e.item} nije izabrano.`,longPressToSelect:"Dugo pritisnite za ulazak u režim biranja.",select:"Izaberite",selectedAll:"Izabrane su sve stavke.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Nije izabrana nijedna stavka",one:()=>`Izabrana je ${t.number(e.count)} stavka`,other:()=>`Izabrano je ${t.number(e.count)} stavki`})}.`,selectedItem:e=>`${e.item} je izabrano.`};var gm;gm={deselectedItem:e=>`${e.item} ej markerat.`,longPressToSelect:"Tryck länge när du vill öppna väljarläge.",select:"Markera",selectedAll:"Alla markerade objekt.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade objekt",one:()=>`${t.number(e.count)} markerat objekt`,other:()=>`${t.number(e.count)} markerade objekt`})}.`,selectedItem:e=>`${e.item} markerat.`};var mm;mm={deselectedItem:e=>`${e.item} seçilmedi.`,longPressToSelect:"Seçim moduna girmek için uzun basın.",select:"Seç",selectedAll:"Tüm ögeler seçildi.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbir öge seçilmedi",one:()=>`${t.number(e.count)} öge seçildi`,other:()=>`${t.number(e.count)} öge seçildi`})}.`,selectedItem:e=>`${e.item} seçildi.`};var vm;vm={deselectedItem:e=>`${e.item} не вибрано.`,longPressToSelect:"Виконайте довге натиснення, щоб перейти в режим вибору.",select:"Вибрати",selectedAll:"Усі елементи вибрано.",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"Жодних елементів не вибрано",one:()=>`${t.number(e.count)} елемент вибрано`,other:()=>`Вибрано елементів: ${t.number(e.count)}`})}.`,selectedItem:e=>`${e.item} вибрано.`};var ym;ym={deselectedItem:e=>`未选择 ${e.item}。`,longPressToSelect:"长按以进入选择模式。",select:"选择",selectedAll:"已选择所有项目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未选择项目",one:()=>`已选择 ${t.number(e.count)} 个项目`,other:()=>`已选择 ${t.number(e.count)} 个项目`})}。`,selectedItem:e=>`已选择 ${e.item}。`};var bm;bm={deselectedItem:e=>`未選取「${e.item}」。`,longPressToSelect:"長按以進入選擇模式。",select:"選取",selectedAll:"已選取所有項目。",selectedCount:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",one:()=>`已選取 ${t.number(e.count)} 個項目`,other:()=>`已選取 ${t.number(e.count)} 個項目`})}。`,selectedItem:e=>`已選取「${e.item}」。`};var wm={};function Cm(e,t){let n=new Set;if("all"===e||"all"===t)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function xm(e,t,n){let{isVirtualized:r,keyboardDelegate:o,focusMode:i,scrollRef:s,getRowText:c,onRowAction:u,onCellAction:d}=e,{selectionManager:p}=t;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let g=Fu({usage:"search",sensitivity:"base"}),{direction:m}=Ll(),v=t.selectionManager.disabledBehavior,y=f((()=>o||new Ng({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:v,ref:n,direction:m,collator:g,focusMode:i})),[o,t.collection,t.disabledKeys,v,n,m,g,i]),{collectionProps:b}=Ch({ref:n,selectionManager:p,keyboardDelegate:y,isVirtualized:r,scrollRef:s}),w=Xr(e.id);zg.set(t,{keyboardDelegate:y,actions:{onRowAction:u,onCellAction:d}});let C=function(e){let t=Hl(function(e){return e&&e.__esModule?e.default:e}(wm),"@react-aria/grid"),n=ja(),r=("pointer"===n||"virtual"===n||null==n)&&"undefined"!=typeof window&&"ontouchstart"in window,o=f((()=>{let n,o=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return r&&(n=t.format("longPressToSelect")),"replace"===i&&"none"!==o&&e.hasItemActions?n:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]);return Zo(o)}({selectionManager:p,hasItemActions:!(!u&&!d)}),x=fo(e,{labelable:!0}),S=h((e=>{p.isFocused?e.currentTarget.contains(e.target)||p.setFocused(!1):e.currentTarget.contains(e.target)&&p.setFocused(!0)}),[p]),k=f((()=>({onBlur:b.onBlur,onFocus:S})),[S,b.onBlur]),E=function(e,t){let n=null==t?void 0:t.isDisabled,[r,o]=l(!1);return Zr((()=>{if((null==e?void 0:e.current)&&!n){let t=()=>{if(e.current){let t=hl(e.current,{tabbable:!0});o(!!t.nextNode())}};t();let n=new MutationObserver(t);return n.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{n.disconnect()}}})),!n&&r}(n,{isDisabled:0!==t.collection.size}),O=io(x,{role:"grid",id:w,"aria-multiselectable":"multiple"===p.selectionMode?"true":void 0},t.isKeyboardNavigationDisabled?k:b,0===t.collection.size&&{tabIndex:E?-1:0},C);return r&&(O["aria-rowcount"]=t.collection.size,O["aria-colcount"]=t.collection.columnCount),function(e,t){let{getRowText:n=(e=>{var n,r,o,i;return null!==(i=null===(n=(r=t.collection).getTextValue)||void 0===n?void 0:n.call(r,e))&&void 0!==i?i:null===(o=t.collection.getItem(e))||void 0===o?void 0:o.textValue})}=e,r=Hl(function(e){return e&&e.__esModule?e.default:e}(wm),"@react-aria/grid"),o=t.selectionManager.rawSelection,i=a(o);$o((()=>{var e;if(!t.selectionManager.isFocused)return void(i.current=o);let a=Cm(o,i.current),l=Cm(i.current,o),s="replace"===t.selectionManager.selectionBehavior,c=[];if(1===t.selectionManager.selectedKeys.size&&s){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=n(t.selectionManager.selectedKeys.keys().next().value);e&&c.push(r.format("selectedItem",{item:e}))}}else if(1===a.size&&0===l.size){let e=n(a.keys().next().value);e&&c.push(r.format("selectedItem",{item:e}))}else if(1===l.size&&0===a.size&&t.collection.getItem(l.keys().next().value)){let e=n(l.keys().next().value);e&&c.push(r.format("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===c.length||"all"===o||o.size>1||"all"===i.current||(null===(e=i.current)||void 0===e?void 0:e.size)>1)&&c.push("all"===o?r.format("selectedAll"):r.format("selectedCount",{count:o.size})),c.length>0&&Ad(c.join(" ")),i.current=o}),[o])}({getRowText:c},t),{gridProps:O}}function Sm(e,t,n){let{node:r,isVirtualized:o,focusMode:i="child",shouldSelectOnPressUp:l,onAction:s}=e,{direction:c}=Ll(),{keyboardDelegate:u,actions:{onCellAction:d}}=zg.get(t),f=a(null),p=()=>{let e=hl(n.current);if("child"===i){if(n.current.contains(document.activeElement)&&n.current!==document.activeElement)return;let r="last"===t.selectionManager.childFocusStrategy?km(e):e.firstChild();if(r)return void Ga(r)}(null!=f.current&&r.key!==f.current||!n.current.contains(document.activeElement))&&Ga(n.current)},{itemProps:h,isPressed:g}=xh({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,focus:p,shouldSelectOnPressUp:l,onAction:d?()=>d(r.key):s,isDisabled:0===t.collection.size}),m=io(h,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target)||t.isKeyboardNavigationDisabled)return;let o=hl(n.current);switch(o.currentNode=document.activeElement,e.key){case"ArrowLeft":{let t="rtl"===c?o.nextNode():o.previousNode();if("child"===i&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)Ga(t),Xo(t,{containingElement:Ko(n.current)});else{if(u.getKeyLeftOf(r.key)!==r.key){n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}"cell"===i&&"rtl"===c?(Ga(n.current),Xo(n.current,{containingElement:Ko(n.current)})):(o.currentNode=n.current,t="rtl"===c?o.firstChild():km(o),t&&(Ga(t),Xo(t,{containingElement:Ko(n.current)})))}break}case"ArrowRight":{let t="rtl"===c?o.previousNode():o.nextNode();if("child"===i&&t===n.current&&(t=null),e.preventDefault(),e.stopPropagation(),t)Ga(t),Xo(t,{containingElement:Ko(n.current)});else{if(u.getKeyRightOf(r.key)!==r.key){n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent));break}"cell"===i&&"ltr"===c?(Ga(n.current),Xo(n.current,{containingElement:Ko(n.current)})):(o.currentNode=n.current,t="rtl"===c?km(o):o.firstChild(),t&&(Ga(t),Xo(t,{containingElement:Ko(n.current)})))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&n.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{f.current=r.key,e.target===n.current?requestAnimationFrame((()=>{"child"===i&&document.activeElement===n.current&&p()})):Aa()||t.selectionManager.setFocusedKey(r.key)}});var v;return o&&(m["aria-colindex"]=(null!==(v=r.colIndex)&&void 0!==v?v:r.index)+1),l&&null!=m.tabIndex&&null==m.onPointerDown&&(m.onPointerDown=e=>{let t=e.currentTarget,n=t.getAttribute("tabindex");t.removeAttribute("tabindex"),requestAnimationFrame((()=>{t.setAttribute("tabindex",n)}))}),{gridCellProps:m,isPressed:g}}function km(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}wm={"ar-AE":Fg,"bg-BG":Bg,"cs-CZ":Kg,"da-DK":Vg,"de-DE":Hg,"el-GR":Ug,"en-US":Wg,"es-ES":Zg,"et-EE":qg,"fi-FI":Gg,"fr-FR":Yg,"he-IL":Xg,"hr-HR":Jg,"hu-HU":Qg,"it-IT":em,"ja-JP":tm,"ko-KR":nm,"lt-LT":rm,"lv-LV":om,"nb-NO":im,"nl-NL":am,"pl-PL":lm,"pt-BR":sm,"pt-PT":cm,"ro-RO":um,"ru-RU":dm,"sk-SK":fm,"sl-SI":pm,"sr-SP":hm,"sv-SE":gm,"tr-TR":mm,"uk-UA":vm,"zh-CN":ym,"zh-TW":bm};var Em={};Em={"ar-AE":{"Clear search":"مسح البحث"},"bg-BG":{"Clear search":"Изчистване на търсене"},"cs-CZ":{"Clear search":"Vymazat hledání"},"da-DK":{"Clear search":"Ryd søgning"},"de-DE":{"Clear search":"Suche zurücksetzen"},"el-GR":{"Clear search":"Απαλοιφή αναζήτησης"},"en-US":{"Clear search":"Clear search"},"es-ES":{"Clear search":"Borrar búsqueda"},"et-EE":{"Clear search":"Tühjenda otsing"},"fi-FI":{"Clear search":"Tyhjennä haku"},"fr-FR":{"Clear search":"Effacer la recherche"},"he-IL":{"Clear search":"נקה חיפוש"},"hr-HR":{"Clear search":"Obriši pretragu"},"hu-HU":{"Clear search":"Keresés törlése"},"it-IT":{"Clear search":"Cancella ricerca"},"ja-JP":{"Clear search":"検索をクリア"},"ko-KR":{"Clear search":"검색 지우기"},"lt-LT":{"Clear search":"Išvalyti iešką"},"lv-LV":{"Clear search":"Notīrīt meklēšanu"},"nb-NO":{"Clear search":"Tøm søk"},"nl-NL":{"Clear search":"Zoekactie wissen"},"pl-PL":{"Clear search":"Wyczyść zawartość wyszukiwania"},"pt-BR":{"Clear search":"Limpar pesquisa"},"pt-PT":{"Clear search":"Limpar pesquisa"},"ro-RO":{"Clear search":"Ştergeţi căutarea"},"ru-RU":{"Clear search":"Очистить поиск"},"sk-SK":{"Clear search":"Vymazať vyhľadávanie"},"sl-SI":{"Clear search":"Počisti iskanje"},"sr-SP":{"Clear search":"Obriši pretragu"},"sv-SE":{"Clear search":"Rensa sökning"},"tr-TR":{"Clear search":"Aramayı temizle"},"uk-UA":{"Clear search":"Очистити пошук"},"zh-CN":{"Clear search":"清除搜索"},"zh-TW":{"Clear search":"清除搜尋條件"}};const Om=new WeakMap;function Dm(e){let{state:t,triggerRef:n,label:r,name:i,isDisabled:l}=e,s=a(null),{containerProps:c,inputProps:u,selectProps:d}=function(e,t,n){let r=Om.get(t)||{},{autoComplete:o,name:i=r.name,isDisabled:a=r.isDisabled}=e,{validationBehavior:l,isRequired:s}=r,c=ja(),{visuallyHiddenProps:u}=Qd();var d;return ei(e.selectRef,t.selectedKey,t.setSelectedKey),Ld({validationBehavior:l,focus:()=>n.current.focus()},t,e.selectRef),{containerProps:{...u,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:null==c||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:a},selectProps:{tabIndex:-1,autoComplete:o,disabled:a,required:"native"===l&&s,name:i,value:null!==(d=t.selectedKey)&&void 0!==d?d:"",onChange:e=>t.setSelectedKey(e.target.value)}}}({...e,selectRef:s},t,n);var f;return t.collection.size<=300?o.createElement("div",{...c,"data-testid":"hidden-select-container"},o.createElement("input",u),o.createElement("label",null,r,o.createElement("select",{...d,ref:s},o.createElement("option",null),[...t.collection.getKeys()].map((e=>{let n=t.collection.getItem(e);if("item"===n.type)return o.createElement("option",{key:n.key,value:n.key},n.textValue)}))))):i?o.createElement("input",{type:"hidden",autoComplete:d.autoComplete,name:i,disabled:l,value:null!==(f=t.selectedKey)&&void 0!==f?f:""}):null}const Pm=new WeakMap;function Tm(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function Am(e,t){let n=Pm.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${Tm(t)}`}function Mm(e,t,n){let r=Pm.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${Tm(t)}-${Tm(n)}`}function _m(e,t){return[...e.collection.rowHeaderColumnKeys].map((n=>Mm(e,t,n))).join(" ")}var jm;jm={ascending:"تصاعدي",ascendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تصاعدي`,columnSize:e=>`${e.value} بالبكسل`,descending:"تنازلي",descendingSort:e=>`ترتيب حسب العمود ${e.columnName} بترتيب تنازلي`,resizerDescription:"اضغط على مفتاح Enter لبدء تغيير الحجم",select:"تحديد",selectAll:"تحديد الكل",sortable:"عمود قابل للترتيب"};var Lm;Lm={ascending:"възходящ",ascendingSort:e=>`сортирано по колона ${e.columnName} във възходящ ред`,columnSize:e=>`${e.value} пиксела`,descending:"низходящ",descendingSort:e=>`сортирано по колона ${e.columnName} в низходящ ред`,resizerDescription:"Натиснете „Enter“, за да започнете да преоразмерявате",select:"Изберете",selectAll:"Изберете всичко",sortable:"сортираща колона"};var Rm;Rm={ascending:"vzestupně",ascendingSort:e=>`řazeno vzestupně podle sloupce ${e.columnName}`,columnSize:e=>`${e.value} pixelů`,descending:"sestupně",descendingSort:e=>`řazeno sestupně podle sloupce ${e.columnName}`,resizerDescription:"Stisknutím klávesy Enter začnete měnit velikost",select:"Vybrat",selectAll:"Vybrat vše",sortable:"sloupec s možností řazení"};var Im;Im={ascending:"stigende",ascendingSort:e=>`sorteret efter kolonne ${e.columnName} i stigende rækkefølge`,columnSize:e=>`${e.value} pixels`,descending:"faldende",descendingSort:e=>`sorteret efter kolonne ${e.columnName} i faldende rækkefølge`,resizerDescription:"Tryk på Enter for at ændre størrelse",select:"Vælg",selectAll:"Vælg alle",sortable:"sorterbar kolonne"};var Nm;Nm={ascending:"aufsteigend",ascendingSort:e=>`sortiert nach Spalte ${e.columnName} in aufsteigender Reihenfolge`,columnSize:e=>`${e.value} Pixel`,descending:"absteigend",descendingSort:e=>`sortiert nach Spalte ${e.columnName} in absteigender Reihenfolge`,resizerDescription:"Eingabetaste zum Starten der Größenänderung drücken",select:"Auswählen",selectAll:"Alles auswählen",sortable:"sortierbare Spalte"};var $m;$m={ascending:"αύξουσα",ascendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε αύξουσα σειρά`,columnSize:e=>`${e.value} pixel`,descending:"φθίνουσα",descendingSort:e=>`διαλογή ανά στήλη ${e.columnName} σε φθίνουσα σειρά`,resizerDescription:"Πατήστε Enter για έναρξη της αλλαγής μεγέθους",select:"Επιλογή",selectAll:"Επιλογή όλων",sortable:"Στήλη διαλογής"};var zm;zm={select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:e=>`sorted by column ${e.columnName} in ascending order`,descendingSort:e=>`sorted by column ${e.columnName} in descending order`,columnSize:e=>`${e.value} pixels`,resizerDescription:"Press Enter to start resizing"};var Fm;Fm={ascending:"de subida",ascendingSort:e=>`ordenado por columna ${e.columnName} en orden de subida`,columnSize:e=>`${e.value} píxeles`,descending:"de bajada",descendingSort:e=>`ordenado por columna ${e.columnName} en orden de bajada`,resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"};var Bm;Bm={ascending:"tõusev järjestus",ascendingSort:e=>`sorditud veeru järgi ${e.columnName} tõusvas järjestuses`,columnSize:e=>`${e.value} pikslit`,descending:"laskuv järjestus",descendingSort:e=>`sorditud veeru järgi ${e.columnName} laskuvas järjestuses`,resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali kõik",sortable:"sorditav veerg"};var Km;Km={ascending:"nouseva",ascendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan nousevassa järjestyksessä`,columnSize:e=>`${e.value} pikseliä`,descending:"laskeva",descendingSort:e=>`lajiteltu sarakkeen ${e.columnName} mukaan laskevassa järjestyksessä`,resizerDescription:"Aloita koon muutos painamalla Enter-näppäintä",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"};var Vm;Vm={ascending:"croissant",ascendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre croissant`,columnSize:e=>`${e.value} pixels`,descending:"décroissant",descendingSort:e=>`trié en fonction de la colonne ${e.columnName} par ordre décroissant`,resizerDescription:"Appuyez sur Entrée pour commencer le redimensionnement.",select:"Sélectionner",selectAll:"Sélectionner tout",sortable:"colonne triable"};var Hm;Hm={ascending:"עולה",ascendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר עולה`,columnSize:e=>`${e.value} פיקסלים`,descending:"יורד",descendingSort:e=>`מוין לפי עמודה ${e.columnName} בסדר יורד`,resizerDescription:"הקש Enter כדי לשנות את הגודל",select:"בחר",selectAll:"בחר הכול",sortable:"עמודה שניתן למיין"};var Um;Um={ascending:"rastući",ascendingSort:e=>`razvrstano po stupcima ${e.columnName} rastućem redoslijedom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`razvrstano po stupcima ${e.columnName} padajućim redoslijedom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se može razvrstati"};var Wm;Wm={ascending:"növekvő",ascendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, növekvő sorrendben`,columnSize:e=>`${e.value} képpont`,descending:"csökkenő",descendingSort:e=>`rendezve a(z) ${e.columnName} oszlop szerint, csökkenő sorrendben`,resizerDescription:"Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",select:"Kijelölés",selectAll:"Összes kijelölése",sortable:"rendezendő oszlop"};var Zm;Zm={ascending:"crescente",ascendingSort:e=>`in ordine crescente in base alla colonna ${e.columnName}`,columnSize:e=>`${e.value} pixel`,descending:"decrescente",descendingSort:e=>`in ordine decrescente in base alla colonna ${e.columnName}`,resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"};var qm;qm={ascending:"昇順",ascendingSort:e=>`列 ${e.columnName} を昇順で並べ替え`,columnSize:e=>`${e.value} ピクセル`,descending:"降順",descendingSort:e=>`列 ${e.columnName} を降順で並べ替え`,resizerDescription:"Enter キーを押してサイズ変更を開始",select:"選択",selectAll:"すべて選択",sortable:"並べ替え可能な列"};var Gm;Gm={ascending:"오름차순",ascendingSort:e=>`${e.columnName} 열을 기준으로 오름차순으로 정렬됨`,columnSize:e=>`${e.value} 픽셀`,descending:"내림차순",descendingSort:e=>`${e.columnName} 열을 기준으로 내림차순으로 정렬됨`,resizerDescription:"크기 조정을 시작하려면 Enter를 누르세요.",select:"선택",selectAll:"모두 선택",sortable:"정렬 가능한 열"};var Ym;Ym={ascending:"didėjančia tvarka",ascendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} didėjančia tvarka`,columnSize:e=>`${e.value} piks.`,descending:"mažėjančia tvarka",descendingSort:e=>`surikiuota pagal stulpelį ${e.columnName} mažėjančia tvarka`,resizerDescription:"Paspauskite „Enter“, kad pradėtumėte keisti dydį",select:"Pasirinkti",selectAll:"Pasirinkti viską",sortable:"rikiuojamas stulpelis"};var Xm;Xm={ascending:"augošā secībā",ascendingSort:e=>`kārtots pēc kolonnas ${e.columnName} augošā secībā`,columnSize:e=>`${e.value} pikseļi`,descending:"dilstošā secībā",descendingSort:e=>`kārtots pēc kolonnas ${e.columnName} dilstošā secībā`,resizerDescription:"Nospiediet Enter, lai sāktu izmēru mainīšanu",select:"Atlasīt",selectAll:"Atlasīt visu",sortable:"kārtojamā kolonna"};var Jm;Jm={ascending:"stigende",ascendingSort:e=>`sortert etter kolonne ${e.columnName} i stigende rekkefølge`,columnSize:e=>`${e.value} piksler`,descending:"synkende",descendingSort:e=>`sortert etter kolonne ${e.columnName} i synkende rekkefølge`,resizerDescription:"Trykk på Enter for å starte størrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"};var Qm;Qm={ascending:"oplopend",ascendingSort:e=>`gesorteerd in oplopende volgorde in kolom ${e.columnName}`,columnSize:e=>`${e.value} pixels`,descending:"aflopend",descendingSort:e=>`gesorteerd in aflopende volgorde in kolom ${e.columnName}`,resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"};var ev;ev={ascending:"rosnąco",ascendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku rosnącym`,columnSize:e=>`Liczba pikseli: ${e.value}`,descending:"malejąco",descendingSort:e=>`posortowano według kolumny ${e.columnName} w porządku malejącym`,resizerDescription:"Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z możliwością sortowania"};var tv;tv={ascending:"crescente",ascendingSort:e=>`classificado pela coluna ${e.columnName} em ordem crescente`,columnSize:e=>`${e.value} pixels`,descending:"decrescente",descendingSort:e=>`classificado pela coluna ${e.columnName} em ordem decrescente`,resizerDescription:"Pressione Enter para começar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classificável"};var nv;nv={ascending:"ascendente",ascendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem ascendente`,columnSize:e=>`${e.value} pixels`,descending:"descendente",descendingSort:e=>`Ordenar por coluna ${e.columnName} em ordem descendente`,resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna ordenável"};var rv;rv={ascending:"crescătoare",ascendingSort:e=>`sortate după coloana ${e.columnName} în ordine crescătoare`,columnSize:e=>`${e.value} pixeli`,descending:"descrescătoare",descendingSort:e=>`sortate după coloana ${e.columnName} în ordine descrescătoare`,resizerDescription:"Apăsați pe Enter pentru a începe redimensionarea",select:"Selectare",selectAll:"Selectare totală",sortable:"coloană sortabilă"};var ov;ov={ascending:"возрастание",ascendingSort:e=>`сортировать столбец ${e.columnName} в порядке возрастания`,columnSize:e=>`${e.value} пикс.`,descending:"убывание",descendingSort:e=>`сортировать столбец ${e.columnName} в порядке убывания`,resizerDescription:"Нажмите клавишу Enter для начала изменения размеров",select:"Выбрать",selectAll:"Выбрать все",sortable:"сортируемый столбец"};var iv;iv={ascending:"vzostupne",ascendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,columnSize:e=>`Počet pixelov: ${e.value}`,descending:"zostupne",descendingSort:e=>`zoradené zostupne podľa stĺpca ${e.columnName}`,resizerDescription:"Stlačením klávesu Enter začnete zmenu veľkosti",select:"Vybrať",selectAll:"Vybrať všetko",sortable:"zoraditeľný stĺpec"};var av;av={ascending:"naraščajoče",ascendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v naraščajočem vrstnem redu`,columnSize:e=>`${e.value} slikovnih pik`,descending:"padajoče",descendingSort:e=>`razvrščeno po stolpcu ${e.columnName} v padajočem vrstnem redu`,resizerDescription:"Pritisnite tipko Enter da začnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"};var lv;lv={ascending:"rastući",ascendingSort:e=>`sortirano po kolonama ${e.columnName} rastućim redosledom`,columnSize:e=>`${e.value} piksela`,descending:"padajući",descendingSort:e=>`sortirano po kolonama ${e.columnName} padajućim redosledom`,resizerDescription:"Pritisnite Enter da biste započeli promenu veličine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se može sortirati"};var sv;sv={ascending:"stigande",ascendingSort:e=>`sorterat på kolumn ${e.columnName} i stigande ordning`,columnSize:e=>`${e.value} pixlar`,descending:"fallande",descendingSort:e=>`sorterat på kolumn ${e.columnName} i fallande ordning`,resizerDescription:"Tryck på Retur för att börja ändra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"};var cv;cv={ascending:"artan sırada",ascendingSort:e=>`${e.columnName} sütuna göre artan düzende sırala`,columnSize:e=>`${e.value} piksel`,descending:"azalan sırada",descendingSort:e=>`${e.columnName} sütuna göre azalan düzende sırala`,resizerDescription:"Yeniden boyutlandırmak için Enter'a basın",select:"Seç",selectAll:"Tümünü Seç",sortable:"Sıralanabilir sütun"};var uv;uv={ascending:"висхідний",ascendingSort:e=>`відсортовано за стовпцем ${e.columnName} у висхідному порядку`,columnSize:e=>`${e.value} пікс.`,descending:"низхідний",descendingSort:e=>`відсортовано за стовпцем ${e.columnName} у низхідному порядку`,resizerDescription:"Натисніть Enter, щоб почати зміну розміру",select:"Вибрати",selectAll:"Вибрати все",sortable:"сортувальний стовпець"};var dv;dv={ascending:"升序",ascendingSort:e=>`按列 ${e.columnName} 升序排序`,columnSize:e=>`${e.value} 像素`,descending:"降序",descendingSort:e=>`按列 ${e.columnName} 降序排序`,resizerDescription:"按“输入”键开始调整大小。",select:"选择",selectAll:"全选",sortable:"可排序的列"};var fv;fv={ascending:"遞增",ascendingSort:e=>`已依據「${e.columnName}」欄遞增排序`,columnSize:e=>`${e.value} 像素`,descending:"遞減",descendingSort:e=>`已依據「${e.columnName}」欄遞減排序`,resizerDescription:"按 Enter 鍵以開始調整大小",select:"選取",selectAll:"全選",sortable:"可排序的欄"};var pv={};pv={"ar-AE":jm,"bg-BG":Lm,"cs-CZ":Rm,"da-DK":Im,"de-DE":Nm,"el-GR":$m,"en-US":zm,"es-ES":Fm,"et-EE":Bm,"fi-FI":Km,"fr-FR":Vm,"he-IL":Hm,"hr-HR":Um,"hu-HU":Wm,"it-IT":Zm,"ja-JP":qm,"ko-KR":Gm,"lt-LT":Ym,"lv-LV":Xm,"nb-NO":Jm,"nl-NL":Qm,"pl-PL":ev,"pt-BR":tv,"pt-PT":nv,"ro-RO":rv,"ru-RU":ov,"sk-SK":iv,"sl-SI":av,"sr-SP":lv,"sv-SE":sv,"tr-TR":cv,"uk-UA":uv,"zh-CN":dv,"zh-TW":fv};class hv extends Ng{isCell(e){return"cell"===e.type||"rowheader"===e.type||"column"===e.type}getKeyBelow(e){let t=this.collection.getItem(e);if(t){if("column"===t.type){let e=Lh(jh(t,this.collection));if(e)return e.key;let n=this.getFirstKey();if(null==n)return;return Rh(jh(this.collection.getItem(n),this.collection),t.index).key}return super.getKeyBelow(e)}}getKeyAbove(e){let t=this.collection.getItem(e);if(!t)return;if("column"===t.type){let e=this.collection.getItem(t.parentKey);return e&&"column"===e.type?e.key:void 0}let n=super.getKeyAbove(e);return null!=n&&"headerrow"!==this.collection.getItem(n).type?n:this.isCell(t)?this.collection.columns[t.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let n=this.collection.headerRows[e.level];for(let e of jh(n,this.collection))if("column"===e.type)return e.key}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let n=[...jh(this.collection.headerRows[e.level],this.collection)];for(let e=n.length-1;e>=0;e--){let t=n[e];if("column"===t.type)return t.key}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e)}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e)}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=null!=t?t:this.getFirstKey();if(null==r)return null;let o=n.getItem(r);"cell"===o.type&&(r=o.parentKey);let i=!1;for(;null!=r;){let a=n.getItem(r);for(let r of jh(a,this.collection)){let i=n.columns[r.index];if(n.rowHeaderColumnKeys.has(i.key)&&r.textValue){let i=r.textValue.slice(0,e.length);if(0===this.collator.compare(i,e)){return"cell"===(null!=t?n.getItem(t):o).type?r.key:a.key}}}r=this.getKeyBelow(r),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}}let gv=!1;function mv(){return gv}const vv={ltr:"ArrowRight",rtl:"ArrowLeft"},yv={ltr:"ArrowLeft",rtl:"ArrowRight"};function bv(e,t,n){let{node:r,isVirtualized:o}=e,{rowProps:i,...a}=function(e,t,n){var r,o;let{node:i,isVirtualized:a,shouldSelectOnPressUp:l,onAction:s}=e,{actions:c}=zg.get(t),u=c.onRowAction?()=>c.onRowAction(i.key):s,{itemProps:d,...f}=xh({selectionManager:t.selectionManager,key:i.key,ref:n,isVirtualized:a,shouldSelectOnPressUp:l,onAction:u||(null==i||null===(r=i.props)||void 0===r?void 0:r.onAction)?eo(null==i||null===(o=i.props)||void 0===o?void 0:o.onAction,u):void 0,isDisabled:0===t.collection.size}),p=t.selectionManager.isSelected(i.key),h={role:"row","aria-selected":"none"!==t.selectionManager.selectionMode?p:void 0,"aria-disabled":f.isDisabled||void 0,...d};return a&&(h["aria-rowindex"]=i.index+1),{rowProps:h,...f}}(e,t,n),{direction:l}=Ll();!o||mv()&&"expandedKeys"in t?delete i["aria-rowindex"]:i["aria-rowindex"]=r.index+1+t.collection.headerRows.length;let s={};if(mv()&&"expandedKeys"in t){let e=t.keyMap.get(r.key);if(null!=e){var c,u,d;let n=(null===(c=e.props)||void 0===c?void 0:c.UNSTABLE_childItems)||(null===(d=e.props)||void 0===d||null===(u=d.children)||void 0===u?void 0:u.length)>t.userColumnCount;s={onKeyDown:r=>{(r.key===vv[l]&&t.selectionManager.focusedKey===e.key&&n&&"all"!==t.expandedKeys&&!t.expandedKeys.has(e.key)||r.key===yv[l]&&t.selectionManager.focusedKey===e.key&&n&&("all"===t.expandedKeys||t.expandedKeys.has(e.key)))&&(t.toggleKey(e.key),r.stopPropagation())},"aria-expanded":n?"all"===t.expandedKeys||t.expandedKeys.has(r.key):void 0,"aria-level":e.level,"aria-posinset":e.indexOfType+1,"aria-setsize":e.level>1?Ih(t.keyMap.get(null==e?void 0:e.parentKey).childNodes).indexOfType+1:Ih(t.keyMap.get(t.collection.body.key).childNodes).indexOfType+1}}}let f=function(e){var t;const n=Po().useHref(null!==(t=e.href)&&void 0!==t?t:"");return{"data-href":e.href?n:void 0,"data-target":e.target,"data-rel":e.rel,"data-download":e.download,"data-ping":e.ping,"data-referrer-policy":e.referrerPolicy}}(r.props);return{rowProps:{...io(i,s,a.hasAction?f:{}),"aria-labelledby":_m(t,r.key)},...a}}function wv(e,t){let{key:n}=e;const{checkboxProps:r}=function(e,t){let{key:n}=e,r=t.selectionManager,o=Xr(),i=!t.selectionManager.canSelectItem(n),a=t.selectionManager.isSelected(n);const l=Hl(function(e){return e&&e.__esModule?e.default:e}(wm),"@react-aria/grid");return{checkboxProps:{id:o,"aria-label":l.format("select"),isSelected:a,isDisabled:i,onChange:()=>r.toggleSelection(n)}}}(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${_m(t,n)}`}}}function Cv(e,t,n){let{column:r,triggerRef:o,isDisabled:l,onResizeStart:s,onResize:c,onResizeEnd:u,"aria-label":d}=e;const p=Hl(function(e){return e&&e.__esModule?e.default:e}(pv),"@react-aria/table");let g=Xr(),m=t.resizingColumn===r.key,v=a(m),y=a(null),b=a(!1),w=t.tableState.isKeyboardNavigationDisabled,{direction:C}=Ll(),{keyboardProps:x}=Wa({onKeyDown:e=>{w?"Escape"!==e.key&&"Enter"!==e.key&&" "!==e.key&&"Tab"!==e.key||(e.preventDefault(),E(r)):(e.continuePropagation(),"Enter"===e.key&&S(r))}}),S=qr((e=>{v.current||(y.current=t.updateResizedColumns(e.key,t.getColumnWidth(e.key)),t.startResize(e.key),t.tableState.setKeyboardNavigationDisabled(!0),null==s||s(y.current)),v.current=!0})),k=qr(((e,n)=>{let r=t.updateResizedColumns(e.key,n);null==c||c(r),y.current=r})),E=qr((e=>{v.current&&(null==y.current&&(y.current=t.updateResizedColumns(e.key,t.getColumnWidth(e.key))),t.endResize(),t.tableState.setKeyboardNavigationDisabled(!1),null==u||u(y.current),v.current=!1,(null==o?void 0:o.current)&&!b.current&&Ga(o.current)),y.current=null}));const O=a(0),{moveProps:D}=function(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=a({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:l}=Ro(),s=qr(((e,r,i,a)=>{0===i&&0===a||(o.current.didMove||(o.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),null==n||n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),c=qr(((e,t)=>{Ui(),o.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))})),u=f((()=>{let e={},t=()=>{Hi(),o.current.didMove=!1};if("undefined"==typeof PointerEvent){let n=e=>{var t,n,r,i;0===e.button&&(s(e,"mouse",e.pageX-(null!==(r=null===(t=o.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=o.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},r=e=>{0===e.button&&(c(e,"mouse"),l(window,"mousemove",n,!1),l(window,"mouseup",r,!1))};e.onMouseDown=e=>{0===e.button&&(t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",n,!1),i(window,"mouseup",r,!1))};let a=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id));if(t>=0){var n,r;let{pageX:l,pageY:c}=e.changedTouches[t];var i,a;s(e,"touch",l-(null!==(i=null===(n=o.current.lastPosition)||void 0===n?void 0:n.pageX)&&void 0!==i?i:0),c-(null!==(a=null===(r=o.current.lastPosition)||void 0===r?void 0:r.pageY)&&void 0!==a?a:0)),o.current.lastPosition={pageX:l,pageY:c}}},u=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id))>=0&&(c(e,"touch"),o.current.id=null,l(window,"touchmove",a),l(window,"touchend",u),l(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=o.current.id)return;let{pageX:n,pageY:r,identifier:l}=e.changedTouches[0];t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:n,pageY:r},o.current.id=l,i(window,"touchmove",a,!1),i(window,"touchend",u,!1),i(window,"touchcancel",u,!1)}}else{let n=e=>{if(e.pointerId===o.current.id){var t,n;let a=e.pointerType||"mouse";var r,i;s(e,a,e.pageX-(null!==(r=null===(t=o.current.lastPosition)||void 0===t?void 0:t.pageX)&&void 0!==r?r:0),e.pageY-(null!==(i=null===(n=o.current.lastPosition)||void 0===n?void 0:n.pageY)&&void 0!==i?i:0)),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},r=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";c(e,t),o.current.id=null,l(window,"pointermove",n,!1),l(window,"pointerup",r,!1),l(window,"pointercancel",r,!1)}};e.onPointerDown=e=>{0===e.button&&null==o.current.id&&(t(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,i(window,"pointermove",n,!1),i(window,"pointerup",r,!1),i(window,"pointercancel",r,!1))}}let n=(e,n,r)=>{t(),s(e,"keyboard",n,r),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),n(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),n(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),n(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),n(e,0,1)}},e}),[o,i,l,s,c]);return{moveProps:u}}({onMoveStart(){O.current=t.getColumnWidth(r.key),S(r)},onMove(e){let{deltaX:t,deltaY:n,pointerType:o}=e;"rtl"===C&&(t*=-1),"keyboard"===o&&(0!==n&&0===t&&(t=-1*n),t*=10),0!==t&&(O.current+=t,k(r,O.current))},onMoveEnd(e){let{pointerType:t}=e;O.current=0,("mouse"===t||"touch"===t&&b.current)&&E(r)}});let P=h((e=>{w&&D.onKeyDown(e)}),[w,D]),T=Math.floor(t.getColumnMinWidth(r.key)),A=Math.floor(t.getColumnMaxWidth(r.key));A===1/0&&(A=Number.MAX_SAFE_INTEGER);let M=Math.floor(t.getColumnWidth(r.key)),_=ja();"virtual"===_&&"undefined"!=typeof window&&"ontouchstart"in window&&(_="touch");let j=Zo(null!=(null==o?void 0:o.current)||"keyboard"!==_&&"virtual"!==_||m?void 0:p.format("resizerDescription")),L={"aria-label":d,"aria-orientation":"horizontal","aria-labelledby":`${g} ${Am(t.tableState,r.key)}`,"aria-valuetext":p.format("columnSize",{value:M}),type:"range",min:T,max:A,value:M,...j};const R=h((()=>{n.current&&Ga(n.current)}),[n]);let I=t.resizingColumn,N=a(null);i((()=>{if(N.current!==I&&null!=I&&I===r.key){b.current=document.activeElement===n.current,S(r);let e=setTimeout((()=>R()),0),t=setTimeout(R,400);return()=>{clearTimeout(e),clearTimeout(t)}}N.current=I}),[I,r,R,n,S]);let{pressProps:$}=Qi({onPressStart:e=>{e.ctrlKey||e.altKey||e.metaKey||e.shiftKey||"keyboard"===e.pointerType||("virtual"!==e.pointerType||null==t.resizingColumn?(R(),"virtual"!==e.pointerType&&S(r)):E(r))},onPress:e=>{("touch"===e.pointerType&&b.current||"mouse"===e.pointerType)&&null!=t.resizingColumn&&E(r)}}),{visuallyHiddenProps:z}=Qd();return{resizerProps:io(x,{...D,onKeyDown:P},$,{style:{touchAction:"none"}}),inputProps:io(z,{id:g,onBlur:()=>{E(r)},onChange:e=>{let n=t.getColumnWidth(r.key),o=parseFloat(e.target.value);o=o>n?n+10:n-10,k(r,o)},disabled:l},L),isResizing:m}}const xv=d({});function Sv(e,t){[e,t]=Ri(e,t,xv);let{elementType:n="label",...r}=e;return o.createElement(n,{className:"react-aria-Label",...r,ref:t})}const kv=Wr(Sv),Ev=d(null),Ov=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),Dv=d({});function Pv(e,t){[e,t]=Ri(e,t,Dv);let n=e=function(e){e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0);return e}(e),{isPending:r}=n,{buttonProps:l,isPressed:s}=function(e,t){let n,{elementType:r="button",isDisabled:o,onPress:i,onPressStart:a,onPressEnd:l,onPressUp:s,onPressChange:c,preventFocusOnPress:u,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:g,type:m="button"}=e;n="button"===r?{type:m,disabled:o}:{role:"button",tabIndex:o?void 0:0,href:"a"===r&&o?void 0:p,target:"a"===r?h:void 0,type:"input"===r?m:void 0,disabled:"input"===r?o:void 0,"aria-disabled":o&&"input"!==r?o:void 0,rel:"a"===r?g:void 0};let{pressProps:v,isPressed:y}=Qi({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:i,onPressUp:s,isDisabled:o,preventFocusOnPress:u,ref:t}),{focusableProps:b}=kl(e,t);d&&(b.tabIndex=o?-1:b.tabIndex);let w=io(b,v,fo(e,{labelable:!0}));return{isPressed:y,buttonProps:io(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}(e,t),{focusProps:c,isFocused:u,isFocusVisible:d}=wl(e),{hoverProps:f,isHovered:p}=Ka({...e,isDisabled:e.isDisabled||r}),h={isHovered:p,isPressed:(n.isPressed||s)&&!r,isFocused:u,isFocusVisible:d,isDisabled:e.isDisabled||!1,isPending:null!=r&&r},g=ji({...e,values:h,defaultClassName:"react-aria-Button"}),m=Xr(l.id),v=Xr(),y=l["aria-labelledby"];r&&(y?y=`${y} ${v}`:l["aria-label"]&&(y=`${m} ${v}`));let b=a(r);return i((()=>{let e={"aria-labelledby":y||m};(!b.current&&u&&r||b.current&&u&&!r)&&Ad(e,"assertive"),b.current=r}),[r,u,y,m]),o.createElement("button",{...fo(e,{propNames:Ov}),...io(l,c,f),...g,id:m,ref:t,"aria-labelledby":y,slot:e.slot||void 0,"aria-disabled":r?"true":l["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":h.isPressed||void 0,"data-hovered":p||void 0,"data-focused":u||void 0,"data-pending":r||void 0,"data-focus-visible":d||void 0},o.createElement(Ev.Provider,{value:{id:v}},g.children))}const Tv=Wr(Pv),Av=d({});function Mv(e,t){[e,t]=Ri(e,t,Av);let{elementType:n="span",...r}=e;return o.createElement(n,{className:"react-aria-Text",...r,ref:t})}const _v=s(Mv);function jv(e,t,n){return null!=t&&e.compare(t)<0||null!=n&&e.compare(n)>0}function Lv(e,t,n,r,o){let i={};for(let e in t)i[e]=Math.floor(t[e]/2),i[e]>0&&t[e]%2==0&&i[e]--;return Nv(e,Rv(e,t,n).subtract(i),t,n,r,o)}function Rv(e,t,n,r,o){let i=e;return t.years?i=function(e){return us(e.subtract({months:e.month-1}))}(e):t.months?i=us(e):t.weeks&&(i=hs(e,n)),Nv(e,i,t,n,r,o)}function Iv(e,t,n,r,o){let i={...t};return i.days?i.days--:i.weeks?i.weeks--:i.months?i.months--:i.years&&i.years--,Nv(e,Rv(e,t,n).subtract(i),t,n,r,o)}function Nv(e,t,n,r,o,i){if(o&&e.compare(o)>=0){let e=vs(t,Rv(Ps(o),n,r));e&&(t=e)}if(i&&e.compare(i)<=0){let e=ms(t,Iv(Ps(i),n,r));e&&(t=e)}return t}function $v(e,t,n){if(t){let n=vs(e,Ps(t));n&&(e=n)}if(n){let t=ms(e,Ps(n));t&&(e=t)}return e}function zv(e,t,n){if(!n)return e;for(;e.compare(t)>=0&&n(e);)e=e.subtract({days:1});return e.compare(t)>=0?e:null}function Fv(e){let t=f((()=>new gu(e.locale)),[e.locale]),n=f((()=>t.resolvedOptions()),[t]),{locale:r,createCalendar:o,visibleDuration:i={months:1},minValue:a,maxValue:s,selectionAlignment:c,isDateUnavailable:u,pageBehavior:d="visible"}=e,p=f((()=>o(n.calendar)),[o,n.calendar]);var h;let[g,m]=ti(e.value,null!==(h=e.defaultValue)&&void 0!==h?h:null,e.onChange),v=f((()=>g?Ms(Ps(g),p):null),[g,p]),y=f((()=>g&&"timeZone"in g?g.timeZone:n.timeZone),[g,n.timeZone]),b=f((()=>e.focusedValue?$v(Ms(Ps(e.focusedValue),p),a,s):void 0),[e.focusedValue,p,a,s]),w=f((()=>$v(e.defaultFocusedValue?Ms(Ps(e.defaultFocusedValue),p):v||Ms(os(y),p),a,s)),[e.defaultFocusedValue,v,y,p,a,s]),[C,x]=ti(b,w,e.onFocusChange),[S,k]=l((()=>{switch(c){case"start":return Rv(C,i,r,a,s);case"end":return Iv(C,i,r,a,s);default:return Lv(C,i,r,a,s)}})),[E,O]=l(e.autoFocus||!1),D=f((()=>{let e={...i};return e.days?e.days--:e.days=-1,S.add(e)}),[S,i]),[P,T]=l(p.identifier);if(p.identifier!==P){let e=Ms(C,p);k(Lv(e,i,r,a,s)),x(e),T(p.identifier)}function A(e){e=$v(e,a,s),x(e)}function M(t){if(!e.isDisabled&&!e.isReadOnly){let e=t;if(null===e)return void m(null);if(e=$v(e,a,s),e=zv(e,S,u),!e)return;e=Ms(e,(null==g?void 0:g.calendar)||new Jl),m(g&&"hour"in g?g.set(e):e)}}jv(C,a,s)?x($v(C,a,s)):C.compare(S)<0?k(Iv(C,i,r,a,s)):C.compare(D)>0&&k(Rv(C,i,r,a,s));let _=f((()=>!!v&&(!(!u||!u(v))||jv(v,a,s))),[v,u,a,s]),j=e.isInvalid||"invalid"===e.validationState||_,L=j?"invalid":null,R=f((()=>"visible"===d?i:Bv(i)),[d,i]);var I,N;return{isDisabled:null!==(I=e.isDisabled)&&void 0!==I&&I,isReadOnly:null!==(N=e.isReadOnly)&&void 0!==N&&N,value:v,setValue:M,visibleRange:{start:S,end:D},minValue:a,maxValue:s,focusedDate:C,timeZone:y,validationState:L,isValueInvalid:j,setFocusedDate(e){A(e),O(!0)},focusNextDay(){A(C.add({days:1}))},focusPreviousDay(){A(C.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&A(C.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&A(C.subtract({weeks:1}))},focusNextPage(){let e=S.add(R);x($v(C.add(R),a,s)),k(Rv(Nv(C,e,R,r,a,s),R,r))},focusPreviousPage(){let e=S.subtract(R);x($v(C.subtract(R),a,s)),k(Rv(Nv(C,e,R,r,a,s),R,r))},focusSectionStart(){i.days?A(S):i.weeks?A(hs(C,r)):(i.months||i.years)&&A(us(C))},focusSectionEnd(){i.days?A(D):i.weeks?A(function(e,t){return hs(e,t).add({days:6})}(C,r)):(i.months||i.years)&&A(ds(C))},focusNextSection(e){e||i.days?i.days?this.focusNextPage():i.weeks?A(C.add({months:1})):(i.months||i.years)&&A(C.add({years:1})):A(C.add(Bv(i)))},focusPreviousSection(e){e||i.days?i.days?this.focusPreviousPage():i.weeks?A(C.subtract({months:1})):(i.months||i.years)&&A(C.subtract({years:1})):A(C.subtract(Bv(i)))},selectFocusedDate(){M(C)},selectDate(e){M(e)},isFocused:E,setFocused:O,isInvalid:e=>jv(e,a,s),isSelected(e){return null!=v&&es(e,v)&&!this.isCellDisabled(e)&&!this.isCellUnavailable(e)},isCellFocused:e=>E&&C&&es(e,C),isCellDisabled(t){return e.isDisabled||t.compare(S)<0||t.compare(D)>0||this.isInvalid(t)},isCellUnavailable:t=>!!e.isDateUnavailable&&e.isDateUnavailable(t),isPreviousVisibleRangeInvalid(){let e=S.subtract({days:1});return es(e,S)||this.isInvalid(e)},isNextVisibleRangeInvalid(){let e=D.add({days:1});return es(e,D)||this.isInvalid(e)},getDatesInWeek(e,t=S){let n=t.add({weeks:e}),o=[];n=hs(n,r);let i=ns(n,r);for(let e=0;e<i;e++)o.push(null);for(;o.length<7;){o.push(n);let e=n.add({days:1});if(es(n,e))break;n=e}for(;o.length<7;)o.push(null);return o}}}function Bv(e){let t={...e};for(let n in e)t[n]=1;return t}function Kv(e,t){return e&&t?(t.compare(e)<0&&([e,t]=[t,e]),{start:Ps(e),end:Ps(t)}):null}function Vv(e,t){return e=Ms(e,(null==t?void 0:t.calendar)||new Jl),t&&"hour"in t?t.set(e):e}function Hv(e,t,n){let r=e.add({days:n});for(;(n<0?r.compare(t.visibleRange.start)>=0:r.compare(t.visibleRange.end)<=0)&&!t.isCellUnavailable(r);)r=r.add({days:n});if(t.isCellUnavailable(r))return r.add({days:-n})}class Uv{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.prevKey)&&void 0!==n?n:null}getKeyAfter(e){let t=this.keyMap.get(e);var n;return t&&null!==(n=t.nextKey)&&void 0!==n?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let t=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let n of e.childNodes)t(n)};for(let n of e)t(n);let n=null,r=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=r++),n=t,n.nextKey=void 0;var o;this.lastKey=null!==(o=null==n?void 0:n.key)&&void 0!==o?o:null}}class Wv extends Set{constructor(e,t,n){super(e),e instanceof Wv?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=n?n:e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function Zv(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:s="all"}=e,c=a(!1),[,u]=l(!1),d=a(null),p=a(null),[,h]=l(null),g=f((()=>qv(e.selectedKeys)),[e.selectedKeys]),m=f((()=>qv(e.defaultSelectedKeys,new Wv)),[e.defaultSelectedKeys]),[v,y]=ti(g,m,e.onSelectionChange),b=f((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[w,C]=l(o);"replace"===o&&"toggle"===w&&"object"==typeof v&&0===v.size&&C("replace");let x=a(o);return i((()=>{o!==x.current&&(C(o),x.current=o)}),[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:C,get isFocused(){return c.current},setFocused(e){c.current=e,u(e)},get focusedKey(){return d.current},get childFocusStrategy(){return p.current},setFocusedKey(e,t="first"){d.current=e,p.current=t,h(e)},selectedKeys:v,setSelectedKeys(e){!r&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,v)||y(e)},disabledKeys:b,disabledBehavior:s}}function qv(e,t){return e?"all"===e?"all":new Wv(e):t}class Gv{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Nh(this.collection,n,e)<0)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||n&&Nh(this.collection,n,e)>0)&&(e=n)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new Wv([e],e,e);else{let o=this.state.selectedKeys;var n;let i=null!==(n=o.anchorKey)&&void 0!==n?n:e;var r;t=new Wv(o,i,e);for(let n of this.getKeyRange(i,null!==(r=o.currentKey)&&void 0!==r?r:e))t.delete(n);for(let n of this.getKeyRange(e,i))this.canSelectItem(n)&&t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?Nh(this.collection,n,r)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null===(n=this.layoutDelegate)||void 0===n?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],o=e;for(;null!=o;){let e=this.collection.getItem(o);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(o),o===t)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new Wv("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new Wv([e],e,e):new Wv;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new Wv;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t(Lh(jh(r,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Wv)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!(!n||(null==n||null===(t=n.props)||void 0===t?void 0:t.isDisabled)||"cell"===n.type&&!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null===(n=this.collection.getItem(e))||void 0===n||null===(t=n.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}function Yv(e){let{filter:t,layoutDelegate:n}=e,r=Zv(e),o=f((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=h((e=>new Uv(t?t(e):e)),[t]),s=f((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),c=_h(e,l,s),u=f((()=>new Gv(c,r,{layoutDelegate:n})),[c,r,n]);const d=a(null);return i((()=>{if(null!=r.focusedKey&&!c.getItem(r.focusedKey)&&d.current){const s=d.current.getItem(r.focusedKey),f=[...d.current.getKeys()].map((e=>{const t=d.current.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e)),p=[...c.getKeys()].map((e=>{const t=c.getItem(e);return"item"===(null==t?void 0:t.type)?t:null})).filter((e=>null!==e));var e,t;const h=(null!==(e=null==f?void 0:f.length)&&void 0!==e?e:0)-(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0);var n,o,i;let g=Math.min(h>1?Math.max((null!==(n=null==s?void 0:s.index)&&void 0!==n?n:0)-h+1,0):null!==(o=null==s?void 0:s.index)&&void 0!==o?o:0,(null!==(i=null==p?void 0:p.length)&&void 0!==i?i:0)-1),m=null,v=!1;for(;g>=0;){if(!u.isDisabled(p[g].key)){m=p[g];break}var a,l;if(g<p.length-1&&!v)g++;else v=!0,g>(null!==(a=null==s?void 0:s.index)&&void 0!==a?a:0)&&(g=null!==(l=null==s?void 0:s.index)&&void 0!==l?l:0),g--}r.setFocusedKey(m?m.key:null)}d.current=c}),[c,u,r,r.focusedKey]),{collection:c,disabledKeys:o,selectionManager:u}}function Xv(e){var t;let[n,r]=ti(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),o=f((()=>null!=n?[n]:[]),[n]),{collection:i,disabledKeys:a,selectionManager:l}=Yv({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:t=>{if("all"===t)return;var o;let i=null!==(o=t.values().next().value)&&void 0!==o?o:null;i===n&&e.onSelectionChange&&e.onSelectionChange(i),r(i)}}),s=null!=n?i.getItem(n):null;return{collection:i,disabledKeys:a,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:s}}function Jv(e){let[t,n]=ti(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=h((()=>{n(!0)}),[n]),o=h((()=>{n(!1)}),[n]),i=h((()=>{n(!t)}),[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function Qv(e){var t;let{defaultFilter:n,menuTrigger:r="input",allowsEmptyCollection:o=!1,allowsCustomValue:s,shouldCloseOnBlur:c=!0}=e,[u,d]=l(!1),[p,g]=l(!1),[m,v]=l(null);var y;let{collection:b,selectionManager:w,selectedKey:C,setSelectedKey:x,selectedItem:S,disabledKeys:k}=Xv({...e,onSelectionChange:t=>{e.onSelectionChange&&e.onSelectionChange(t),t===C&&(K(),z())},items:null!==(y=e.items)&&void 0!==y?y:e.defaultItems}),E=e.defaultInputValue;var O,D;null==E&&(E=null==C?"":null!==(D=null===(O=b.getItem(C))||void 0===O?void 0:O.textValue)&&void 0!==D?D:"");let[P,T]=ti(e.inputValue,E,e.onInputChange),A=b,M=f((()=>null==e.items&&n?function(e,t,n){return new Uv(ey(e,e,t,n))}(b,P,n):b),[b,P,n,e.items]),[_,j]=l(M),L=a("focus"),R=Jv({...e,onOpenChange:t=>{e.onOpenChange&&e.onOpenChange(t,t?L.current:void 0),w.setFocused(t),t||w.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),I=(t=null,n)=>{let i="manual"===n||"focus"===n&&"focus"===r;(o||M.size>0||i&&A.size>0||e.items)&&(i&&!R.isOpen&&void 0===e.items&&d(!0),L.current=n,v(t),R.open())},N=h((()=>{j(u?A:M)}),[u,A,M]),$=h(((e=null)=>{R.isOpen&&N(),v(e),R.toggle()}),[R,N]),z=h((()=>{R.isOpen&&(N(),R.close())}),[R,N]),[F,B]=l(P),K=()=>{var e,t;let n=null!=C&&null!==(t=null===(e=b.getItem(C))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";B(n),T(n)};var V,H;let U=a(null!==(H=null!==(V=e.selectedKey)&&void 0!==V?V:e.defaultSelectedKey)&&void 0!==H?H:null);var W;let Z=a(null!=C&&null!==(W=null===(t=b.getItem(C))||void 0===t?void 0:t.textValue)&&void 0!==W?W:"");i((()=>{var t,n;p&&(M.size>0||o)&&!R.isOpen&&P!==F&&"manual"!==r&&I(null,"input"),u||o||!R.isOpen||0!==M.size||z(),null!=C&&C!==U.current&&z(),P!==F&&(w.setFocusedKey(null),d(!1),""!==P||void 0!==e.inputValue&&void 0!==e.selectedKey||x(null)),C===U.current||void 0!==e.inputValue&&void 0!==e.selectedKey?F!==P&&B(P):K();let i=null!=C&&null!==(n=null===(t=b.getItem(C))||void 0===t?void 0:t.textValue)&&void 0!==n?n:"";p||null==C||void 0!==e.inputValue||C!==U.current||Z.current!==i&&(B(i),T(i)),U.current=C,Z.current=i}));let q=Bd({...e,value:f((()=>({inputValue:P,selectedKey:C})),[P,C])}),G=()=>{U.current=null,x(null),z()},Y=()=>{if(void 0!==e.selectedKey&&void 0!==e.inputValue){var t,n,r;null===(t=e.onSelectionChange)||void 0===t||t.call(e,C);let o=null!=C&&null!==(r=null===(n=b.getItem(C))||void 0===n?void 0:n.textValue)&&void 0!==r?r:"";B(o),z()}else K(),z()};const X=()=>{if(s){var e,t;const n=null!=C&&null!==(t=null===(e=b.getItem(C))||void 0===e?void 0:e.textValue)&&void 0!==t?t:"";P===n?Y():G()}else Y()};let J=a(P),Q=f((()=>R.isOpen?u?A:M:_),[R.isOpen,A,M,u,_]);return{...q,...R,focusStrategy:m,toggle:(t=null,n)=>{let i="manual"===n||"focus"===n&&"focus"===r;(o||M.size>0||i&&A.size>0||e.items||R.isOpen)&&(i&&!R.isOpen&&void 0===e.items&&d(!0),R.isOpen||(L.current=n),$(t))},open:I,close:X,selectionManager:w,selectedKey:C,setSelectedKey:x,disabledKeys:k,isFocused:p,setFocused:t=>{t?(J.current=P,"focus"!==r||e.isReadOnly||I(null,"focus")):(c&&X(),P!==J.current&&q.commitValidation()),g(t)},selectedItem:S,collection:Q,inputValue:P,setInputValue:T,commit:()=>{R.isOpen&&null!=w.focusedKey?C===w.focusedKey?Y():x(w.focusedKey):X()},revert:()=>{s&&null==C?G():Y()}}}function ey(e,t,n,r){let o=[];for(let i of t)if("section"===i.type&&i.hasChildNodes){let t=ey(e,jh(i,e),n,r);[...t].some((e=>"item"===e.type))&&o.push({...i,childNodes:t})}else("item"===i.type&&r(i.textValue,n)||"item"!==i.type)&&o.push({...i});return o}var ty;ty={rangeOverflow:e=>`يجب أن تكون القيمة ${e.maxValue} أو قبل ذلك.`,rangeReversed:"تاريخ البدء يجب أن يكون قبل تاريخ الانتهاء.",rangeUnderflow:e=>`يجب أن تكون القيمة ${e.minValue} أو بعد ذلك.`,unavailableDate:"البيانات المحددة غير متاحة."};var ny;ny={rangeOverflow:e=>`Стойността трябва да е ${e.maxValue} или по-ранна.`,rangeReversed:"Началната дата трябва да е преди крайната.",rangeUnderflow:e=>`Стойността трябва да е ${e.minValue} или по-късно.`,unavailableDate:"Избраната дата не е налична."};var ry;ry={rangeOverflow:e=>`Hodnota musí být ${e.maxValue} nebo dřívější.`,rangeReversed:"Datum zahájení musí předcházet datu ukončení.",rangeUnderflow:e=>`Hodnota musí být ${e.minValue} nebo pozdější.`,unavailableDate:"Vybrané datum není k dispozici."};var oy;oy={rangeOverflow:e=>`Værdien skal være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen skal være før slutdatoen.",rangeUnderflow:e=>`Værdien skal være ${e.minValue} eller nyere.`,unavailableDate:"Den valgte dato er ikke tilgængelig."};var iy;iy={rangeOverflow:e=>`Der Wert muss ${e.maxValue} oder früher sein.`,rangeReversed:"Das Anfangsdatum muss vor dem Enddatum liegen.",rangeUnderflow:e=>`Der Wert muss ${e.minValue} oder später sein.`,unavailableDate:"Das ausgewählte Datum ist nicht verfügbar."};var ay;ay={rangeOverflow:e=>`Η τιμή πρέπει να είναι ${e.maxValue} ή παλαιότερη.`,rangeReversed:"Η ημερομηνία έναρξης πρέπει να είναι πριν από την ημερομηνία λήξης.",rangeUnderflow:e=>`Η τιμή πρέπει να είναι ${e.minValue} ή μεταγενέστερη.`,unavailableDate:"Η επιλεγμένη ημερομηνία δεν είναι διαθέσιμη."};var ly;ly={rangeUnderflow:e=>`Value must be ${e.minValue} or later.`,rangeOverflow:e=>`Value must be ${e.maxValue} or earlier.`,rangeReversed:"Start date must be before end date.",unavailableDate:"Selected date unavailable."};var sy;sy={rangeOverflow:e=>`El valor debe ser ${e.maxValue} o anterior.`,rangeReversed:"La fecha de inicio debe ser anterior a la fecha de finalización.",rangeUnderflow:e=>`El valor debe ser ${e.minValue} o posterior.`,unavailableDate:"Fecha seleccionada no disponible."};var cy;cy={rangeOverflow:e=>`Väärtus peab olema ${e.maxValue} või varasem.`,rangeReversed:"Alguskuupäev peab olema enne lõppkuupäeva.",rangeUnderflow:e=>`Väärtus peab olema ${e.minValue} või hilisem.`,unavailableDate:"Valitud kuupäev pole saadaval."};var uy;uy={rangeOverflow:e=>`Arvon on oltava ${e.maxValue} tai sitä aikaisempi.`,rangeReversed:"Aloituspäivän on oltava ennen lopetuspäivää.",rangeUnderflow:e=>`Arvon on oltava ${e.minValue} tai sitä myöhäisempi.`,unavailableDate:"Valittu päivämäärä ei ole käytettävissä."};var dy;dy={rangeOverflow:e=>`La valeur doit être ${e.maxValue} ou antérieure.`,rangeReversed:"La date de début doit être antérieure à la date de fin.",rangeUnderflow:e=>`La valeur doit être ${e.minValue} ou ultérieure.`,unavailableDate:"La date sélectionnée n’est pas disponible."};var fy;fy={rangeOverflow:e=>`הערך חייב להיות ${e.maxValue} או מוקדם יותר.`,rangeReversed:"תאריך ההתחלה חייב להיות לפני תאריך הסיום.",rangeUnderflow:e=>`הערך חייב להיות ${e.minValue} או מאוחר יותר.`,unavailableDate:"התאריך הנבחר אינו זמין."};var py;py={rangeOverflow:e=>`Vrijednost mora biti ${e.maxValue} ili ranije.`,rangeReversed:"Datum početka mora biti prije datuma završetka.",rangeUnderflow:e=>`Vrijednost mora biti ${e.minValue} ili kasnije.`,unavailableDate:"Odabrani datum nije dostupan."};var hy;hy={rangeOverflow:e=>`Az értéknek ${e.maxValue} vagy korábbinak kell lennie.`,rangeReversed:"A kezdő dátumnak a befejező dátumnál korábbinak kell lennie.",rangeUnderflow:e=>`Az értéknek ${e.minValue} vagy későbbinek kell lennie.`,unavailableDate:"A kiválasztott dátum nem érhető el."};var gy;gy={rangeOverflow:e=>`Il valore deve essere ${e.maxValue} o precedente.`,rangeReversed:"La data di inizio deve essere antecedente alla data di fine.",rangeUnderflow:e=>`Il valore deve essere ${e.minValue} o successivo.`,unavailableDate:"Data selezionata non disponibile."};var my;my={rangeOverflow:e=>`値は ${e.maxValue} 以下にする必要があります。`,rangeReversed:"開始日は終了日より前にする必要があります。",rangeUnderflow:e=>`値は ${e.minValue} 以上にする必要があります。`,unavailableDate:"選択した日付は使用できません。"};var vy;vy={rangeOverflow:e=>`값은 ${e.maxValue} 이전이어야 합니다.`,rangeReversed:"시작일은 종료일 이전이어야 합니다.",rangeUnderflow:e=>`값은 ${e.minValue} 이상이어야 합니다.`,unavailableDate:"선택한 날짜를 사용할 수 없습니다."};var yy;yy={rangeOverflow:e=>`Reikšmė turi būti ${e.maxValue} arba ankstesnė.`,rangeReversed:"Pradžios data turi būti ankstesnė nei pabaigos data.",rangeUnderflow:e=>`Reikšmė turi būti ${e.minValue} arba naujesnė.`,unavailableDate:"Pasirinkta data nepasiekiama."};var by;by={rangeOverflow:e=>`Vērtībai ir jābūt ${e.maxValue} vai agrākai.`,rangeReversed:"Sākuma datumam ir jābūt pirms beigu datuma.",rangeUnderflow:e=>`Vērtībai ir jābūt ${e.minValue} vai vēlākai.`,unavailableDate:"Atlasītais datums nav pieejams."};var wy;wy={rangeOverflow:e=>`Verdien må være ${e.maxValue} eller tidligere.`,rangeReversed:"Startdatoen må være før sluttdatoen.",rangeUnderflow:e=>`Verdien må være ${e.minValue} eller senere.`,unavailableDate:"Valgt dato utilgjengelig."};var Cy;Cy={rangeOverflow:e=>`Waarde moet ${e.maxValue} of eerder zijn.`,rangeReversed:"De startdatum moet voor de einddatum liggen.",rangeUnderflow:e=>`Waarde moet ${e.minValue} of later zijn.`,unavailableDate:"Geselecteerde datum niet beschikbaar."};var xy;xy={rangeOverflow:e=>`Wartość musi mieć wartość ${e.maxValue} lub wcześniejszą.`,rangeReversed:"Data rozpoczęcia musi być wcześniejsza niż data zakończenia.",rangeUnderflow:e=>`Wartość musi mieć wartość ${e.minValue} lub późniejszą.`,unavailableDate:"Wybrana data jest niedostępna."};var Sy;Sy={rangeOverflow:e=>`O valor deve ser ${e.maxValue} ou anterior.`,rangeReversed:"A data inicial deve ser anterior à data final.",rangeUnderflow:e=>`O valor deve ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var ky;ky={rangeOverflow:e=>`O valor tem de ser ${e.maxValue} ou anterior.`,rangeReversed:"A data de início deve ser anterior à data de fim.",rangeUnderflow:e=>`O valor tem de ser ${e.minValue} ou posterior.`,unavailableDate:"Data selecionada indisponível."};var Ey;Ey={rangeOverflow:e=>`Valoarea trebuie să fie ${e.maxValue} sau anterioară.`,rangeReversed:"Data de început trebuie să fie anterioară datei de sfârșit.",rangeUnderflow:e=>`Valoarea trebuie să fie ${e.minValue} sau ulterioară.`,unavailableDate:"Data selectată nu este disponibilă."};var Oy;Oy={rangeOverflow:e=>`Значение должно быть не позже ${e.maxValue}.`,rangeReversed:"Дата начала должна предшествовать дате окончания.",rangeUnderflow:e=>`Значение должно быть не раньше ${e.minValue}.`,unavailableDate:"Выбранная дата недоступна."};var Dy;Dy={rangeOverflow:e=>`Hodnota musí byť ${e.maxValue} alebo skoršia.`,rangeReversed:"Dátum začiatku musí byť skorší ako dátum konca.",rangeUnderflow:e=>`Hodnota musí byť ${e.minValue} alebo neskoršia.`,unavailableDate:"Vybratý dátum je nedostupný."};var Py;Py={rangeOverflow:e=>`Vrednost mora biti ${e.maxValue} ali starejša.`,rangeReversed:"Začetni datum mora biti pred končnim datumom.",rangeUnderflow:e=>`Vrednost mora biti ${e.minValue} ali novejša.`,unavailableDate:"Izbrani datum ni na voljo."};var Ty;Ty={rangeOverflow:e=>`Vrednost mora da bude ${e.maxValue} ili starija.`,rangeReversed:"Datum početka mora biti pre datuma završetka.",rangeUnderflow:e=>`Vrednost mora da bude ${e.minValue} ili novija.`,unavailableDate:"Izabrani datum nije dostupan."};var Ay;Ay={rangeOverflow:e=>`Värdet måste vara ${e.maxValue} eller tidigare.`,rangeReversed:"Startdatumet måste vara före slutdatumet.",rangeUnderflow:e=>`Värdet måste vara ${e.minValue} eller senare.`,unavailableDate:"Det valda datumet är inte tillgängligt."};var My;My={rangeOverflow:e=>`Değer, ${e.maxValue} veya öncesi olmalıdır.`,rangeReversed:"Başlangıç tarihi bitiş tarihinden önce olmalıdır.",rangeUnderflow:e=>`Değer, ${e.minValue} veya sonrası olmalıdır.`,unavailableDate:"Seçilen tarih kullanılamıyor."};var _y;_y={rangeOverflow:e=>`Значення має бути не пізніше ${e.maxValue}.`,rangeReversed:"Дата початку має передувати даті завершення.",rangeUnderflow:e=>`Значення має бути не раніше ${e.minValue}.`,unavailableDate:"Вибрана дата недоступна."};var jy;jy={rangeOverflow:e=>`值必须是 ${e.maxValue} 或更早日期。`,rangeReversed:"开始日期必须早于结束日期。",rangeUnderflow:e=>`值必须是 ${e.minValue} 或更晚日期。`,unavailableDate:"所选日期不可用。"};var Ly;Ly={rangeOverflow:e=>`值必須是 ${e.maxValue} 或更早。`,rangeReversed:"開始日期必須在結束日期之前。",rangeUnderflow:e=>`值必須是 ${e.minValue} 或更晚。`,unavailableDate:"所選日期無法使用。"};const Ry=new $l(function(e){return e&&e.__esModule?e.default:e}({"ar-AE":ty,"bg-BG":ny,"cs-CZ":ry,"da-DK":oy,"de-DE":iy,"el-GR":ay,"en-US":ly,"es-ES":sy,"et-EE":cy,"fi-FI":uy,"fr-FR":dy,"he-IL":fy,"hr-HR":py,"hu-HU":hy,"it-IT":gy,"ja-JP":my,"ko-KR":vy,"lt-LT":yy,"lv-LV":by,"nb-NO":wy,"nl-NL":Cy,"pl-PL":xy,"pt-BR":Sy,"pt-PT":ky,"ro-RO":Ey,"ru-RU":Oy,"sk-SK":Dy,"sl-SI":Py,"sr-SP":Ty,"sv-SE":Ay,"tr-TR":My,"uk-UA":_y,"zh-CN":jy,"zh-TW":Ly}));function Iy(){return"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US"}function Ny(e,t,n,r,o){let i=null!=e&&null!=n&&e.compare(n)>0,a=null!=e&&null!=t&&e.compare(t)<0,l=null!=e&&(null==r?void 0:r(e))||!1,s=i||a||l,c=[];if(s){let e=Iy(),r=$l.getGlobalDictionaryForPackage("@react-stately/datepicker")||Ry,s=new Bl(e,r),u=new gu(e,Fy({},o)),d=u.resolvedOptions().timeZone;a&&c.push(s.format("rangeUnderflow",{minValue:u.format(t.toDate(d))})),i&&c.push(s.format("rangeOverflow",{maxValue:u.format(n.toDate(d))})),l&&c.push(s.format("unavailableDate"))}return{isInvalid:s,validationErrors:c,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:a,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!s}}}const $y={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},zy={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function Fy(e,t){let n=t.shouldForceLeadingZeros?zy:$y;e={...n,...e};let r=t.granularity||"minute",o=Object.keys(e);var i;let a=o.indexOf(null!==(i=t.maxGranularity)&&void 0!==i?i:"year");a<0&&(a=0);let l=o.indexOf(r);if(l<0&&(l=2),a>l)throw new Error("maxGranularity must be greater than granularity");let s=o.slice(a,l+1).reduce(((t,n)=>(t[n]=e[n],t)),{});return null!=t.hourCycle&&(s.hour12=12===t.hourCycle),s.timeZone=t.timeZone||"UTC",("hour"===r||"minute"===r||"second"===r)&&t.timeZone&&!t.hideTimeZone&&(s.timeZoneName="short"),t.showEra&&0===a&&(s.era="short"),s}function By(e){return e&&"hour"in e?e:new cc}function Ky(e,t){return null===e?null:e?Ms(e,t):void 0}function Vy(e,t,n,r){if(e)return Ky(e,n);let o=Ms(rs(r).set({hour:0,minute:0,second:0,millisecond:0}),n);return"year"===t||"month"===t||"day"===t?Ps(o):r?o:Ts(o)}function Hy(e,t){let n=e&&"timeZone"in e?e.timeZone:void 0,r=e&&"minute"in e?"minute":"day";if(e&&t&&!(t in e))throw new Error("Invalid granularity "+t+" for value "+e.toString());let[o,i]=l([r,n]);return!e||o[0]===r&&o[1]===n||i([r,n]),t||(t=e?r:o[0]),[t,e?n:o[1]]}const Uy=new $l({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");const Wy={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},Zy={year:5,month:2,day:7,hour:2,minute:15,second:15},qy={dayperiod:"dayPeriod"};function Gy(e){let{locale:t,createCalendar:n,hideTimeZone:r,isDisabled:o,isReadOnly:s,isRequired:c,minValue:u,maxValue:d,isDateUnavailable:p}=e,h=e.value||e.defaultValue||e.placeholderValue,[g,m]=Hy(h,e.granularity),v=m||"UTC";if(h&&!(g in h))throw new Error("Invalid granularity "+g+" for value "+h.toString());let y=f((()=>new gu(t)),[t]),b=f((()=>n(y.resolvedOptions().calendar)),[n,y]),[w,C]=ti(e.value,e.defaultValue,e.onChange),x=f((()=>Ky(w,b)),[w,b]),[S,k]=l((()=>Vy(e.placeholderValue,g,b,m))),E=x||S,O="gregory"===b.identifier&&"BC"===E.era,D=f((()=>{var t;return{granularity:g,maxGranularity:null!==(t=e.maxGranularity)&&void 0!==t?t:"year",timeZone:m,hideTimeZone:r,hourCycle:e.hourCycle,showEra:O,shouldForceLeadingZeros:e.shouldForceLeadingZeros}}),[e.maxGranularity,g,e.hourCycle,e.shouldForceLeadingZeros,m,r,O]),P=f((()=>Fy({},D)),[D]),T=f((()=>new gu(t,P)),[t,P]),A=f((()=>T.resolvedOptions()),[T]),M=f((()=>T.formatToParts(new Date).filter((e=>Wy[e.type])).reduce(((e,t)=>(e[t.type]=!0,e)),{})),[T]),[_,j]=l((()=>e.value||e.defaultValue?{...M}:{})),L=a(void 0),R=a(b.identifier);i((()=>{b.identifier!==R.current&&(R.current=b.identifier,k((t=>Object.keys(_).length>0?Ms(t,b):Vy(e.placeholderValue,g,b,m))))}),[b,g,_,m,e.placeholderValue]),w&&Object.keys(_).length<Object.keys(M).length&&(_={...M},j(_)),null==w&&Object.keys(_).length===Object.keys(M).length&&(_={},j(_),k(Vy(e.placeholderValue,g,b,m)));let I=x&&Object.keys(_).length>=Object.keys(M).length?x:S,N=t=>{if(e.isDisabled||e.isReadOnly)return;let n=Object.keys(_),r=Object.keys(M);null==t?(C(null),k(Vy(e.placeholderValue,g,b,m)),j({})):n.length>=r.length||n.length===r.length-1&&M.dayPeriod&&!_.dayPeriod&&"dayPeriod"!==L.current?(t=Ms(t,(null==h?void 0:h.calendar)||new Jl),C(t)):k(t),L.current=null},$=f((()=>I.toDate(v)),[I,v]),z=f((()=>T.formatToParts($).map((e=>{let n=Wy[e.type];"era"===e.type&&1===b.getEras().length&&(n=!1);let r=Wy[e.type]&&!_[e.type],o=Wy[e.type]?function(e,t,n){return"era"===e||"dayPeriod"===e?t:"year"===e||"month"===e||"day"===e?Uy.getStringForLocale(e,n):"––"}(e.type,e.value,t):null;return{type:qy[e.type]||e.type,text:r?o:e.value,...Yy(I,e.type,A),isPlaceholder:r,placeholder:o,isEditable:n}}))),[$,_,T,A,I,b,t]);M.era&&_.year&&!_.era?(_.era=!0,j({..._})):!M.era&&_.era&&(delete _.era,j({..._}));let F=e=>{_[e]=!0,"year"===e&&M.era&&(_.era=!0),j({..._})},B=(e,t)=>{if(_[e])N(function(e,t,n,r){switch(t){case"era":case"year":case"month":case"day":return e.cycle(t,n,{round:"year"===t})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,n=t>=12;return e.set({hour:n?t-12:t+12})}case"hour":case"minute":case"second":return e.cycle(t,n,{round:"hour"!==t,hourCycle:r.hour12?12:24})}}(I,e,t,A));else{F(e);let t=Object.keys(_),n=Object.keys(M);(t.length>=n.length||t.length===n.length-1&&M.dayPeriod&&!_.dayPeriod)&&N(I)}},K=f((()=>Ny(w,u,d,p,D)),[w,u,d,p,D]),V=Bd({...e,value:w,builtinValidation:K}),H=V.displayValidation.isInvalid,U=e.validationState||(H?"invalid":null);var W;return{...V,value:x,dateValue:$,calendar:b,setValue:N,segments:z,dateFormatter:T,validationState:U,isInvalid:H,granularity:g,maxGranularity:null!==(W=e.maxGranularity)&&void 0!==W?W:"year",isDisabled:o,isReadOnly:s,isRequired:c,increment(e){B(e,1)},decrement(e){B(e,-1)},incrementPage(e){B(e,Zy[e]||1)},decrementPage(e){B(e,-(Zy[e]||1))},setSegment(e,t){F(e),N(function(e,t,n,r){switch(t){case"day":case"month":case"year":case"era":return e.set({[t]:n})}if("hour"in e)switch(t){case"dayPeriod":{let t=e.hour,r=t>=12;return n>=12===r?e:e.set({hour:r?t-12:t+12})}case"hour":if(r.hour12){let t=e.hour>=12;t||12!==n||(n=0),t&&n<12&&(n+=12)}case"minute":case"second":return e.set({[t]:n})}}(I,e,t,A))},confirmPlaceholder(){if(e.isDisabled||e.isReadOnly)return;let t=Object.keys(_),n=Object.keys(M);t.length===n.length-1&&M.dayPeriod&&!_.dayPeriod&&(_={...M},j(_),N(I.copy()))},clearSegment(t){delete _[t],L.current=t,j({..._});let n=Vy(e.placeholderValue,g,b,m),r=I;if("dayPeriod"===t&&"hour"in I&&"hour"in n){let e=I.hour>=12,t=n.hour>=12;e&&!t?r=I.set({hour:I.hour-12}):!e&&t&&(r=I.set({hour:I.hour+12}))}else t in I&&(r=I.set({[t]:n[t]}));C(null),N(r)},formatValue(e){if(!x)return"";let n=Fy(e,D);return new gu(t,n).format($)},getDateFormatter(e,t){let n=Fy({},{...D,...t});return new gu(e,n)}}}function Yy(e,t,n){switch(t){case"era":{let t=e.calendar.getEras();return{value:t.indexOf(e.era),minValue:0,maxValue:t.length-1}}case"year":return{value:e.year,minValue:1,maxValue:e.calendar.getYearsInEra(e)};case"month":return{value:e.month,minValue:fs(e),maxValue:e.calendar.getMonthsInYear(e)};case"day":return{value:e.day,minValue:ps(e),maxValue:e.calendar.getDaysInMonth(e)}}if("hour"in e)switch(t){case"dayPeriod":return{value:e.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(n.hour12){let t=e.hour>=12;return{value:e.hour,minValue:t?12:0,maxValue:t?23:11}}return{value:e.hour,minValue:0,maxValue:23};case"minute":return{value:e.minute,minValue:0,maxValue:59};case"second":return{value:e.second,minValue:0,maxValue:59}}return{}}function Xy(e){var t,n;let r=Jv(e),[o,i]=ti(e.value,e.defaultValue||null,e.onChange),[a,s]=l((()=>o||{start:null,end:null}));null==o&&a.start&&a.end&&(a={start:null,end:null},s(a));let c=o||a,u=e=>{s(e||{start:null,end:null}),(null==e?void 0:e.start)&&e.end?i(e):i(null)},d=(null==c?void 0:c.start)||(null==c?void 0:c.end)||e.placeholderValue,[p,h]=Hy(d,e.granularity),g="hour"===p||"minute"===p||"second"===p;var m;let v=null===(m=e.shouldCloseOnSelect)||void 0===m||m,[y,b]=l(null),[w,C]=l(null);c&&c.start&&c.end&&(y=c,"hour"in c.start&&(w=c));let x=(e,t)=>{u({start:"timeZone"in t.start?t.start.set(Ps(e.start)):Ts(e.start,t.start),end:"timeZone"in t.end?t.end.set(Ps(e.end)):Ts(e.end,t.end)}),b(null),C(null),M.commitValidation()},S=t=>{let n="function"==typeof v?v():v;g?n||t.start&&t.end&&(null==w?void 0:w.start)&&(null==w?void 0:w.end)?x(t,{start:(null==w?void 0:w.start)||By(e.placeholderValue),end:(null==w?void 0:w.end)||By(e.placeholderValue)}):b(t):t.start&&t.end?(u(t),M.commitValidation()):b(t),n&&r.setOpen(!1)},k=e=>{(null==y?void 0:y.start)&&(null==y?void 0:y.end)&&e.start&&e.end?x(y,e):C(e)},E="gregory"===(null==c||null===(t=c.start)||void 0===t?void 0:t.calendar.identifier)&&"BC"===c.start.era||"gregory"===(null==c||null===(n=c.end)||void 0===n?void 0:n.calendar.identifier)&&"BC"===c.end.era,O=f((()=>({granularity:p,timeZone:h,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:E})),[p,e.hourCycle,e.shouldForceLeadingZeros,h,e.hideTimeZone,E]),{minValue:D,maxValue:P,isDateUnavailable:T}=e,A=f((()=>function(e,t,n,r,o){let i=Ud(Ny(null==e?void 0:e.start,t,n,r,o),Ny(null==e?void 0:e.end,t,n,r,o));null!=e.end&&null!=e.start&&e.end.compare(e.start)<0&&(i=Ud(i,{isInvalid:!0,validationErrors:[($l.getGlobalDictionaryForPackage("@react-stately/datepicker")||Ry).getStringForLocale("rangeReversed",Iy())],validationDetails:{...Id,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}}));return i}(c,D,P,T,O)),[c,D,P,T,O]),M=Bd({...e,value:o,name:f((()=>[e.startName,e.endName]),[e.startName,e.endName]),builtinValidation:A}),_=M.displayValidation.isInvalid,j=e.validationState||(_?"invalid":null);return{...M,value:c,setValue:u,dateRange:y,timeRange:w,granularity:p,hasTime:g,setDate(e,t){S({...y,[e]:t})},setTime(e,t){k({...w,[e]:t})},setDateTime(e,t){u({...c,[e]:t})},setDateRange:S,setTimeRange:k,...r,setOpen(t){t||(null==c?void 0:c.start)&&(null==c?void 0:c.end)||!(null==y?void 0:y.start)||!(null==y?void 0:y.end)||!g||x(y,{start:(null==w?void 0:w.start)||By(e.placeholderValue),end:(null==w?void 0:w.end)||By(e.placeholderValue)}),r.setOpen(t)},validationState:j,isInvalid:_,formatValue(t,n){if(!c||!c.start||!c.end)return null;let r,o="timeZone"in c.start?c.start.timeZone:void 0,i=e.granularity||(c.start&&"minute"in c.start?"minute":"day"),a="timeZone"in c.end?c.end.timeZone:void 0,l=e.granularity||(c.end&&"minute"in c.end?"minute":"day"),s=Fy(n,{granularity:i,timeZone:o,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===c.start.calendar.identifier&&"BC"===c.start.era||"gregory"===c.end.calendar.identifier&&"BC"===c.end.era}),u=c.start.toDate(o||"UTC"),d=c.end.toDate(a||"UTC"),f=new gu(t,s);if(o===a&&i===l&&0!==c.start.compare(c.end)){try{let e=f.formatRangeToParts(u,d),t=-1;for(let n=0;n<e.length;n++){let r=e[n];if("shared"===r.source&&"literal"===r.type)t=n;else if("endRange"===r.source)break}let n="",r="";for(let o=0;o<e.length;o++)o<t?n+=e[o].value:o>t&&(r+=e[o].value);return{start:n,end:r}}catch(e){}r=f}else{let o=Fy(n,{granularity:l,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});r=new gu(t,o)}return{start:f.format(u),end:r.format(d)}},getDateFormatter(e,t){let n=Fy({},{...O,...t});return new gu(e,n)}}}function Jy(e,t=os(cs())){return e?"day"in e?e:Ts(t,e):null}function Qy(e){let t=Jv(e),[n,r]=l(null),[o,i]=l([]);return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){i([]),t.close()},expandedKeysStack:o,openSubmenu:(e,t)=>{i((n=>t>n.length?n:[...n.slice(0,t),e]))},closeSubmenu:(e,t)=>{i((n=>n[t]===e?n.slice(0,t):n))}}}function eb(e){if(null!=e)return e.toString()}function tb(e,t){if("string"==typeof e){let n=e.match(/^(\d+)(?=%$)/);if(!n)throw new Error("Only percentages or numbers are supported for static column widths");return t*(parseFloat(n[0])/100)}return e}function nb(e,t){return null!=e?tb(e,t):Number.MAX_SAFE_INTEGER}function rb(e,t){return null!=e?tb(e,t):0}function ob(e,t,n,r,o){let i=!1,a=t.map(((t,a)=>{var l,s,c;let u=null!=n.get(t.key)?n.get(t.key):null!==(c=null!==(s=null!==(l=t.width)&&void 0!==l?l:t.defaultWidth)&&void 0!==s?s:null==r?void 0:r(a))&&void 0!==c?c:"1fr",d=!1,f=0,p=0,h=null;var g,m;!function(e){return null!=e&&(!isNaN(e)||null!==String(e).match(/^(\d+)(?=%$)/))}(u)?(p=function(e){if(!e)return 1;let t=e.match(/^(.+)(?=fr$)/);return t?parseFloat(t[0]):(console.warn(`width: ${e} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}(u),p<=0&&(d=!0)):(f=tb(u,e),d=!0);let v=rb(null!==(m=null!==(g=t.minWidth)&&void 0!==g?g:null==o?void 0:o(a))&&void 0!==m?m:0,e),y=nb(t.maxWidth,e),b=Math.max(v,Math.min(f,y));return d?h=b:f>b&&(d=!0,h=b),d||(i=!0),{frozen:d,baseSize:f,hypotheticalMainSize:b,min:v,max:y,flex:p,targetMainSize:h,violation:0}}));for(;i;){let t=0,n=0;a.forEach((e=>{e.frozen?t+=e.targetMainSize:(t+=e.baseSize,n+=e.flex)}));let r=e-t;r>0&&a.forEach((e=>{if(!e.frozen){let t=e.flex/n;e.targetMainSize=e.baseSize+t*r}}));let o=0;a.forEach((e=>{if(e.violation=0,!e.frozen){let{min:t,max:n,targetMainSize:r}=e;e.targetMainSize=Math.max(t,Math.min(r,n)),e.violation=e.targetMainSize-r,o+=e.violation}})),i=!1,a.forEach((e=>{0===o||Math.sign(o)===Math.sign(e.violation)?e.frozen=!0:e.frozen||(i=!0)}))}return function(e){let t=0,n=0,r=[];return e.forEach((function(e){let o=e.targetMainSize,i=Math.round(o+t)-n;t+=o,n+=i,r.push(i)})),r}(a)}class ib{splitColumnsIntoControlledAndUncontrolled(e){return e.reduce(((e,t)=>(null!=t.props.width?e[0].set(t.key,t):e[1].set(t.key,t),e)),[new Map,new Map])}recombineColumns(e,t,n,r){return new Map(e.map((e=>n.has(e.key)?[e.key,t.get(e.key)]:[e.key,r.get(e.key).props.width])))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map((([e,t])=>{var n,r,o;return[e,null!==(o=null!==(r=t.props.defaultWidth)&&void 0!==r?r:null===(n=this.getDefaultWidth)||void 0===n?void 0:n.call(this,t))&&void 0!==o?o:"1fr"]})))}getColumnWidth(e){var t;return null!==(t=this.columnWidths.get(e))&&void 0!==t?t:0}getColumnMinWidth(e){var t;return null!==(t=this.columnMinWidths.get(e))&&void 0!==t?t:0}getColumnMaxWidth(e){var t;return null!==(t=this.columnMaxWidths.get(e))&&void 0!==t?t:0}resizeColumnWidth(e,t,n,r){let o=this.columnWidths,i=!0,a=new Map;return r=Math.max(this.getColumnMinWidth(n),Math.min(this.getColumnMaxWidth(n),Math.floor(r))),e.columns.forEach((e=>{var l;e.key===n?(a.set(e.key,r),i=!1):i?a.set(e.key,o.get(e.key)):a.set(e.key,null!==(l=e.props.width)&&void 0!==l?l:t.get(e.key))})),a}buildColumnWidths(e,t,n){this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map;let r=ob(e,t.columns.map((e=>({...e.props,key:e.key}))),n,(e=>this.getDefaultWidth(t.columns[e])),(e=>this.getDefaultMinWidth(t.columns[e])));return r.forEach(((n,r)=>{let o=t.columns[r].key,i=t.columns[r];var a;this.columnWidths.set(o,n),this.columnMinWidths.set(o,rb(null!==(a=i.props.minWidth)&&void 0!==a?a:this.getDefaultMinWidth(i),e)),this.columnMaxWidths.set(o,nb(i.props.maxWidth,e))})),this.columnWidths}constructor(e){var t,n;this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,this.getDefaultWidth=null!==(t=null==e?void 0:e.getDefaultWidth)&&void 0!==t?t:()=>"1fr",this.getDefaultMinWidth=null!==(n=null==e?void 0:e.getDefaultMinWidth)&&void 0!==n?n:()=>75}}function ab(e,t){let{getDefaultWidth:n,getDefaultMinWidth:r,tableWidth:o=0}=e,[i,a]=l(null),s=f((()=>new ib({getDefaultWidth:n,getDefaultMinWidth:r})),[n,r]),[c,u]=f((()=>s.splitColumnsIntoControlledAndUncontrolled(t.collection.columns)),[t.collection.columns,s]),[d,p]=l((()=>s.getInitialUncontrolledWidths(u))),[g,m]=l(t.collection.columns);if(t.collection.columns!==g){if(t.collection.columns.length!==g.length||t.collection.columns.some(((e,t)=>e.key!==g[t].key))){let e=s.getInitialUncontrolledWidths(u);p(e)}m(t.collection.columns)}let v=f((()=>s.recombineColumns(t.collection.columns,d,u,c)),[t.collection.columns,d,u,c,s]),y=h((e=>{a(e)}),[a]),b=h(((e,n)=>{let r=s.resizeColumnWidth(t.collection,d,e,n),o=new Map(Array.from(u).map((([e])=>[e,r.get(e)])));return o.set(e,n),p(o),r}),[u,p,s,t.collection,d]),w=h((()=>{a(null)}),[a]),C=f((()=>s.buildColumnWidths(o,t.collection,v)),[o,t.collection,v,s]);return f((()=>({resizingColumn:i,updateResizedColumns:b,startResize:y,endResize:w,getColumnWidth:e=>s.getColumnWidth(e),getColumnMinWidth:e=>s.getColumnMinWidth(e),getColumnMaxWidth:e=>s.getColumnMaxWidth(e),tableState:t,columnWidths:C})),[s,C,i,b,y,w,t])}class lb{*[Symbol.iterator](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.rows][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,n=t=>{let o=this.keyMap.get(t.key);e.visitNode&&(t=e.visitNode(t)),this.keyMap.set(t.key,t);let i,a=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),a.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,n(e),i=e;if(i&&(i.nextKey=null),o)for(let e of o.childNodes)a.has(e.key)||r(e)},r=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&r(t)};e.items.forEach(((e,r)=>{let o={level:0,key:"row-"+r,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e};t?(t.nextKey=o.key,o.prevKey=t.key):o.prevKey=null,this.rows.push(o),n(o),t=o})),t&&(t.nextKey=null)}}const sb="row-header-column-"+Math.random().toString(36).slice(2);let cb="row-header-column-"+Math.random().toString(36).slice(2);for(;sb===cb;)cb="row-header-column-"+Math.random().toString(36).slice(2);function ub(e,t){if(0===t.length)return[];let n=[],r=new Map;for(let o of t){let t=o.parentKey,i=[o];for(;t;){let n=e.get(t);if(!n)break;if(r.has(n)){n.colspan++;let{column:e,index:t}=r.get(n);if(t>i.length)break;for(let n=t;n<i.length;n++)e.splice(n,0,null);for(let t=i.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colspan=1,i.push(n),r.set(n,{column:i,index:i.length-1});t=n.parentKey}n.push(i),o.index=n.length-1}let o=Math.max(...n.map((e=>e.length))),i=Array(o).fill(0).map((()=>[])),a=0;for(let e of n){let t=o-1;for(let n of e){if(n){let e=i[t],r=e.reduce(((e,t)=>e+t.colspan),0);if(r<a){let o={type:"placeholder",key:"placeholder-"+n.key,colspan:a-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=o.key,o.prevKey=e[e.length-1].key),e.push(o)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.colIndex=a,e.push(n)}t--}a++}let l=0;for(let e of i){let n=e.reduce(((e,t)=>e+t.colspan),0);if(n<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-n,index:n,value:null,rendered:null,level:l,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(r)}l++}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}class db extends lb{*[Symbol.iterator](){yield*this.body.childNodes}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=Lh(this.body.childNodes))||void 0===e?void 0:e.key}getLastKey(){var e;return null===(e=Ih(this.body.childNodes))||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){return e===this.body.key?this.body.childNodes:super.getChildren(e)}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys;if(n){let e=[];for(let r of t.childNodes){let t=this.columns[r.index];if(n.has(t.key)&&r.textValue&&e.push(r.textValue),e.length===n.size)break}return e.join(" ")}return""}constructor(e,t,n){let r,o=new Set,i=[];if(null==n?void 0:n.showSelectionCheckboxes){let e={type:"column",key:sb,value:null,textValue:"",level:0,index:(null==n?void 0:n.showDragButtons)?1:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};i.unshift(e)}if(null==n?void 0:n.showDragButtons){let e={type:"column",key:cb,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isDragButtonCell:!0}};i.unshift(e)}let a=[],l=new Map,s=e=>{switch(e.type){case"body":r=e;break;case"column":l.set(e.key,e),e.hasChildNodes||(i.push(e),e.props.isRowHeader&&o.add(e.key));break;case"item":return void a.push(e)}for(let t of e.childNodes)s(t)};for(let t of e)s(t);let c=ub(l,i);c.forEach(((e,t)=>a.splice(t,0,e))),super({columnCount:i.length,items:a,visitNode:e=>(e.column=i[e.index],e)}),this._size=0,this.columns=i,this.rowHeaderColumnKeys=o,this.body=r,this.headerRows=c,this._size=[...r.childNodes].length,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns.find((e=>{var t,n;return!(null===(t=e.props)||void 0===t?void 0:t.isDragButtonCell)&&!(null===(n=e.props)||void 0===n?void 0:n.isSelectionCell)})).key)}}const fb={ascending:"descending",descending:"ascending"};function pb(e){let[t,n]=l(!1),{selectionMode:r="none",showSelectionCheckboxes:o,showDragButtons:s}=e,c=f((()=>({showSelectionCheckboxes:o&&"none"!==r,showDragButtons:s,selectionMode:r,columns:[]})),[e.children,o,r,s]),u=_h(e,h((e=>new db(e,null,c)),[c]),c),{disabledKeys:d,selectionManager:p}=function(e){let{collection:t,focusMode:n}=e,r=e.UNSAFE_selectionState||Zv(e),o=f((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=r.setFocusedKey;r.setFocusedKey=(e,r)=>{if("cell"===n&&null!=e){let n=t.getItem(e);if("item"===(null==n?void 0:n.type)){var o,i;let a=jh(n,t);e="last"===r?null===(o=Ih(a))||void 0===o?void 0:o.key:null===(i=Lh(a))||void 0===i?void 0:i.key}}l(e,r)};let s=f((()=>new Gv(t,r)),[t,r]);const c=a(null);return i((()=>{if(null!=r.focusedKey&&!t.getItem(r.focusedKey)){const e=c.current.getItem(r.focusedKey),n=null==e.parentKey||"cell"!==e.type&&"rowheader"!==e.type&&"column"!==e.type?e:c.current.getItem(e.parentKey),o=c.current.rows,i=t.rows,a=o.length-i.length;let l,u=Math.min(a>1?Math.max(n.index-a+1,0):n.index,i.length-1);for(;u>=0;){if(!s.isDisabled(i[u].key)&&"headerrow"!==i[u].type){l=i[u];break}u<i.length-1?u++:(u>n.index&&(u=n.index),u--)}if(l){const o=l.hasChildNodes?[...jh(l,t)]:[],i=l.hasChildNodes&&n!==e&&e.index<o.length?o[e.index].key:l.key;r.setFocusedKey(i)}else r.setFocusedKey(null)}c.current=t}),[t,s,r,r.focusedKey]),{collection:t,disabledKeys:o,isKeyboardNavigationDisabled:!1,selectionManager:s}}({...e,collection:u,disabledBehavior:e.disabledBehavior||"selection"});return{collection:u,disabledKeys:d,selectionManager:p,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,isKeyboardNavigationDisabled:0===u.size||t,setKeyboardNavigationDisabled:n,sort(t,n){var r;e.onSortChange({column:t,direction:null!=n?n:(null===(r=e.sortDescriptor)||void 0===r?void 0:r.column)===t?fb[e.sortDescriptor.direction]:"ascending"})}}}const hb=1500,gb=500;let mb={},vb=0,yb=!1,bb=null,wb=null;function Cb(e={}){let{delay:t=hb,closeDelay:n=gb}=e,{isOpen:r,open:o,close:l}=Jv(e),s=f((()=>""+ ++vb),[]),c=a(void 0),u=a(l),d=()=>{mb[s]=g},p=()=>{for(let e in mb)e!==s&&(mb[e](!0),delete mb[e])},h=()=>{clearTimeout(c.current),c.current=null,p(),d(),yb=!0,o(),bb&&(clearTimeout(bb),bb=null),wb&&(clearTimeout(wb),wb=null)},g=e=>{e||n<=0?(clearTimeout(c.current),c.current=null,u.current()):c.current||(c.current=setTimeout((()=>{c.current=null,u.current()}),n)),bb&&(clearTimeout(bb),bb=null),yb&&(wb&&clearTimeout(wb),wb=setTimeout((()=>{delete mb[s],wb=null,yb=!1}),Math.max(gb,n)))};return i((()=>{u.current=l}),[l]),i((()=>()=>{clearTimeout(c.current),mb[s]&&delete mb[s]}),[s]),{isOpen:r,open:e=>{!e&&t>0&&!c.current?(p(),d(),r||bb||yb?r||h():bb=setTimeout((()=>{bb=null,yb=!0,h()}),t)):h()},close:g}}class xb{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.iterable=e,t=t||new Set;let n,r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)r(t)};for(let t of e)r(t);let o=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=o++),n=t,n.nextKey=void 0;this.lastKey=null==n?void 0:n.key}}function Sb(e){let{onExpandedChange:t}=e,[n,r]=ti(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),o=Zv(e),a=f((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),l=_h(e,h((e=>new xb(e,{expandedKeys:n})),[n]),null);i((()=>{null==o.focusedKey||l.getItem(o.focusedKey)||o.setFocusedKey(null)}),[l,o.focusedKey]);return{collection:l,expandedKeys:n,disabledKeys:a,toggleKey:e=>{r(function(e,t){let n=new Set(e);n.has(t)?n.delete(t):n.add(t);return n}(n,e))},setExpandedKeys:r,selectionManager:new Gv(l,o)}}const kb=d({}),Eb=d({}),Ob=d(null),Db=d(null);function Pb(e,t){[e,t]=Ri(e,t,kb);let{locale:n}=Ll(),r=Fv({...e,locale:n,createCalendar:pu}),{calendarProps:i,prevButtonProps:a,nextButtonProps:l,errorMessageProps:s,title:c}=function(e,t){return _d(e,t)}(e,r),u=ji({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"});return o.createElement("div",{...u,...i,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},o.createElement(_i,{values:[[Dv,{slots:{previous:a,next:l}}],[Or,{"aria-hidden":!0,level:2,children:c}],[Ob,r],[Av,{slots:{errorMessage:s}}]]},o.createElement(ef,null,o.createElement("h2",null,i["aria-label"])),u.children,o.createElement(ef,null,o.createElement("button",{"aria-label":l["aria-label"],disabled:l.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}const Tb=s(Pb);function Ab(e,t){[e,t]=Ri(e,t,Eb);let{locale:n}=Ll(),r=function(e){let{value:t,defaultValue:n,onChange:r,createCalendar:o,locale:i,visibleDuration:s={months:1},minValue:c,maxValue:u,...d}=e,[p,h]=ti(t,n||null,r),[g,m]=l(null),v="center";if(p&&p.start&&p.end){let e=Lv(Ps(p.start),s,i,c,u).add(s).subtract({days:1});p.end.compare(e)>0&&(v="start")}let y=a(null),[b,w]=l(null),C=f((()=>vs(c,null==b?void 0:b.start)),[c,b]),x=f((()=>ms(u,null==b?void 0:b.end)),[u,b]),S=Fv({...d,value:p&&p.start,createCalendar:o,locale:i,visibleDuration:s,minValue:C,maxValue:x,selectionAlignment:v}),k=t=>{if(t&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){const e=Hv(t,S,-1),n=Hv(t,S,1);y.current={start:e,end:n},w(y.current)}else y.current=null,w(null)},[E,O]=l(S.visibleRange);ts(S.visibleRange.start,E.start)&&ts(S.visibleRange.end,E.end)||(k(g),O(S.visibleRange));let D=e=>{e?(m(e),k(e)):(m(null),k(null))},P=g?Kv(g,S.focusedDate):p&&Kv(p.start,p.end),T=t=>{if(e.isReadOnly)return;const n=zv($v(t,C,x),S.visibleRange.start,e.isDateUnavailable);if(n)if(g){let e=Kv(g,n);e&&h({start:Vv(e.start,null==p?void 0:p.start),end:Vv(e.end,null==p?void 0:p.end)}),D(null)}else D(n)},[A,M]=l(!1),{isDateUnavailable:_}=e,j=f((()=>!(!p||g)&&(!(!_||!_(p.start)&&!_(p.end))||jv(p.start,c,u)||jv(p.end,c,u))),[_,p,g,c,u]),L=e.isInvalid||"invalid"===e.validationState||j,R=L?"invalid":null;return{...S,value:p,setValue:h,anchorDate:g,setAnchorDate:D,highlightedRange:P,validationState:R,isValueInvalid:L,selectFocusedDate(){T(S.focusedDate)},selectDate:T,highlightDate(e){g&&S.setFocusedDate(e)},isSelected:e=>Boolean(P&&e.compare(P.start)>=0&&e.compare(P.end)<=0&&!S.isCellDisabled(e)&&!S.isCellUnavailable(e)),isInvalid(e){var t,n;return S.isInvalid(e)||jv(e,null===(t=y.current)||void 0===t?void 0:t.start,null===(n=y.current)||void 0===n?void 0:n.end)},isDragging:A,setDragging:M}}({...e,locale:n,createCalendar:pu}),{calendarProps:i,prevButtonProps:s,nextButtonProps:c,errorMessageProps:u,title:d}=function(e,t,n){let r=_d(e,t),o=a(!1),i=a("undefined"!=typeof window?window:null);return qo(i,"pointerdown",(e=>{o.current=0===e.width&&0===e.height})),qo(i,"pointerup",(e=>{if(o.current)return void(o.current=!1);if(t.setDragging(!1),!t.anchorDate)return;let r=e.target;!n.current||!n.current.contains(document.activeElement)||n.current.contains(r)&&r.closest('button, [role="button"]')||t.selectFocusedDate()})),r.calendarProps.onBlur=e=>{n.current&&(e.relatedTarget&&n.current.contains(e.relatedTarget)||!t.anchorDate||t.selectFocusedDate())},qo(n,"touchmove",(e=>{t.isDragging&&e.preventDefault()}),{passive:!1,capture:!0}),r}(e,r,t),p=ji({...e,values:{state:r,isDisabled:e.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"});return o.createElement("div",{...p,...i,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},o.createElement(_i,{values:[[Dv,{slots:{previous:s,next:c}}],[Or,{"aria-hidden":!0,level:2,children:d}],[Db,r],[Av,{slots:{errorMessage:u}}]]},o.createElement(ef,null,o.createElement("h2",null,i["aria-label"])),p.children,o.createElement(ef,null,o.createElement("button",{"aria-label":c["aria-label"],disabled:c.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}const Mb=s(Ab),_b=d(null);function jb(e,t){let n=p(Ob),r=p(Db),i=null!=n?n:r,a=i.visibleRange.start;e.offset&&(a=a.add(e.offset));let{gridProps:l,headerProps:s,weekDays:c}=function(e,t){let{startDate:n=t.visibleRange.start,endDate:r=t.visibleRange.end}=e,{direction:o}=Ll(),i=Od(n,r,t.timeZone,!0),{ariaLabel:a,ariaLabelledBy:l}=kd.get(t),s=Io({"aria-label":[a,i].filter(Boolean).join(", "),"aria-labelledby":l}),c=wu({weekday:e.weekdayStyle||"narrow",timeZone:t.timeZone}),{locale:u}=Ll(),d=f((()=>{let e=hs(os(t.timeZone),u);return[...new Array(7).keys()].map((n=>{let r=e.add({days:n}).toDate(t.timeZone);return c.format(r)}))}),[u,t.timeZone,c]);return{gridProps:io(s,{role:"grid","aria-readonly":t.isReadOnly||null,"aria-disabled":t.isDisabled||null,"aria-multiselectable":"highlightedRange"in t||void 0,onKeyDown:e=>{switch(e.key){case"Enter":case" ":e.preventDefault(),t.selectFocusedDate();break;case"PageUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousSection(e.shiftKey);break;case"PageDown":e.preventDefault(),e.stopPropagation(),t.focusNextSection(e.shiftKey);break;case"End":e.preventDefault(),e.stopPropagation(),t.focusSectionEnd();break;case"Home":e.preventDefault(),e.stopPropagation(),t.focusSectionStart();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusNextDay():t.focusPreviousDay();break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),t.focusPreviousRow();break;case"ArrowRight":e.preventDefault(),e.stopPropagation(),"rtl"===o?t.focusPreviousDay():t.focusNextDay();break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),t.focusNextRow();break;case"Escape":"setAnchorDate"in t&&(e.preventDefault(),t.setAnchorDate(null))}},onFocus:()=>t.setFocused(!0),onBlur:()=>t.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:d}}({startDate:a,endDate:ds(a),weekdayStyle:e.weekdayStyle},i);var u;return o.createElement(_b.Provider,{value:{headerProps:s,weekDays:c,startDate:a}},o.createElement("table",{...fo(e),...l,ref:t,style:e.style,className:null!==(u=e.className)&&void 0!==u?u:"react-aria-CalendarGrid"},"function"!=typeof e.children?e.children:o.createElement(o.Fragment,null,o.createElement(Ib,null,(e=>o.createElement($b,null,e))),o.createElement(Fb,null,e.children))))}const Lb=s(jb);function Rb(e,t){let{children:n,style:r,className:i}=e,{headerProps:a,weekDays:l}=p(_b);return o.createElement("thead",{...fo(e),...a,ref:t,style:r,className:i||"react-aria-CalendarGridHeader"},o.createElement("tr",null,l.map(((e,t)=>o.cloneElement(n(e),{key:t})))))}const Ib=s(Rb);function Nb(e,t){let{children:n,style:r,className:i}=e;return o.createElement("th",{...fo(e),ref:t,style:r,className:i||"react-aria-CalendarHeaderCell"},n)}const $b=s(Nb);function zb(e,t){let{children:n,style:r,className:i}=e,a=p(Ob),l=p(Db),s=null!=a?a:l,{startDate:c}=p(_b),{locale:u}=Ll(),d=function(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((ns(us(e),t)+n)/7)}(c,u);return o.createElement("tbody",{...fo(e),ref:t,style:r,className:i||"react-aria-CalendarGridBody"},[...new Array(d).keys()].map((e=>o.createElement("tr",{key:e},s.getDatesInWeek(e,c).map(((e,t)=>e?o.cloneElement(n(e),{key:t}):o.createElement("td",{key:t})))))))}const Fb=s(zb);function Bb({date:e,...t},n){let r=p(Ob),i=p(Db),l=null!=r?r:i;var s;let{startDate:c}=null!==(s=p(_b))&&void 0!==s?s:{startDate:l.visibleRange.start},u=a(null),{cellProps:d,buttonProps:f,...h}=jd({date:e},l,u),{hoverProps:g,isHovered:m}=Ka({...t,isDisabled:h.isDisabled}),{focusProps:v,isFocusVisible:y}=wl();y&&(y=h.isFocused);let b=!function(e,t){return t=Ms(t,e.calendar),e=us(e),t=us(t),e.era===t.era&&e.year===t.year&&e.month===t.month}(c,e),w=!1,C=!1;"highlightedRange"in l&&l.highlightedRange&&(w=es(e,l.highlightedRange.start),C=es(e,l.highlightedRange.end));let x=ji({...t,defaultChildren:h.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:e,isHovered:m,isOutsideMonth:b,isFocusVisible:y,isSelectionStart:w,isSelectionEnd:C,...h}}),S={"data-focused":h.isFocused||void 0,"data-hovered":m||void 0,"data-pressed":h.isPressed||void 0,"data-unavailable":h.isUnavailable||void 0,"data-disabled":h.isDisabled||void 0,"data-focus-visible":y||void 0,"data-outside-visible-range":h.isOutsideVisibleRange||void 0,"data-outside-month":b||void 0,"data-selected":h.isSelected||void 0,"data-selection-start":w||void 0,"data-selection-end":C||void 0,"data-invalid":h.isInvalid||void 0};return o.createElement("td",{...d,ref:n},o.createElement("div",{...io(fo(t),f,v,g,S,x),ref:u}))}const Kb=s(Bb),Vb=d(null);function Hb(e,t){let n=p(Vb);return(null==n?void 0:n.isInvalid)?o.createElement(Wb,{...e,ref:t}):null}const Ub=s(Hb),Wb=s(((e,t)=>{let n=p(Vb),r=fo(e),i=ji({...e,defaultClassName:"react-aria-FieldError",defaultChildren:0===n.validationErrors.length?void 0:n.validationErrors.join(" "),values:n});return null==i.children?null:o.createElement(_v,{slot:"errorMessage",...r,...i,ref:t})})),Zb=d(null),qb=d(null);function Gb(e,t){let{inputRef:n=null,...r}=e;[e,t]=Ri(r,t,Er);let{validationBehavior:l}=Li(Zb)||{};var s,c;let u=null!==(c=null!==(s=e.validationBehavior)&&void 0!==s?s:l)&&void 0!==c?c:"native",d=p(qb),f=No(ao(n,void 0!==e.inputRef?e.inputRef:null)),{labelProps:h,inputProps:g,isSelected:m,isDisabled:v,isReadOnly:y,isPressed:b,isInvalid:w}=d?function(e,t,n){const r=Yd({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{name:o,descriptionId:l,errorMessageId:s,validationBehavior:c}=Zd.get(t);var u;c=null!==(u=e.validationBehavior)&&void 0!==u?u:c;let{realtimeValidation:d}=Bd({...e,value:r.isSelected,name:void 0,validationBehavior:"aria"}),f=a($d),p=()=>{t.setInvalid(e.value,d.isInvalid?d:f.current)};i(p);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:d,g="native"===c?t.displayValidation:h;var m;let v=Wd({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,isRequired:null!==(m=e.isRequired)&&void 0!==m?m:t.isRequired,validationBehavior:c,[Fd]:{realtimeValidation:h,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(e){f.current=e,p()}}},r,n);return{...v,inputProps:{...v.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?s:null,l].filter(Boolean).join(" ")||void 0}}}({...e,value:e.value,children:"function"==typeof e.children||e.children},d,f):Wd({...e,children:"function"==typeof e.children||e.children,validationBehavior:u},Yd(e),f),{isFocused:C,isFocusVisible:x,focusProps:S}=wl(),k=v||y,{hoverProps:E,isHovered:O}=Ka({...e,isDisabled:k}),D=ji({...e,defaultClassName:"react-aria-Checkbox",values:{isSelected:m,isIndeterminate:e.isIndeterminate||!1,isPressed:b,isHovered:O,isFocused:C,isFocusVisible:x,isDisabled:v,isReadOnly:y,isInvalid:w,isRequired:e.isRequired||!1}}),P=fo(e);return delete P.id,o.createElement("label",{...io(P,h,E,D),ref:t,slot:e.slot||void 0,"data-selected":m||void 0,"data-indeterminate":e.isIndeterminate||void 0,"data-pressed":b||void 0,"data-hovered":O||void 0,"data-focused":C||void 0,"data-focus-visible":x||void 0,"data-disabled":v||void 0,"data-readonly":y||void 0,"data-invalid":w||void 0,"data-required":e.isRequired||void 0},o.createElement(ef,{elementType:"span"},o.createElement("input",{...io(g,S),ref:f})),D.children)}const Yb=s(Gb),Xb=d({});let Jb=e=>{let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,...o}=e;return o};function Qb(e,t){[e,t]=Ri(e,t,Xb);let{hoverProps:n,isHovered:r}=Ka(e),{isFocused:i,isFocusVisible:a,focusProps:l}=wl({isTextInput:!0,autoFocus:e.autoFocus}),s=!!e["aria-invalid"]&&"false"!==e["aria-invalid"],c=ji({...e,values:{isHovered:r,isFocused:i,isFocusVisible:a,isDisabled:e.disabled||!1,isInvalid:s},defaultClassName:"react-aria-Input"});return o.createElement("input",{...io(Jb(e),l,n),...c,ref:t,"data-focused":i||void 0,"data-disabled":e.disabled||void 0,"data-hovered":r||void 0,"data-focus-visible":a||void 0,"data-invalid":s||void 0})}const ew=Wr(Qb);var tw;tw={"ar-AE":{colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"},"bg-BG":{colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"},"da-DK":{colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"},"el-GR":{colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"},"et-EE":{colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"},"hu-HU":{colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"},"ko-KR":{colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"},"lt-LT":{colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"},"lv-LV":{colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"},"sk-SK":{colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"},"sv-SE":{colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"},"tr-TR":{colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"},"uk-UA":{colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"},"zh-CN":{colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"},"zh-TW":{colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"}};const nw=d({}),rw=d(null);function ow(e,t){let{render:n}=p(rw);return o.createElement(o.Fragment,null,n(e,t))}const iw=s(ow);function aw(e,t){var n;let r=null==e?void 0:e.renderDropIndicator,i=null==e||null===(n=e.isVirtualDragging)||void 0===n?void 0:n.call(e),a=h((e=>{if(i||(null==t?void 0:t.isDropTarget(e)))return r?r(e):o.createElement(iw,{target:e})}),[null==t?void 0:t.target,i,r]);return(null==e?void 0:e.useDropIndicator)?a:void 0}function lw(e,t,n){var r,o;let i=e.focusedKey,a=null;var l;(null==t||null===(r=t.isVirtualDragging)||void 0===r?void 0:r.call(t))&&"item"===(null==n||null===(o=n.target)||void 0===o?void 0:o.type)&&(a=n.target.key,"after"===n.target.dropPosition&&(a=null!==(l=n.collection.getKeyAfter(a))&&void 0!==l?l:a));return f((()=>new Set([i,a].filter((e=>null!==e)))),[i,a])}const sw=d({}),cw=wi("header",(function(e,t){return[e,t]=Ri(e,t,sw),o.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)})),uw=d({}),dw=wi("separator",(function(e,t){[e,t]=Ri(e,t,uw);let{elementType:n,orientation:r,style:i,className:a}=e,l=n||"hr";"hr"===l&&"vertical"===r&&(l="div");let{separatorProps:s}=function(e){let t,n=fo(e,{labelable:!0});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...n,role:"separator","aria-orientation":t}}:{separatorProps:n}}({elementType:n,orientation:r});return o.createElement(l,{...fo(e),...s,style:i,className:null!=a?a:"react-aria-Separator",ref:t,slot:e.slot||void 0})})),fw=d(null),pw=d(null);function hw(e,t){[e,t]=Ri(e,t,fw);let n=p(pw);return n?o.createElement(vw,{state:n,props:e,listBoxRef:t}):o.createElement(gi,{content:o.createElement(ki,e)},(n=>o.createElement(gw,{props:e,listBoxRef:t,collection:n})))}function gw({props:e,listBoxRef:t,collection:n}){e={...e,collection:n,children:null,items:null};let{layoutDelegate:r}=p(Ai),i=Yv({...e,layoutDelegate:r});return o.createElement(vw,{state:i,props:e,listBoxRef:t})}const mw=s(hw);function vw({state:e,props:t,listBoxRef:n}){let r,l,s,{dragAndDropHooks:c,layout:u="stack",orientation:d="vertical"}=t,{collection:h,selectionManager:g}=e,m=!!(null==c?void 0:c.useDraggableCollectionState),v=!!(null==c?void 0:c.useDroppableCollectionState),{direction:y}=Ll(),{disabledBehavior:b,disabledKeys:w}=g,C=Fu({usage:"search",sensitivity:"base"}),{isVirtualized:x,layoutDelegate:S,dropTargetDelegate:k,CollectionRoot:E}=p(Ai),O=f((()=>t.keyboardDelegate||new Oh({collection:h,collator:C,ref:n,disabledKeys:w,disabledBehavior:b,layout:u,orientation:d,direction:y,layoutDelegate:S})),[h,C,n,b,w,d,y,t.keyboardDelegate,u,S]),{listBoxProps:D}=function(e,t,n){let r=fo(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||("replace"===o?"action":"override");"toggle"===o&&"action"===i&&(i="override");let{listProps:a}=Dh({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:l}=Ia({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=Xr(e.id);gh.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:u}=qd({...e,id:s,labelElementType:"span"});return{labelProps:c,listBoxProps:io(r,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...io(u,a)})}}({...t,shouldSelectOnPressUp:m||t.shouldSelectOnPressUp,keyboardDelegate:O,isVirtualized:x},e,n),P=a(m),T=a(v);i((()=>{P.current!==m&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),T.current!==v&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")}),[m,v]);let A=!1,M=null,_=a(null);if(m&&c){r=c.useDraggableCollectionState({collection:h,selectionManager:g,preview:c.renderDragPreview?_:void 0}),c.useDraggableCollection({},r,n);let e=c.DragPreview;M=c.renderDragPreview?o.createElement(e,{ref:_},c.renderDragPreview):null}if(v&&c){l=c.useDroppableCollectionState({collection:h,selectionManager:g});let e=c.dropTargetDelegate||k||new c.ListDropTargetDelegate(h,n,{orientation:d,layout:u,direction:y});s=c.useDroppableCollection({keyboardDelegate:O,dropTargetDelegate:e},l,n),A=l.isDropTarget({type:"root"})}let{focusProps:j,isFocused:L,isFocusVisible:R}=wl(),I={isDropTarget:A,isEmpty:0===e.collection.size,isFocused:L,isFocusVisible:R,layout:t.layout||"stack",state:e},N=ji({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:I}),$=null;return 0===e.collection.size&&t.renderEmptyState&&($=o.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(I))),o.createElement(el,null,o.createElement("div",{...fo(t),...io(D,j,null==s?void 0:s.collectionProps),...N,ref:n,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":A||void 0,"data-empty":0===e.collection.size||void 0,"data-focused":L||void 0,"data-focus-visible":R||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},o.createElement(_i,{values:[[fw,t],[pw,e],[nw,{dragAndDropHooks:c,dragState:r,dropState:l}],[uw,{elementType:"div"}],[rw,{render:ww}],[Oi,{render:yw}]]},o.createElement(E,{collection:h,scrollRef:n,persistedKeys:lw(g,c,l),renderDropIndicator:aw(c,l)})),$,M))}function yw(e,t,n){let r=p(pw),{dragAndDropHooks:i,dropState:a}=p(nw),{CollectionBranch:l}=p(Ai),[s,c]=Ii();var u;let{headingProps:d,groupProps:f}=function(e){let{heading:t,"aria-label":n}=e,r=Xr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:c,"aria-label":null!==(u=e["aria-label"])&&void 0!==u?u:void 0}),h=ji({defaultClassName:"react-aria-Section",className:e.className,style:e.style,values:{}});return o.createElement("section",{...fo(e),...f,...h,ref:t},o.createElement(sw.Provider,{value:{...d,ref:s}},o.createElement(l,{collection:r.collection,parent:n,renderDropIndicator:aw(i,a)})))}const bw=wi("item",(function(e,t,n){let r=No(t),a=p(pw),{dragAndDropHooks:l,dragState:s,dropState:c}=p(nw),{optionProps:u,labelProps:d,descriptionProps:f,...h}=function(e,t,n){var r,o;let{key:i}=e,a=gh.get(t);var l;let s=null!==(l=e.isDisabled)&&void 0!==l?l:t.selectionManager.isDisabled(i);var c;let u=null!==(c=e.isSelected)&&void 0!==c?c:t.selectionManager.isSelected(i);var d;let f=null!==(d=e.shouldSelectOnPressUp)&&void 0!==d?d:null==a?void 0:a.shouldSelectOnPressUp;var p;let h=null!==(p=e.shouldFocusOnHover)&&void 0!==p?p:null==a?void 0:a.shouldFocusOnHover;var g;let m=null!==(g=e.shouldUseVirtualFocus)&&void 0!==g?g:null==a?void 0:a.shouldUseVirtualFocus;var v;let y=null!==(v=e.isVirtualized)&&void 0!==v?v:null==a?void 0:a.isVirtualized,b=Qr(),w=Qr(),C={role:"option","aria-disabled":s||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?u:void 0};yo()&&So()||(C["aria-label"]=e["aria-label"],C["aria-labelledby"]=b,C["aria-describedby"]=w);let x=t.collection.getItem(i);if(y){let e=Number(null==x?void 0:x.index);C["aria-posinset"]=Number.isNaN(e)?void 0:e+1,C["aria-setsize"]=Fh(t.collection)}let S=(null==a?void 0:a.onAction)?()=>{var e;return null==a||null===(e=a.onAction)||void 0===e?void 0:e.call(a,i)}:void 0,{itemProps:k,isPressed:E,isFocused:O,hasAction:D,allowsSelection:P}=xh({selectionManager:t.selectionManager,key:i,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:m,isDisabled:s,onAction:S||(null==x||null===(r=x.props)||void 0===r?void 0:r.onAction)?eo(null==x||null===(o=x.props)||void 0===o?void 0:o.onAction,S):void 0,linkBehavior:null==a?void 0:a.linkBehavior}),{hoverProps:T}=Ka({isDisabled:s||!h,onHoverStart(){Aa()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),A=fo(null==x?void 0:x.props);delete A.id;let M=Ao(null==x?void 0:x.props);return{optionProps:{...C,...io(A,k,T,M),id:mh(t,i)},labelProps:{id:b},descriptionProps:{id:w},isFocused:O,isFocusVisible:O&&Aa(),isSelected:u,isDisabled:s,isPressed:E,allowsSelection:P,hasAction:D}}({key:n.key,"aria-label":null==e?void 0:e["aria-label"]},a,r),{hoverProps:g,isHovered:m}=Ka({isDisabled:!h.allowsSelection&&!h.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),v=null;s&&l&&(v=l.useDraggableItem({key:n.key},s));let y=null;c&&l&&(y=l.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},c,r));let b=s&&s.isDragging(n.key),w=ji({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...h,isHovered:m,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:b,isDropTarget:null==y?void 0:y.isDropTarget}});i((()=>{n.textValue||console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")}),[n.textValue]);let C=e.href?"a":"div";return o.createElement(C,{...io(u,g,null==v?void 0:v.dragProps,null==y?void 0:y.dropProps),...w,ref:r,"data-allows-dragging":!!s||void 0,"data-selected":h.isSelected||void 0,"data-disabled":h.isDisabled||void 0,"data-hovered":m||void 0,"data-focused":h.isFocused||void 0,"data-focus-visible":h.isFocusVisible||void 0,"data-pressed":h.isPressed||void 0,"data-dragging":b||void 0,"data-drop-target":(null==y?void 0:y.isDropTarget)||void 0,"data-selection-mode":"none"===a.selectionManager.selectionMode?void 0:a.selectionManager.selectionMode},o.createElement(_i,{values:[[Av,{slots:{label:d,description:f}}]]},w.children))}));function ww(e,t){t=No(t);let{dragAndDropHooks:n,dropState:r}=p(nw),{dropIndicatorProps:i,isHidden:a,isDropTarget:l}=n.useDropIndicator(e,r,t);return a?null:o.createElement(xw,{...e,dropIndicatorProps:i,isDropTarget:l,ref:t})}function Cw(e,t){let{dropIndicatorProps:n,isDropTarget:r,...i}=e,a=ji({...i,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}});return o.createElement("div",{...n,...a,role:"option",ref:t,"data-drop-target":r||void 0})}const xw=s(Cw),Sw=d({});function kw(e,t){[e,t]=Ri(e,t,Sw);let{isDisabled:n,isInvalid:r,onHoverStart:i,onHoverChange:a,onHoverEnd:l,...s}=e,{hoverProps:c,isHovered:u}=Ka({onHoverStart:i,onHoverChange:a,onHoverEnd:l,isDisabled:n}),{isFocused:d,isFocusVisible:f,focusProps:p}=wl({within:!0});null!=n||(n=!!e["aria-disabled"]&&"false"!==e["aria-disabled"]),null!=r||(r=!!e["aria-invalid"]&&"false"!==e["aria-invalid"]);let h=ji({...e,values:{isHovered:u,isFocusWithin:d,isFocusVisible:f,isDisabled:n,isInvalid:r},defaultClassName:"react-aria-Group"});var g,m;return o.createElement("div",{...io(s,p,c),...h,ref:t,role:null!==(g=e.role)&&void 0!==g?g:"group",slot:null!==(m=e.slot)&&void 0!==m?m:void 0,"data-focus-within":d||void 0,"data-hovered":u||void 0,"data-focus-visible":f||void 0,"data-disabled":n||void 0,"data-invalid":r||void 0},h.children)}const Ew=s(kw),Ow=d({placement:"bottom"});function Dw(e,t){[e,t]=Ri(e,t,Ow);let n=e.placement,r={position:"absolute",[n]:"100%",transform:"top"===n||"bottom"===n?"translateX(-50%)":"translateY(-50%)"},i=ji({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});return i.style&&Object.keys(i.style).forEach((e=>void 0===i.style[e]&&delete i.style[e])),o.createElement("div",{...e,...i,style:{...r,...i.style},ref:t,"data-placement":n})}const Pw=s(Dw),Tw=d(null);function Aw(e,t){[e,t]=Ri(e,t,Tw);let n=p(Lw),r=Jv(e),i=null==e.isOpen&&null==e.defaultOpen&&n?n:r,a=$i(t,i.isOpen)||e.isExiting||!1;if(p(Vr)){let t=e.children;return"function"==typeof t&&(t=t({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),o.createElement(o.Fragment,null,t)}return!i||i.isOpen||a?o.createElement(_w,{...e,triggerRef:e.triggerRef,state:i,popoverRef:t,isExiting:a}):null}const Mw=s(Aw);function _w({state:e,isExiting:t,UNSTABLE_portalContainer:n,...r}){let i=a(null),[s,c]=l(0);var u;Zr((()=>{i.current&&e.isOpen&&c(i.current.getBoundingClientRect().width)}),[e.isOpen,i]);let{popoverProps:d,underlayProps:f,arrowProps:p,placement:h}=function(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a,...l}=e,{overlayProps:s,underlayProps:c}=Up({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:a},r),{overlayProps:u,arrowProps:d,placement:f}=Kp({...l,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Yp({isDisabled:o||!t.isOpen}),Zr((()=>{if(t.isOpen&&!o&&r.current)return uh([r.current])}),[o,t.isOpen,r]),{popoverProps:io(s,u),arrowProps:d,underlayProps:c,placement:f}}({...r,offset:null!==(u=r.offset)&&void 0!==u?u:8,arrowSize:s},e),g=r.popoverRef,m=Ni(g,!!h)||r.isEntering||!1,v=ji({...r,defaultClassName:"react-aria-Popover",values:{trigger:r.trigger||null,placement:h,isEntering:m,isExiting:t}}),y={...d.style,...v.style};return o.createElement(ph,{isExiting:t,portalContainer:n},!r.isNonModal&&e.isOpen&&o.createElement("div",{"data-testid":"underlay",...f,style:{position:"fixed",inset:0}}),o.createElement("div",{...io(fo(r),d),...v,ref:g,slot:r.slot||void 0,style:y,"data-trigger":r.trigger,"data-placement":h,"data-entering":m||void 0,"data-exiting":t||void 0},!r.isNonModal&&o.createElement(lh,{onDismiss:e.close}),o.createElement(Ow.Provider,{value:{...p,placement:h,ref:i}},v.children),o.createElement(lh,{onDismiss:e.close})))}const jw=d(null),Lw=d(null);function Rw(e,t){let n=e["aria-labelledby"];[e,t]=Ri(e,t,jw);let{dialogProps:r,titleProps:l}=function(e,t){let{role:n="dialog"}=e,r=Qr();r=e["aria-label"]?void 0:r;let o=a(!1);return i((()=>{if(t.current&&!t.current.contains(document.activeElement)){Ga(t.current);let e=setTimeout((()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),Ga(t.current)),o.current=!1)}),500);return()=>{clearTimeout(e)}}}),[t]),hh(),{dialogProps:{...fo(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{o.current&&e.stopPropagation()}},titleProps:{id:r}}}({...e,"aria-labelledby":n},t),s=p(Lw),c=e.children;var u;return"function"==typeof c&&(c=c({close:(null==s?void 0:s.close)||(()=>{})})),r["aria-label"]||r["aria-labelledby"]||(e["aria-labelledby"]?r["aria-labelledby"]=e["aria-labelledby"]:console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.')),o.createElement("section",{...fo(e),...r,ref:t,slot:e.slot||void 0,style:e.style,className:null!==(u=e.className)&&void 0!==u?u:"react-aria-Dialog"},o.createElement(_i,{values:[[Or,{slots:{[Mi]:{},title:{...l,level:2}}}]]},c))}const Iw=s(Rw),Nw=d(null),$w=d(null);function zw(e,t){[e,t]=Ri(e,t,Nw);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,l=f((()=>{var t;return o.createElement(fw.Provider,{value:{items:null!==(t=e.items)&&void 0!==t?t:e.defaultItems}},"function"==typeof n?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,defaultChildren:null}):n)}),[n,r,i,a,e.items,e.defaultItems]);return o.createElement(gi,{content:l},(n=>o.createElement(Fw,{props:e,collection:n,comboBoxRef:t})))}function Fw({props:e,collection:t,comboBoxRef:n}){let{name:r,formValue:s="key",allowsCustomValue:c}=e;c&&(s="text");let{validationBehavior:u}=Li(Zb)||{};var d,p;let g=null!==(p=null!==(d=e.validationBehavior)&&void 0!==d?d:u)&&void 0!==p?p:"native",{contains:m}=Bu({sensitivity:"base"}),v=Qv({defaultFilter:e.defaultFilter||m,...e,items:e.items,children:void 0,collection:t,validationBehavior:g}),y=a(null),b=a(null),w=a(null),C=a(null),[x,S]=Ii(),{buttonProps:k,inputProps:E,listBoxProps:O,labelProps:D,descriptionProps:P,errorMessageProps:T,...A}=function(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:l,keyboardDelegate:s,layoutDelegate:c,shouldFocusWrap:u,isReadOnly:d,isDisabled:p}=e,h=Hl(function(e){return e&&e.__esModule?e.default:e}(xp),"@react-aria/combobox"),{menuTriggerProps:g,menuProps:m}=Kh({type:"listbox",isDisabled:p||d},t,n);gh.set(t,{id:m.id});let{collection:v}=t,{disabledKeys:y}=t.selectionManager,b=f((()=>s||new Oh({collection:v,disabledKeys:y,ref:l,layoutDelegate:c})),[s,c,v,y,l]),{collectionProps:w}=Ch({selectionManager:t.selectionManager,keyboardDelegate:b,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:u,ref:o,isVirtualized:!0}),C=Po(),{isInvalid:x,validationErrors:S,validationDetails:k}=t.displayValidation,{labelProps:E,inputProps:O,descriptionProps:D,errorMessageProps:P}=tf({...e,onChange:t.setInputValue,onKeyDown:d?e.onKeyDown:eo(t.isOpen&&w.onKeyDown,(n=>{if(!n.nativeEvent.isComposing)switch(n.key){case"Enter":case"Tab":if(t.isOpen&&"Enter"===n.key&&n.preventDefault(),t.isOpen&&null!=t.selectionManager.focusedKey&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if("Enter"===n.key){let e=l.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);if(e instanceof HTMLAnchorElement){let r=t.collection.getItem(t.selectionManager.focusedKey);C.open(e,n,r.props.href,r.props.routerOptions)}}t.close()}else t.commit();break;case"Escape":(null!==t.selectedKey||""===t.inputValue||e.allowsCustomValue)&&n.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null)}}),e.onKeyDown),onBlur:o=>{var i;let a=(null==n?void 0:n.current)&&n.current===o.relatedTarget,l=null===(i=r.current)||void 0===i?void 0:i.contains(o.relatedTarget);a||l||(e.onBlur&&e.onBlur(o),t.setFocused(!1))},value:t.inputValue,onFocus:n=>{t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},autoComplete:"off",validate:void 0,[Fd]:t},o),T=Io({id:g.id,"aria-label":h.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||E.id}),A=Io({id:m.id,"aria-label":h.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||E.id}),M=a(0),_=null!=t.selectionManager.focusedKey&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var j;let L=null!==(j=null==_?void 0:_.parentKey)&&void 0!==j?j:null;var R;let I=null!==(R=t.selectionManager.focusedKey)&&void 0!==R?R:null,N=a(L),$=a(I);i((()=>{if(xo()&&null!=_&&I!==$.current){let e=t.selectionManager.isSelected(I),n=null!=L?t.collection.getItem(L):null,r=(null==n?void 0:n["aria-label"])||("string"==typeof(null==n?void 0:n.rendered)?n.rendered:"")||"";Ad(h.format("focusAnnouncement",{isGroupChange:n&&L!==N.current,groupTitle:r,groupCount:n?[...jh(n,t.collection)].length:0,optionText:_["aria-label"]||_.textValue||"",isSelected:e}))}N.current=L,$.current=I}));let z=Fh(t.collection),F=a(z),B=a(t.isOpen);i((()=>{let e=t.isOpen!==B.current&&(null==t.selectionManager.focusedKey||xo());t.isOpen&&(e||z!==F.current)&&Ad(h.format("countAnnouncement",{optionCount:z})),F.current=z,B.current=t.isOpen}));let K=a(t.selectedKey);return i((()=>{if(xo()&&t.isFocused&&t.selectedItem&&t.selectedKey!==K.current){let e=t.selectedItem["aria-label"]||t.selectedItem.textValue||"";Ad(h.format("selectedAnnouncement",{optionText:e}))}K.current=t.selectedKey})),i((()=>{if(t.isOpen)return uh([o.current,r.current])}),[t.isOpen,o,r]),{labelProps:E,buttonProps:{...g,...T,excludeFromTabOrder:!0,preventFocusOnPress:!0,onPress:e=>{"touch"===e.pointerType&&(o.current.focus(),t.toggle(null,"manual"))},onPressStart:e=>{"touch"!==e.pointerType&&(o.current.focus(),t.toggle("keyboard"===e.pointerType||"virtual"===e.pointerType?"first":null,"manual"))},isDisabled:p||d},inputProps:io(O,{role:"combobox","aria-expanded":g["aria-expanded"],"aria-controls":t.isOpen?m.id:void 0,"aria-autocomplete":"list","aria-activedescendant":_?mh(t,_.key):void 0,onTouchEnd:e=>{if(p||d)return;if(e.timeStamp-M.current<500)return e.preventDefault(),void o.current.focus();let n=e.target.getBoundingClientRect(),r=e.changedTouches[0],i=Math.ceil(n.left+.5*n.width),a=Math.ceil(n.top+.5*n.height);r.clientX===i&&r.clientY===a&&(e.preventDefault(),o.current.focus(),t.toggle(null,"manual"),M.current=e.timeStamp)},autoCorrect:"off",spellCheck:"false"}),listBoxProps:io(m,A,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:D,errorMessageProps:P,isInvalid:x,validationErrors:S,validationDetails:k}}({...Fi(e),label:S,inputRef:b,buttonRef:y,listBoxRef:w,popoverRef:C,name:"text"===s?r:void 0,validationBehavior:g},v),[M,_]=l(null),j=h((()=>{if(b.current){var e;let t=null===(e=y.current)||void 0===e?void 0:e.getBoundingClientRect(),n=b.current.getBoundingClientRect(),r=t?Math.min(t.left,n.left):n.left,o=t?Math.max(t.right,n.right):n.right;_(o-r+"px")}}),[y,b,_]);zo({ref:b,onResize:j});let L=f((()=>({isOpen:v.isOpen,isDisabled:e.isDisabled||!1,isInvalid:A.isInvalid||!1,isRequired:e.isRequired||!1})),[v.isOpen,e.isDisabled,A.isInvalid,e.isRequired]),R=ji({...e,values:L,defaultClassName:"react-aria-ComboBox"}),I=fo(e);var N;return delete I.id,o.createElement(_i,{values:[[$w,v],[xv,{...D,ref:x}],[Dv,{...k,ref:y,isPressed:v.isOpen}],[Xb,{...E,ref:b}],[Lw,v],[Tw,{ref:C,triggerRef:b,scrollRef:w,placement:"bottom start",isNonModal:!0,trigger:"ComboBox",style:{"--trigger-width":M}}],[fw,{...O,ref:w}],[pw,v],[Av,{slots:{description:P,errorMessage:T}}],[Sw,{isInvalid:A.isInvalid,isDisabled:e.isDisabled||!1}],[Vb,A]]},o.createElement("div",{...I,...R,ref:n,slot:e.slot||void 0,"data-focused":v.isFocused||void 0,"data-open":v.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":A.isInvalid||void 0,"data-required":e.isRequired||void 0}),r&&"key"===s&&o.createElement("input",{type:"hidden",name:r,value:null!==(N=v.selectedKey)&&void 0!==N?N:""}))}const Bw=s(zw),Kw=d(null),Vw=d(null),Hw=d(null),Uw=d(null);function Ww(e,t){[e,t]=Ri(e,t,Vw);let{validationBehavior:n}=Li(Zb)||{};var r,i;let l=null!==(i=null!==(r=e.validationBehavior)&&void 0!==r?r:n)&&void 0!==i?i:"native",{locale:s}=Ll(),c=function(e){let{placeholderValue:t=new cc,minValue:n,maxValue:r,granularity:o,validate:i}=e,[a,l]=ti(e.value,e.defaultValue,e.onChange),s=a||t,c=s&&"day"in s?s:void 0,u=e.defaultValue&&"timeZone"in e.defaultValue?e.defaultValue.timeZone:void 0,d=f((()=>{let e=s&&"timeZone"in s?s.timeZone:void 0;return(e||u)&&t?_s(Jy(t),e||u):Jy(t)}),[t,s,u]),p=f((()=>Jy(n,c)),[n,c]),g=f((()=>Jy(r,c)),[r,c]),m=f((()=>a&&"day"in a?As(a):a),[a]),v=f((()=>null==a?null:Jy(a)),[a]);return{...Gy({...e,value:v,defaultValue:void 0,minValue:p,maxValue:g,onChange:e=>{l(c||u?e:e&&As(e))},granularity:o||"minute",maxGranularity:"hour",placeholderValue:d,createCalendar:()=>new Jl,validate:h((()=>null==i?void 0:i(a)),[i,a])}),timeValue:m}}({...e,locale:s,validationBehavior:l}),u=a(null),[d,p]=Ii(),g=a(null),{labelProps:m,fieldProps:v,inputProps:y,descriptionProps:b,errorMessageProps:w,...C}=function(e,t,n){var r;let o=Lg(e,t,n);return o.inputProps.value=(null===(r=t.timeValue)||void 0===r?void 0:r.toString())||"",o}({...Fi(e),label:p,inputRef:g,validationBehavior:l},c,u),x=ji({...e,values:{state:c,isInvalid:c.isInvalid,isDisabled:c.isDisabled},defaultClassName:"react-aria-TimeField"}),S=fo(e);return delete S.id,o.createElement(_i,{values:[[Uw,c],[Sw,{...v,ref:u,isInvalid:c.isInvalid}],[Xb,{...y,ref:g}],[xv,{...m,ref:d,elementType:"span"}],[Av,{slots:{description:b,errorMessage:w}}],[Vb,C]]},o.createElement("div",{...S,...x,ref:t,slot:e.slot||void 0,"data-invalid":c.isInvalid||void 0}))}const Zw=s(Ww);function qw(e,t){let n=p(Hw),r=p(Uw);return n||r?o.createElement(Yw,{...e,ref:t}):o.createElement(Gw,{...e,ref:t})}const Gw=s(((e,t)=>{let[n,r]=Ri({slot:e.slot},t,Kw),{locale:i}=Ll(),l=Gy({...n,locale:i,createCalendar:pu}),s=a(null),{fieldProps:c,inputProps:u}=Lg({...n,inputRef:s},l,r);return o.createElement(_i,{values:[[Hw,l],[Xb,{...u,ref:s}],[Sw,{...c,ref:r,isInvalid:l.isInvalid}]]},o.createElement(Yw,e))})),Yw=s(((e,t)=>{let{className:n,children:r}=e,i=p(Hw),a=p(Uw),l=null!=i?i:a;return o.createElement(o.Fragment,null,o.createElement(Ew,{...e,ref:t,slot:e.slot||void 0,className:null!=n?n:"react-aria-DateInput",isInvalid:l.isInvalid},l.segments.map(((e,t)=>c(r(e),{key:t})))),o.createElement(ew,null))})),Xw=s(qw);function Jw({segment:e,...t},n){let r=p(Hw),i=p(Uw),a=null!=r?r:i,l=No(n),{segmentProps:s}=Ig(e,a,l),{focusProps:c,isFocused:u,isFocusVisible:d}=wl(),{hoverProps:f,isHovered:h}=Ka({...t,isDisabled:a.isDisabled||"literal"===e.type}),g=ji({...t,values:{...e,isReadOnly:!e.isEditable,isInvalid:a.isInvalid,isDisabled:a.isDisabled,isHovered:h,isFocused:u,isFocusVisible:d},defaultChildren:e.text,defaultClassName:"react-aria-DateSegment"});return o.createElement("div",{...io(fo(t),s,c,f),...g,ref:l,"data-placeholder":e.isPlaceholder||void 0,"data-invalid":a.isInvalid||void 0,"data-readonly":!e.isEditable||void 0,"data-disabled":a.isDisabled||void 0,"data-type":e.type,"data-hovered":h||void 0,"data-focused":u||void 0,"data-focus-visible":d||void 0})}const Qw=s(Jw),eC=d(null),tC=d(null),nC=d(null),rC=d(null);function oC(e,t){[e,t]=Ri(e,t,eC);let{validationBehavior:n}=Li(Zb)||{};var r,i;let s=null!==(i=null!==(r=e.validationBehavior)&&void 0!==r?r:n)&&void 0!==i?i:"native",c=function(e){let t=Jv(e),[n,r]=ti(e.value,e.defaultValue||null,e.onChange),o=n||e.placeholderValue,[i,a]=Hy(o,e.granularity),s=null!=n?n.toDate(null!=a?a:"UTC"):null,c="hour"===i||"minute"===i||"second"===i;var u;let d=null===(u=e.shouldCloseOnSelect)||void 0===u||u,[p,h]=l(null),[g,m]=l(null);if(n&&(p=n,"hour"in n&&(g=n)),o&&!(i in o))throw new Error("Invalid granularity "+i+" for value "+o.toString());let v="gregory"===(null==n?void 0:n.calendar.identifier)&&"BC"===n.era,y=f((()=>({granularity:i,timeZone:a,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:v})),[i,e.hourCycle,e.shouldForceLeadingZeros,a,e.hideTimeZone,v]),{minValue:b,maxValue:w,isDateUnavailable:C}=e,x=f((()=>Ny(n,b,w,C,y)),[n,b,w,C,y]),S=Bd({...e,value:n,builtinValidation:x}),k=S.displayValidation.isInvalid,E=e.validationState||(k?"invalid":null),O=(e,t)=>{r("timeZone"in t?t.set(Ps(e)):Ts(e,t)),h(null),m(null),S.commitValidation()};return{...S,value:n,setValue:r,dateValue:p,timeValue:g,setDateValue:n=>{let o="function"==typeof d?d():d;c?g||o?O(n,g||By(e.placeholderValue)):h(n):(r(n),S.commitValidation()),o&&t.setOpen(!1)},setTimeValue:e=>{p&&e?O(p,e):m(e)},granularity:i,hasTime:c,...t,setOpen(r){!r&&!n&&p&&c&&O(p,g||By(e.placeholderValue)),t.setOpen(r)},validationState:E,isInvalid:k,formatValue(e,t){if(!s)return"";let n=Fy(t,y);return new gu(e,n).format(s)},getDateFormatter(e,t){let n=Fy({},{...y,...t});return new gu(e,n)}}}({...e,validationBehavior:s}),u=a(null),[d,p]=Ii(),{groupProps:g,labelProps:m,fieldProps:v,buttonProps:y,dialogProps:b,calendarProps:w,descriptionProps:C,errorMessageProps:x,...S}=function(e,t,n){let r=Xr(),o=Xr(),i=Xr(),a=Hl(function(e){return e&&e.__esModule?e.default:e}(Tg),"@react-aria/datepicker"),{isInvalid:l,validationErrors:s,validationDetails:c}=t.displayValidation,{labelProps:u,fieldProps:d,descriptionProps:p,errorMessageProps:h}=Gd({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),g=Ag(t,n),m=d["aria-labelledby"]||d.id,{locale:v}=Ll(),y=t.formatValue(v,{month:"long"}),b=Zo(y?a.format("selectedDateDescription",{date:y}):""),w=[b["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,C=fo(e),x=f((()=>gl(n)),[n]),{focusWithinProps:S}=Ia({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:io(C,g,d,b,S,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":m,"aria-describedby":w,onKeyDown(n){t.isOpen||e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){t.isOpen||e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...u,onClick:()=>{x.focusFirst()}},fieldProps:{...d,id:i,[_g]:"presentation","aria-describedby":w,value:t.value,onChange:t.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[Fd]:t,autoFocus:e.autoFocus,name:e.name},descriptionProps:p,errorMessageProps:h,buttonProps:{...b,id:r,"aria-haspopup":"dialog","aria-label":a.format("calendar"),"aria-labelledby":`${r} ${m}`,"aria-describedby":w,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:o,"aria-labelledby":`${r} ${m}`},calendarProps:{autoFocus:!0,value:t.dateValue,onChange:t.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:t.dateValue?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:s,validationDetails:c}}({...Fi(e),label:p,validationBehavior:s},c,u),[k,E]=l(null),O=h((()=>{u.current&&E(u.current.offsetWidth+"px")}),[]);zo({ref:u,onResize:O});let{focusProps:D,isFocused:P,isFocusVisible:T}=wl({within:!0}),A=ji({...e,values:{state:c,isFocusWithin:P,isFocusVisible:T,isDisabled:e.isDisabled||!1,isInvalid:c.isInvalid,isOpen:c.isOpen},defaultClassName:"react-aria-DatePicker"}),M=fo(e);return delete M.id,o.createElement(_i,{values:[[nC,c],[Sw,{...g,ref:u,isInvalid:c.isInvalid}],[Kw,v],[Dv,{...y,isPressed:c.isOpen}],[xv,{...m,ref:d,elementType:"span"}],[kb,w],[Lw,c],[Tw,{trigger:"DatePicker",triggerRef:u,placement:"bottom start",style:{"--trigger-width":k}}],[jw,b],[Av,{slots:{description:C,errorMessage:x}}],[Vb,S]]},o.createElement("div",{...D,...M,...A,ref:t,slot:e.slot||void 0,"data-focus-within":P||void 0,"data-invalid":c.isInvalid||void 0,"data-focus-visible":T||void 0,"data-disabled":e.isDisabled||void 0,"data-open":c.isOpen||void 0}))}const iC=s(oC);function aC(e,t){[e,t]=Ri(e,t,tC);let{validationBehavior:n}=Li(Zb)||{};var r,i;let s=null!==(i=null!==(r=e.validationBehavior)&&void 0!==r?r:n)&&void 0!==i?i:"native",c=Xy({...e,validationBehavior:s}),u=a(null),[d,p]=Ii(),{groupProps:g,labelProps:m,startFieldProps:v,endFieldProps:y,buttonProps:b,dialogProps:w,calendarProps:C,descriptionProps:x,errorMessageProps:S,...k}=function(e,t,n){var r,o;let i=Hl(function(e){return e&&e.__esModule?e.default:e}(Tg),"@react-aria/datepicker"),{isInvalid:l,validationErrors:s,validationDetails:c}=t.displayValidation,{labelProps:u,fieldProps:d,descriptionProps:p,errorMessageProps:h}=Gd({...e,labelElementType:"span",isInvalid:l,errorMessage:e.errorMessage||s}),g=d["aria-labelledby"]||d.id,{locale:m}=Ll(),v=t.formatValue(m,{month:"long"}),y=Zo(v?i.format("selectedRangeDescription",{startDate:v.start,endDate:v.end}):""),b={"aria-label":i.format("startDate"),"aria-labelledby":g},w={"aria-label":i.format("endDate"),"aria-labelledby":g},C=Xr(),x=Xr(),S=Ag(t,n),k=[y["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,E=f((()=>gl(n,{accept:e=>e.id!==C})),[n,C]),O={[jg]:E,[_g]:"presentation","aria-describedby":k,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},D=fo(e),{focusWithinProps:P}=Ia({...e,isDisabled:t.isOpen,onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),T=a($d),A=a($d);return{groupProps:io(D,S,d,y,P,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":k,onKeyDown(n){t.isOpen||e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){t.isOpen||e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...u,onClick:()=>{E.focusFirst()}},buttonProps:{...y,id:C,"aria-haspopup":"dialog","aria-label":i.format("calendar"),"aria-labelledby":`${C} ${g}`,"aria-describedby":k,"aria-expanded":t.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>t.setOpen(!0)},dialogProps:{id:x,"aria-labelledby":`${C} ${g}`},startFieldProps:{...b,...O,value:null===(r=t.value)||void 0===r?void 0:r.start,onChange:e=>t.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,[Fd]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){T.current=e,t.updateValidation(Ud(e,A.current))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},endFieldProps:{...w,...O,value:null===(o=t.value)||void 0===o?void 0:o.end,onChange:e=>t.setDateTime("end",e),name:e.endName,[Fd]:{realtimeValidation:t.realtimeValidation,displayValidation:t.displayValidation,updateValidation(e){A.current=e,t.updateValidation(Ud(T.current,e))},resetValidation:t.resetValidation,commitValidation:t.commitValidation}},descriptionProps:p,errorMessageProps:h,calendarProps:{autoFocus:!0,value:t.dateRange,onChange:t.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:t.dateRange?void 0:e.placeholderValue,isInvalid:t.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(t.displayValidation):e.errorMessage||t.displayValidation.validationErrors.join(" ")},isInvalid:l,validationErrors:s,validationDetails:c}}({...Fi(e),label:p,validationBehavior:s},c,u),[E,O]=l(null),D=h((()=>{u.current&&O(u.current.offsetWidth+"px")}),[]);zo({ref:u,onResize:D});let{focusProps:P,isFocused:T,isFocusVisible:A}=wl({within:!0}),M=ji({...e,values:{state:c,isFocusWithin:T,isFocusVisible:A,isDisabled:e.isDisabled||!1,isInvalid:c.isInvalid,isOpen:c.isOpen},defaultClassName:"react-aria-DateRangePicker"}),_=fo(e);return delete _.id,o.createElement(_i,{values:[[rC,c],[Sw,{...g,ref:u,isInvalid:c.isInvalid}],[Dv,{...b,isPressed:c.isOpen}],[xv,{...m,ref:d,elementType:"span"}],[Eb,C],[Lw,c],[Tw,{trigger:"DateRangePicker",triggerRef:u,placement:"bottom start",style:{"--trigger-width":E}}],[jw,w],[Kw,{slots:{start:v,end:y}}],[Av,{slots:{description:x,errorMessage:S}}],[Vb,k]]},o.createElement("div",{...P,..._,...M,ref:t,slot:e.slot||void 0,"data-focus-within":T||void 0,"data-invalid":c.isInvalid||void 0,"data-focus-visible":A||void 0,"data-disabled":e.isDisabled||void 0,"data-open":c.isOpen||void 0}))}const lC=s(aC),sC=d({}),cC=d(null),uC=d(null),dC=d(null);function fC(e){let t=Qy(e),n=a(null),{menuTriggerProps:r,menuProps:i}=Kh({...e,type:"menu"},t,n),[s,c]=l(null),u=h((()=>{n.current&&c(n.current.offsetWidth+"px")}),[n]);zo({ref:n,onResize:u});let d=a(null);return o.createElement(_i,{values:[[cC,{...i,ref:d}],[Lw,t],[dC,t],[Tw,{trigger:"MenuTrigger",triggerRef:n,scrollRef:d,placement:"bottom start",style:{"--trigger-width":s}}]]},o.createElement(da,{...r,ref:n,isPressed:t.isOpen},e.children))}const pC=d(null),hC=Ci("submenutrigger",((e,t,n)=>{let{CollectionBranch:r}=p(Ai),i=p(uC),s=p(dC),c=function(e,t){let{triggerKey:n}=e,{expandedKeysStack:r,openSubmenu:o,closeSubmenu:i,close:a}=t,[s]=l(null==r?void 0:r.length),c=f((()=>r[s]===n),[r,n,s]),[u,d]=l(null),p=h(((e=null)=>{d(e),o(n,s)}),[o,s,n]),g=h((()=>{d(null),i(n,s)}),[i,s,n]),m=h(((e=null)=>{d(e),c?g():p(e)}),[g,p,c]);return f((()=>({focusStrategy:u,isOpen:c,open:p,close:g,closeAll:a,submenuLevel:s,setOpen:()=>{},toggle:m})),[c,p,g,a,u,m,s])}({triggerKey:n.key},s),u=a(null),d=No(t),g=Li(Tw),{parentMenuRef:m}=p(pC),{submenuTriggerProps:v,submenuProps:y,popoverProps:b}=qh({parentMenuRef:m,submenuRef:u,delay:e.delay},c,d);return o.createElement(_i,{values:[[bC,{...v,onAction:void 0,ref:d}],[cC,y],[Lw,c],[Tw,{ref:u,trigger:"SubmenuTrigger",triggerRef:d,placement:"end top",UNSTABLE_portalContainer:g.UNSTABLE_portalContainer||void 0,...b}]]},o.createElement(r,{collection:i.collection,parent:n}),e.children[1])}),(e=>e.children[0]));function gC(e,t){return[e,t]=Ri(e,t,cC),o.createElement(gi,{content:o.createElement(ki,e)},(n=>n.size>0&&o.createElement(mC,{props:e,collection:n,menuRef:t})))}function mC({props:e,collection:t,menuRef:n}){let r=Sb({...e,collection:t,children:void 0}),[s,c]=l(null),{isVirtualized:u,CollectionRoot:d}=p(Ai),{menuProps:h}=function(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:o,onKeyUp:i,...a}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=fo(e,{labelable:!0}),{listProps:s}=Dh({...a,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return Vh.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:io(l,{onKeyDown:o,onKeyUp:i},{role:"menu",...s,onKeyDown:e=>{"Escape"!==e.key&&s.onKeyDown(e)}})}}({...e,isVirtualized:u},r,n),g=p(dC),m=p(Tw);Va({ref:n,onInteractOutside:e=>{g&&!(null==s?void 0:s.contains(e.target))&&g.close()},isDisabled:"SubmenuTrigger"===(null==m?void 0:m.trigger)||0===(null==g?void 0:g.expandedKeysStack.length)});let v=a(null),[y,b]=l({left:0});i((()=>{if(s&&v.current!==s&&0===y.left){v.current=s;let{left:e}=s.getBoundingClientRect();b({left:-1*e})}}),[y,s]);let w=ji({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{}});return o.createElement(el,null,o.createElement("div",{...fo(e),...h,...w,ref:n,slot:e.slot||void 0,onScroll:e.onScroll},o.createElement(_i,{values:[[uC,r],[uw,{elementType:"div"}],[Tw,{UNSTABLE_portalContainer:s||void 0}],[Oi,{render:yC}],[pC,{parentMenuRef:n}],[bC,null]]},o.createElement(d,{collection:t,persistedKeys:(C=r.selectionManager.focusedKey,f((()=>null!=C?new Set([C]):null),[C])),scrollRef:n}))),o.createElement("div",{ref:c,style:{width:"100vw",position:"absolute",top:0,...y}}));var C}const vC=s(gC);function yC(e,t,n){var r,i;let a=p(uC),{CollectionBranch:l}=p(Ai),[s,c]=Ii();var u;let{headingProps:d,groupProps:f}=function(e){let{heading:t,"aria-label":n}=e,r=Xr();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:c,"aria-label":null!==(u=n.props["aria-label"])&&void 0!==u?u:void 0}),h=ji({defaultClassName:"react-aria-Section",className:null===(r=n.props)||void 0===r?void 0:r.className,style:null===(i=n.props)||void 0===i?void 0:i.style,values:{}});return o.createElement("section",{...fo(e),...f,...h,ref:t},o.createElement(sw.Provider,{value:{...d,ref:s}},o.createElement(l,{collection:a.collection,parent:n})))}const bC=d(null),wC=wi("item",(function(e,t,n){var r;[e,t]=Ri(e,t,bC);let i=null===(r=Li(bC))||void 0===r?void 0:r.id,a=p(uC),l=No(t),{menuItemProps:s,labelProps:c,descriptionProps:u,keyboardShortcutProps:d,...f}=function(e,t,n){let{id:r,key:o,closeOnSelect:i,isVirtualized:a,"aria-haspopup":l,onPressStart:s,onPressUp:c,onPress:u,onPressChange:d,onPressEnd:f,onHoverStart:p,onHoverChange:h,onHoverEnd:g,onKeyDown:m,onKeyUp:v,onFocus:y,onFocusChange:b,onBlur:w}=e,C=!!l;var x;let S=null!==(x=e.isDisabled)&&void 0!==x?x:t.selectionManager.isDisabled(o);var k;let E=null!==(k=e.isSelected)&&void 0!==k?k:t.selectionManager.isSelected(o),O=Vh.get(t),D=t.collection.getItem(o),P=e.onClose||O.onClose,T=Po(),A=t=>{var n;C||((null==D||null===(n=D.props)||void 0===n?void 0:n.onAction)?D.props.onAction():e.onAction&&e.onAction(o),O.onAction&&(0,O.onAction)(o),t.target instanceof HTMLAnchorElement&&T.open(t.target,t,D.props.href,D.props.routerOptions))},M="menuitem";C||("single"===t.selectionManager.selectionMode?M="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(M="menuitemcheckbox"));let _=Qr(),j=Qr(),L=Qr(),R={id:r,"aria-disabled":S||void 0,role:M,"aria-label":e["aria-label"],"aria-labelledby":_,"aria-describedby":[j,L].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":l,"aria-expanded":e["aria-expanded"]};"none"===t.selectionManager.selectionMode||C||(R["aria-checked"]=E),a&&(R["aria-posinset"]=null==D?void 0:D.index,R["aria-setsize"]=Fh(t.collection));let{itemProps:I,isFocused:N}=xh({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:$,isPressed:z}=Qi({onPressStart:e=>{"keyboard"===e.pointerType&&A(e),null==s||s(e)},onPress:u,onPressUp:e=>{"keyboard"!==e.pointerType&&(A(e),!C&&P&&(null!=i?i:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(o))&&P()),null==c||c(e)},onPressChange:d,onPressEnd:f,isDisabled:S}),{hoverProps:F}=Ka({isDisabled:S,onHoverStart(e){Aa()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o)),null==p||p(e)},onHoverChange:h,onHoverEnd:g}),{keyboardProps:B}=Wa({onKeyDown:e=>{if(e.repeat)e.continuePropagation();else switch(e.key){case" ":S||"none"!==t.selectionManager.selectionMode||C||!1===i||!P||P();break;case"Enter":S||!1===i||C||!P||P();break;default:C||e.continuePropagation(),null==m||m(e)}},onKeyUp:v}),{focusProps:K}=ga({onBlur:w,onFocus:y,onFocusChange:b}),V=fo(D.props);delete V.id;let H=Ao(D.props);return{menuItemProps:{...R,...io(V,H,C?{onFocus:I.onFocus,"data-key":I["data-key"]}:I,$,F,B,K),tabIndex:null!=I.tabIndex?-1:void 0},labelProps:{id:_},descriptionProps:{id:j},keyboardShortcutProps:{id:L},isFocused:N,isSelected:E,isPressed:z,isDisabled:S}}({...e,id:i,key:n.key},a,l),{isFocusVisible:h,focusProps:g}=wl(),{hoverProps:m,isHovered:v}=Ka({isDisabled:f.isDisabled}),y=ji({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:v,isFocusVisible:h,selectionMode:a.selectionManager.selectionMode,selectionBehavior:a.selectionManager.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:"true"===e["aria-expanded"]}}),b=e.href?"a":"div";return o.createElement(b,{...io(s,g,m),...y,ref:l,"data-disabled":f.isDisabled||void 0,"data-hovered":v||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":h||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":"none"===a.selectionManager.selectionMode?void 0:a.selectionManager.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":"true"===e["aria-expanded"]||void 0},o.createElement(_i,{values:[[Av,{slots:{label:c,description:u}}],[sC,d]]},y.children))})),CC=d(null),xC=d(null);function SC(e,t){if(p(xC))return o.createElement(PC,{...e,modalRef:t},e.children);let{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:l,children:s,isEntering:c,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f,...h}=e;return o.createElement(OC,{isDismissable:n,isKeyboardDismissDisabled:r,isOpen:i,defaultOpen:a,onOpenChange:l,isEntering:c,isExiting:u,UNSTABLE_portalContainer:d,shouldCloseOnInteractOutside:f},o.createElement(PC,{...h,modalRef:t},s))}const kC=s(SC);function EC(e,t){[e,t]=Ri(e,t,CC);let n=p(Lw),r=Jv(e),i=null==e.isOpen&&null==e.defaultOpen&&n?n:r,l=No(t),s=a(null),c=$i(l,i.isOpen),u=$i(s,i.isOpen),d=c||u||e.isExiting||!1,f=Kr();return!i.isOpen&&!d||f?null:o.createElement(DC,{...e,state:i,isExiting:d,overlayRef:l,modalRef:s})}const OC=s(EC);function DC({UNSTABLE_portalContainer:e,...t}){let n=t.modalRef,{state:r}=t,{modalProps:a,underlayProps:s}=function(e,t,n){let{overlayProps:r,underlayProps:o}=Up({...e,isOpen:t.isOpen,onClose:t.close},n);return Yp({isDisabled:!t.isOpen}),hh(),i((()=>{if(t.isOpen)return uh([n.current])}),[t.isOpen,n]),{modalProps:io(r),underlayProps:o}}(t,r,n),c=Ni(t.overlayRef)||t.isEntering||!1,u=ji({...t,defaultClassName:"react-aria-ModalOverlay",values:{isEntering:c,isExiting:t.isExiting,state:r}}),d=function(){let e=Kr(),[t,n]=l((()=>e?{width:0,height:0}:Ho()));return i((()=>{let e=()=>{n((e=>{let t=Ho();return t.width===e.width&&t.height===e.height?e:t}))};return Vo?Vo.addEventListener("resize",e):window.addEventListener("resize",e),()=>{Vo?Vo.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),t}(),f={...u.style,"--visual-viewport-height":d.height+"px"};return o.createElement(ph,{isExiting:t.isExiting,portalContainer:e},o.createElement("div",{...io(fo(t),s),...u,style:f,ref:t.overlayRef,"data-entering":c||void 0,"data-exiting":t.isExiting||void 0},o.createElement(_i,{values:[[xC,{modalProps:a,modalRef:n,isExiting:t.isExiting,isDismissable:t.isDismissable}],[Lw,r]]},u.children)))}function PC(e){let{modalProps:t,modalRef:n,isExiting:r,isDismissable:i}=p(xC),a=p(Lw),l=No(f((()=>ao(e.modalRef,n)),[e.modalRef,n])),s=Ni(l),c=ji({...e,defaultClassName:"react-aria-Modal",values:{isEntering:s,isExiting:r,state:a}});return o.createElement("div",{...io(fo(e),t),...c,ref:l,"data-entering":s||void 0,"data-exiting":r||void 0},i&&o.createElement(lh,{onDismiss:a.close}),c.children)}const TC=d(null),AC=d(null);function MC(e,t){[e,t]=Ri(e,t,TC);let{validationBehavior:n}=Li(Zb)||{};var r,i;let s=null!==(i=null!==(r=e.validationBehavior)&&void 0!==r?r:n)&&void 0!==i?i:"native",{locale:c}=Ll(),u=function(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:a=NaN,onChange:s,locale:c,isDisabled:u,isReadOnly:d}=e;null===i&&(i=NaN),void 0===i||isNaN(i)||(i=void 0===r||isNaN(r)?ni(i,t,n):oi(i,t,n,r)),isNaN(a)||(a=void 0===r||isNaN(r)?ni(a,t,n):oi(a,t,n,r));let[p,g]=ti(i,isNaN(a)?NaN:a,s),[m,v]=l((()=>isNaN(p)?"":new Ou(c,o).format(p))),y=f((()=>new Tu(c,o)),[c,o]),b=f((()=>y.getNumberingSystem(m)),[y,m]),w=f((()=>new Ou(c,{...o,numberingSystem:b})),[c,o,b]),C=f((()=>w.resolvedOptions()),[w]),x=h((e=>isNaN(e)||null===e?"":w.format(e)),[w]),S=Bd({...e,value:p}),k=void 0===r||isNaN(r)?1:r;"percent"!==C.style||void 0!==r&&!isNaN(r)||(k=.01);let[E,O]=l(p),[D,P]=l(c),[T,A]=l(o);Object.is(p,E)&&c===D&&o===T||(v(x(p)),O(p),P(c),A(o));let M=f((()=>y.parse(m)),[y,m]),_=(e,r=0)=>{let o=M;if(isNaN(o))return oi(isNaN(r)?0:r,t,n,k);{let r=oi(o,t,n,k);return"+"===e&&r>o||"-"===e&&r<o?r:oi(Xd(e,o,k),t,n,k)}},j=f((()=>!u&&!d&&(isNaN(M)||void 0===n||isNaN(n)||oi(M,t,n,k)>M||Xd("+",M,k)<=n)),[u,d,t,n,k,M]),L=f((()=>!u&&!d&&(isNaN(M)||void 0===t||isNaN(t)||oi(M,t,n,k)<M||Xd("-",M,k)>=t)),[u,d,t,n,k,M]);return{...S,validate:e=>y.isValidPartialNumber(e,t,n),increment:()=>{let e=_("+",t);e===p&&v(x(e)),g(e),S.commitValidation()},incrementToMax:()=>{null!=n&&(g(oi(n,t,n,k)),S.commitValidation())},decrement:()=>{let e=_("-",n);e===p&&v(x(e)),g(e),S.commitValidation()},decrementToMin:()=>{null!=t&&(g(t),S.commitValidation())},canIncrement:j,canDecrement:L,minValue:t,maxValue:n,numberValue:M,setNumberValue:g,setInputValue:v,inputValue:m,commit:()=>{if(!m.length)return g(NaN),void v(void 0===i?"":x(p));if(isNaN(M))return void v(x(p));let e;e=void 0===r||isNaN(r)?ni(M,t,n):oi(M,t,n,r),e=y.parse(x(e)),g(e),v(x(void 0===i?e:p))}}}({...e,locale:c,validationBehavior:s}),d=a(null),[p,g]=Ii(),{labelProps:m,groupProps:v,inputProps:y,incrementButtonProps:b,decrementButtonProps:w,descriptionProps:C,errorMessageProps:x,...S}=Bf({...Fi(e),label:g,validationBehavior:s},u,d),k=ji({...e,values:{state:u,isDisabled:e.isDisabled||!1,isInvalid:S.isInvalid||!1},defaultClassName:"react-aria-NumberField"}),E=fo(e);return delete E.id,o.createElement(_i,{values:[[AC,u],[Sw,v],[Xb,{...y,ref:d}],[xv,{...m,ref:p}],[Dv,{slots:{increment:b,decrement:w}}],[Av,{slots:{description:C,errorMessage:x}}],[Vb,S]]},o.createElement("div",{...E,...k,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":S.isInvalid||void 0}),e.name&&o.createElement("input",{type:"hidden",name:e.name,value:isNaN(u.numberValue)?"":u.numberValue}))}const _C=s(MC),jC=d(null);function LC(e,t){[e,t]=Ri(e,t,jC);let{validationBehavior:n}=Li(Zb)||{};var r,i;let l=null!==(i=null!==(r=e.validationBehavior)&&void 0!==r?r:n)&&void 0!==i?i:"native",s=a(null),[c,u]=Ii(),d=function(e){let[t,n]=ti(eb(e.value),eb(e.defaultValue)||"",e.onChange);return{value:t,setValue:n}}({...e,validationBehavior:l}),{labelProps:f,inputProps:p,clearButtonProps:h,descriptionProps:g,errorMessageProps:m,...v}=function(e,t,n){let r=Hl(function(e){return e&&e.__esModule?e.default:e}(Em),"@react-aria/searchfield"),{isDisabled:o,isReadOnly:i,onSubmit:a,onClear:l,type:s="search"}=e,{labelProps:c,inputProps:u,descriptionProps:d,errorMessageProps:f,...p}=tf({...e,value:t.value,onChange:t.setValue,onKeyDown:i?e.onKeyDown:eo((e=>{const n=e.key;"Enter"===n&&(o||i)&&e.preventDefault(),o||i||("Enter"===n&&a&&(e.preventDefault(),a(t.value)),"Escape"===n&&(""===t.value?e.continuePropagation():(t.setValue(""),l&&l())))}),e.onKeyDown),type:s},n);return{labelProps:c,inputProps:{...u,defaultValue:void 0},clearButtonProps:{"aria-label":r.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:o||i,onPress:()=>{t.setValue(""),l&&l()},onPressStart:()=>{var e;null===(e=n.current)||void 0===e||e.focus()}},descriptionProps:d,errorMessageProps:f,...p}}({...Fi(e),label:u,validationBehavior:l},d,s),y=ji({...e,values:{isEmpty:""===d.value,isDisabled:e.isDisabled||!1,isInvalid:v.isInvalid||!1,state:d},defaultClassName:"react-aria-SearchField"}),b=fo(e);return delete b.id,o.createElement("div",{...b,...y,ref:t,slot:e.slot||void 0,"data-empty":""===d.value||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":v.isInvalid||void 0},o.createElement(_i,{values:[[xv,{...f,ref:c}],[Xb,{...p,ref:s}],[Dv,h],[Av,{slots:{description:g,errorMessage:m}}],[Sw,{isInvalid:v.isInvalid,isDisabled:e.isDisabled||!1}],[Vb,v]]},y.children))}const RC=s(LC);const IC=d(null),NC=d(null);function $C(e,t){[e,t]=Ri(e,t,IC);let{children:n,isDisabled:r=!1,isInvalid:i=!1,isRequired:a=!1}=e,l=f((()=>"function"==typeof n?n({isOpen:!1,isDisabled:r,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n),[n,r,i,a]);return o.createElement(gi,{content:l},(n=>o.createElement(zC,{props:e,collection:n,selectRef:t})))}function zC({props:e,selectRef:t,collection:n}){let{validationBehavior:r}=Li(Zb)||{};var i,s;let c=null!==(s=null!==(i=e.validationBehavior)&&void 0!==i?i:r)&&void 0!==s?s:"native",u=function(e){let t=Jv(e),[n,r]=l(null),o=Xv({...e,onSelectionChange:n=>{null!=e.onSelectionChange&&e.onSelectionChange(n),t.close(),i.commitValidation()}}),i=Bd({...e,value:o.selectedKey}),[a,s]=l(!1);return{...i,...o,...t,focusStrategy:n,open(e=null){0!==o.collection.size&&(r(e),t.open())},toggle(e=null){0!==o.collection.size&&(r(e),t.toggle())},isFocused:a,setFocused:s}}({...e,collection:n,children:void 0,validationBehavior:c}),{isFocusVisible:d,focusProps:p}=wl({within:!0}),g=a(null),[m,v]=Ii(),{labelProps:y,triggerProps:b,valueProps:w,menuProps:C,descriptionProps:x,errorMessageProps:S,...k}=function(e,t,n){let{keyboardDelegate:r,isDisabled:o,isRequired:i,name:a,validationBehavior:l="aria"}=e,s=Fu({usage:"search",sensitivity:"base"}),c=f((()=>r||new Oh(t.collection,t.disabledKeys,null,s)),[r,t.collection,t.disabledKeys,s]),{menuTriggerProps:u,menuProps:d}=Kh({isDisabled:o,type:"listbox"},t,n),{typeSelectProps:p}=wh({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKey(e)}}),{isInvalid:h,validationErrors:g,validationDetails:m}=t.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:w}=Gd({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||g});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let C=fo(e,{labelable:!0}),x=io(p,u,y),S=Xr();return Om.set(t,{isDisabled:o,isRequired:i,name:a,validationBehavior:l}),{labelProps:{...v,onClick:()=>{e.isDisabled||(n.current.focus(),_a("keyboard"))}},triggerProps:io(C,{...x,isDisabled:o,onKeyDown:eo(x.onKeyDown,(e=>{switch(e.key){case"ArrowLeft":{e.preventDefault();let n=null!=t.selectedKey?c.getKeyAbove(t.selectedKey):c.getFirstKey();n&&t.setSelectedKey(n);break}case"ArrowRight":{e.preventDefault();let n=null!=t.selectedKey?c.getKeyBelow(t.selectedKey):c.getFirstKey();n&&t.setSelectedKey(n);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[S,x["aria-labelledby"],x["aria-label"]&&!x["aria-labelledby"]?x.id:null].filter(Boolean).join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:S},menuProps:{...d,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[y["aria-labelledby"],x["aria-label"]&&!y["aria-labelledby"]?x.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:w,isInvalid:h,validationErrors:g,validationDetails:m}}({...Fi(e),label:v,validationBehavior:c},u,g),[E,O]=l(null),D=h((()=>{g.current&&O(g.current.offsetWidth+"px")}),[g]);zo({ref:g,onResize:D});let P=f((()=>({isOpen:u.isOpen,isFocused:u.isFocused,isFocusVisible:d,isDisabled:e.isDisabled||!1,isInvalid:k.isInvalid||!1,isRequired:e.isRequired||!1})),[u.isOpen,u.isFocused,d,e.isDisabled,k.isInvalid,e.isRequired]),T=ji({...e,values:P,defaultClassName:"react-aria-Select"}),A=fo(e);delete A.id;let M=a(null);return o.createElement(_i,{values:[[IC,e],[NC,u],[BC,w],[xv,{...y,ref:m,elementType:"span"}],[Dv,{...b,ref:g,isPressed:u.isOpen}],[Lw,u],[Tw,{trigger:"Select",triggerRef:g,scrollRef:M,placement:"bottom start",style:{"--trigger-width":E}}],[fw,{...C,ref:M}],[pw,u],[Av,{slots:{description:x,errorMessage:S}}],[Vb,k]]},o.createElement("div",{...A,...T,...p,ref:t,slot:e.slot||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":d||void 0,"data-open":u.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":k.isInvalid||void 0,"data-required":e.isRequired||void 0}),o.createElement(Dm,{state:u,triggerRef:g,label:v,name:e.name,isDisabled:e.isDisabled}))}const FC=s($C),BC=d(null);function KC(e,t){var n,r;[e,t]=Ri(e,t,BC);let i=p(NC),{placeholder:a}=Li(IC),l=null!=i.selectedKey?i.collection.getItem(i.selectedKey):null,s=null==l?void 0:l.props.children;if("function"==typeof s){s=s({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"})}let c=Hl(function(e){return e&&e.__esModule?e.default:e}(tw),"react-aria-components");var u,d,f;let h=ji({...e,defaultChildren:null!==(u=null!=s?s:a)&&void 0!==u?u:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:null!==(d=null===(n=i.selectedItem)||void 0===n?void 0:n.value)&&void 0!==d?d:null,selectedText:null!==(f=null===(r=i.selectedItem)||void 0===r?void 0:r.textValue)&&void 0!==f?f:null,isPlaceholder:!l}}),g=fo(e);return o.createElement("span",{ref:t,...g,...h,"data-placeholder":!l||void 0},o.createElement(Av.Provider,{value:void 0},h.children))}const VC=s(KC);class HC extends Pr{addNode(e){super.addNode(e),this.columnsDirty||(this.columnsDirty="column"===e.type),"tableheader"===e.type&&(this.head=e),"tablebody"===e.type&&(this.body=e)}commit(e,t,n=!1){this.updateColumns(n),super.commit(e,t,n),this.rows=[...this.getChildren(this.body.key)]}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let t=new Map,n=e=>{if("column"===e.type)t.set(e.key,e),e.hasChildNodes||(e.index=this.columns.length,this.columns.push(e),e.props.isRowHeader&&this.rowHeaderColumnKeys.add(e.key));for(let t of this.getChildren(e.key))n(t)};for(let e of this.getChildren(this.head.key))n(e);if(this.headerRows=ub(t,this.columns),this.columnsDirty=!1,0===this.rowHeaderColumnKeys.size&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){-1!==this.head.key&&(yield this.head,yield this.body)}get size(){return this.rows.length}getFirstKey(){return this.body.firstChildKey}getLastKey(){return this.body.lastChildKey}getKeyAfter(e){let t=this.getItem(e);var n;return"column"===(null==t?void 0:t.type)?null!==(n=t.nextKey)&&void 0!==n?n:null:super.getKeyAfter(e)}getKeyBefore(e){var t;let n=this.getItem(e);var r;if("column"===(null==n?void 0:n.type))return null!==(r=n.prevKey)&&void 0!==r?r:null;let o=super.getKeyBefore(e);return null!=o&&"tablebody"===(null===(t=this.getItem(o))||void 0===t?void 0:t.type)?null:o}getChildren(e){if(!this.getItem(e))for(let t of this.headerRows)if(t.key===e)return t.childNodes;return super.getChildren(e)}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e.body=this.body,e}getTextValue(e){let t=this.getItem(e);if(!t)return"";if(t.textValue)return t.textValue;let n=this.rowHeaderColumnKeys,r=[];for(let t of this.getChildren(e)){let e=this.columns[t.index];if(n.has(e.key)&&t.textValue&&r.push(t.textValue),r.length===n.size)break}return r.join(" ")}constructor(...e){super(...e),this.headerRows=[],this.columns=[],this.rows=[],this.rowHeaderColumnKeys=new Set,this.head=new Dr("tableheader",-1),this.body=new Dr("tablebody",-2),this.columnsDirty=!0}}const UC=d(null);function WC(e,t){let n=No(t),r=a(null),i=a(null),[s,c]=l(0);Zr((()=>{let e=r.current;for(;e&&e!==n.current&&!Bo(e);)e=e.parentElement;i.current=e}),[n]),zo({ref:i,box:"border-box",onResize(){var e,t;c(null!==(t=null===(e=i.current)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:0)}}),Zr((()=>{var e,t;c(null!==(t=null===(e=i.current)||void 0===e?void 0:e.clientWidth)&&void 0!==t?t:0)}),[]);let u=f((()=>({tableRef:r,scrollRef:i,tableWidth:s,useTableColumnResizeState:ab,onResizeStart:e.onResizeStart,onResize:e.onResize,onResizeEnd:e.onResizeEnd})),[r,s,e.onResizeStart,e.onResize,e.onResizeEnd]);return o.createElement("div",{...fo(e),ref:n,className:e.className||"react-aria-ResizableTableContainer",style:e.style,onScroll:e.onScroll},o.createElement(UC.Provider,{value:u},e.children))}const ZC=s(WC),qC=d(null),GC=d(null),YC=d(null);function XC(e,t){var n;[e,t]=Ri(e,t,qC);let r=Zv(e),{selectionBehavior:i,selectionMode:a,disallowEmptySelection:l}=r,s=!!(null===(n=e.dragAndDropHooks)||void 0===n?void 0:n.useDraggableCollectionState),c=f((()=>({selectionBehavior:"none"===a?null:i,selectionMode:a,disallowEmptySelection:l,allowsDragging:s})),[i,a,l,s]),u=o.createElement(tx.Provider,{value:c},o.createElement(ki,e));return o.createElement(gi,{content:u,createCollection:()=>new HC},(n=>o.createElement(JC,{props:e,forwardedRef:t,selectionState:r,collection:n})))}function JC({props:e,forwardedRef:t,selectionState:n,collection:r}){let l=p(UC);t=No(f((()=>ao(t,null==l?void 0:l.tableRef)),[t,null==l?void 0:l.tableRef]));let s,c,u,d=pb({...e,collection:r,children:void 0,UNSAFE_selectionState:n}),{isVirtualized:h,layoutDelegate:g,dropTargetDelegate:m,CollectionRoot:v}=p(Ai),{dragAndDropHooks:y}=e,{gridProps:b}=function(e,t,n){let{keyboardDelegate:r,isVirtualized:o,layoutDelegate:i,layout:a}=e,l=Fu({usage:"search",sensitivity:"base"}),{direction:s}=Ll(),c=t.selectionManager.disabledBehavior,u=f((()=>r||new hv({collection:t.collection,disabledKeys:t.disabledKeys,disabledBehavior:c,ref:n,direction:s,collator:l,layoutDelegate:i,layout:a})),[r,t.collection,t.disabledKeys,c,n,s,l,i,a]),d=Xr(e.id);Pm.set(t,d);let{gridProps:p}=xm({...e,id:d,keyboardDelegate:u},t,n);o&&(p["aria-rowcount"]=t.collection.size+t.collection.headerRows.length),mv()&&"expandedKeys"in t&&(p.role="treegrid");let{column:h,direction:g}=t.sortDescriptor||{},m=Hl(function(e){return e&&e.__esModule?e.default:e}(pv),"@react-aria/table"),v=f((()=>{var e;let n=null===(e=t.collection.columns.find((e=>e.key===h)))||void 0===e?void 0:e.textValue;return g&&h?m.format(`${g}Sort`,{columnName:n}):void 0}),[g,h,t.collection.columns]),y=Zo(v);return $o((()=>{Ad(v,"assertive",500)}),[v]),{gridProps:io(p,y,{"aria-describedby":[y["aria-describedby"],p["aria-describedby"]].filter(Boolean).join(" ")})}}({...e,layoutDelegate:g,isVirtualized:h},d,t),w=d.selectionManager,C=!!(null==y?void 0:y.useDraggableCollectionState),x=!!(null==y?void 0:y.useDroppableCollectionState),S=a(C),k=a(x);i((()=>{S.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),k.current!==x&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior.")}),[C,x]);let E=!1,O=null,D=a(null);if(C&&y){s=y.useDraggableCollectionState({collection:r,selectionManager:w,preview:y.renderDragPreview?D:void 0}),y.useDraggableCollection({},s,t);let e=y.DragPreview;O=y.renderDragPreview?o.createElement(e,{ref:D},y.renderDragPreview):null}if(x&&y){c=y.useDroppableCollectionState({collection:r,selectionManager:w});let e=new Oh({collection:r,disabledKeys:w.disabledKeys,disabledBehavior:w.disabledBehavior,ref:t,layoutDelegate:g}),n=y.dropTargetDelegate||m||new y.ListDropTargetDelegate(r.rows,t);u=y.useDroppableCollection({keyboardDelegate:e,dropTargetDelegate:n},c,t),E=c.isDropTarget({type:"root"})}let{focusProps:P,isFocused:T,isFocusVisible:A}=wl(),M=ji({className:e.className,style:e.style,defaultClassName:"react-aria-Table",values:{isDropTarget:E,isFocused:T,isFocusVisible:A,state:d}}),_=!(!C||(null==s?void 0:s.isDisabled)),j=M.style,L=null;l&&(L=l.useTableColumnResizeState({tableWidth:l.tableWidth},d),h||(j={...j,tableLayout:"fixed",width:"fit-content"}));let R=ex("table");var I;return o.createElement(_i,{values:[[GC,d],[YC,L],[nw,{dragAndDropHooks:y,dragState:s,dropState:c}],[rw,{render:dx}]]},o.createElement(el,null,o.createElement(R,{...fo(e),...M,...io(b,P,null==u?void 0:u.collectionProps),style:j,ref:t,slot:e.slot||void 0,onScroll:e.onScroll,"data-allows-dragging":_||void 0,"data-drop-target":E||void 0,"data-focused":T||void 0,"data-focus-visible":A||void 0},o.createElement(v,{collection:r,scrollRef:null!==(I=null==l?void 0:l.scrollRef)&&void 0!==I?I:t,persistedKeys:lw(w,y,c)}))),O)}const QC=s(XC);function ex(e){let{isVirtualized:t}=p(Ai);return t?"div":e}const tx=d(null),nx=Ci("tableheader",((e,t)=>{let n=_r({items:p(GC).collection.headerRows,children:h((e=>{if("headerrow"===e.type)return o.createElement(rx,{item:e});throw new Error("Unsupported node type in TableHeader: "+e.type)}),[])}),r=ex("thead"),{rowGroupProps:i}={rowGroupProps:{role:"rowgroup"}},{hoverProps:a,isHovered:l}=Ka({onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),s=ji({className:e.className,style:e.style,defaultClassName:"react-aria-TableHeader",values:{isHovered:l}});return o.createElement(r,{...io(fo(e),i,a),...s,ref:t,"data-hovered":l||void 0},n)}),(e=>o.createElement(ki,{dependencies:e.dependencies,items:e.columns},e.children)));function rx({item:e}){let t=a(null),n=p(GC),{isVirtualized:r,CollectionBranch:i}=p(Ai),{rowProps:l}=function(e,t,n){let{node:r,isVirtualized:o}=e,i={role:"row"};return!o||mv()&&"expandedKeys"in t||(i["aria-rowindex"]=r.index+1),{rowProps:i}}({node:e,isVirtualized:r},n),{checkboxProps:s}=function(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;const o=Hl(function(e){return e&&e.__esModule?e.default:e}(pv),"@react-aria/table");return{checkboxProps:{"aria-label":o.format("single"===r?"select":"selectAll"),isSelected:n,isDisabled:"multiple"!==r||0===e.collection.size,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}(n),c=ex("tr");return o.createElement(c,{...l,ref:t},o.createElement(_i,{values:[[Er,{slots:{selection:s}}]]},o.createElement(i,{collection:n.collection,parent:e})))}const ox=wi("column",((e,t,n)=>{var r,a;let l=No(t),s=p(GC),{isVirtualized:c}=p(Ai),{columnHeaderProps:u}=function(e,t,n){var r,o;let{node:a}=e,l=a.props.allowsSorting,{gridCellProps:s}=Sm({...e,focusMode:"child"},t,n),c=a.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:u}=Qi({isDisabled:!l||c,onPress(){t.sort(a.key)},ref:n}),{focusableProps:d}=kl({},n),f=null,p=(null===(r=t.sortDescriptor)||void 0===r?void 0:r.column)===a.key,h=null===(o=t.sortDescriptor)||void 0===o?void 0:o.direction;a.props.allowsSorting&&!Eo()&&(f=p?h:"none");let g,m=Hl(function(e){return e&&e.__esModule?e.default:e}(pv),"@react-aria/table");l&&(g=`${m.format("sortable")}`,p&&h&&Eo()&&(g=`${g}, ${m.format(h)}`));let v=Zo(g),y=0===t.collection.size;return i((()=>{y&&t.selectionManager.focusedKey===a.key&&t.selectionManager.setFocusedKey(null)}),[y,t.selectionManager,a.key]),{columnHeaderProps:{...io(s,u,d,v,y&&{tabIndex:-1}),role:"columnheader",id:Am(t,a.key),"aria-colspan":a.colspan&&a.colspan>1?a.colspan:null,"aria-sort":f}}}({node:n,isVirtualized:c},s,l),{isFocused:d,isFocusVisible:f,focusProps:h}=wl(),g=p(YC),m=!1;if(g)m=g.resizingColumn===n.key;else for(let e in["width","defaultWidth","minWidth","maxWidth"])e in n.props&&console.warn(`The ${e} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:v,isHovered:y}=Ka({isDisabled:!e.allowsSorting}),b=ji({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Column",values:{isHovered:y,isFocused:d,isFocusVisible:f,allowsSorting:n.props.allowsSorting,sortDirection:(null===(r=s.sortDescriptor)||void 0===r?void 0:r.column)===n.key?s.sortDescriptor.direction:void 0,isResizing:m,startResize:()=>{if(!g)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");g.startResize(n.key),s.setKeyboardNavigationDisabled(!0)},sort:e=>{s.sort(n.key,e)}}}),w=b.style;g&&(w={...w,width:g.getColumnWidth(n.key)});let C=ex("th");return o.createElement(C,{...io(fo(e),u,h,v),...b,style:w,colSpan:n.colspan,ref:l,"data-hovered":y||void 0,"data-focused":d||void 0,"data-focus-visible":f||void 0,"data-resizing":m||void 0,"data-allows-sorting":n.props.allowsSorting||void 0,"data-sort-direction":(null===(a=s.sortDescriptor)||void 0===a?void 0:a.column)===n.key?s.sortDescriptor.direction:void 0},o.createElement(_i,{values:[[ix,{column:n,triggerRef:l}],[Ai,Pi]]},b.children))})),ix=d(null);function ax(e,t){let n=p(YC);if(!n)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let r=Hl(function(e){return e&&e.__esModule?e.default:e}(tw),"react-aria-components"),{onResizeStart:s,onResize:c,onResizeEnd:u}=p(UC),{column:d,triggerRef:f}=p(ix),h=a(null),{resizerProps:g,inputProps:m,isResizing:v}=Cv({column:d,"aria-label":e["aria-label"]||r.format("tableResizer"),onResizeStart:s,onResize:c,onResizeEnd:u,triggerRef:f},n,h),{focusProps:y,isFocused:b,isFocusVisible:w}=wl(),{hoverProps:C,isHovered:x}=Ka(e),S=n.getColumnMinWidth(d.key)>=n.getColumnWidth(d.key),k=n.getColumnMaxWidth(d.key)<=n.getColumnWidth(d.key),{direction:E}=Ll(),O="both";O=S?"rtl"===E?"right":"left":k?"rtl"===E?"left":"right":"both";let D=No(t),[P,A]=l("");i((()=>{if(!D.current)return;let e=window.getComputedStyle(D.current);A(e.cursor)}),[D,O]);let M=ji({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:b,isFocusVisible:w,isResizing:v,isHovered:x,resizableDirection:O}}),[_,j]=l(!1);return!v&&_&&j(!1),o.createElement("div",{ref:D,role:"presentation",...fo(e),...M,...io(g,{onPointerDown:e=>{"mouse"===e.pointerType&&j(!0)}},C),"data-hovered":x||void 0,"data-focused":b||void 0,"data-focus-visible":w||void 0,"data-resizing":v||void 0,"data-resizable-direction":O},M.children,o.createElement("input",{ref:h,...io(m,y)}),v&&_&&T.createPortal(o.createElement("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:P}}),document.body))}const lx=s(ax),sx=Ci("tablebody",((e,t)=>{let n=p(GC),{isVirtualized:r}=p(Ai),i=n.collection,{CollectionBranch:a}=p(Ai),{dragAndDropHooks:l,dropState:s}=p(nw),c=!!(null==l?void 0:l.useDroppableCollectionState)&&!(null==s?void 0:s.isDisabled);var u;let d,f={isDropTarget:c&&!!s&&null!==(u=s.isDropTarget({type:"root"}))&&void 0!==u&&u,isEmpty:0===i.size},h=ji({...e,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:f}),g=ex("tr"),m=ex("td"),v=i.columnCount;if(0===i.size&&e.renderEmptyState&&n){let t={},n={},a={};r?(t["aria-rowindex"]=i.headerRows.length+1,n["aria-colspan"]=v,a={display:"contents"}):n.colSpan=v,d=o.createElement(g,{role:"row",...t,style:a},o.createElement(m,{role:"rowheader",...n,style:a},e.renderEmptyState(f)))}let{rowGroupProps:y}={rowGroupProps:{role:"rowgroup"}},b=ex("tbody");return o.createElement(b,{...io(fo(e),y),...h,ref:t,"data-empty":0===i.size||void 0},c&&o.createElement(hx,null),o.createElement(a,{collection:i,parent:i.body,renderDropIndicator:aw(l,s)}),d)})),cx=Ci("item",((e,t,n)=>{let r,l,s=No(t),c=p(GC),{dragAndDropHooks:u,dragState:d,dropState:f}=p(nw),{isVirtualized:h,CollectionBranch:g}=p(Ai),{rowProps:m,...v}=bv({node:n,shouldSelectOnPressUp:!!d,isVirtualized:h},c,s),{isFocused:y,isFocusVisible:b,focusProps:w}=wl(),{isFocusVisible:C,focusProps:x}=wl({within:!0}),{hoverProps:S,isHovered:k}=Ka({isDisabled:!v.allowsSelection&&!v.hasAction,onHoverStart:e.onHoverStart,onHoverChange:e.onHoverChange,onHoverEnd:e.onHoverEnd}),{checkboxProps:E}=wv({key:n.key},c);d&&u&&(r=u.useDraggableItem({key:n.key,hasDragButton:!0},d));let O=a(null),{visuallyHiddenProps:D}=Qd();f&&u&&(l=u.useDropIndicator({target:{type:"item",key:n.key,dropPosition:"on"}},f,O));let P=a(null);i((()=>{d&&!P.current&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.')}),[]);let T=d&&d.isDragging(n.key),{children:A,...M}=e,_=ji({...M,id:void 0,defaultClassName:"react-aria-Row",values:{...v,isHovered:k,isFocused:y,isFocusVisible:b,selectionMode:c.selectionManager.selectionMode,selectionBehavior:c.selectionManager.selectionBehavior,isDragging:T,isDropTarget:null==l?void 0:l.isDropTarget,isFocusVisibleWithin:C}}),j=ex("tr"),L=ex("td");return o.createElement(o.Fragment,null,l&&!l.isHidden&&o.createElement(j,{role:"row",style:{height:0}},o.createElement(L,{role:"gridcell",colSpan:c.collection.columnCount,style:{padding:0}},o.createElement("div",{role:"button",...D,...l.dropIndicatorProps,ref:O}))),o.createElement(j,{...io(fo(e),m,w,S,null==r?void 0:r.dragProps,x),..._,ref:s,"data-disabled":v.isDisabled||void 0,"data-selected":v.isSelected||void 0,"data-hovered":k||void 0,"data-focused":v.isFocused||void 0,"data-focus-visible":b||void 0,"data-pressed":v.isPressed||void 0,"data-dragging":T||void 0,"data-drop-target":(null==l?void 0:l.isDropTarget)||void 0,"data-selection-mode":"none"===c.selectionManager.selectionMode?void 0:c.selectionManager.selectionMode,"data-focus-visible-within":C||void 0},o.createElement(_i,{values:[[Er,{slots:{selection:E}}],[Dv,{slots:{[Mi]:{},drag:{...null==r?void 0:r.dragButtonProps,ref:P,style:{pointerEvents:"none"}}}}]]},o.createElement(g,{collection:c.collection,parent:n}))))}),(e=>{null==e.id&&"function"==typeof e.children&&console.warn("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let t=[e.value].concat(e.dependencies);return o.createElement(ki,{dependencies:t,items:e.columns,idScope:e.id},e.children)})),ux=wi("cell",((e,t,n)=>{let r=No(t),i=p(GC),{dragState:a}=p(nw),{isVirtualized:l}=p(Ai);n.column=i.collection.columns[n.index];let{gridCellProps:s,isPressed:c}=function(e,t,n){let{gridCellProps:r,isPressed:o}=Sm(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=Mm(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:o}}({node:n,shouldSelectOnPressUp:!!a,isVirtualized:l},i,r),{isFocused:u,isFocusVisible:d,focusProps:f}=wl(),{hoverProps:h,isHovered:g}=Ka({}),m=ji({...e,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:d,isPressed:c,isHovered:g}}),v=ex("td");return o.createElement(v,{...io(fo(e),s,f,h),...m,ref:r,"data-focused":u||void 0,"data-focus-visible":d||void 0,"data-pressed":c||void 0},o.createElement(Ai.Provider,{value:Pi},m.children))}));function dx(e,t){t=No(t);let{dragAndDropHooks:n,dropState:r}=p(nw),i=a(null),{dropIndicatorProps:l,isHidden:s,isDropTarget:c}=n.useDropIndicator(e,r,i);return s?null:o.createElement(px,{...e,dropIndicatorProps:l,isDropTarget:c,buttonRef:i,ref:t})}function fx(e,t){let{dropIndicatorProps:n,isDropTarget:r,buttonRef:i,...a}=e,l=p(GC),{visuallyHiddenProps:s}=Qd(),c=ji({...a,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:r}}),u=ex("tr"),d=ex("td");return o.createElement(u,{...fo(e),...c,role:"row",ref:t,"data-drop-target":r||void 0},o.createElement(d,{role:"gridcell",colSpan:l.collection.columnCount,style:{padding:0}},o.createElement("div",{...s,role:"button",...n,ref:i}),c.children))}const px=s(fx);function hx(){let e=p(GC),{dragAndDropHooks:t,dropState:n}=p(nw),r=a(null),{dropIndicatorProps:i}=t.useDropIndicator({target:{type:"root"}},n,r),l=n.isDropTarget({type:"root"}),{visuallyHiddenProps:s}=Qd(),c=ex("tr"),u=ex("td");return!l&&i["aria-hidden"]?null:o.createElement(c,{role:"row","aria-hidden":i["aria-hidden"],style:{height:0}},o.createElement(u,{role:"gridcell",colSpan:e.collection.columnCount,style:{padding:0}},o.createElement("div",{role:"button",...s,...i,ref:r})))}wi("loader",(function(e,t,n){let r=p(GC),{isVirtualized:i}=p(Ai),a=r.collection.columns.length,l=ji({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-TableLoadingIndicator",values:null}),s=ex("tr"),c=ex("td"),u={},d={},f={};return i?(u["aria-rowindex"]=r.collection.headerRows.length+r.collection.size,d["aria-colspan"]=a,f={display:"contents"}):d.colSpan=a,o.createElement(o.Fragment,null,o.createElement(s,{role:"row",ref:t,...io(fo(e),u),...l},o.createElement(c,{role:"rowheader",...d,style:f},l.children)))}));const gx=d({}),mx=d(null);function vx(e,t){[e,t]=Ri(e,t,mx);let{validationBehavior:n}=Li(Zb)||{};var r,i;let s=null!==(i=null!==(r=e.validationBehavior)&&void 0!==r?r:n)&&void 0!==i?i:"native",c=a(null),[u,d]=Ii(),[f,p]=l("input"),{labelProps:g,inputProps:m,descriptionProps:v,errorMessageProps:y,...b}=tf({...Fi(e),inputElementType:f,label:d,validationBehavior:s},c),w=h((e=>{c.current=e,e&&p(e instanceof HTMLTextAreaElement?"textarea":"input")}),[]),C=ji({...e,values:{isDisabled:e.isDisabled||!1,isInvalid:b.isInvalid,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1},defaultClassName:"react-aria-TextField"}),x=fo(e);return delete x.id,o.createElement("div",{...x,...C,ref:t,slot:e.slot||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":b.isInvalid||void 0,"data-readonly":e.isReadOnly||void 0,"data-required":e.isRequired||void 0},o.createElement(_i,{values:[[xv,{...g,ref:u}],[Xb,{...m,ref:w}],[gx,{...m,ref:w}],[Av,{slots:{description:v,errorMessage:y}}],[Vb,b]]},C.children))}const yx=s(vx),bx=d(null),wx=d(null);function Cx(e){let t=Cb(e),n=a(null),{triggerProps:r,tooltipProps:l}=function(e,t,n){let{isDisabled:r,trigger:o}=e,l=Xr(),s=a(!1),c=a(!1),u=()=>{(s.current||c.current)&&t.open(c.current)},d=e=>{s.current||c.current||t.close(e)};i((()=>{let e=e=>{n&&n.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[n,t]);let f=()=>{c.current=!1,s.current=!1,d(!0)},{hoverProps:p}=Ka({isDisabled:r,onHoverStart:()=>{"focus"!==o&&("pointer"===Ma()?s.current=!0:s.current=!1,u())},onHoverEnd:()=>{"focus"!==o&&(c.current=!1,s.current=!1,d())}}),{focusableProps:h}=kl({isDisabled:r,onFocus:()=>{Aa()&&(c.current=!0,u())},onBlur:()=>{c.current=!1,s.current=!1,d(!0)}},n);return{triggerProps:{"aria-describedby":t.isOpen?l:void 0,...io(h,p,{onPointerDown:f,onKeyDown:f})},tooltipProps:{id:l}}}(e,t,n);return o.createElement(_i,{values:[[bx,t],[wx,{...l,triggerRef:n}]]},o.createElement(Sl,{...r,ref:n},e.children))}function xx({UNSTABLE_portalContainer:e,...t},n){[t,n]=Ri(t,n,wx);let r=p(bx),i=Cb(t),a=null==t.isOpen&&null==t.defaultOpen&&r?r:i,l=$i(n,a.isOpen)||t.isExiting||!1;return a.isOpen||l?o.createElement(ih,{portalContainer:e},o.createElement(kx,{...t,tooltipRef:n,isExiting:l})):null}const Sx=s(xx);function kx(e){let t=p(bx),n=a(null),[r,i]=l(0);Zr((()=>{n.current&&t.isOpen&&i(n.current.getBoundingClientRect().width)}),[t.isOpen,n]);let{overlayProps:s,arrowProps:c,placement:u}=Kp({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:r,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip}),d=Ni(e.tooltipRef,!!u)||e.isEntering||!1,f=ji({...e,defaultClassName:"react-aria-Tooltip",values:{placement:u,isEntering:d,isExiting:e.isExiting,state:t}});e=io(e,s);let{tooltipProps:h}=function(e,t){let n=fo(e,{labelable:!0}),{hoverProps:r}=Ka({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:io(n,r,{role:"tooltip"})}}(e,t);return o.createElement("div",{...h,ref:e.tooltipRef,...f,style:{...s.style,...f.style},"data-placement":u,"data-entering":d||void 0,"data-exiting":e.isExiting||void 0},o.createElement(Ow.Provider,{value:{...c,placement:u,ref:n}},f.children))}const Ex=(e,t)=>!t.includes(e),Ox={shouldForwardProp:e=>Ex(e,["zIndex"])},Dx=[({theme:e,width:t,zIndex:n,autoWidth:r,readOnly:o})=>({background:e.options.background,backdropFilter:e.options.backdropFilter,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,overflowY:"auto",width:t||(r?"max-content":"var(--trigger-width)"),maxHeight:"inherit",zIndex:n,outline:"none","& > div":{pointerEvents:o?"none":void 0}})],Px=se(vC,Ox)(Dx),Tx=se.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),wn),Ax=se.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default,borderRadius:4},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`,outlineOffset:-1}}}))),Mx=se.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),_x=r=>{var{label:o,labelPosition:a,checked:s,partial:c,disabled:u,readOnly:d,onChange:f}=r,p=j(r,["label","labelPosition","checked","partial","disabled","readOnly","onChange"]);const[h,g]=l(s||!1),m="right"===a;return i((()=>{g("boolean"==typeof s?s:h)}),[s,h]),e(jx,Object.assign({labelRight:m,isSelected:h,isIndeterminate:c,isDisabled:u,isReadOnly:d,onChange:()=>{const e=!!c||!h;g(e),f&&f(e)}},p,{children:({isIndeterminate:r,isSelected:i})=>{let a="checkbox-off";return c||r?a="checkbox-partial":(h||i)&&(a="checkbox"),n(t,{children:[o&&e(Mx,{children:o}),e(Sn,{name:a,marginLeft:o&&!m?8:0,marginRight:o&&m?8:0,pointer:!u})]})}}))},jx=se(Yb)((({theme:{accent:e,formControl:t},labelRight:n,isDisabled:r})=>({display:"inline-flex",flexDirection:n?"row-reverse":"row",justifyContent:n?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:r?"not-allowed":void 0,borderRadius:4,outline:"none",outlineOffset:-1,"& > div":{transition:"color 0.2s linear"},"&[data-hovered] > div":{color:r?void 0:t.color.hover},"&[data-selected] > div, &[data-indeterminate] > div":{color:t.color.active},"&[data-hovered][data-selected] > div":{color:r?void 0:t.color.activeHover},"&[data-disabled] > div":{color:t.color.disabled},"&[data-focus-visible]":{outline:`${e} solid 1px`}})),wn),Lx=({header:t,body:r,inline:o})=>n(Rx,{inline:o,children:[e(Ix,{slot:"label",children:t}),e(Nx,{slot:"description",children:r})]}),Rx=se.div((({inline:e})=>({display:"flex",flexDirection:e?"row":"column",alignItems:e?"center":void 0,gap:e?8:void 0}))),Ix=se(_v)((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Nx=se(_v)((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),$x={shouldForwardProp:e=>Ex(e,["selected","noSelect","contentPosition","color","accented"])},zx=[({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-focused]":{backgroundColor:e.background.active},'&[data-disabled="true"], &[data-disabled="true"]:hover':{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}},({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})],Fx=r=>{var{id:o,value:i,children:a,header:l,body:s,leftElement:c,rightElement:u,inline:d,disabled:f,checkbox:p,onClick:h}=r,g=j(r,["id","value","children","header","body","leftElement","rightElement","inline","disabled","checkbox","onClick"]);const m=a||i;return e(Bx,Object.assign({id:o||i,textValue:i,onAction:h,isDisabled:f},g,{children:({selectionMode:r,isSelected:o})=>{const i="multiple"===r||"single"===r,a=p?e(_x,{checked:o,readOnly:!0,marginRight:4}):e(Sn,{name:"check",color:o?void 0:"transparent",size:"small",marginLeft:-12,marginRight:4});return n(t,{children:[i?a:null,c||null,l&&s?e(Lx,{header:l,body:s,inline:d}):m,u&&e("div",{style:{marginLeft:"auto"},children:u})]})}}))},Bx=se(wC,$x)(zx),Kx=se(cw)((({theme:e})=>({backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}}))),Vx=({id:t,title:r,children:o})=>n(Di,{id:t,children:[r&&e(Kx,{children:r}),o]}),Hx=t=>{var{options:r,children:o,autoWidth:i,itemProps:a,width:l,menuRef:s}=t,c=j(t,["options","children","autoWidth","itemProps","width","menuRef"]);return n(Px,Object.assign({autoWidth:i,shouldFocusWrap:!0,width:l,ref:s},c,{children:[null==r?void 0:r.map((t=>{if("options"in t){const n=t;return e(Vx,{id:n.id,title:n.title,children:n.options.map((t=>e(Fx,Object.assign({},t,a),t.id||t.value)))},n.id)}const n=t;return e(Fx,Object.assign({},n,a),n.id||n.value)})),o]}))},Ux=se(Tv)((({theme:{accent:e}})=>({appearance:"none",border:"none",borderRadius:4,cursor:"pointer",backgroundColor:"transparent",padding:0,color:"inherit",outline:"none",outlineOffset:-1,"&:focus-visible":{outline:`${e} solid 1px`}}))),Wx=E({from:{transform:"var(--origin)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Zx="300ms cubic-bezier(0.860, 0.000, 0.070, 1.000)",qx=se(Mw)({'&[data-placement="bottom"]':{"--origin":"translateY(-4px)"},'&[data-placement="top"]':{"--origin":"translateY(4px)"},'&[data-placement="right"]':{"--origin":"translateX(-4px)"},'&[data-placement="left"]':{"--origin":"translateX(4px)"},"&[data-entering]":{animation:`${Wx} ${Zx}`},"&[data-exiting]":{animation:`${Wx} ${Zx} reverse`}}),Gx=t=>{var{children:r,position:o="bottom",fixedPosition:a,trigger:s,isTriggerButton:c,options:u,offset:d=4,selectionMode:f,selectedKeys:p,afterShow:h,afterHide:g,onSelectionChange:m}=t,v=j(t,["children","position","fixedPosition","trigger","isTriggerButton","options","offset","selectionMode","selectedKeys","afterShow","afterHide","onSelectionChange"]);const[y,b]=l(new Set),[w,C]=l();i((()=>{p&&("single"===f?C(new Set([p])):"multiple"===f&&C("string"==typeof p?p:new Set(p)))}),[p]);const x=c?s:e(Ux,{"aria-label":"Menu",children:s}),S=e=>{b(e);const t=Array.from(e);m&&m("single"===f?t[0]:"all"===e?e:t)};return n(fC,{onOpenChange:e=>{h&&e&&h(),g&&!e&&g()},children:[x,e(qx,{placement:o,offset:d,shouldFlip:!a&&void 0,children:({isEntering:t,isExiting:n})=>e(Hx,Object.assign({options:u,autoWidth:!0,selectionMode:f,selectedKeys:w||y,onSelectionChange:S,readOnly:t||n},v,{children:r}))})]})},Yx=se(dw)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),Xx=se.div({marginLeft:"auto",width:16,height:16}),Jx=se.div({position:"absolute",right:8});Gx.Item=Fx,Gx.Sub=({children:t,label:r,disabled:o})=>n(hC,{children:[e(Fx,{value:r,disabled:o,rightElement:e(Xx,{children:e(Jx,{children:e(Sn,{name:"chevron-right",size:"small",inheritColor:o})})})}),e(qx,{offset:2,children:({isEntering:n,isExiting:r})=>e(Px,{autoWidth:!0,readOnly:n||r,children:t})})]}),Gx.Section=Vx,Gx.Separator=Yx;const Qx=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d,position:f,top:p,bottom:h,right:g,left:m}=t,v=j(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const y={margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d,position:f,top:p,bottom:h,right:g,left:m};return e(eS,Object.assign({},y,{center:o,background:i,zIndex:a,children:e(nS,{children:e(Sn,Object.assign({},v,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},eS=se.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),wn,Cn),tS=E({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),nS=se.div({animation:`${tS} 1s linear infinite`,width:"max-content",height:"max-content"}),rS=({size:t})=>e(oS,{className:"button-loader",children:e(Qx,{size:t})}),oS=se.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),iS=t=>{var{children:n,disabled:r,outline:o,size:i,small:a,large:l,secondary:s,negative:d,positive:f,caution:p,collapse:h}=t,g=j(t,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(n){const t=u.count(n);return e(aS,Object.assign({},g,{children:u.map(n,((e,n)=>{let u;if(t>1&&(u=0===n?"right":n===t-1?"left":"middle"),e){let t=e;"trigger"in e.props&&(t=e.props.trigger);const n=t,g=a||n.props.small,m=l||n.props.large,v=i||n.props.size,y=r||n.props.disabled,b=o||n.props.outline,w=s||n.props.secondary,C=d||n.props.negative,x=f||n.props.positive,S=p||n.props.caution,k=h||n.props.collapse,E=c(t,{joined:u,size:v,small:g,large:m,disabled:y,outline:b,secondary:w,negative:C,positive:x,caution:S,collapse:k});return"trigger"in e.props?c(e,{trigger:E}):E}return null}))}))}return null},aS=se.div((({width:e})=>({display:"inline-flex",width:e})),wn),lS=s(((t,n)=>{const{content:r,children:o,dropdown:i,options:a}=t,l=j(t,["content","children","dropdown","options"]),s=r||o;return i&&a?e(cS,Object.assign({ref:n,options:a},l,{children:s})):e(sS,Object.assign({ref:n},l,{children:s}))})),sS=s(((t,r)=>{var{children:o,onClick:i,icon:a,iconPosition:l,iconColor:s,joined:c,size:u,small:d,large:f,isLoading:p,collapse:h,backgroundColor:g,color:m,type:v,animation:y,iconAnimation:b,disabled:w}=t,C=j(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation","disabled"]);const{button:x}=O(),S=a&&(!o||h),k="right"===l;let E=u||"medium";d?E="small":f&&(E="large");const D=x[E],{iconSize:P}=D,T=h&&a;return n(uS,Object.assign({},C,{ref:r,isDisabled:w,type:v||"button",size:E,iconOnly:S,iconRight:k,joined:c,onPress:i,isLoading:p,color:m,backgroundColor:g,animation:y,children:[a?e(Sn,{size:P,name:a,marginRight:S||k?0:4,marginLeft:!S&&k?4:0,color:s,inheritColor:!s,animation:b}):null,!T&&e(pS,{children:o}),p&&e(rS,{size:P})]}))})),cS=s(((t,r)=>{var{children:o,options:i,onClick:a,afterShow:s,afterHide:c,secondary:u,negative:d,positive:f,caution:p,outline:h,subtle:g,link:m,size:v,small:y,large:b,disabled:w,buttonDisabled:C,optionsDisabled:x,isLoading:S,direction:k,collapse:E,width:O,hideDivider:D,gap:P}=t,T=j(t,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","hideDivider","gap"]);const[A,M]=l(!1),_={secondary:u,negative:d,positive:f,caution:p,outline:h,subtle:g,link:m,size:v,small:y,large:b};return e(dS,{children:n(iS,{width:E?void 0:O,children:[e(sS,Object.assign({},_,T,{ref:r,disabled:w||C,width:O&&!E?"100%":void 0,collapse:E,isLoading:S,onClick:e=>{a&&a(e)},hideJoinedBorder:D,joinedPadding:P,children:o&&e(fS,{children:o})})),e(Gx,{options:i,position:`${k||"bottom"} right`,afterShow:()=>{s&&s(),M(!0)},afterHide:()=>{c&&c(),M(!1)},isTriggerButton:!0,trigger:e(sS,Object.assign({},_,{icon:A?"caret-up":"caret-down",preventPointerEvents:S,tabIndex:-1,joinedPadding:P,disabled:w||x}))})]})})})),uS=se(Tv)((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:l,width:s,height:c,animation:u})=>{const d=i||a&&!o,f=n[r],p=s||"max-content",{height:h,font:g,padding:m,iconOnlyPadding:v}=f,y=c||h,b=a||d?v:m;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:l?"row-reverse":"row",fontSize:g,width:d?y:p,height:y,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:d?"50%":30,cursor:"pointer",outline:"none",outlineOffset:-1,padding:`0px ${b}px`,position:"relative",animation:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:l,caution:s,secondary:c,isDisabled:u,subtle:d,link:f})=>{const{button:p,size:h}=e;let g=p.primary;d?g=p.subtle:f?g=p.link:u?g=p.disabled:a?g=p.negative:l?g=p.positive:s?g=p.caution:c&&(g=p.secondary);const m=i?g.outlineBackground:g.background;let v=i?g.outlineColor:g.color;if(f||d){let e=p.subtle;f&&(e=p.link),u?v=p.disabled.color:a?v=e.negativeColor:l?v=e.positiveColor:s?v=e.cautionColor:c&&(v=e.secondaryColor)}const y="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,C=r||w;return{background:m.default,color:v.default,border:i&&!f?"1px solid":"none",borderColor:g.border.default,"&:hover":{background:m.hover,color:v.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{background:m.active,color:v.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{background:d?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:y?C:void 0,paddingRight:b?C:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:y&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?yr:wr,i="dark"===e?wr:yr;return r||!n&&!t?{}:{background:t,color:n,"&:hover":{background:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{background:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),wn),dS=se.div({display:"inline-flex",flexDirection:"column",position:"relative"}),fS=se.div({marginRight:8}),pS=se.span({pointerEvents:"none"});var hS=Object.assign(lS,{Group:iS});const gS=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:l,onChange:s}=t,c=j(t,["value","max","step","width","height","disabled","onChange"]);return e(vS,Object.assign({},c,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;s&&s(+t)},step:o,width:i,height:a,disabled:l,readOnly:!s}))},mS=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),vS=se.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,l=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${l} 0%, ${l} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":mS(e,o||i),"&::-moz-range-thumb":mS(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),wn),yS=s(((t,r)=>{var{src:o,title:s,width:c,infoPosition:u,centerAlignContent:d,small:f,collapsed:p,hideSliderOnStop:h,hideTimeOnStop:m,fontSizeTitle:v,fontSizeTime:y,onPlay:b,onPause:w,onStop:C}=t,x=j(t,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[S,k]=l(!1),[E,O]=l(!0),[D,P]=l(0),[T,A]=l(0),[M,_]=l(""),[L,R]=l(""),I=a(null),N=()=>{const{current:e}=I;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},$=()=>{const{current:e}=I;e&&e.pause()},z=()=>{const{current:e}=I;e&&e.load()};g(r,(()=>({play:N,pause:$,stop:z})),[I,S]);const F=e=>{k(!1),O(!0),C&&C(e)};i((()=>{(()=>{const{current:e}=I;!!e&&e.paused})()}),[S]);const B=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},K=E&&h,V=E&&m;return n(bS,Object.assign({width:c},x,{children:[e(hS,{outline:!0,small:f,icon:S?"pause":"play",onClick:()=>{S?$():N()},marginRight:8}),!p&&n(wS,{alignDataTop:"top"===u,children:[!K&&e(gS,{value:D,max:T,step:.1,onChange:e=>{(null==I?void 0:I.current)&&(I.current.currentTime=e)}}),n(CS,{alignTop:"top"===u,noSlider:K,relative:d||K,children:[s?e(xS,{fontSize:v,children:s}):e("div",{}),!V&&n(xS,{secondary:!0,fontSize:y,children:[M&&!E?`${M} / `:"",L]})]})]}),n("audio",{ref:I,onPlay:e=>{k(!0),O(!1),b&&b(e)},onPause:e=>{k(!1),w&&w(e)},onEmptied:F,onEnded:F,onTimeUpdate:()=>{const{current:e}=I;if(e){const{currentTime:t}=e,n=B(t);P(t),_(n)}},onDurationChange:()=>{const{current:e}=I;if(e){const{duration:t}=e,n=B(t);A(t),R(n)}},children:[e("track",{kind:"captions"}),e("source",{src:o})]})]}))})),bS=se.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),wn),wS=se.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),CS=se.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),xS=se.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var SS={},kS={};Object.defineProperty(kS,"__esModule",{value:!0}),kS.defaultOptions=void 0,kS.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var ES={};Object.defineProperty(ES,"__esModule",{value:!0}),ES.getLocales=ES.getFractionDigits=ES.roundTo=ES.parseValue=void 0,ES.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},ES.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},ES.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},ES.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(SS,"__esModule",{value:!0}),SS.millify=void 0;const OS=kS,DS=ES,PS=1e3;function*TS(e){let t=PS;for(;;){const n=e/t;if(n<1)return;yield n,t*=PS}}function AS(e,t){var n,r;const o=t?{...OS.defaultOptions,...t}:OS.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=DS.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let l=0;for(const e of TS(i))i=e,l+=1;if(l>=o.units.length)return e.toString();let s=DS.roundTo(i,o.precision);for(const e of TS(s))s=e,l+=1;const c=null!==(n=o.units[l])&&void 0!==n?n:"",u=o.lowercase?c.toLowerCase():c,d=o.space?" ":"";return`${a}${s.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:DS.getLocales(),{minimumFractionDigits:DS.getFractionDigits(s)})}${d}${u}`}SS.millify=AS;var MS=SS.default=AS,_S=Array.isArray,jS="object"==typeof ii&&ii&&ii.Object===Object&&ii,LS=jS,RS="object"==typeof self&&self&&self.Object===Object&&self,IS=LS||RS||Function("return this")(),NS=IS.Symbol,$S=NS,zS=Object.prototype,FS=zS.hasOwnProperty,BS=zS.toString,KS=$S?$S.toStringTag:void 0;var VS=function(e){var t=FS.call(e,KS),n=e[KS];try{e[KS]=void 0;var r=!0}catch(e){}var o=BS.call(e);return r&&(t?e[KS]=n:delete e[KS]),o},HS=Object.prototype.toString;var US=VS,WS=function(e){return HS.call(e)},ZS=NS?NS.toStringTag:void 0;var qS=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ZS&&ZS in Object(e)?US(e):WS(e)};var GS=function(e){return null!=e&&"object"==typeof e},YS=qS,XS=GS;var JS=function(e){return"symbol"==typeof e||XS(e)&&"[object Symbol]"==YS(e)},QS=_S,ek=JS,tk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nk=/^\w*$/;var rk=function(e,t){if(QS(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ek(e))||(nk.test(e)||!tk.test(e)||null!=t&&e in Object(t))};var ok=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ik=ai(ok),ak=qS,lk=ok;var sk,ck=function(e){if(!lk(e))return!1;var t=ak(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},uk=ai(ck),dk=IS["__core-js_shared__"],fk=(sk=/[^.]+$/.exec(dk&&dk.keys&&dk.keys.IE_PROTO||""))?"Symbol(src)_1."+sk:"";var pk=function(e){return!!fk&&fk in e},hk=Function.prototype.toString;var gk=function(e){if(null!=e){try{return hk.call(e)}catch(e){}try{return e+""}catch(e){}}return""},mk=ck,vk=pk,yk=ok,bk=gk,wk=/^\[object .+?Constructor\]$/,Ck=Function.prototype,xk=Object.prototype,Sk=Ck.toString,kk=xk.hasOwnProperty,Ek=RegExp("^"+Sk.call(kk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ok=function(e,t){return null==e?void 0:e[t]},Dk=function(e){return!(!yk(e)||vk(e))&&(mk(e)?Ek:wk).test(bk(e))},Pk=Ok;var Tk=function(e,t){var n=Pk(e,t);return Dk(n)?n:void 0},Ak=Tk(Object,"create"),Mk=Ak;var _k=function(){this.__data__=Mk?Mk(null):{},this.size=0};var jk=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Lk=Ak,Rk=Object.prototype.hasOwnProperty;var Ik=function(e){var t=this.__data__;if(Lk){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Rk.call(t,e)?t[e]:void 0},Nk=Ak,$k=Object.prototype.hasOwnProperty;var zk=Ak;var Fk=_k,Bk=jk,Kk=Ik,Vk=function(e){var t=this.__data__;return Nk?void 0!==t[e]:$k.call(t,e)},Hk=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zk&&void 0===t?"__lodash_hash_undefined__":t,this};function Uk(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uk.prototype.clear=Fk,Uk.prototype.delete=Bk,Uk.prototype.get=Kk,Uk.prototype.has=Vk,Uk.prototype.set=Hk;var Wk=Uk;var Zk=function(){this.__data__=[],this.size=0};var qk=function(e,t){return e===t||e!=e&&t!=t},Gk=qk;var Yk=function(e,t){for(var n=e.length;n--;)if(Gk(e[n][0],t))return n;return-1},Xk=Yk,Jk=Array.prototype.splice;var Qk=Yk;var eE=Yk;var tE=Yk;var nE=Zk,rE=function(e){var t=this.__data__,n=Xk(t,e);return!(n<0)&&(n==t.length-1?t.pop():Jk.call(t,n,1),--this.size,!0)},oE=function(e){var t=this.__data__,n=Qk(t,e);return n<0?void 0:t[n][1]},iE=function(e){return eE(this.__data__,e)>-1},aE=function(e,t){var n=this.__data__,r=tE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function lE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lE.prototype.clear=nE,lE.prototype.delete=rE,lE.prototype.get=oE,lE.prototype.has=iE,lE.prototype.set=aE;var sE=lE,cE=Tk(IS,"Map"),uE=Wk,dE=sE,fE=cE;var pE=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var hE=function(e,t){var n=e.__data__;return pE(t)?n["string"==typeof t?"string":"hash"]:n.map},gE=hE;var mE=hE;var vE=hE;var yE=hE;var bE=function(){this.size=0,this.__data__={hash:new uE,map:new(fE||dE),string:new uE}},wE=function(e){var t=gE(this,e).delete(e);return this.size-=t?1:0,t},CE=function(e){return mE(this,e).get(e)},xE=function(e){return vE(this,e).has(e)},SE=function(e,t){var n=yE(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function kE(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}kE.prototype.clear=bE,kE.prototype.delete=wE,kE.prototype.get=CE,kE.prototype.has=xE,kE.prototype.set=SE;var EE=kE,OE=EE;function DE(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(DE.Cache||OE),n}DE.Cache=OE;var PE=DE,TE=ai(PE),AE=PE;var ME=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_E=/\\(\\)?/g,jE=function(e){var t=AE(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ME,(function(e,n,r,o){t.push(r?o.replace(_E,"$1"):n||e)})),t})),LE=jE;var RE=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},IE=RE,NE=_S,$E=JS,zE=NS?NS.prototype:void 0,FE=zE?zE.toString:void 0;var BE=function e(t){if("string"==typeof t)return t;if(NE(t))return IE(t,e)+"";if($E(t))return FE?FE.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},KE=BE;var VE=function(e){return null==e?"":KE(e)},HE=_S,UE=rk,WE=LE,ZE=VE;var qE=function(e,t){return HE(e)?e:UE(e,t)?[e]:WE(ZE(e))},GE=JS;var YE=function(e){if("string"==typeof e||GE(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},XE=qE,JE=YE;var QE=function(e,t){for(var n=0,r=(t=XE(t,e)).length;null!=e&&n<r;)e=e[JE(t[n++])];return n&&n==r?e:void 0},eO=QE;var tO=function(e,t,n){var r=null==e?void 0:eO(e,t);return void 0===r?n:r},nO=ai(tO);var rO=ai((function(e){return null==e})),oO=qS,iO=_S,aO=GS;var lO,sO=ai((function(e){return"string"==typeof e||!iO(e)&&aO(e)&&"[object String]"==oO(e)})),cO={exports:{}},uO={};var dO,fO={};"production"===process.env.NODE_ENV?cO.exports=function(){if(lO)return uO;lO=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case s:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case p:case a:return e;default:return f}}case n:return f}}}function w(e){return b(e)===c}return uO.AsyncMode=s,uO.ConcurrentMode=c,uO.ContextConsumer=l,uO.ContextProvider=a,uO.Element=t,uO.ForwardRef=u,uO.Fragment=r,uO.Lazy=h,uO.Memo=p,uO.Portal=n,uO.Profiler=i,uO.StrictMode=o,uO.Suspense=d,uO.isAsyncMode=function(e){return w(e)||b(e)===s},uO.isConcurrentMode=w,uO.isContextConsumer=function(e){return b(e)===l},uO.isContextProvider=function(e){return b(e)===a},uO.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},uO.isForwardRef=function(e){return b(e)===u},uO.isFragment=function(e){return b(e)===r},uO.isLazy=function(e){return b(e)===h},uO.isMemo=function(e){return b(e)===p},uO.isPortal=function(e){return b(e)===n},uO.isProfiler=function(e){return b(e)===i},uO.isStrictMode=function(e){return b(e)===o},uO.isSuspense=function(e){return b(e)===d},uO.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},uO.typeOf=b,uO}():cO.exports=(dO||(dO=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:var g=e.type;switch(g){case s:case c:case r:case i:case o:case d:return g;default:var m=g&&g.$$typeof;switch(m){case l:case u:case h:case p:case a:return m;default:return f}}case n:return f}}}var w=s,C=c,x=l,S=a,k=t,E=u,O=r,D=h,P=p,T=n,A=i,M=o,_=d,j=!1;function L(e){return b(e)===c}fO.AsyncMode=w,fO.ConcurrentMode=C,fO.ContextConsumer=x,fO.ContextProvider=S,fO.Element=k,fO.ForwardRef=E,fO.Fragment=O,fO.Lazy=D,fO.Memo=P,fO.Portal=T,fO.Profiler=A,fO.StrictMode=M,fO.Suspense=_,fO.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||b(e)===s},fO.isConcurrentMode=L,fO.isContextConsumer=function(e){return b(e)===l},fO.isContextProvider=function(e){return b(e)===a},fO.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},fO.isForwardRef=function(e){return b(e)===u},fO.isFragment=function(e){return b(e)===r},fO.isLazy=function(e){return b(e)===h},fO.isMemo=function(e){return b(e)===p},fO.isPortal=function(e){return b(e)===n},fO.isProfiler=function(e){return b(e)===i},fO.isStrictMode=function(e){return b(e)===o},fO.isSuspense=function(e){return b(e)===d},fO.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===a||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},fO.typeOf=b}()),fO);var pO=cO.exports,hO=qS,gO=GS;var mO=function(e){return"number"==typeof e||gO(e)&&"[object Number]"==hO(e)},vO=ai(mO),yO=mO;var bO=ai((function(e){return yO(e)&&e!=+e})),wO=function(e){return 0===e?0:e>0?1:-1},CO=function(e){return sO(e)&&e.indexOf("%")===e.length-1},xO=function(e){return vO(e)&&!bO(e)},SO=function(e){return xO(e)||sO(e)},kO=0,EO=function(e){var t=++kO;return"".concat(e||"").concat(t)},OO=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!xO(e)&&!sO(e))return r;if(CO(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return bO(n)&&(n=r),o&&n>t&&(n=t),n},DO=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},PO=function(e,t){return xO(e)&&xO(t)?function(n){return e+n*(t-e)}:function(){return t}};function TO(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"==typeof t?t(e):nO(e,t))===n})):null}function AO(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function MO(e){return MO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MO(e)}var _O=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],jO=["points","pathLength"],LO={svg:["viewBox","children"],polygon:jO,polyline:jO},RO=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],IO=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(m(e)&&(n=e.props),!ik(n))return null;var r={};return Object.keys(n).forEach((function(e){RO.includes(e)&&(r[e]=t||function(t){return n[e](n,t)})})),r},NO=function(e,t,n){if(!ik(e)||"object"!==MO(e))return null;var r=null;return Object.keys(e).forEach((function(o){var i=e[o];RO.includes(o)&&"function"==typeof i&&(r||(r={}),r[o]=function(e,t,n){return function(r){return e(t,n,r),null}}(i,t,n))})),r},$O=["children"],zO=["children"];function FO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function BO(e){return BO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BO(e)}var KO={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},VO=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},HO=null,UO=null,WO=function e(t){if(t===HO&&Array.isArray(UO))return UO;var n=[];return u.forEach(t,(function(t){rO(t)||(pO.isFragment(t)?n=n.concat(e(t.props.children)):n.push(t))})),UO=n,HO=t,n};function ZO(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map((function(e){return VO(e)})):[VO(t)],WO(e).forEach((function(e){var t=nO(e,"type.displayName")||nO(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n}function qO(e,t){var n=ZO(e,t);return n&&n[0]}var GO=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!xO(n)||n<=0||!xO(r)||r<=0)},YO=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],XO=function(e,t,n){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(m(e)&&(r=e.props),!ik(r))return null;var o={};return Object.keys(r).forEach((function(e){var i;(function(e,t,n,r){var o,i=null!==(o=null==LO?void 0:LO[r])&&void 0!==o?o:[];return!uk(e)&&(r&&i.includes(t)||_O.includes(t))||n&&RO.includes(t)})(null===(i=r)||void 0===i?void 0:i[e],e,t,n)&&(o[e]=r[e])})),o},JO=function e(t,n){if(t===n)return!0;var r=u.count(t);if(r!==u.count(n))return!1;if(0===r)return!0;if(1===r)return QO(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!QO(i,a))return!1}return!0},QO=function(e,t){if(rO(e)&&rO(t))return!0;if(!rO(e)&&!rO(t)){var n=e.props||{},r=n.children,o=FO(n,$O),i=t.props||{},a=i.children,l=FO(i,zO);return r&&a?AO(o,l)&&JO(r,a):!r&&!a&&AO(o,l)}return!1},eD=function(e,t){var n=[],r={};return WO(e).forEach((function(e,o){if(function(e){return e&&e.type&&sO(e.type)&&YO.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=VO(e.type),a=t[i]||{},l=a.handler,s=a.once;if(l&&(!s||!r[i])){var c=l(e,i,o);n.push(c),r[i]=!0}}})),n},tD=["children","width","height","viewBox","className","style","title","desc"];function nD(){return nD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nD.apply(this,arguments)}function rD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oD(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,l=e.style,s=e.title,c=e.desc,u=rD(e,tD),d=i||{width:n,height:r,x:0,y:0},f=oo("recharts-surface",a);return o.createElement("svg",nD({},XO(u,!0,"svg"),{className:f,width:n,height:r,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),o.createElement("title",null,s),o.createElement("desc",null,c),t)}var iD=["children","className"];function aD(){return aD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aD.apply(this,arguments)}function lD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sD=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=lD(e,iD),a=oo("recharts-layer",r);return o.createElement("g",aD({className:a},XO(i,!0),{ref:t}),n)})),cD="production"!==process.env.NODE_ENV,uD=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(cD&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,(function(){return r[i++]})))}};var dD=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i},fD=dD;var pD=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:fD(e,t,n)},hD=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var gD=function(e){return hD.test(e)};var mD=function(e){return e.split("")},vD="\\ud800-\\udfff",yD="["+vD+"]",bD="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",wD="\\ud83c[\\udffb-\\udfff]",CD="[^"+vD+"]",xD="(?:\\ud83c[\\udde6-\\uddff]){2}",SD="[\\ud800-\\udbff][\\udc00-\\udfff]",kD="(?:"+bD+"|"+wD+")"+"?",ED="[\\ufe0e\\ufe0f]?",OD=ED+kD+("(?:\\u200d(?:"+[CD,xD,SD].join("|")+")"+ED+kD+")*"),DD="(?:"+[CD+bD+"?",bD,xD,SD,yD].join("|")+")",PD=RegExp(wD+"(?="+wD+")|"+DD+OD,"g");var TD=function(e){return e.match(PD)||[]},AD=mD,MD=gD,_D=TD;var jD=function(e){return MD(e)?_D(e):AD(e)},LD=pD,RD=gD,ID=jD,ND=VE;var $D=function(e){return function(t){t=ND(t);var n=RD(t)?ID(t):void 0,r=n?n[0]:t.charAt(0),o=n?LD(n,1).join(""):t.slice(1);return r[e]()+o}},zD=ai($D("toUpperCase"));function FD(e){return function(){return e}}const BD=Math.cos,KD=Math.sin,VD=Math.sqrt,HD=Math.PI,UD=2*HD,WD=Math.PI,ZD=2*WD,qD=1e-6,GD=ZD-qD;function YD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class XD{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?YD:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return YD;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,l=n-e,s=r-t,c=i-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>qD)if(Math.abs(u*l-s*c)>qD&&o){let f=n-i,p=r-a,h=l*l+s*s,g=f*f+p*p,m=Math.sqrt(h),v=Math.sqrt(d),y=o*Math.tan((WD-Math.acos((h+d-g)/(2*m*v)))/2),b=y/v,w=y/m;Math.abs(b-1)>qD&&this._append`L${e+b*c},${t+b*u}`,this._append`A${o},${o},0,0,${+(u*f>c*p)},${this._x1=e+w*l},${this._y1=t+w*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),l=n*Math.sin(r),s=e+a,c=t+l,u=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${s},${c}`:(Math.abs(this._x1-s)>qD||Math.abs(this._y1-c)>qD)&&this._append`L${s},${c}`,n&&(d<0&&(d=d%ZD+ZD),d>GD?this._append`A${n},${n},0,1,${u},${e-a},${t-l}A${n},${n},0,1,${u},${this._x1=s},${this._y1=c}`:d>qD&&this._append`A${n},${n},0,${+(d>=WD)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function JD(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new XD(t)}function QD(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function eP(e){this._context=e}function tP(e){return new eP(e)}function nP(e){return e[0]}function rP(e){return e[1]}function oP(e,t){var n=FD(!0),r=null,o=tP,i=null,a=JD(l);function l(l){var s,c,u,d=(l=QD(l)).length,f=!1;for(null==r&&(i=o(u=a())),s=0;s<=d;++s)!(s<d&&n(c=l[s],s,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(c,s,l),+t(c,s,l));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?nP:FD(e),t="function"==typeof t?t:void 0===t?rP:FD(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:FD(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:FD(+e),l):t},l.defined=function(e){return arguments.length?(n="function"==typeof e?e:FD(!!e),l):n},l.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),l):o},l.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),l):r},l}function iP(e,t,n){var r=null,o=FD(!0),i=null,a=tP,l=null,s=JD(c);function c(c){var u,d,f,p,h,g=(c=QD(c)).length,m=!1,v=new Array(g),y=new Array(g);for(null==i&&(l=a(h=s())),u=0;u<=g;++u){if(!(u<g&&o(p=c[u],u,c))===m)if(m=!m)d=u,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=u-1;f>=d;--f)l.point(v[f],y[f]);l.lineEnd(),l.areaEnd()}m&&(v[u]=+e(p,u,c),y[u]=+t(p,u,c),l.point(r?+r(p,u,c):v[u],n?+n(p,u,c):y[u]))}if(h)return l=null,h+""||null}function u(){return oP().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?nP:FD(+e),t="function"==typeof t?t:FD(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?rP:FD(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:FD(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:FD(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:FD(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:FD(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:FD(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:FD(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:FD(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),c):i},c}eP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class aP{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var lP={draw(e,t){const n=VD(t/HD);e.moveTo(n,0),e.arc(0,0,n,0,UD)}},sP={draw(e,t){const n=VD(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};const cP=VD(1/3),uP=2*cP;var dP={draw(e,t){const n=VD(t/uP),r=n*cP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},fP={draw(e,t){const n=VD(t),r=-n/2;e.rect(r,r,n,n)}};const pP=KD(HD/10)/KD(7*HD/10),hP=KD(UD/10)*pP,gP=-BD(UD/10)*pP;var mP={draw(e,t){const n=VD(.8908130915292852*t),r=hP*n,o=gP*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=UD*t/5,a=BD(i),l=KD(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}};const vP=VD(3);var yP={draw(e,t){const n=-VD(t/(3*vP));e.moveTo(0,2*n),e.lineTo(-vP*n,-n),e.lineTo(vP*n,-n),e.closePath()}};const bP=-.5,wP=VD(3)/2,CP=1/VD(12),xP=3*(CP/2+1);var SP={draw(e,t){const n=VD(t/xP),r=n/2,o=n*CP,i=r,a=n*CP+n,l=-i,s=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,s),e.lineTo(bP*r-wP*o,wP*r+bP*o),e.lineTo(bP*i-wP*a,wP*i+bP*a),e.lineTo(bP*l-wP*s,wP*l+bP*s),e.lineTo(bP*r+wP*o,bP*o-wP*r),e.lineTo(bP*i+wP*a,bP*a-wP*i),e.lineTo(bP*l+wP*s,bP*s-wP*l),e.closePath()}};function kP(){}function EP(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function OP(e){this._context=e}function DP(e){this._context=e}function PP(e){this._context=e}function TP(e){this._context=e}function AP(e){return e<0?-1:1}function MP(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(AP(i)+AP(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function _P(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function jP(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function LP(e){this._context=e}function RP(e){this._context=new IP(e)}function IP(e){this._context=e}function NP(e){this._context=e}function $P(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function zP(e,t){this._context=e,this._t=t}function FP(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function BP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function KP(e,t){return e[t]}function VP(e){const t=[];return t.key=e,t}function HP(e){return HP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HP(e)}OP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:EP(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:EP(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},DP.prototype={areaStart:kP,areaEnd:kP,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:EP(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},PP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:EP(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},TP.prototype={areaStart:kP,areaEnd:kP,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},LP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:jP(this,this._t0,_P(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,jP(this,_P(this,n=MP(this,e,t)),n);break;default:jP(this,this._t0,n=MP(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(RP.prototype=Object.create(LP.prototype)).point=function(e,t){LP.prototype.point.call(this,t,e)},IP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},NP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=$P(e),o=$P(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},zP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var UP=["type","size","sizeType"];function WP(){return WP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WP.apply(this,arguments)}function ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZP(Object(n),!0).forEach((function(t){GP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GP(e,t,n){return t=function(e){var t=function(e,t){if("object"!=HP(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=HP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==HP(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YP(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var XP={symbolCircle:lP,symbolCross:sP,symbolDiamond:dP,symbolSquare:fP,symbolStar:mP,symbolTriangle:yP,symbolWye:SP},JP=Math.PI/180,QP=function(e){var t,n,r=e.type,i=void 0===r?"circle":r,a=e.size,l=void 0===a?64:a,s=e.sizeType,c=void 0===s?"area":s,u=qP(qP({},YP(e,UP)),{},{type:i,size:l,sizeType:c}),d=u.className,f=u.cx,p=u.cy,h=XO(u,!0);return f===+f&&p===+p&&l===+l?o.createElement("path",WP({},h,{className:oo("recharts-symbols",d),transform:"translate(".concat(f,", ").concat(p,")"),d:(t=function(e){var t="symbol".concat(zD(e));return XP[t]||lP}(i),n=function(e,t){let n=null,r=JD(o);function o(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return e="function"==typeof e?e:FD(e||lP),t="function"==typeof t?t:FD(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"==typeof t?t:FD(t),o):e},o.size=function(e){return arguments.length?(t="function"==typeof e?e:FD(+e),o):t},o.context=function(e){return arguments.length?(n=null==e?null:e,o):n},o}().type(t).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*JP;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(l,c,i)),n())})):null};function eT(e){return eT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eT(e)}function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tT.apply(this,arguments)}function nT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rT(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cT(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oT(e,t,n){return t=aT(t),function(e,t){if(t&&("object"===eT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,iT()?Reflect.construct(t,n||[],aT(e).constructor):t.apply(e,n))}function iT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(iT=function(){return!!e})()}function aT(e){return aT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aT(e)}function lT(e,t){return lT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lT(e,t)}function sT(e,t,n){return(t=cT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cT(e){var t=function(e,t){if("object"!=eT(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eT(t)?t:String(t)}QP.registerSymbol=function(e,t){XP["symbol".concat(zD(e))]=t};var uT=32,dT=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),oT(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lT(e,t)}(t,v),rT(t,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=uT/6,i=uT/3,a=e.inactive?t:e.color;if("plainline"===e.type)return o.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:uT,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return o.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(uT,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return o.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(uT,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(o.isValidElement(e.legendIcon)){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nT(Object(n),!0).forEach((function(t){sT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return delete l.legendIcon,o.cloneElement(e.legendIcon,l)}return o.createElement(QP,{fill:a,cx:n,cy:n,size:uT,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,l=t.inactiveColor,s={x:0,y:0,width:uT,height:uT},c={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var i=t.formatter||a,d=oo(sT(sT({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",t.inactive));if("none"===t.type)return null;var f=uk(t.value)?null:t.value;uD(!uk(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=t.inactive?l:t.color;return o.createElement("li",tT({className:d,style:c,key:"legend-item-".concat(n)},NO(e.props,t,n)),o.createElement(oD,{width:r,height:r,viewBox:s,style:u},e.renderIcon(t)),o.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,t,n):f))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return o.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}]),t}();sT(dT,"displayName","Legend"),sT(dT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var fT=sE;var pT=sE,hT=cE,gT=EE;var mT=sE,vT=function(){this.__data__=new fT,this.size=0},yT=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},bT=function(e){return this.__data__.get(e)},wT=function(e){return this.__data__.has(e)},CT=function(e,t){var n=this.__data__;if(n instanceof pT){var r=n.__data__;if(!hT||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gT(r)}return n.set(e,t),this.size=n.size,this};function xT(e){var t=this.__data__=new mT(e);this.size=t.size}xT.prototype.clear=vT,xT.prototype.delete=yT,xT.prototype.get=bT,xT.prototype.has=wT,xT.prototype.set=CT;var ST=xT;var kT=EE,ET=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},OT=function(e){return this.__data__.has(e)};function DT(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new kT;++t<n;)this.add(e[t])}DT.prototype.add=DT.prototype.push=ET,DT.prototype.has=OT;var PT=DT;var TT=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var AT=function(e,t){return e.has(t)},MT=PT,_T=TT,jT=AT;var LT=function(e,t,n,r,o,i){var a=1&n,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new MT:void 0;for(i.set(e,t),i.set(t,e);++d<l;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!_T(t,(function(e,t){if(!jT(p,t)&&(h===e||o(h,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var RT=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var IT=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},NT=IS.Uint8Array,$T=qk,zT=LT,FT=RT,BT=IT,KT=NS?NS.prototype:void 0,VT=KT?KT.valueOf:void 0;var HT=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new NT(e),new NT(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $T(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=FT;case"[object Set]":var s=1&r;if(l||(l=BT),e.size!=t.size&&!s)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=zT(l(e),l(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(VT)return VT.call(e)==VT.call(t)}return!1};var UT=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},WT=UT,ZT=_S;var qT=function(e,t,n){var r=t(e);return ZT(e)?r:WT(r,n(e))};var GT=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var YT=GT,XT=function(){return[]},JT=Object.prototype.propertyIsEnumerable,QT=Object.getOwnPropertySymbols,eA=QT?function(e){return null==e?[]:(e=Object(e),YT(QT(e),(function(t){return JT.call(e,t)})))}:XT,tA=eA;var nA=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},rA=qS,oA=GS;var iA=function(e){return oA(e)&&"[object Arguments]"==rA(e)},aA=GS,lA=Object.prototype,sA=lA.hasOwnProperty,cA=lA.propertyIsEnumerable,uA=iA(function(){return arguments}())?iA:function(e){return aA(e)&&sA.call(e,"callee")&&!cA.call(e,"callee")},dA={exports:{}};var fA=function(){return!1};!function(e,t){var n=IS,r=fA,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l}(dA,dA.exports);var pA=dA.exports,hA=/^(?:0|[1-9]\d*)$/;var gA=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&hA.test(e))&&e>-1&&e%1==0&&e<t};var mA=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},vA=qS,yA=mA,bA=GS,wA={};wA["[object Float32Array]"]=wA["[object Float64Array]"]=wA["[object Int8Array]"]=wA["[object Int16Array]"]=wA["[object Int32Array]"]=wA["[object Uint8Array]"]=wA["[object Uint8ClampedArray]"]=wA["[object Uint16Array]"]=wA["[object Uint32Array]"]=!0,wA["[object Arguments]"]=wA["[object Array]"]=wA["[object ArrayBuffer]"]=wA["[object Boolean]"]=wA["[object DataView]"]=wA["[object Date]"]=wA["[object Error]"]=wA["[object Function]"]=wA["[object Map]"]=wA["[object Number]"]=wA["[object Object]"]=wA["[object RegExp]"]=wA["[object Set]"]=wA["[object String]"]=wA["[object WeakMap]"]=!1;var CA=function(e){return bA(e)&&yA(e.length)&&!!wA[vA(e)]};var xA=function(e){return function(t){return e(t)}},SA={exports:{}};!function(e,t){var n=jS,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(SA,SA.exports);var kA=SA.exports,EA=CA,OA=xA,DA=kA&&kA.isTypedArray,PA=DA?OA(DA):EA,TA=nA,AA=uA,MA=_S,_A=pA,jA=gA,LA=PA,RA=Object.prototype.hasOwnProperty;var IA=function(e,t){var n=MA(e),r=!n&&AA(e),o=!n&&!r&&_A(e),i=!n&&!r&&!o&&LA(e),a=n||r||o||i,l=a?TA(e.length,String):[],s=l.length;for(var c in e)!t&&!RA.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||jA(c,s))||l.push(c);return l},NA=Object.prototype;var $A=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||NA)};var zA=function(e,t){return function(n){return e(t(n))}},FA=zA(Object.keys,Object),BA=$A,KA=FA,VA=Object.prototype.hasOwnProperty;var HA=function(e){if(!BA(e))return KA(e);var t=[];for(var n in Object(e))VA.call(e,n)&&"constructor"!=n&&t.push(n);return t},UA=ck,WA=mA;var ZA=function(e){return null!=e&&WA(e.length)&&!UA(e)},qA=IA,GA=HA,YA=ZA;var XA=function(e){return YA(e)?qA(e):GA(e)},JA=qT,QA=tA,eM=XA;var tM=function(e){return JA(e,eM,QA)},nM=tM,rM=Object.prototype.hasOwnProperty;var oM=function(e,t,n,r,o,i){var a=1&n,l=nM(e),s=l.length;if(s!=nM(t).length&&!a)return!1;for(var c=s;c--;){var u=l[c];if(!(a?u in t:rM.call(t,u)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<s;){var g=e[u=l[c]],m=t[u];if(r)var v=a?r(m,g,u,t,e,i):r(g,m,u,e,t,i);if(!(void 0===v?g===m||o(g,m,n,r,i):v)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p},iM=Tk(IS,"DataView"),aM=Tk(IS,"Promise"),lM=Tk(IS,"Set"),sM=iM,cM=cE,uM=aM,dM=lM,fM=Tk(IS,"WeakMap"),pM=qS,hM=gk,gM="[object Map]",mM="[object Promise]",vM="[object Set]",yM="[object WeakMap]",bM="[object DataView]",wM=hM(sM),CM=hM(cM),xM=hM(uM),SM=hM(dM),kM=hM(fM),EM=pM;(sM&&EM(new sM(new ArrayBuffer(1)))!=bM||cM&&EM(new cM)!=gM||uM&&EM(uM.resolve())!=mM||dM&&EM(new dM)!=vM||fM&&EM(new fM)!=yM)&&(EM=function(e){var t=pM(e),n="[object Object]"==t?e.constructor:void 0,r=n?hM(n):"";if(r)switch(r){case wM:return bM;case CM:return gM;case xM:return mM;case SM:return vM;case kM:return yM}return t});var OM=ST,DM=LT,PM=HT,TM=oM,AM=EM,MM=_S,_M=pA,jM=PA,LM="[object Arguments]",RM="[object Array]",IM="[object Object]",NM=Object.prototype.hasOwnProperty;var $M=function(e,t,n,r,o,i){var a=MM(e),l=MM(t),s=a?RM:AM(e),c=l?RM:AM(t),u=(s=s==LM?IM:s)==IM,d=(c=c==LM?IM:c)==IM,f=s==c;if(f&&_M(e)){if(!_M(t))return!1;a=!0,u=!1}if(f&&!u)return i||(i=new OM),a||jM(e)?DM(e,t,n,r,o,i):PM(e,t,s,n,r,o,i);if(!(1&n)){var p=u&&NM.call(e,"__wrapped__"),h=d&&NM.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return i||(i=new OM),o(g,m,n,r,i)}}return!!f&&(i||(i=new OM),TM(e,t,n,r,o,i))},zM=$M,FM=GS;var BM=function e(t,n,r,o,i){return t===n||(null==t||null==n||!FM(t)&&!FM(n)?t!=t&&n!=n:zM(t,n,r,o,e,i))},KM=ST,VM=BM;var HM=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var l=n[o];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){var s=(l=n[o])[0],c=e[s],u=l[1];if(a&&l[2]){if(void 0===c&&!(s in e))return!1}else{var d=new KM;if(r)var f=r(c,u,s,e,t,d);if(!(void 0===f?VM(u,c,3,r,d):f))return!1}}return!0},UM=ok;var WM=function(e){return e==e&&!UM(e)},ZM=WM,qM=XA;var GM=function(e){for(var t=qM(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ZM(o)]}return t};var YM=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},XM=HM,JM=GM,QM=YM;var e_=function(e){var t=JM(e);return 1==t.length&&t[0][2]?QM(t[0][0],t[0][1]):function(n){return n===e||XM(n,e,t)}};var t_=function(e,t){return null!=e&&t in Object(e)},n_=qE,r_=uA,o_=_S,i_=gA,a_=mA,l_=YE;var s_=function(e,t,n){for(var r=-1,o=(t=n_(t,e)).length,i=!1;++r<o;){var a=l_(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&a_(o)&&i_(a,o)&&(o_(e)||r_(e))},c_=t_,u_=s_;var d_=function(e,t){return null!=e&&u_(e,t,c_)},f_=BM,p_=tO,h_=d_,g_=rk,m_=WM,v_=YM,y_=YE;var b_=function(e,t){return g_(e)&&m_(t)?v_(y_(e),t):function(n){var r=p_(n,e);return void 0===r&&r===t?h_(n,e):f_(t,r,3)}};var w_=function(e){return e};var C_=function(e){return function(t){return null==t?void 0:t[e]}},x_=QE;var S_=function(e){return function(t){return x_(t,e)}},k_=C_,E_=S_,O_=rk,D_=YE;var P_=e_,T_=b_,A_=w_,M_=_S,__=function(e){return O_(e)?k_(D_(e)):E_(e)};var j_=function(e){return"function"==typeof e?e:null==e?A_:"object"==typeof e?M_(e)?T_(e[0],e[1]):P_(e):__(e)};var L_=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var R_=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},I_=L_,N_=function(e){return e!=e},$_=R_;var z_=function(e,t,n){return t==t?$_(e,t,n):I_(e,N_,n)},F_=z_;var B_=function(e,t){return!!(null==e?0:e.length)&&F_(e,t,0)>-1};var K_=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var V_=lM,H_=function(){},U_=V_&&1/IT(new V_([,-0]))[1]==1/0?function(e){return new V_(e)}:H_,W_=PT,Z_=B_,q_=K_,G_=AT,Y_=U_,X_=IT;var J_=function(e,t,n){var r=-1,o=Z_,i=e.length,a=!0,l=[],s=l;if(n)a=!1,o=q_;else if(i>=200){var c=t?null:Y_(e);if(c)return X_(c);a=!1,o=G_,s=new W_}else s=t?[]:l;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(u)}else o(s,d,n)||(s!==l&&s.push(d),l.push(u))}return l},Q_=j_,ej=J_;var tj=function(e,t){return e&&e.length?ej(e,Q_(t)):[]},nj=ai(tj);function rj(e,t,n){return!0===t?nj(e,n):uk(t)?nj(e,t):e}function oj(e){return oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oj(e)}var ij=["ref"];function aj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aj(Object(n),!0).forEach((function(t){hj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gj(r.key),r)}}function cj(e,t,n){return t=dj(t),function(e,t){if(t&&("object"===oj(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fj(e)}(e,uj()?Reflect.construct(t,n||[],dj(e).constructor):t.apply(e,n))}function uj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uj=function(){return!!e})()}function dj(e){return dj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dj(e)}function fj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pj(e,t){return pj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pj(e,t)}function hj(e,t,n){return(t=gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gj(e){var t=function(e,t){if("object"!=oj(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oj(t)?t:String(t)}function mj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vj(e){return e.value}var yj=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hj(fj(e=cj(this,t,[].concat(r))),"lastBoundingBox",{width:-1,height:-1}),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pj(e,t)}(t,v),n=t,i=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&xO(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?lj({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,l=r.margin,s=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((s||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),lj(lj({},t),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,l=t.payloadUniqBy,s=t.payload,c=lj(lj({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return o.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if("function"==typeof e)return o.createElement(e,t);t.ref;var n=mj(t,ij);return o.createElement(dT,n)}(n,lj(lj({},this.props),{},{payload:rj(s,l,vj)})))}}])&&sj(n.prototype,r),i&&sj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();hj(yj,"displayName","Legend"),hj(yj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var bj=uA,wj=_S,Cj=NS?NS.isConcatSpreadable:void 0;var xj=UT,Sj=function(e){return wj(e)||bj(e)||!!(Cj&&e&&e[Cj])};var kj=function e(t,n,r,o,i){var a=-1,l=t.length;for(r||(r=Sj),i||(i=[]);++a<l;){var s=t[a];n>0&&r(s)?n>1?e(s,n-1,r,o,i):xj(i,s):o||(i[i.length]=s)}return i};var Ej=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}},Oj=Ej(),Dj=XA;var Pj=function(e,t){return e&&Oj(e,t,Dj)},Tj=ZA;var Aj=function(e,t){return function(n,r){if(null==n)return n;if(!Tj(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}(Pj),Mj=Aj,_j=ZA;var jj=function(e,t){var n=-1,r=_j(e)?Array(e.length):[];return Mj(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};var Lj=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},Rj=JS;var Ij=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=Rj(e),a=void 0!==t,l=null===t,s=t==t,c=Rj(t);if(!l&&!c&&!i&&e>t||i&&a&&s&&!l&&!c||r&&a&&s||!n&&s||!o)return 1;if(!r&&!i&&!c&&e<t||c&&n&&o&&!r&&!i||l&&n&&o||!a&&o||!s)return-1}return 0};var Nj=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var s=Ij(o[r],i[r]);if(s)return r>=l?s:s*("desc"==n[r]?-1:1)}return e.index-t.index},$j=RE,zj=QE,Fj=j_,Bj=jj,Kj=Lj,Vj=xA,Hj=Nj,Uj=w_,Wj=_S;var Zj=function(e,t,n){t=t.length?$j(t,(function(e){return Wj(e)?function(t){return zj(t,1===e.length?e[0]:e)}:e})):[Uj];var r=-1;t=$j(t,Vj(Fj));var o=Bj(e,(function(e,n,o){return{criteria:$j(t,(function(t){return t(e)})),index:++r,value:e}}));return Kj(o,(function(e,t){return Hj(e,t,n)}))};var qj=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Gj=qj,Yj=Math.max;var Xj=function(e,t,n){return t=Yj(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Yj(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(a),Gj(e,this,l)}};var Jj=function(e){return function(){return e}},Qj=Tk,eL=function(){try{var e=Qj(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),tL=Jj,nL=eL,rL=nL?function(e,t){return nL(e,"toString",{configurable:!0,enumerable:!1,value:tL(t),writable:!0})}:w_,oL=rL,iL=Date.now;var aL=function(e){var t=0,n=0;return function(){var r=iL(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},lL=aL(oL),sL=w_,cL=Xj,uL=lL;var dL=qk,fL=ZA,pL=gA,hL=ok;var gL=function(e,t,n){if(!hL(n))return!1;var r=typeof t;return!!("number"==r?fL(n)&&pL(t,n.length):"string"==r&&t in n)&&dL(n[t],e)},mL=kj,vL=Zj,yL=gL,bL=ai(function(e,t){return uL(cL(e,t,sL),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yL(e,t[0],t[1])?t=[]:n>2&&yL(t[0],t[1],t[2])&&(t=[t[0]]),vL(e,mL(t,1),[])})));function wL(e){return wL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wL(e)}function CL(){return CL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CL.apply(this,arguments)}function xL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return SL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kL(Object(n),!0).forEach((function(t){OL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=wL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DL(e){return Array.isArray(e)&&SO(e[0])&&SO(e[1])?e.join(" ~ "):e}var PL=function(e){var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,i=void 0===r?{}:r,a=e.itemStyle,l=void 0===a?{}:a,s=e.labelStyle,c=void 0===s?{}:s,u=e.payload,d=e.formatter,f=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,g=e.label,m=e.labelFormatter,v=e.accessibilityLayer,y=void 0!==v&&v,b=EL({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=EL({margin:0},c),C=!rO(g),x=C?g:"",S=oo("recharts-default-tooltip",p),k=oo("recharts-tooltip-label",h);C&&m&&null!=u&&(x=m(g,u));var E=y?{role:"status","aria-live":"assertive"}:{};return o.createElement("div",CL({className:S,style:b},E),o.createElement("p",{className:k,style:w},o.isValidElement(x)?x:"".concat(x)),function(){if(u&&u.length){var e=(f?bL(u,f):u).map((function(e,t){if("none"===e.type)return null;var r=EL({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},l),i=e.formatter||d||DL,a=e.value,s=e.name,c=a,f=s;if(i&&null!=c&&null!=f){var p=i(a,s,e,t,u);if(Array.isArray(p)){var h=xL(p,2);c=h[0],f=h[1]}else c=p}return o.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:r},SO(f)?o.createElement("span",{className:"recharts-tooltip-item-name"},f):null,SO(f)?o.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,o.createElement("span",{className:"recharts-tooltip-item-value"},c),o.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return o.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function TL(e){return TL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TL(e)}function AL(e,t,n){return t=function(e){var t=function(e,t){if("object"!=TL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=TL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==TL(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ML="recharts-tooltip-wrapper",_L={visibility:"hidden"};function jL(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return oo(ML,AL(AL(AL(AL({},"".concat(ML,"-right"),xO(n)&&t&&xO(t.x)&&n>=t.x),"".concat(ML,"-left"),xO(n)&&t&&xO(t.x)&&n<t.x),"".concat(ML,"-bottom"),xO(r)&&t&&xO(t.y)&&r>=t.y),"".concat(ML,"-top"),xO(r)&&t&&xO(t.y)&&r<t.y))}function LL(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(i&&xO(i[r]))return i[r];var u=n[r]-l-o,d=n[r]+o;return t[r]?a[r]?u:d:a[r]?u<s[r]?Math.max(d,s[r]):Math.max(u,s[r]):d+l>s[r]+c?Math.max(u,s[r]):Math.max(d,s[r])}function RL(e){return RL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RL(e)}function IL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IL(Object(n),!0).forEach((function(t){HL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $L(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UL(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zL(e,t,n){return t=BL(t),function(e,t){if(t&&("object"===RL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return KL(e)}(e,FL()?Reflect.construct(t,n||[],BL(e).constructor):t.apply(e,n))}function FL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(FL=function(){return!!e})()}function BL(e){return BL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BL(e)}function KL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VL(e,t){return VL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VL(e,t)}function HL(e,t,n){return(t=UL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UL(e){var t=function(e,t){if("object"!=RL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=RL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==RL(t)?t:String(t)}var WL=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HL(KL(e=zL(this,t,[].concat(r))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),HL(KL(e),"handleKeyDown",(function(t){var n,r,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=e.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VL(e,t)}(t,v),$L(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,l=t.children,s=t.coordinate,c=t.hasPayload,u=t.isAnimationActive,d=t.offset,f=t.position,p=t.reverseDirection,h=t.useTranslate3d,g=t.viewBox,m=t.wrapperStyle,v=function(e){var t,n,r=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,l=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,u=e.viewBox;return{cssProperties:s.height>0&&s.width>0&&o?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=LL({allowEscapeViewBox:r,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=LL({allowEscapeViewBox:r,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):_L,cssClasses:jL({translateX:t,translateY:n,coordinate:o})}}({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:d,position:f,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}),y=v.cssClasses,b=v.cssProperties,w=NL(NL({transition:u&&n?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return o.createElement("div",{tabIndex:-1,className:y,style:w,ref:function(t){e.wrapperNode=t}},l)}}]),t}(),ZL={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return ZL[e]},set:function(e,t){if("string"==typeof e)ZL[e]=t;else{var n=Object.keys(e);n&&n.length&&n.forEach((function(t){ZL[t]=e[t]}))}}};function qL(e){return qL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qL(e)}function GL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GL(Object(n),!0).forEach((function(t){nR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XL(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rR(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JL(e,t,n){return t=eR(t),function(e,t){if(t&&("object"===qL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,QL()?Reflect.construct(t,n||[],eR(e).constructor):t.apply(e,n))}function QL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(QL=function(){return!!e})()}function eR(e){return eR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eR(e)}function tR(e,t){return tR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tR(e,t)}function nR(e,t,n){return(t=rR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rR(e){var t=function(e,t){if("object"!=qL(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qL(t)?t:String(t)}function oR(e){return e.dataKey}var iR=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),JL(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tR(e,t)}(t,v),XL(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,l=t.content,s=t.coordinate,c=t.filterNull,u=t.isAnimationActive,d=t.offset,f=t.payload,p=t.payloadUniqBy,h=t.position,g=t.reverseDirection,m=t.useTranslate3d,v=t.viewBox,y=t.wrapperStyle,b=null!=f?f:[];c&&b.length&&(b=rj(f.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,oR));var w=b.length>0;return o.createElement(WL,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:u,active:n,coordinate:s,hasPayload:w,offset:d,position:h,reverseDirection:g,useTranslate3d:m,viewBox:v,wrapperStyle:y},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):"function"==typeof e?o.createElement(e,t):o.createElement(PL,t)}(l,YL(YL({},this.props),{},{payload:b})))}}]),t}();nR(iR,"displayName","Tooltip"),nR(iR,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ZL.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var aR=IS,lR=/\s/;var sR=function(e){for(var t=e.length;t--&&lR.test(e.charAt(t)););return t},cR=sR,uR=/^\s+/;var dR=function(e){return e?e.slice(0,cR(e)+1).replace(uR,""):e},fR=dR,pR=ok,hR=JS,gR=/^[-+]0x[0-9a-f]+$/i,mR=/^0b[01]+$/i,vR=/^0o[0-7]+$/i,yR=parseInt;var bR=function(e){if("number"==typeof e)return e;if(hR(e))return NaN;if(pR(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=pR(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=fR(e);var n=mR.test(e);return n||vR.test(e)?yR(e.slice(2),n?2:8):gR.test(e)?NaN:+e},wR=ok,CR=function(){return aR.Date.now()},xR=bR,SR=Math.max,kR=Math.min;var ER=function(e,t,n){var r,o,i,a,l,s,c=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function g(){var e=CR();if(h(e))return m(e);l=setTimeout(g,function(e){var n=t-(e-s);return d?kR(n,i-(e-c)):n}(e))}function m(e){return l=void 0,f&&r?p(e):(r=o=void 0,a)}function v(){var e=CR(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===l)return function(e){return c=e,l=setTimeout(g,t),u?p(e):a}(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return void 0===l&&(l=setTimeout(g,t)),a}return t=xR(t)||0,wR(n)&&(u=!!n.leading,i=(d="maxWait"in n)?SR(xR(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==l&&clearTimeout(l),c=0,r=s=o=l=void 0},v.flush=function(){return void 0===l?a:m(CR())},v},OR=ER,DR=ok;var PR=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return DR(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),OR(e,t,{leading:r,maxWait:t,trailing:o})},TR=ai(PR);function AR(e){return AR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AR(e)}function MR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MR(Object(n),!0).forEach((function(t){jR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=AR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=AR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==AR(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var IR=s((function(e,t){var n=e.aspect,r=e.initialDimension,s=void 0===r?{width:-1,height:-1}:r,u=e.width,d=void 0===u?"100%":u,p=e.height,m=void 0===p?"100%":p,v=e.minWidth,y=void 0===v?0:v,b=e.minHeight,w=e.maxHeight,C=e.children,x=e.debounce,S=void 0===x?0:x,k=e.id,E=e.className,O=e.onResize,D=e.style,P=void 0===D?{}:D,T=a(null),A=a();A.current=O,g(t,(function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})}));var M=LR(l({containerWidth:s.width,containerHeight:s.height}),2),_=M[0],j=M[1],L=h((function(e,t){j((function(n){var r=Math.round(e),o=Math.round(t);return n.containerWidth===r&&n.containerHeight===o?n:{containerWidth:r,containerHeight:o}}))}),[]);i((function(){var e=function(e){var t,n=e[0].contentRect,r=n.width,o=n.height;L(r,o),null===(t=A.current)||void 0===t||t.call(A,r,o)};S>0&&(e=TR(e,S,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=T.current.getBoundingClientRect(),r=n.width,o=n.height;return L(r,o),t.observe(T.current),function(){t.disconnect()}}),[L,S]);var R=f((function(){var e=_.containerWidth,t=_.containerHeight;if(e<0||t<0)return null;uD(CO(d)||CO(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",d,m),uD(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=CO(d)?e:d,i=CO(m)?t:m;n&&n>0&&(r?i=r/n:i&&(r=i*n),w&&i>w&&(i=w)),uD(r>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,i,d,m,y,b,n);var a=!Array.isArray(C)&&pO.isElement(C)&&VO(C.type).endsWith("Chart");return o.Children.map(C,(function(e){return pO.isElement(e)?c(e,_R({width:r,height:i},a?{style:_R({height:"100%",width:"100%",maxHeight:i,maxWidth:r},e.props.style)}:{})):e}))}),[n,C,m,w,b,y,_,d]);return o.createElement("div",{id:k?"".concat(k):void 0,className:oo("recharts-responsive-container",E),style:_R(_R({},P),{},{width:d,height:m,minWidth:y,minHeight:b,maxHeight:w}),ref:T},R)})),NR=function(e){return null};function $R(e){return $R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$R(e)}function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zR(Object(n),!0).forEach((function(t){BR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BR(e,t,n){return t=function(e){var t=function(e,t){if("object"!=$R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$R(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}NR.displayName="Cell";var KR={widthCache:{},cacheCount:0},VR={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},HR="recharts_measurement_span";var UR=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||ZL.isSsr)return{width:0,height:0};var n,r=(n=FR({},t),Object.keys(n).forEach((function(e){n[e]||delete n[e]})),n),o=JSON.stringify({text:e,copyStyle:r});if(KR.widthCache[o])return KR.widthCache[o];try{var i=document.getElementById(HR);i||((i=document.createElement("span")).setAttribute("id",HR),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=FR(FR({},VR),r);Object.assign(i.style,a),i.textContent="".concat(e);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return KR.widthCache[o]=s,++KR.cacheCount>2e3&&(KR.cacheCount=0,KR.widthCache={}),s}catch(e){return{width:0,height:0}}};function WR(e){return WR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WR(e)}function ZR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YR(r.key),r)}}function YR(e){var t=function(e,t){if("object"!=WR(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=WR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==WR(t)?t:String(t)}var XR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,JR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,QR=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,eI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,tI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},nI=Object.keys(tI),rI="NaN";var oI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),""===n||QR.test(n)||(this.num=NaN,this.unit=""),nI.includes(n)&&(this.num=function(e,t){return e*tI[t]}(t,n),this.unit="px")}var t,n,r;return t=e,r=[{key:"parse",value:function(t){var n,r=ZR(null!==(n=eI.exec(t))&&void 0!==n?n:[],3),o=r[1],i=r[2];return new e(parseFloat(o),null!=i?i:"")}}],(n=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&GR(t.prototype,n),r&&GR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function iI(e){if(e.includes(rI))return rI;for(var t=e;t.includes("*")||t.includes("/");){var n,r=ZR(null!==(n=XR.exec(t))&&void 0!==n?n:[],4),o=r[1],i=r[2],a=r[3],l=oI.parse(null!=o?o:""),s=oI.parse(null!=a?a:""),c="*"===i?l.multiply(s):l.divide(s);if(c.isNaN())return rI;t=t.replace(XR,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,d=ZR(null!==(u=JR.exec(t))&&void 0!==u?u:[],4),f=d[1],p=d[2],h=d[3],g=oI.parse(null!=f?f:""),m=oI.parse(null!=h?h:""),v="+"===p?g.add(m):g.subtract(m);if(v.isNaN())return rI;t=t.replace(JR,v.toString())}return t}var aI=/\(([^()]*)\)/;function lI(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var n=ZR(aI.exec(t),2)[1];t=t.replace(aI,iI(n))}return t}(t),t=iI(t)}function sI(e){var t=function(e){try{return lI(e)}catch(e){return rI}}(e.slice(5,-1));return t===rI?"":t}var cI=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],uI=["dx","dy","angle","className","breakAll"];function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dI.apply(this,arguments)}function fI(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gI=/[ \f\n\r\t\v\u2028\u2029]+/,mI=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return rO(t)||(o=n?t.toString().split(""):t.toString().split(gI)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:UR(e,r).width}})),spaceWidth:n?0:UR(" ",r).width}}catch(e){return null}},vI=function(e){return[{words:rO(e)?[]:e.toString().split(gI)}]},yI=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!ZL.isSsr){var l=mI({breakAll:i,children:r,style:o});return l?function(e,t,n,r,o){var i=e.maxLines,a=e.children,l=e.style,s=e.breakAll,c=xO(i),u=a,d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,l=e[e.length-1];if(l&&(null==r||o||l.width+a+n<Number(r)))l.words.push(i),l.width+=a+n;else{var s={words:[i],width:a};e.push(s)}return e}),[])},f=d(t);if(!c)return f;for(var p,h=function(e){var t=u.slice(0,e),n=mI({breakAll:s,style:l,children:t+"…"}).wordsWithComputedWidth,o=d(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,m=u.length-1,v=0;g<=m&&v<=u.length-1;){var y=Math.floor((g+m)/2),b=pI(h(y-1),2),w=b[0],C=b[1],x=pI(h(y),1)[0];if(w||x||(g=y+1),w&&x&&(m=y-1),!w&&x){p=C;break}v++}return p||f}({breakAll:i,children:r,maxLines:a,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,n):vI(r)}return vI(r)},bI="#808080",wI=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.lineHeight,l=void 0===a?"1em":a,s=e.capHeight,c=void 0===s?"0.71em":s,u=e.scaleToFit,d=void 0!==u&&u,p=e.textAnchor,h=void 0===p?"start":p,g=e.verticalAnchor,m=void 0===g?"end":g,v=e.fill,y=void 0===v?bI:v,b=fI(e,cI),w=f((function(){return yI({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:d,style:b.style,width:b.width})}),[b.breakAll,b.children,b.maxLines,d,b.style,b.width]),C=b.dx,x=b.dy,S=b.angle,k=b.className,E=b.breakAll,O=fI(b,uI);if(!SO(n)||!SO(i))return null;var D,P=n+(xO(C)?C:0),T=i+(xO(x)?x:0);switch(m){case"start":D=sI("calc(".concat(c,")"));break;case"middle":D=sI("calc(".concat((w.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:D=sI("calc(".concat(w.length-1," * -").concat(l,")"))}var A=[];if(d){var M=w[0].width,_=b.width;A.push("scale(".concat((xO(_)?_/M:1)/M,")"))}return S&&A.push("rotate(".concat(S,", ").concat(P,", ").concat(T,")")),A.length&&(O.transform=A.join(" ")),o.createElement("text",dI({},XO(O,!0),{x:P,y:T,className:oo("recharts-text",k),textAnchor:h,fill:y.includes("url")?bI:y}),w.map((function(e,t){var n=e.words.join(E?"":" ");return o.createElement("tspan",{x:P,dy:0===t?D:l,key:n},n)})))};function CI(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xI(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function SI(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=CI,n=(t,n)=>CI(e(t),n),r=(t,n)=>e(t)-n):(t=e===CI||e===xI?e:kI,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function kI(){return 0}function EI(e){return null===e?NaN:+e}const OI=SI(CI).right;SI(EI).center;class DI extends Map{constructor(e,t=TI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(PI(this,e))}has(e){return super.has(PI(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function PI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function TI(e){return null!==e&&"object"==typeof e?e.valueOf():e}function AI(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const MI=Math.sqrt(50),_I=Math.sqrt(10),jI=Math.sqrt(2);function LI(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=MI?10:i>=_I?5:i>=jI?2:1;let l,s,c;return o<0?(c=Math.pow(10,-o)/a,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,o)*a,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=n&&n<2?LI(e,t,2*n):[l,s,c]}function RI(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?LI(t,e,n):LI(e,t,n);if(!(i>=o))return[];const l=i-o+1,s=new Array(l);if(r)if(a<0)for(let e=0;e<l;++e)s[e]=(i-e)/-a;else for(let e=0;e<l;++e)s[e]=(i-e)*a;else if(a<0)for(let e=0;e<l;++e)s[e]=(o+e)/-a;else for(let e=0;e<l;++e)s[e]=(o+e)*a;return s}function II(e,t,n){return LI(e=+e,t=+t,n=+n)[2]}function NI(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?II(t,e,n):II(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function $I(e,t){let n;for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);return n}function zI(e,t){let n;for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);return n}function FI(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?AI:function(e=CI){if(e===CI)return AI;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,l=Math.log(i),s=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*s*(i-s)/i)*(a-i/2<0?-1:1);FI(e,t,Math.max(n,Math.floor(t-a*s/i+c)),Math.min(r,Math.floor(t+(i-a)*s/i+c)),o)}const i=e[t];let a=n,l=r;for(BI(e,n,t),o(e[r],i)>0&&BI(e,n,r);a<l;){for(BI(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[n],i)?BI(e,n,l):(++l,BI(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function BI(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function KI(e,t,n=EI){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function VI(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function HI(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const UI=Symbol("implicit");function WI(){var e=new DI,t=[],n=[],r=UI;function o(o){let i=e.get(o);if(void 0===i){if(r!==UI)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new DI;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return WI(t,n).unknown(r)},VI.apply(o,arguments),o}function ZI(){var e,t,n=WI().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,s=0,c=0,u=.5;function d(){var n=r().length,d=a<i,f=d?a:i,p=d?i:a;e=(p-f)/Math.max(1,n-s+2*c),l&&(e=Math.floor(e)),f+=(p-f-e*(n-s))*u,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return f+e*t}));return o(d?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,d()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,d()):l},n.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),d()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return ZI(r(),[i,a]).round(l).paddingInner(s).paddingOuter(c).align(u)},VI.apply(d(),arguments)}function qI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qI(t())},e}function GI(){return qI(ZI.apply(null,arguments).paddingInner(1))}function YI(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function XI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function JI(){}var QI=.7,eN=1/QI,tN="\\s*([+-]?\\d+)\\s*",nN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oN=/^#([0-9a-f]{3,8})$/,iN=new RegExp(`^rgb\\(${tN},${tN},${tN}\\)$`),aN=new RegExp(`^rgb\\(${rN},${rN},${rN}\\)$`),lN=new RegExp(`^rgba\\(${tN},${tN},${tN},${nN}\\)$`),sN=new RegExp(`^rgba\\(${rN},${rN},${rN},${nN}\\)$`),cN=new RegExp(`^hsl\\(${nN},${rN},${rN}\\)$`),uN=new RegExp(`^hsla\\(${nN},${rN},${rN},${nN}\\)$`),dN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function fN(){return this.rgb().formatHex()}function pN(){return this.rgb().formatRgb()}function hN(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?gN(t):3===n?new yN(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?mN(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?mN(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=iN.exec(e))?new yN(t[1],t[2],t[3],1):(t=aN.exec(e))?new yN(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lN.exec(e))?mN(t[1],t[2],t[3],t[4]):(t=sN.exec(e))?mN(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=cN.exec(e))?kN(t[1],t[2]/100,t[3]/100,1):(t=uN.exec(e))?kN(t[1],t[2]/100,t[3]/100,t[4]):dN.hasOwnProperty(e)?gN(dN[e]):"transparent"===e?new yN(NaN,NaN,NaN,0):null}function gN(e){return new yN(e>>16&255,e>>8&255,255&e,1)}function mN(e,t,n,r){return r<=0&&(e=t=n=NaN),new yN(e,t,n,r)}function vN(e,t,n,r){return 1===arguments.length?function(e){return e instanceof JI||(e=hN(e)),e?new yN((e=e.rgb()).r,e.g,e.b,e.opacity):new yN}(e):new yN(e,t,n,null==r?1:r)}function yN(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function bN(){return`#${SN(this.r)}${SN(this.g)}${SN(this.b)}`}function wN(){const e=CN(this.opacity);return`${1===e?"rgb(":"rgba("}${xN(this.r)}, ${xN(this.g)}, ${xN(this.b)}${1===e?")":`, ${e})`}`}function CN(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xN(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function SN(e){return((e=xN(e))<16?"0":"")+e.toString(16)}function kN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ON(e,t,n,r)}function EN(e){if(e instanceof ON)return new ON(e.h,e.s,e.l,e.opacity);if(e instanceof JI||(e=hN(e)),!e)return new ON;if(e instanceof ON)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ON(a,l,s,e.opacity)}function ON(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function DN(e){return(e=(e||0)%360)<0?e+360:e}function PN(e){return Math.max(0,Math.min(1,e||0))}function TN(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}YI(JI,hN,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fN,formatHex:fN,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return EN(this).formatHsl()},formatRgb:pN,toString:pN}),YI(yN,vN,XI(JI,{brighter(e){return e=null==e?eN:Math.pow(eN,e),new yN(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?QI:Math.pow(QI,e),new yN(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yN(xN(this.r),xN(this.g),xN(this.b),CN(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bN,formatHex:bN,formatHex8:function(){return`#${SN(this.r)}${SN(this.g)}${SN(this.b)}${SN(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wN,toString:wN})),YI(ON,(function(e,t,n,r){return 1===arguments.length?EN(e):new ON(e,t,n,null==r?1:r)}),XI(JI,{brighter(e){return e=null==e?eN:Math.pow(eN,e),new ON(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?QI:Math.pow(QI,e),new ON(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new yN(TN(e>=240?e-240:e+120,o,r),TN(e,o,r),TN(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ON(DN(this.h),PN(this.s),PN(this.l),CN(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=CN(this.opacity);return`${1===e?"hsl(":"hsla("}${DN(this.h)}, ${100*PN(this.s)}%, ${100*PN(this.l)}%${1===e?")":`, ${e})`}`}}));var AN=e=>()=>e;function MN(e){return 1==(e=+e)?_N:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):AN(isNaN(t)?n:t)}}function _N(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):AN(isNaN(e)?t:e)}var jN=function e(t){var n=MN(t);function r(e,t){var r=n((e=vN(e)).r,(t=vN(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=_N(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function LN(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function RN(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=KN(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function IN(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function NN(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $N(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=KN(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var zN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,FN=new RegExp(zN.source,"g");function BN(e,t){var n,r,o,i=zN.lastIndex=FN.lastIndex=0,a=-1,l=[],s=[];for(e+="",t+="";(n=zN.exec(e))&&(r=FN.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,s.push({i:a,x:NN(n,r)})),i=FN.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function KN(e,t){var n,r=typeof t;return null==t||"boolean"===r?AN(t):("number"===r?NN:"string"===r?(n=hN(t))?(t=n,jN):BN:t instanceof hN?jN:t instanceof Date?IN:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?LN:Array.isArray(t)?RN:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?$N:NN)(e,t)}function VN(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function HN(e,t){void 0===t&&(t=e,e=KN);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function UN(e){return+e}var WN=[0,1];function ZN(e){return e}function qN(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function GN(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=qN(o,r),i=n(a,i)):(r=qN(r,o),i=n(i,a)),function(e){return i(r(e))}}function YN(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=qN(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=OI(e,t,1,r)-1;return i[n](o[n](t))}}function XN(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function JN(){var e,t,n,r,o,i,a=WN,l=WN,s=KN,c=ZN;function u(){var e=Math.min(a.length,l.length);return c!==ZN&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?YN:GN,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,s)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(l,a.map(e),NN)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,UN),u()):a.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=VN,u()},d.clamp=function(e){return arguments.length?(c=!!e||ZN,u()):c!==ZN},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function QN(){return JN()(ZN,ZN)}function e$(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function t$(e){return(e=e$(Math.abs(e)))?e[1]:NaN}var n$,r$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o$(e){if(!(t=r$.exec(e)))throw new Error("invalid format: "+e);var t;return new i$({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function i$(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function a$(e,t){var n=e$(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}o$.prototype=i$.prototype,i$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var l$={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>a$(100*e,t),r:a$,s:function(e,t){var n=e$(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(n$=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+e$(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function s$(e){return e}var c$,u$,d$,f$=Array.prototype.map,p$=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h$(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?s$:(t=f$.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],s=0;o>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(e.substring(o-=l,o+l)),!((s+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?s$:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(f$.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=o$(e)).fill,n=e.align,d=e.sign,f=e.symbol,p=e.zero,h=e.width,g=e.comma,m=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):l$[y]||(void 0===m&&(m=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===f?o:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===f?i:/[%p]/.test(y)?s:"",C=l$[y],x=/[defgprs%]/.test(y);function S(e){var o,i,s,f=b,S=w;if("c"===y)S=C(e)+S,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:C(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),f=(k?"("===d?d:c:"-"===d||"("===d?"":d)+f,S=("s"===y?p$[8+n$/3]:"")+S+(k&&"("===d?")":""),x)for(o=-1,i=e.length;++o<i;)if(48>(s=e.charCodeAt(o))||s>57){S=(46===s?a+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var E=f.length+e.length+S.length,O=E<h?new Array(h-E+1).join(t):"";switch(g&&p&&(e=r(O+e,O.length?h-S.length:1/0),O=""),n){case"<":e=f+e+S+O;break;case"=":e=f+O+e+S;break;case"^":e=O.slice(0,E=O.length>>1)+f+e+S+O.slice(E);break;default:e=O+f+e+S}return l(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=o$(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(t$(t)/3))),o=Math.pow(10,-r),i=p$[8+r/3];return function(e){return n(o*e)+i}}}}function g$(e,t,n,r){var o,i=NI(e,t,n);switch((r=o$(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(t$(t)/3)))-t$(Math.abs(e)))}(i,a))||(r.precision=o),d$(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,t$(t)-t$(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-t$(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return u$(r)}function m$(e){var t=e.domain;return e.ticks=function(e){var n=t();return RI(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return g$(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,s=i[a],c=i[l],u=10;for(c<s&&(o=s,s=c,c=o,o=a,a=l,l=o);u-- >0;){if((o=II(s,c,n))===r)return i[a]=s,i[l]=c,t(i);if(o>0)s=Math.floor(s/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;s=Math.ceil(s*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function v$(){var e=QN();return e.copy=function(){return XN(e,v$())},VI.apply(e,arguments),m$(e)}function y$(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function b$(e){return Math.log(e)}function w$(e){return Math.exp(e)}function C$(e){return-Math.log(-e)}function x$(e){return-Math.exp(-e)}function S$(e){return isFinite(e)?+("1e"+e):e<0?0:e}function k$(e){return(t,n)=>-e(-t,n)}function E$(e){const t=e(b$,w$),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?S$:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=k$(r),o=k$(o),e(C$,x$)):e(b$,w$),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],l=t[t.length-1];const s=l<a;s&&([a,l]=[l,a]);let c,u,d=r(a),f=r(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),a>0){for(;d<=f;++d)for(c=1;c<i;++c)if(u=d<0?c/o(-d):c*o(d),!(u<a)){if(u>l)break;h.push(u)}}else for(;d<=f;++d)for(c=i-1;c>=1;--c)if(u=d>0?c/o(-d):c*o(d),!(u<a)){if(u>l)break;h.push(u)}2*h.length<p&&(h=RI(a,l,p))}else h=RI(d,f,Math.min(f-d,p)).map(o);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=o$(n)).precision||(n.trim=!0),n=u$(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(y$(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function O$(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function D$(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function P$(e){var t=1,n=e(O$(t),D$(t));return n.constant=function(n){return arguments.length?e(O$(t=+n),D$(t)):t},m$(n)}function T$(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function A$(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function M$(e){return e<0?-e*e:e*e}function _$(e){var t=e(ZN,ZN),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(ZN,ZN):.5===n?e(A$,M$):e(T$(n),T$(1/n)):n},m$(t)}function j$(){var e=_$(JN());return e.copy=function(){return XN(e,j$()).exponent(e.exponent())},VI.apply(e,arguments),e}function L$(e){return Math.sign(e)*e*e}c$=h$({thousands:",",grouping:[3],currency:["$",""]}),u$=c$.format,d$=c$.formatPrefix;const R$=new Date,I$=new Date;function N$(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let l;do{a.push(l=new Date(+n)),t(n,i),e(n)}while(l<n&&n<r);return a},o.filter=n=>N$((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(R$.setTime(+t),I$.setTime(+r),e(R$),e(I$),Math.floor(n(R$,I$))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const $$=N$((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));$$.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?N$((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):$$:null),$$.range;const z$=1e3,F$=6e4,B$=36e5,K$=864e5,V$=6048e5,H$=2592e6,U$=31536e6,W$=N$((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*z$)}),((e,t)=>(t-e)/z$),(e=>e.getUTCSeconds()));W$.range;const Z$=N$((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*z$)}),((e,t)=>{e.setTime(+e+t*F$)}),((e,t)=>(t-e)/F$),(e=>e.getMinutes()));Z$.range;const q$=N$((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*F$)}),((e,t)=>(t-e)/F$),(e=>e.getUTCMinutes()));q$.range;const G$=N$((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*z$-e.getMinutes()*F$)}),((e,t)=>{e.setTime(+e+t*B$)}),((e,t)=>(t-e)/B$),(e=>e.getHours()));G$.range;const Y$=N$((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*B$)}),((e,t)=>(t-e)/B$),(e=>e.getUTCHours()));Y$.range;const X$=N$((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*F$)/K$),(e=>e.getDate()-1));X$.range;const J$=N$((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/K$),(e=>e.getUTCDate()-1));J$.range;const Q$=N$((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/K$),(e=>Math.floor(e/K$)));function ez(e){return N$((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*F$)/V$))}Q$.range;const tz=ez(0),nz=ez(1),rz=ez(2),oz=ez(3),iz=ez(4),az=ez(5),lz=ez(6);function sz(e){return N$((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/V$))}tz.range,nz.range,rz.range,oz.range,iz.range,az.range,lz.range;const cz=sz(0),uz=sz(1),dz=sz(2),fz=sz(3),pz=sz(4),hz=sz(5),gz=sz(6);cz.range,uz.range,dz.range,fz.range,pz.range,hz.range,gz.range;const mz=N$((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));mz.range;const vz=N$((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));vz.range;const yz=N$((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));yz.every=e=>isFinite(e=Math.floor(e))&&e>0?N$((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,yz.range;const bz=N$((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function wz(e,t,n,r,o,i){const a=[[W$,1,z$],[W$,5,5e3],[W$,15,15e3],[W$,30,3e4],[i,1,F$],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,B$],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,K$],[r,2,1728e5],[n,1,V$],[t,1,H$],[t,3,7776e6],[e,1,U$]];function l(t,n,r){const o=Math.abs(n-t)/r,i=SI((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(NI(t/U$,n/U$,r));if(0===i)return $$.every(Math.max(NI(t,n,r),1));const[l,s]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}bz.every=e=>isFinite(e=Math.floor(e))&&e>0?N$((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,bz.range;const[Cz,xz]=wz(bz,vz,cz,Q$,Y$,q$),[Sz,kz]=wz(yz,mz,tz,X$,G$,Z$);function Ez(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Oz(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Dz(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var Pz,Tz,Az,Mz={"-":"",_:" ",0:"0"},_z=/^\s*\d+/,jz=/^%/,Lz=/[\\^$*+?|[\]().{}]/g;function Rz(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Iz(e){return e.replace(Lz,"\\$&")}function Nz(e){return new RegExp("^(?:"+e.map(Iz).join("|")+")","i")}function $z(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function zz(e,t,n){var r=_z.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fz(e,t,n){var r=_z.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Bz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Kz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Vz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Hz(e,t,n){var r=_z.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Uz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Wz(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Zz(e,t,n){var r=_z.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function qz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Gz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yz(e,t,n){var r=_z.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Xz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Qz(e,t,n){var r=_z.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function eF(e,t,n){var r=_z.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tF(e,t,n){var r=_z.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nF(e,t,n){var r=jz.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rF(e,t,n){var r=_z.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function oF(e,t,n){var r=_z.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iF(e,t){return Rz(e.getDate(),t,2)}function aF(e,t){return Rz(e.getHours(),t,2)}function lF(e,t){return Rz(e.getHours()%12||12,t,2)}function sF(e,t){return Rz(1+X$.count(yz(e),e),t,3)}function cF(e,t){return Rz(e.getMilliseconds(),t,3)}function uF(e,t){return cF(e,t)+"000"}function dF(e,t){return Rz(e.getMonth()+1,t,2)}function fF(e,t){return Rz(e.getMinutes(),t,2)}function pF(e,t){return Rz(e.getSeconds(),t,2)}function hF(e){var t=e.getDay();return 0===t?7:t}function gF(e,t){return Rz(tz.count(yz(e)-1,e),t,2)}function mF(e){var t=e.getDay();return t>=4||0===t?iz(e):iz.ceil(e)}function vF(e,t){return e=mF(e),Rz(iz.count(yz(e),e)+(4===yz(e).getDay()),t,2)}function yF(e){return e.getDay()}function bF(e,t){return Rz(nz.count(yz(e)-1,e),t,2)}function wF(e,t){return Rz(e.getFullYear()%100,t,2)}function CF(e,t){return Rz((e=mF(e)).getFullYear()%100,t,2)}function xF(e,t){return Rz(e.getFullYear()%1e4,t,4)}function SF(e,t){var n=e.getDay();return Rz((e=n>=4||0===n?iz(e):iz.ceil(e)).getFullYear()%1e4,t,4)}function kF(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rz(t/60|0,"0",2)+Rz(t%60,"0",2)}function EF(e,t){return Rz(e.getUTCDate(),t,2)}function OF(e,t){return Rz(e.getUTCHours(),t,2)}function DF(e,t){return Rz(e.getUTCHours()%12||12,t,2)}function PF(e,t){return Rz(1+J$.count(bz(e),e),t,3)}function TF(e,t){return Rz(e.getUTCMilliseconds(),t,3)}function AF(e,t){return TF(e,t)+"000"}function MF(e,t){return Rz(e.getUTCMonth()+1,t,2)}function _F(e,t){return Rz(e.getUTCMinutes(),t,2)}function jF(e,t){return Rz(e.getUTCSeconds(),t,2)}function LF(e){var t=e.getUTCDay();return 0===t?7:t}function RF(e,t){return Rz(cz.count(bz(e)-1,e),t,2)}function IF(e){var t=e.getUTCDay();return t>=4||0===t?pz(e):pz.ceil(e)}function NF(e,t){return e=IF(e),Rz(pz.count(bz(e),e)+(4===bz(e).getUTCDay()),t,2)}function $F(e){return e.getUTCDay()}function zF(e,t){return Rz(uz.count(bz(e)-1,e),t,2)}function FF(e,t){return Rz(e.getUTCFullYear()%100,t,2)}function BF(e,t){return Rz((e=IF(e)).getUTCFullYear()%100,t,2)}function KF(e,t){return Rz(e.getUTCFullYear()%1e4,t,4)}function VF(e,t){var n=e.getUTCDay();return Rz((e=n>=4||0===n?pz(e):pz.ceil(e)).getUTCFullYear()%1e4,t,4)}function HF(){return"+0000"}function UF(){return"%"}function WF(e){return+e}function ZF(e){return Math.floor(+e/1e3)}function qF(e){return new Date(e)}function GF(e){return e instanceof Date?+e:+new Date(+e)}function YF(e,t,n,r,o,i,a,l,s,c){var u=QN(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),w=c("%Y");function C(e){return(s(e)<e?p:l(e)<e?h:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:y:n(e)<e?b:w)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,GF)):f().map(qF)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?C:c(t)},u.nice=function(e){var n=f();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?f(y$(n,e)):u},u.copy=function(){return XN(u,YF(e,t,n,r,o,i,a,l,s,c))},u}function XF(){var e,t,n,r,o,i=0,a=1,l=ZN,s=!1;function c(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),c):[l(0),l(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(s=!!e,c):s},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=u(KN),c.rangeRound=u(VN),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function JF(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function QF(){var e=_$(XF());return e.copy=function(){return JF(e,QF()).exponent(e.exponent())},HI.apply(e,arguments)}function eB(){var e,t,n,r,o,i,a,l=0,s=.5,c=1,u=1,d=ZN,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?r:o),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,d=HN(e,[n,r,o]),p):[d(0),d(.5),d(1)]}}return p.domain=function(a){return arguments.length?([l,s,c]=a,e=i(l=+l),t=i(s=+s),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p):[l,s,c]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(KN),p.rangeRound=h(VN),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(s),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),u=t<e?-1:1,p}}function tB(){var e=_$(eB());return e.copy=function(){return JF(e,tB()).exponent(e.exponent())},HI.apply(e,arguments)}!function(e){Pz=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,c=Nz(o),u=$z(o),d=Nz(i),f=$z(i),p=Nz(a),h=$z(a),g=Nz(l),m=$z(l),v=Nz(s),y=$z(s),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:iF,e:iF,f:uF,g:CF,G:SF,H:aF,I:lF,j:sF,L:cF,m:dF,M:fF,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:WF,s:ZF,S:pF,u:hF,U:gF,V:vF,w:yF,W:bF,x:null,X:null,y:wF,Y:xF,Z:kF,"%":UF},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:EF,e:EF,f:AF,g:BF,G:VF,H:OF,I:DF,j:PF,L:TF,m:MF,M:_F,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:WF,s:ZF,S:jF,u:LF,U:RF,V:NF,w:$F,W:zF,x:null,X:null,y:FF,Y:KF,Z:HF,"%":UF},C={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Gz,e:Gz,f:tF,g:Uz,G:Hz,H:Xz,I:Xz,j:Yz,L:eF,m:qz,M:Jz,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Zz,Q:rF,s:oF,S:Qz,u:Fz,U:Bz,V:Kz,w:zz,W:Vz,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:Uz,Y:Hz,Z:Wz,"%":nF};function x(e,t){return function(n){var r,o,i,a=[],l=-1,s=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l<c;)37===e.charCodeAt(l)&&(a.push(e.slice(s,l)),null!=(o=Mz[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),s=l+1);return a.push(e.slice(s,l)),a.join("")}}function S(e,t){return function(n){var r,o,i=Dz(1900,void 0,1);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Oz(Dz(i.y,0,1))).getUTCDay(),r=o>4||0===o?uz.ceil(r):uz(r),r=J$.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Ez(Dz(i.y,0,1))).getDay(),r=o>4||0===o?nz.ceil(r):nz(r),r=X$.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Oz(Dz(i.y,0,1)).getUTCDay():Ez(Dz(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Oz(i)):Ez(i)}}function k(e,t,n,r){for(var o,i,a=0,l=t.length,s=n.length;a<l;){if(r>=s)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=C[o in Mz?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}(e),Tz=Pz.format,Pz.parse,Az=Pz.utcFormat,Pz.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});var nB=Object.freeze({__proto__:null,scaleBand:ZI,scaleDiverging:function e(){var t=m$(eB()(ZN));return t.copy=function(){return JF(t,e())},HI.apply(t,arguments)},scaleDivergingLog:function e(){var t=E$(eB()).domain([.1,1,10]);return t.copy=function(){return JF(t,e()).base(t.base())},HI.apply(t,arguments)},scaleDivergingPow:tB,scaleDivergingSqrt:function(){return tB.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=P$(eB());return t.copy=function(){return JF(t,e()).constant(t.constant())},HI.apply(t,arguments)},scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,UN),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,UN):[0,1],m$(r)},scaleImplicit:UI,scaleLinear:v$,scaleLog:function e(){const t=E$(JN()).domain([1,10]);return t.copy=()=>XN(t,e()).base(t.base()),VI.apply(t,arguments),t},scaleOrdinal:WI,scalePoint:GI,scalePow:j$,scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=KI(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[OI(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(CI),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},VI.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[OI(i,e,0,o)]:t}function s(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return l}return l.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},l.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,s()):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([n,r]).range(a).unknown(t)},VI.apply(m$(l),arguments)},scaleRadial:function e(){var t,n=QN(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(L$(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,UN)).map(L$)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},VI.apply(i,arguments),m$(i)},scaleSequential:function e(){var t=m$(XF()(ZN));return t.copy=function(){return JF(t,e())},HI.apply(t,arguments)},scaleSequentialLog:function e(){var t=E$(XF()).domain([1,10]);return t.copy=function(){return JF(t,e()).base(t.base())},HI.apply(t,arguments)},scaleSequentialPow:QF,scaleSequentialQuantile:function e(){var t=[],n=ZN;function r(e){if(null!=e&&!isNaN(e=+e))return n((OI(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(CI),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if((r=(e=Float64Array.from(function*(e,t){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return zI(e);if(t>=1)return $I(e);var r,o=(r-1)*t,i=Math.floor(o),a=$I(FI(e,i).subarray(0,i+1));return a+(zI(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},HI.apply(r,arguments)},scaleSequentialSqrt:function(){return QF.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=P$(XF());return t.copy=function(){return JF(t,e()).constant(t.constant())},HI.apply(t,arguments)},scaleSqrt:function(){return j$.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=P$(JN());return t.copy=function(){return XN(t,e()).constant(t.constant())},VI.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[OI(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},VI.apply(i,arguments)},scaleTime:function(){return VI.apply(YF(Sz,kz,yz,mz,tz,X$,G$,Z$,W$,Tz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return VI.apply(YF(Cz,xz,bz,vz,cz,J$,Y$,q$,W$,Az).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:g$}),rB=JS;var oB=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===l?a==a&&!rB(a):n(a,l)))var l=a,s=i}return s};var iB=function(e,t){return e>t},aB=oB,lB=iB,sB=w_;var cB=function(e){return e&&e.length?aB(e,sB,lB):void 0},uB=ai(cB);var dB=function(e,t){return e<t},fB=oB,pB=dB,hB=w_;var gB=function(e){return e&&e.length?fB(e,hB,pB):void 0},mB=ai(gB),vB=RE,yB=j_,bB=jj,wB=_S;var CB=kj,xB=function(e,t){return(wB(e)?vB:bB)(e,yB(t))};var SB=ai((function(e,t){return CB(xB(e,t),1)})),kB=BM;var EB,OB=ai((function(e,t){return kB(e,t)})),DB=1e9,PB=!0,TB="[DecimalError] ",AB=TB+"Invalid argument: ",MB=TB+"Exponent out of range: ",_B=Math.floor,jB=Math.pow,LB=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,RB=1e7,IB=7,NB=9007199254740991,$B=_B(NB/IB),zB={};function FB(e,t){var n,r,o,i,a,l,s,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),PB?YB(t,d):t;if(s=e.d,c=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,l=c.length):(r=c,o=a,l=s.length),i>(l=(a=Math.ceil(d/IB))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=s.length)-(i=c.length)<0&&(i=l,r=c,c=s,s=r),n=0;i;)n=(s[--i]=s[i]+c[i]+n)/RB|0,s[i]%=RB;for(n&&(s.unshift(n),++o),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=o,PB?YB(t,d):t}function BB(e,t,n){if(e!==~~e||e<t||e>n)throw Error(AB+e)}function KB(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=IB-r.length)&&(i+=ZB(n)),i+=r;a=e[t],(n=IB-(r=a+"").length)&&(i+=ZB(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}zB.absoluteValue=zB.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},zB.comparedTo=zB.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},zB.decimalPlaces=zB.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*IB;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},zB.dividedBy=zB.div=function(e){return VB(this,new this.constructor(e))},zB.dividedToIntegerBy=zB.idiv=function(e){var t=this.constructor;return YB(VB(this,new t(e),0,1),t.precision)},zB.equals=zB.eq=function(e){return!this.cmp(e)},zB.exponent=function(){return UB(this)},zB.greaterThan=zB.gt=function(e){return this.cmp(e)>0},zB.greaterThanOrEqualTo=zB.gte=function(e){return this.cmp(e)>=0},zB.isInteger=zB.isint=function(){return this.e>this.d.length-2},zB.isNegative=zB.isneg=function(){return this.s<0},zB.isPositive=zB.ispos=function(){return this.s>0},zB.isZero=function(){return 0===this.s},zB.lessThan=zB.lt=function(e){return this.cmp(e)<0},zB.lessThanOrEqualTo=zB.lte=function(e){return this.cmp(e)<1},zB.logarithm=zB.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(EB))throw Error(TB+"NaN");if(n.s<1)throw Error(TB+(n.s?"NaN":"-Infinity"));return n.eq(EB)?new r(0):(PB=!1,t=VB(qB(n,i),qB(e,i),i),PB=!0,YB(t,o))},zB.minus=zB.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XB(t,e):FB(t,(e.s=-e.s,e))},zB.modulo=zB.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(TB+"NaN");return n.s?(PB=!1,t=VB(n,e,0,1).times(e),PB=!0,n.minus(t)):YB(new r(n),o)},zB.naturalExponential=zB.exp=function(){return HB(this)},zB.naturalLogarithm=zB.ln=function(){return qB(this)},zB.negated=zB.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},zB.plus=zB.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?FB(t,e):XB(t,(e.s=-e.s,e))},zB.precision=zB.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(AB+e);if(t=UB(o)+1,n=(r=o.d.length-1)*IB+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},zB.squareRoot=zB.sqrt=function(){var e,t,n,r,o,i,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(TB+"NaN")}for(e=UB(l),PB=!1,0==(o=Math.sqrt(+l))||o==1/0?(((t=KB(l.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=_B((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(VB(l,i,a+2)).times(.5),KB(i.d).slice(0,a)===(t=KB(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(YB(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if("9999"!=t)break;a+=4}return PB=!0,YB(r,n)},zB.times=zB.mul=function(e){var t,n,r,o,i,a,l,s,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,(s=f.length)<(c=p.length)&&(i=f,f=p,p=i,a=s,s=c,c=a),i=[],r=a=s+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=s+r;o>r;)l=i[o]+p[r]*f[o-r-1]+t,i[o--]=l%RB|0,t=l/RB|0;i[o]=(i[o]+t)%RB|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,PB?YB(e,d.precision):e},zB.toDecimalPlaces=zB.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(BB(e,0,DB),void 0===t?t=r.rounding:BB(t,0,8),YB(n,e+UB(n)+1,t))},zB.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=JB(r,!0):(BB(e,0,DB),void 0===t?t=o.rounding:BB(t,0,8),n=JB(r=YB(new o(r),e+1,t),!0,e+1)),n},zB.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?JB(o):(BB(e,0,DB),void 0===t?t=i.rounding:BB(t,0,8),n=JB((r=YB(new i(o),e+UB(o)+1,t)).abs(),!1,e+UB(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},zB.toInteger=zB.toint=function(){var e=this,t=e.constructor;return YB(new t(e),UB(e)+1,t.rounding)},zB.toNumber=function(){return+this},zB.toPower=zB.pow=function(e){var t,n,r,o,i,a,l=this,s=l.constructor,c=+(e=new s(e));if(!e.s)return new s(EB);if(!(l=new s(l)).s){if(e.s<1)throw Error(TB+"Infinity");return l}if(l.eq(EB))return l;if(r=s.precision,e.eq(EB))return YB(l,r);if(a=(t=e.e)>=(n=e.d.length-1),i=l.s,a){if((n=c<0?-c:c)<=NB){for(o=new s(EB),t=Math.ceil(r/IB+4),PB=!1;n%2&&QB((o=o.times(l)).d,t),0!==(n=_B(n/2));)QB((l=l.times(l)).d,t);return PB=!0,e.s<0?new s(EB).div(o):YB(o,r)}}else if(i<0)throw Error(TB+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,PB=!1,o=e.times(qB(l,r+12)),PB=!0,(o=HB(o)).s=i,o},zB.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=JB(o,(n=UB(o))<=i.toExpNeg||n>=i.toExpPos):(BB(e,1,DB),void 0===t?t=i.rounding:BB(t,0,8),r=JB(o=YB(new i(o),e,t),e<=(n=UB(o))||n<=i.toExpNeg,e)),r},zB.toSignificantDigits=zB.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(BB(e,1,DB),void 0===t?t=n.rounding:BB(t,0,8)),YB(new n(this),e,t)},zB.toString=zB.valueOf=zB.val=zB.toJSON=zB[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=UB(e),n=e.constructor;return JB(e,t<=n.toExpNeg||t>=n.toExpPos)};var VB=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%RB|0,r=n/RB|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*RB+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var l,s,c,u,d,f,p,h,g,m,v,y,b,w,C,x,S,k,E=r.constructor,O=r.s==o.s?1:-1,D=r.d,P=o.d;if(!r.s)return new E(r);if(!o.s)throw Error(TB+"Division by zero");for(s=r.e-o.e,S=P.length,C=D.length,h=(p=new E(O)).d=[],c=0;P[c]==(D[c]||0);)++c;if(P[c]>(D[c]||0)&&--s,(y=null==i?i=E.precision:a?i+(UB(r)-UB(o))+1:i)<0)return new E(0);if(y=y/IB+2|0,c=0,1==S)for(u=0,P=P[0],y++;(c<C||u)&&y--;c++)b=u*RB+(D[c]||0),h[c]=b/P|0,u=b%P|0;else{for((u=RB/(P[0]+1)|0)>1&&(P=e(P,u),D=e(D,u),S=P.length,C=D.length),w=S,m=(g=D.slice(0,S)).length;m<S;)g[m++]=0;(k=P.slice()).unshift(0),x=P[0],P[1]>=RB/2&&++x;do{u=0,(l=t(P,g,S,m))<0?(v=g[0],S!=m&&(v=v*RB+(g[1]||0)),(u=v/x|0)>1?(u>=RB&&(u=RB-1),1==(l=t(d=e(P,u),g,f=d.length,m=g.length))&&(u--,n(d,S<f?k:P,f))):(0==u&&(l=u=1),d=P.slice()),(f=d.length)<m&&d.unshift(0),n(g,d,m),-1==l&&(l=t(P,g,S,m=g.length))<1&&(u++,n(g,S<m?k:P,m)),m=g.length):0===l&&(u++,g=[0]),h[c++]=u,l&&g[0]?g[m++]=D[w]||0:(g=[D[w]],m=1)}while((w++<C||void 0!==g[0])&&y--)}return h[0]||h.shift(),p.e=s,YB(p,a?i+UB(p)+1:i)}}();function HB(e,t){var n,r,o,i,a,l=0,s=0,c=e.constructor,u=c.precision;if(UB(e)>16)throw Error(MB+UB(e));if(!e.s)return new c(EB);for(null==t?(PB=!1,a=u):a=t,i=new c(.03125);e.abs().gte(.1);)e=e.times(i),s+=5;for(a+=Math.log(jB(2,s))/Math.LN10*2+5|0,n=r=o=new c(EB),c.precision=a;;){if(r=YB(r.times(e),a),n=n.times(++l),KB((i=o.plus(VB(r,n,a))).d).slice(0,a)===KB(o.d).slice(0,a)){for(;s--;)o=YB(o.times(o),a);return c.precision=u,null==t?(PB=!0,YB(o,u)):o}o=i}}function UB(e){for(var t=e.e*IB,n=e.d[0];n>=10;n/=10)t++;return t}function WB(e,t,n){if(t>e.LN10.sd())throw PB=!0,n&&(e.precision=n),Error(TB+"LN10 precision limit exceeded");return YB(new e(e.LN10),t)}function ZB(e){for(var t="";e--;)t+="0";return t}function qB(e,t){var n,r,o,i,a,l,s,c,u,d=1,f=e,p=f.d,h=f.constructor,g=h.precision;if(f.s<1)throw Error(TB+(f.s?"NaN":"-Infinity"));if(f.eq(EB))return new h(0);if(null==t?(PB=!1,c=g):c=t,f.eq(10))return null==t&&(PB=!0),WB(h,c);if(c+=10,h.precision=c,r=(n=KB(p)).charAt(0),i=UB(f),!(Math.abs(i)<15e14))return s=WB(h,c+2,g).times(i+""),f=qB(new h(r+"."+n.slice(1)),c-10).plus(s),h.precision=g,null==t?(PB=!0,YB(f,g)):f;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=KB((f=f.times(e)).d)).charAt(0),d++;for(i=UB(f),r>1?(f=new h("0."+n),i++):f=new h(r+"."+n.slice(1)),l=a=f=VB(f.minus(EB),f.plus(EB),c),u=YB(f.times(f),c),o=3;;){if(a=YB(a.times(u),c),KB((s=l.plus(VB(a,new h(o),c))).d).slice(0,c)===KB(l.d).slice(0,c))return l=l.times(2),0!==i&&(l=l.plus(WB(h,c+2,g).times(i+""))),l=VB(l,new h(d),c),h.precision=g,null==t?(PB=!0,YB(l,g)):l;l=s,o+=2}}function GB(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=_B(n/IB),e.d=[],r=(n+1)%IB,n<0&&(r+=IB),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=IB;r<o;)e.d.push(+t.slice(r,r+=IB));t=t.slice(r),r=IB-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),PB&&(e.e>$B||e.e<-$B))throw Error(MB+n)}else e.s=0,e.e=0,e.d=[0];return e}function YB(e,t,n){var r,o,i,a,l,s,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=IB,o=t,c=d[u=0];else{if((u=Math.ceil((r+1)/IB))>=(i=d.length))return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;o=(r%=IB)-IB+a}if(void 0!==n&&(l=c/(i=jB(10,a-o-1))%10|0,s=t<0||void 0!==d[u+1]||c%i,s=n<4?(l||s)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||s||6==n&&(r>0?o>0?c/jB(10,a-o):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return s?(i=UB(e),d.length=1,t=t-i-1,d[0]=jB(10,(IB-t%IB)%IB),e.e=_B(-t/IB)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(0==r?(d.length=u,i=1,u--):(d.length=u+1,i=jB(10,IB-r),d[u]=o>0?(c/jB(10,a-o)%jB(10,o)|0)*i:0),s)for(;;){if(0==u){(d[0]+=i)==RB&&(d[0]=1,++e.e);break}if(d[u]+=i,d[u]!=RB)break;d[u--]=0,i=1}for(r=d.length;0===d[--r];)d.pop();if(PB&&(e.e>$B||e.e<-$B))throw Error(MB+UB(e));return e}function XB(e,t){var n,r,o,i,a,l,s,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),PB?YB(t,p):t;if(s=e.d,d=t.d,r=t.e,c=e.e,s=s.slice(),a=c-r){for((u=a<0)?(n=s,a=-a,l=d.length):(n=d,r=c,l=s.length),a>(o=Math.max(Math.ceil(p/IB),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((u=(o=s.length)<(l=d.length))&&(l=o),o=0;o<l;o++)if(s[o]!=d[o]){u=s[o]<d[o];break}a=0}for(u&&(n=s,s=d,d=n,t.s=-t.s),l=s.length,o=d.length-l;o>0;--o)s[l++]=0;for(o=d.length;o>a;){if(s[--o]<d[o]){for(i=o;i&&0===s[--i];)s[i]=RB-1;--s[i],s[o]+=RB}s[o]-=d[o]}for(;0===s[--l];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,PB?YB(t,p):t):new f(0)}function JB(e,t,n){var r,o=UB(e),i=KB(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+ZB(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+ZB(-o-1)+i,n&&(r=n-a)>0&&(i+=ZB(r))):o>=a?(i+=ZB(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+ZB(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=ZB(r))),e.s<0?"-"+i:i}function QB(e,t){if(e.length>t)return e.length=t,!0}function eK(e){if(!e||"object"!=typeof e)throw Error(TB+"Object expected");var t,n,r,o=["precision",1,DB,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(_B(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(AB+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(AB+n+": "+r);this[n]=new this(r)}return this}var tK=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(AB+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):GB(t,e.toString())}if("string"!=typeof e)throw Error(AB+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!LB.test(e))throw Error(AB+e);GB(t,e)}if(i.prototype=zB,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=eK,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});EB=new tK(1);var nK=tK;function rK(e){return function(e){if(Array.isArray(e))return oK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oK(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var iK=function(e){return e},aK={"@@functional/placeholder":!0},lK=function(e){return e===aK},sK=function(e){return function t(){return 0===arguments.length||1===arguments.length&&lK(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},cK=function e(t,n){return 1===t?n:sK((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==aK})).length;return a>=t?n.apply(void 0,o):e(t-a,sK((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return lK(e)?t.shift():e}));return n.apply(void 0,rK(i).concat(t))})))}))},uK=function(e){return cK(e.length,e)},dK=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},fK=uK((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),pK=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return iK;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},hK=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},gK=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var mK=uK((function(e,t,n){var r=+e;return r+n*(+t-r)})),vK=uK((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),yK=uK((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),bK={rangeStep:function(e,t,n){for(var r=new nK(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new nK(e).abs().log(10).toNumber())+1},interpolateNumber:mK,uninterpolateNumber:vK,uninterpolateTruncation:yK};function wK(e){return function(e){if(Array.isArray(e))return SK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xK(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||xK(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xK(e,t){if(e){if("string"==typeof e)return SK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?SK(e,t):void 0}}function SK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kK(e){var t=CK(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function EK(e,t,n){if(e.lte(0))return new nK(0);var r=bK.getDigitCount(e.toNumber()),o=new nK(10).pow(r),i=e.div(o),a=1!==r?.05:.1,l=new nK(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?l:new nK(Math.ceil(l))}function OK(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new nK(0),tickMin:new nK(0),tickMax:new nK(0)};var i,a=EK(new nK(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new nK(0):(i=new nK(e).add(t).div(2)).sub(new nK(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),s=Math.ceil(new nK(t).sub(i).div(a).toNumber()),c=l+s+1;return c>n?OK(e,t,n,r,o+1):(c<n&&(s=t>0?s+(n-c):s,l=t>0?l:l+(n-c)),{step:a,tickMin:i.sub(new nK(l).mul(a)),tickMax:i.add(new nK(s).mul(a))})}var DK=gK((function(e){var t=CK(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=CK(kK([n,r]),2),s=l[0],c=l[1];if(s===-1/0||c===1/0){var u=c===1/0?[s].concat(wK(dK(0,o-1).map((function(){return 1/0})))):[].concat(wK(dK(0,o-1).map((function(){return-1/0}))),[c]);return n>r?hK(u):u}if(s===c)return function(e,t,n){var r=1,o=new nK(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new nK(10).pow(bK.getDigitCount(e)-1),o=new nK(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new nK(Math.floor(e)))}else 0===e?o=new nK(Math.floor((t-1)/2)):n||(o=new nK(Math.floor(e)));var a=Math.floor((t-1)/2),l=pK(fK((function(e){return o.add(new nK(e-a).mul(r)).toNumber()})),dK);return l(0,t)}(s,o,i);var d=OK(s,c,a,i),f=d.step,p=d.tickMin,h=d.tickMax,g=bK.rangeStep(p,h.add(new nK(.1).mul(f)),f);return n>r?hK(g):g})),PK=gK((function(e,t){var n=CK(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=CK(kK([r,o]),2),l=a[0],s=a[1];if(l===-1/0||s===1/0)return[r,o];if(l===s)return[l];var c=Math.max(t,2),u=EK(new nK(s).sub(l).div(c-1),i,0),d=[].concat(wK(bK.rangeStep(new nK(l),new nK(s).sub(new nK(.99).mul(u)),u)),[s]);return r>o?hK(d):d})),TK="production"===process.env.NODE_ENV,AK="Invariant failed";function MK(e,t){if(TK)throw new Error(AK);var n="function"==typeof t?t():t,r=n?"".concat(AK,": ").concat(n):AK;throw new Error(r)}var _K=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function jK(){return jK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jK.apply(this,arguments)}function LK(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RK(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function RK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IK(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function NK(e){var t=e.offset,n=e.layout,r=e.width,i=e.dataKey,a=e.data,l=e.dataPointFormatter,s=e.xAxis,c=e.yAxis,u=IK(e,_K),d=XO(u,!1);"x"===e.direction&&"number"!==s.type&&("production"!==process.env.NODE_ENV?MK(0,'ErrorBar requires Axis type property to be "number".'):MK());var f=a.map((function(e){var a=l(e,i),u=a.x,f=a.y,p=a.value,h=a.errorVal;if(!h)return null;var g,m,v=[];if(Array.isArray(h)){var y=LK(h,2);g=y[0],m=y[1]}else g=m=h;if("vertical"===n){var b=s.scale,w=f+t,C=w+r,x=w-r,S=b(p-g),k=b(p+m);v.push({x1:k,y1:C,x2:k,y2:x}),v.push({x1:S,y1:w,x2:k,y2:w}),v.push({x1:S,y1:C,x2:S,y2:x})}else if("horizontal"===n){var E=c.scale,O=u+t,D=O-r,P=O+r,T=E(p-g),A=E(p+m);v.push({x1:D,y1:A,x2:P,y2:A}),v.push({x1:O,y1:T,x2:O,y2:A}),v.push({x1:D,y1:T,x2:P,y2:T})}return o.createElement(sD,jK({className:"recharts-errorBar",key:"bar-".concat(v.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},d),v.map((function(e){return o.createElement("line",jK({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return o.createElement(sD,{className:"recharts-errorBars"},f)}function $K(e){return $K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$K(e)}function zK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zK(Object(n),!0).forEach((function(t){BK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=$K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=$K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$K(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}NK.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},NK.displayName="ErrorBar";var KK=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=qO(n,yj);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:XK(t),value:o||r,payload:t.props}})),FK(FK(FK({},a.props),yj.getWithHeight(a,o)),{},{payload:t,item:a})):null};function VK(e){return VK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VK(e)}function HK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HK(Object(n),!0).forEach((function(t){WK(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HK(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WK(e,t,n){return t=function(e){var t=function(e,t){if("object"!=VK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=VK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==VK(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZK(e){return function(e){if(Array.isArray(e))return qK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qK(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GK(e,t,n){return rO(e)||rO(t)?n:SO(t)?nO(e,t,n):uk(t)?t(e):n}function YK(e,t,n,r){var o=SB(e,(function(e){return GK(e,t)}));if("number"===n){var i=o.filter((function(e){return xO(e)||parseFloat(e)}));return i.length?[mB(i),uB(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!rO(e)})):o).map((function(e){return SO(e)||e instanceof Date?e:""}))}var XK=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},JK=function(e,t,n,r,o){var i=ZO(t.props.children,NK).filter((function(e){return function(e,t,n){return!!rO(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=GK(t,n);if(rO(r))return e;var o=Array.isArray(r)?[mB(r),uB(r)]:[r,r],i=a.reduce((function(e,n){var r=GK(t,n,0),i=o[0]-Math.abs(Array.isArray(r)?r[0]:r),a=o[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},QK=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&JK(e,t,i,r)||YK(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},eV=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},tV=function(e,t,n,r){if(r)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===n&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(n),a},nV=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,l="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/l:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*wO(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!bO(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:o?o[e]:e,index:t,offset:s}}))},rV=new WeakMap,oV=function(e,t){if("function"!=typeof t)return e;rV.has(e)||rV.set(e,new WeakMap);var n=rV.get(e);if(n.has(t))return n.get(t);var r=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return n.set(t,r),r},iV=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:ZI(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:v$(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:GI(),realScaleType:"point"}:"category"===o?{scale:ZI(),realScaleType:"band"}:{scale:v$(),realScaleType:"linear"};if(sO(r)){var l="scale".concat(zD(r));return{scale:(nB[l]||GI)(),realScaleType:nB[l]?l:"point"}}return uk(r)?{scale:r}:{scale:GI(),realScaleType:"point"}},aV=1e-4,lV=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-aV,i=Math.max(r[0],r[1])+aV,a=e(t[0]),l=e(t[n-1]);(a<o||a>i||l<o||l>i)&&e.domain([t[0],t[n-1]])}},sV={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var l=bO(e[a][n][1])?e[a][n][0]:e[a][n][1];l>=0?(e[a][n][0]=o,e[a][n][1]=o+l,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+l,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}FP(e,t)}},none:FP,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}FP(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,s=0,c=0;l<o;++l){for(var u=e[t[l]],d=u[a][1]||0,f=(d-(u[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[a][1]||0)-(h[a-1][1]||0)}s+=d,c+=f*d}n[a-1][1]+=n[a-1][0]=i,s&&(i-=c/s)}n[a-1][1]+=n[a-1][0]=i,FP(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0;i<t;++i){var a=bO(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},cV=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=sV[n],i=function(){var e=FD([]),t=BP,n=FP,r=KP;function o(o){var i,a,l=Array.from(e.apply(this,arguments),VP),s=l.length,c=-1;for(const e of o)for(i=0,++c;i<s;++i)(l[i][c]=[0,+r(e,l[i].key,c,o)]).data=e;for(i=0,a=QD(t(l));i<s;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:FD(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:FD(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?BP:"function"==typeof e?e:FD(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?FP:e,o):n},o}().keys(r).value((function(e,t){return+GK(e,t,0)})).order(BP).offset(o);return i(e)},uV=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,l=n||t.scale;if("auto"!==l&&"linear"!==l)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var s=e.domain();if(!s.length)return null;var c=DK(s,o,a);return e.domain([mB(c),uB(c)]),{niceTicks:c}}if(o&&"number"===r){var u=e.domain();return{niceTicks:PK(u,o,a)}}return null};function dV(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!rO(o[t.dataKey])){var l=TO(n,"value",o[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var s=GK(o,rO(a)?t.dataKey:a);return rO(s)?null:t.scale(s)}var fV=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var l=GK(i,t.dataKey,t.domain[a]);return rO(l)?null:t.scale(l)-o/2+r},pV=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[mB(t.concat([e[0]]).filter(xO)),uB(t.concat([e[1]]).filter(xO))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},hV=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gV=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mV=function(e,t,n){if(uk(e))return e(t,n);if(!Array.isArray(e))return t;var r=[];if(xO(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(hV.test(e[0])){var o=+hV.exec(e[0])[1];r[0]=t[0]-o}else uk(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(xO(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(gV.test(e[1])){var i=+gV.exec(e[1])[1];r[1]=t[1]+i}else uk(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},vV=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=bL(t,(function(e){return e.coordinate})),i=1/0,a=1,l=o.length;a<l;a++){var s=o[a],c=o[a-1];i=Math.min((s.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},yV=function(e,t,n){return e&&e.length?OB(e,nO(n,"type.defaultProps.domain"))?t:e:t},bV=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,l=n.tooltipType,s=n.chartType,c=n.hide;return UK(UK({},XO(e,!1)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:XK(e),value:GK(t,r),type:l,payload:t,chartType:s,hide:c})};function wV(e){return wV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wV(e)}function CV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CV(Object(n),!0).forEach((function(t){SV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=wV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=wV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return EV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EV(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var OV=Math.PI/180,DV=function(e){return 180*e/Math.PI},PV=function(e,t,n,r){return{x:e+Math.cos(-OV*r)*n,y:t+Math.sin(-OV*r)*n}},TV=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},AV=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var l=(n-o)/a,s=Math.acos(l);return r>i&&(s=2*Math.PI-s),{radius:a,angle:DV(s),angleInRadian:s}},MV=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},_V=function(e,t){var n=e.x,r=e.y,o=AV({x:n,y:r},t),i=o.radius,a=o.angle,l=t.innerRadius,s=t.outerRadius;if(i<l||i>s)return!1;if(0===i)return!0;var c,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),d=u.startAngle,f=u.endAngle,p=a;if(d<=f){for(;p>f;)p-=360;for(;p<d;)p+=360;c=p>=d&&p<=f}else{for(;p>d;)p-=360;for(;p<f;)p+=360;c=p>=f&&p<=d}return c?xV(xV({},t),{},{radius:i,angle:MV(p,t)}):null},jV=function(e){return m(e)||uk(e)||"boolean"==typeof e?"":e.className};function LV(e){return LV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LV(e)}var RV=["offset"];function IV(e){return function(e){if(Array.isArray(e))return NV(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return NV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NV(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NV(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $V(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zV(Object(n),!0).forEach((function(t){BV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BV(e,t,n){return t=function(e){var t=function(e,t){if("object"!=LV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=LV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==LV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KV(){return KV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KV.apply(this,arguments)}var VV=function(e){var t=e.value,n=e.formatter,r=rO(e.children)?t:e.children;return uk(n)?n(r):r},HV=function(e,t,n){var r,i,a=e.position,l=e.viewBox,s=e.offset,c=e.className,u=l,d=u.cx,f=u.cy,p=u.innerRadius,h=u.outerRadius,g=u.startAngle,m=u.endAngle,v=u.clockWise,y=(p+h)/2,b=function(e,t){return wO(t-e)*Math.min(Math.abs(t-e),360)}(g,m),w=b>=0?1:-1;"insideStart"===a?(r=g+w*s,i=v):"insideEnd"===a?(r=m-w*s,i=!v):"end"===a&&(r=m+w*s,i=v),i=b<=0?i:!i;var C=PV(d,f,y,r),x=PV(d,f,y,r+359*(i?1:-1)),S="M".concat(C.x,",").concat(C.y,"\n A").concat(y,",").concat(y,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),k=rO(e.id)?EO("recharts-radial-line-"):e.id;return o.createElement("text",KV({},n,{dominantBaseline:"central",className:oo("recharts-radial-bar-label",c)}),o.createElement("defs",null,o.createElement("path",{id:k,d:S})),o.createElement("textPath",{xlinkHref:"#".concat(k)},t))},UV=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,l=o.innerRadius,s=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var u=PV(i,a,s+n,c),d=u.x;return{x:d,y:u.y,textAnchor:d>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=PV(i,a,(l+s)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},WV=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,l=i.y,s=i.width,c=i.height,u=c>=0?1:-1,d=u*r,f=u>0?"end":"start",p=u>0?"start":"end",h=s>=0?1:-1,g=h*r,m=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return FV(FV({},{x:a+s/2,y:l-u*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(l-n.y,0),width:s}:{});if("bottom"===o)return FV(FV({},{x:a+s/2,y:l+c+d,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(l+c),0),width:s}:{});if("left"===o){var y={x:a-g,y:l+c/2,textAnchor:m,verticalAnchor:"middle"};return FV(FV({},y),n?{width:Math.max(y.x-n.x,0),height:c}:{})}if("right"===o){var b={x:a+s+g,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return FV(FV({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var w=n?{width:s,height:c}:{};return"insideLeft"===o?FV({x:a+g,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?FV({x:a+s-g,y:l+c/2,textAnchor:m,verticalAnchor:"middle"},w):"insideTop"===o?FV({x:a+s/2,y:l+d,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?FV({x:a+s/2,y:l+c-d,textAnchor:"middle",verticalAnchor:f},w):"insideTopLeft"===o?FV({x:a+g,y:l+d,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?FV({x:a+s-g,y:l+d,textAnchor:m,verticalAnchor:p},w):"insideBottomLeft"===o?FV({x:a+g,y:l+c-d,textAnchor:v,verticalAnchor:f},w):"insideBottomRight"===o?FV({x:a+s-g,y:l+c-d,textAnchor:m,verticalAnchor:f},w):ik(o)&&(xO(o.x)||CO(o.x))&&(xO(o.y)||CO(o.y))?FV({x:a+OO(o.x,s),y:l+OO(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):FV({x:a+s/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)},ZV=function(e){return"cx"in e&&xO(e.cx)};function qV(e){var t,n=e.offset,r=FV({offset:void 0===n?5:n},$V(e,RV)),i=r.viewBox,a=r.position,l=r.value,s=r.children,u=r.content,d=r.className,f=void 0===d?"":d,p=r.textBreakAll;if(!i||rO(l)&&rO(s)&&!m(u)&&!uk(u))return null;if(m(u))return c(u,r);if(uk(u)){if(m(t=y(u,r)))return t}else t=VV(r);var h=ZV(i),g=XO(r,!0);if(h&&("insideStart"===a||"insideEnd"===a||"end"===a))return HV(r,t,g);var v=h?UV(r):WV(r);return o.createElement(wI,KV({className:oo("recharts-label",f)},g,v,{breakAll:p}),t)}qV.displayName="Label";var GV=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,s=e.innerRadius,c=e.outerRadius,u=e.x,d=e.y,f=e.top,p=e.left,h=e.width,g=e.height,m=e.clockWise,v=e.labelViewBox;if(v)return v;if(xO(h)&&xO(g)){if(xO(u)&&xO(d))return{x:u,y:d,width:h,height:g};if(xO(f)&&xO(p))return{x:f,y:p,width:h,height:g}}return xO(u)&&xO(d)?{x:u,y:d,width:0,height:0}:xO(t)&&xO(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:s||0,outerRadius:c||l||a||0,clockWise:m}:e.viewBox?e.viewBox:{}};qV.parseViewBox=GV,qV.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=GV(e),a=ZO(r,qV).map((function(e,n){return c(e,{viewBox:t||i,key:"label-".concat(n)})}));if(!n)return a;var l=function(e,t){return e?!0===e?o.createElement(qV,{key:"label-implicit",viewBox:t}):SO(e)?o.createElement(qV,{key:"label-implicit",viewBox:t,value:e}):m(e)?e.type===qV?c(e,{key:"label-implicit",viewBox:t}):o.createElement(qV,{key:"label-implicit",content:e,viewBox:t}):uk(e)?o.createElement(qV,{key:"label-implicit",content:e,viewBox:t}):ik(e)?o.createElement(qV,KV({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||i);return[l].concat(IV(a))};var YV=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},XV=ai(YV);function JV(e){return JV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},JV(e)}var QV=["valueAccessor"],eH=["data","dataKey","clockWise","id","textBreakAll"];function tH(e){return function(e){if(Array.isArray(e))return nH(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nH(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rH(){return rH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rH.apply(this,arguments)}function oH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oH(Object(n),!0).forEach((function(t){aH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aH(e,t,n){return t=function(e){var t=function(e,t){if("object"!=JV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=JV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JV(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lH(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var sH=function(e){return Array.isArray(e.value)?XV(e.value):e.value};function cH(e){var t=e.valueAccessor,n=void 0===t?sH:t,r=lH(e,QV),i=r.data,a=r.dataKey,l=r.clockWise,s=r.id,c=r.textBreakAll,u=lH(r,eH);return i&&i.length?o.createElement(sD,{className:"recharts-label-list"},i.map((function(e,t){var r=rO(a)?n(e,t):GK(e&&e.payload,a),i=rO(s)?{}:{id:"".concat(s,"-").concat(t)};return o.createElement(qV,rH({},XO(e,!0),u,i,{parentViewBox:e.parentViewBox,value:r,textBreakAll:c,viewBox:qV.parseViewBox(rO(l)?e:iH(iH({},e),{},{clockWise:l})),key:"label-".concat(t),index:t}))}))):null}function uH(e){return uH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uH(e)}function dH(){return dH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dH.apply(this,arguments)}function fH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fH(Object(n),!0).forEach((function(t){hH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hH(e,t,n){return t=function(e){var t=function(e,t){if("object"!=uH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=uH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uH(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cH.displayName="LabelList",cH.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=ZO(e.children,cH).map((function(e,n){return c(e,{data:t,key:"labelList-".concat(n)})}));return n?[function(e,t){return e?!0===e?o.createElement(cH,{key:"labelList-implicit",data:t}):o.isValidElement(e)||uk(e)?o.createElement(cH,{key:"labelList-implicit",data:t,content:e}):ik(e)?o.createElement(cH,rH({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(tH(r)):r};var gH=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,l=e.cornerRadius,s=e.cornerIsExternal,c=l*(a?1:-1)+r,u=Math.asin(l/c)/OV,d=s?o:o+i*u,f=s?o-i*u:o;return{center:PV(t,n,c,d),circleTangency:PV(t,n,r,d),lineTangency:PV(t,n,c*Math.cos(u*OV),f),theta:u}},mH=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return wO(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),l=i+a,s=PV(t,n,o,i),c=PV(t,n,o,l),u="M ".concat(s.x,",").concat(s.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>l),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var d=PV(t,n,r,i),f=PV(t,n,r,l);u+="L ".concat(f.x,",").concat(f.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=l),",\n ").concat(d.x,",").concat(d.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},vH={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yH=function(e){var t=pH(pH({},vH),e),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,l=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=t.className;if(a<i||u===d)return null;var p,h=oo("recharts-sector",f),g=a-i,m=OO(l,g,0,!0);return p=m>0&&Math.abs(u-d)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,c=e.endAngle,u=wO(c-s),d=gH({cx:t,cy:n,radius:o,angle:s,sign:u,cornerRadius:i,cornerIsExternal:l}),f=d.circleTangency,p=d.lineTangency,h=d.theta,g=gH({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:l}),m=g.circleTangency,v=g.lineTangency,y=g.theta,b=l?Math.abs(s-c):Math.abs(s-c)-h-y;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):mH({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(f.x,",").concat(f.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var C=gH({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),x=C.circleTangency,S=C.lineTangency,k=C.theta,E=gH({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),O=E.circleTangency,D=E.lineTangency,P=E.theta,T=l?Math.abs(s-c):Math.abs(s-c)-k-P;if(T<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(D.x,",").concat(D.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(u>0),",").concat(x.x,",").concat(x.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(u<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,g/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):mH({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:d}),o.createElement("path",dH({},XO(t,!0),{className:h,d:p,role:"img"}))};function bH(e){return bH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bH(e)}function wH(){return wH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wH.apply(this,arguments)}function CH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CH(Object(n),!0).forEach((function(t){SH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SH(e,t,n){return t=function(e){var t=function(e,t){if("object"!=bH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=bH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==bH(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kH={curveBasisClosed:function(e){return new DP(e)},curveBasisOpen:function(e){return new PP(e)},curveBasis:function(e){return new OP(e)},curveBumpX:function(e){return new aP(e,!0)},curveBumpY:function(e){return new aP(e,!1)},curveLinearClosed:function(e){return new TP(e)},curveLinear:tP,curveMonotoneX:function(e){return new LP(e)},curveMonotoneY:function(e){return new RP(e)},curveNatural:function(e){return new NP(e)},curveStep:function(e){return new zP(e,.5)},curveStepAfter:function(e){return new zP(e,1)},curveStepBefore:function(e){return new zP(e,0)}},EH=function(e){return e.x===+e.x&&e.y===+e.y},OH=function(e){return e.x},DH=function(e){return e.y},PH=function(e){var t,n=e.type,r=void 0===n?"linear":n,o=e.points,i=void 0===o?[]:o,a=e.baseLine,l=e.layout,s=e.connectNulls,c=void 0!==s&&s,u=function(e,t){if(uk(e))return e;var n="curve".concat(zD(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?kH[n]||tP:kH["".concat(n).concat("vertical"===t?"Y":"X")]}(r,l),d=c?i.filter((function(e){return EH(e)})):i;if(Array.isArray(a)){var f=c?a.filter((function(e){return EH(e)})):a,p=d.map((function(e,t){return xH(xH({},e),{},{base:f[t]})}));return(t="vertical"===l?iP().y(DH).x1(OH).x0((function(e){return e.base.x})):iP().x(OH).y1(DH).y0((function(e){return e.base.y}))).defined(EH).curve(u),t(p)}return(t="vertical"===l&&xO(a)?iP().y(DH).x1(OH).x0(a):xO(a)?iP().x(OH).y1(DH).y0(a):oP().x(OH).y(DH)).defined(EH).curve(u),t(d)},TH=function(e){var t=e.className,n=e.points,r=e.path,i=e.pathRef;if(!(n&&n.length||r))return null;var a=n&&n.length?PH(e):r;return o.createElement("path",wH({},XO(e,!1),IO(e),{className:oo("recharts-curve",t),d:a,ref:i}))},AH={exports:{}},MH=Object.getOwnPropertySymbols,_H=Object.prototype.hasOwnProperty,jH=Object.prototype.propertyIsEnumerable;var LH,RH,IH,NH,$H,zH,FH,BH,KH,VH,HH=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))_H.call(n,a)&&(o[a]=n[a]);if(MH){r=MH(n);for(var l=0;l<r.length;l++)jH.call(n,r[l])&&(o[r[l]]=n[r[l]])}}return o};function UH(){if(RH)return LH;RH=1;return LH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function WH(){return NH?IH:(NH=1,IH=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var ZH=pO;AH.exports=function(){if(BH)return FH;BH=1;var e=pO,t=HH,n=UH(),r=WH(),o=function(){if(zH)return $H;zH=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=UH(),n={},r=WH();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,l,s){if("production"!==process.env.NODE_ENV)for(var c in o)if(r(o,c)){var u;try{if("function"!=typeof o[c]){var d=Error((l||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[c](i,c,l,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((l||"React class")+": type specification of "+a+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var f=s?s():"";e("Failed "+a+" type: "+u.message+(null!=f?f:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},$H=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),FH=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",f={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(a),arrayOf:function(e){return g((function(t,r,o,i,a){if("function"!=typeof e)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new h("Invalid "+i+" `"+a+"` of type `"+b(l)+"` supplied to `"+o+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,o,i,a+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:g((function(e,t,n,r,o){var i=e[t];return l(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:g((function(e,t,n,r,o){return y(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,o,i,a,l){if("function"!=typeof e)return new h("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[o],c=b(s);if("object"!==c)return new h("Invalid "+a+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(r(s,u)){var d=e(s,u,i,a,l+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===w(t)?String(t):t}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+C(o)+" at index "+t+"."),a}return g((function(t,o,i,a,l){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,o,i,a,l,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&s.push(u.data.expectedType)}return new h("Invalid "+a+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,o,i,a){var l=t[r],s=b(l);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return v(o,i,a,c,w(u));var d=u(l,c,o,i,a+"."+c,n);if(d)return d}return null}))},exact:function(e){return g((function(o,i,a,l,s){var c=o[i],u=b(c);if("object"!==u)return new h("Invalid "+l+" `"+s+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var f in d){var p=e[f];if(r(e,f)&&"function"!=typeof p)return v(a,l,s,f,w(p));if(!p)return new h("Invalid "+l+" `"+s+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=p(c,f,a,l,s+"."+f,n);if(g)return g}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,c,u,f,p){if(c=c||d,f=f||l,p!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=c+":"+l;!t[m]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[m]=!0,r++)}}return null==a[l]?o?null===a[l]?new h("The "+u+" `"+f+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+u+" `"+f+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(a,l,c,u,f)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return g((function(t,n,r,o,i,a){var l=t[n];return b(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+w(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function w(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function C(e){var t=w(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},FH}()(ZH.isElement,!0)}else AH.exports=function(){if(VH)return KH;VH=1;var e=UH();function t(){}function n(){}return n.resetWarningCache=t,KH=function(){function r(t,n,r,o,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},KH}()();var qH=ai(AH.exports),GH=Object.getOwnPropertyNames,YH=Object.getOwnPropertySymbols,XH=Object.prototype.hasOwnProperty;function JH(e,t){return function(n,r,o){return e(n,r,o)&&t(n,r,o)}}function QH(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);var o=r.cache,i=o.get(t),a=o.get(n);if(i&&a)return i===n&&a===t;o.set(t,n),o.set(n,t);var l=e(t,n,r);return o.delete(t),o.delete(n),l}}function eU(e){return GH(e).concat(YH(e))}var tU=Object.hasOwn||function(e,t){return XH.call(e,t)};function nU(e,t){return e||t?e===t:e===t||e!=e&&t!=t}var rU="_owner",oU=Object.getOwnPropertyDescriptor,iU=Object.keys;function aU(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function lU(e,t){return nU(e.getTime(),t.getTime())}function sU(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.entries(),l=0;(r=a.next())&&!r.done;){for(var s=t.entries(),c=!1,u=0;(o=s.next())&&!o.done;){var d=r.value,f=d[0],p=d[1],h=o.value,g=h[0],m=h[1];c||i[u]||!(c=n.equals(f,g,l,u,e,t,n)&&n.equals(p,m,f,g,e,t,n))||(i[u]=!0),u++}if(!c)return!1;l++}return!0}function cU(e,t,n){var r,o=iU(e),i=o.length;if(iU(t).length!==i)return!1;for(;i-- >0;){if((r=o[i])===rU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!tU(t,r)||!n.equals(e[r],t[r],r,r,e,t,n))return!1}return!0}function uU(e,t,n){var r,o,i,a=eU(e),l=a.length;if(eU(t).length!==l)return!1;for(;l-- >0;){if((r=a[l])===rU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof)return!1;if(!tU(t,r))return!1;if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;if(o=oU(e,r),i=oU(t,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function dU(e,t){return nU(e.valueOf(),t.valueOf())}function fU(e,t){return e.source===t.source&&e.flags===t.flags}function pU(e,t,n){if(e.size!==t.size)return!1;for(var r,o,i={},a=e.values();(r=a.next())&&!r.done;){for(var l=t.values(),s=!1,c=0;(o=l.next())&&!o.done;)s||i[c]||!(s=n.equals(r.value,o.value,r.value,o.value,e,t,n))||(i[c]=!0),c++;if(!s)return!1}return!0}function hU(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var gU="[object Arguments]",mU="[object Boolean]",vU="[object Date]",yU="[object Map]",bU="[object Number]",wU="[object Object]",CU="[object RegExp]",xU="[object Set]",SU="[object String]",kU=Array.isArray,EU="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,OU=Object.assign,DU=Object.prototype.toString.call.bind(Object.prototype.toString);var PU=TU();function TU(e){void 0===e&&(e={});var t=e.circular,n=void 0!==t&&t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=void 0!==i&&i,l=function(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?uU:aU,areDatesEqual:lU,areMapsEqual:r?JH(sU,uU):sU,areObjectsEqual:r?uU:cU,arePrimitiveWrappersEqual:dU,areRegExpsEqual:fU,areSetsEqual:r?JH(pU,uU):pU,areTypedArraysEqual:r?uU:hU};if(n&&(o=OU({},o,n(o))),t){var i=QH(o.areArraysEqual),a=QH(o.areMapsEqual),l=QH(o.areObjectsEqual),s=QH(o.areSetsEqual);o=OU({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:s})}return o}(e),s=function(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(e,c,u){if(e===c)return!0;if(null==e||null==c||"object"!=typeof e||"object"!=typeof c)return e!=e&&c!=c;var d=e.constructor;if(d!==c.constructor)return!1;if(d===Object)return o(e,c,u);if(kU(e))return t(e,c,u);if(null!=EU&&EU(e))return s(e,c,u);if(d===Date)return n(e,c,u);if(d===RegExp)return a(e,c,u);if(d===Map)return r(e,c,u);if(d===Set)return l(e,c,u);var f=DU(e);return f===vU?n(e,c,u):f===CU?a(e,c,u):f===yU?r(e,c,u):f===xU?l(e,c,u):f===wU?"function"!=typeof e.then&&"function"!=typeof c.then&&o(e,c,u):f===gU?o(e,c,u):(f===mU||f===bU||f===SU)&&i(e,c,u)}}(l),c=r?r(s):function(e){return function(t,n,r,o,i,a,l){return e(t,n,l)}}(s);return function(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(e,a){var l=r(),s=l.cache,c=void 0===s?t?new WeakMap:void 0:s,u=l.meta;return n(e,a,{cache:c,equals:o,meta:u,strict:i})};if(t)return function(e,t){return n(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return n(e,t,a)}}({circular:n,comparator:s,createState:o,equals:c,strict:a})}function AU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)}))}function MU(e){return MU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},MU(e)}function _U(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return jU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jU(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LU(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=_U(r),i=o[0],a=o.slice(1);return"number"==typeof i?void AU(n.bind(null,a),i):(n(i),void AU(n.bind(null,a)))}"object"===MU(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function RU(e){return RU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RU(e)}function IU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IU(Object(n),!0).forEach((function(t){$U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RU(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RU(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RU(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TU({strict:!0}),TU({circular:!0}),TU({circular:!0,strict:!0}),TU({createInternalComparator:function(){return nU}}),TU({strict:!0,createInternalComparator:function(){return nU}}),TU({circular:!0,createInternalComparator:function(){return nU}}),TU({circular:!0,createInternalComparator:function(){return nU},strict:!0});var zU=function(e){return e},FU=function(e,t){return Object.keys(t).reduce((function(n,r){return NU(NU({},n),{},$U({},r,e(r,t[r])))}),{})},BU=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")},KU="production"!==process.env.NODE_ENV,VU=function(e,t,n,r,o,i,a,l){if(KU&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,l],c=0;console.warn(t.replace(/%s/g,(function(){return s[c++]})))}};function HU(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||WU(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UU(e){return function(e){if(Array.isArray(e))return ZU(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||WU(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WU(e,t){if(e){if("string"==typeof e)return ZU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZU(e,t):void 0}}function ZU(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qU=1e-4,GU=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},YU=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},XU=function(e,t){return function(n){var r=GU(e,t);return YU(r,n)}},JU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var l=t[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var s=l[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),c=HU(s,4);r=c[0],o=c[1],i=c[2],a=c[3]}else VU(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",t)}VU([r,i,o,a].every((function(e){return"number"==typeof e&&e>=0&&e<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,d,f=XU(r,i),p=XU(o,a),h=(u=r,d=i,function(e){var t=GU(u,d),n=[].concat(UU(t.map((function(e,t){return e*t})).slice(1)),[0]);return YU(n,e)}),g=function(e){for(var t,n=e>1?1:e,r=n,o=0;o<8;++o){var i=f(r)-n,a=h(r);if(Math.abs(i-n)<qU||a<qU)return p(r);r=(t=r-i/a)>1?1:t<0?0:t}return p(r)};return g.isStepper=!1,g},QU=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return JU(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,l=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,l=r*a/1e3+e;return Math.abs(l-t)<qU&&Math.abs(i)<qU?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l}();default:if("cubic-bezier"===r.split("(")[0])return JU(r);VU(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",t)}return"function"==typeof r?r:(VU(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function eW(e){return eW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eW(e)}function tW(e){return function(e){if(Array.isArray(e))return lW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||aW(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nW(Object(n),!0).forEach((function(t){oW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oW(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==eW(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eW(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||aW(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aW(e,t){if(e){if("string"==typeof e)return lW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lW(e,t):void 0}}function lW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sW=function(e,t,n){return e+(t-e)*n},cW=function(e){return e.from!==e.to},uW=function e(t,n,r){var o=FU((function(e,n){if(cW(n)){var r=iW(t(n.from,n.to,n.velocity),2),o=r[0],i=r[1];return rW(rW({},n),{},{from:o,velocity:i})}return n}),n);return r<1?FU((function(e,t){return cW(t)?rW(rW({},t),{},{velocity:sW(t.velocity,o[e].velocity,r),from:sW(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)},dW=function(e,t,n,r,o){var i,a,l,s,c=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),u=c.reduce((function(n,r){return rW(rW({},n),{},oW({},r,[e[r],t[r]]))}),{}),d=c.reduce((function(n,r){return rW(rW({},n),{},oW({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),f=-1,p=function(){return null};return p=n.isStepper?function(r){l||(l=r);var i=(r-l)/n.dt;d=uW(n,d,i),o(rW(rW(rW({},e),t),FU((function(e,t){return t.from}),d))),l=r,Object.values(d).filter(cW).length&&(f=requestAnimationFrame(p))}:function(i){s||(s=i);var a=(i-s)/r,l=FU((function(e,t){return sW.apply(void 0,tW(t).concat([n(a)]))}),u);if(o(rW(rW(rW({},e),t),l)),a<1)f=requestAnimationFrame(p);else{var c=FU((function(e,t){return sW.apply(void 0,tW(t).concat([n(1)]))}),u);o(rW(rW(rW({},e),t),c))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}};function fW(e){return fW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fW(e)}var pW=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gW(e){return function(e){if(Array.isArray(e))return mW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return mW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mW(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vW(Object(n),!0).forEach((function(t){bW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bW(e,t,n){return(t=CW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wW(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CW(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CW(e){var t=function(e,t){if("object"!==fW(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fW(t)?t:String(t)}function xW(e,t){return xW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xW(e,t)}function SW(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=OW(e);if(t){var o=OW(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kW(this,n)}}function kW(e,t){if(t&&("object"===fW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return EW(e)}function EW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OW(e){return OW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OW(e)}var DW=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xW(e,t)}(n,v);var t=SW(n);function n(e,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=(o=t.call(this,e,r)).props,a=i.isActive,l=i.attributeName,s=i.from,c=i.to,u=i.steps,d=i.children,f=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(EW(o)),o.changeStyle=o.changeStyle.bind(EW(o)),!a||f<=0)return o.state={style:{}},"function"==typeof d&&(o.state={style:c}),kW(o);if(u&&u.length)o.state={style:u[0].style};else if(s){if("function"==typeof d)return o.state={style:s},kW(o);o.state={style:l?bW({},l,s):s}}else o.state={style:{}};return o}return wW(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,l=t.from,s=this.state.style;if(r)if(n){if(!(PU(e.to,a)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||i?l:e.to;if(this.state&&s){var d={style:o?bW({},o,u):u};(o&&s[o]!==u||!o&&s!==u)&&this.setState(d)}this.runAnimation(yW(yW({},this.props),{},{from:u,begin:0}))}}else{var f={style:o?bW({},o,a):a};this.state&&s&&(o&&s[o]!==a||!o&&s!==a)&&this.setState(f)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,l=e.onAnimationEnd,s=e.onAnimationStart,c=dW(n,r,QU(i),o,this.changeStyle);this.manager.start([s,a,function(){t.stopJSAnimation=c()},o,l])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,l=i.duration,s=void 0===l?0:l;return this.manager.start([o].concat(gW(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,l=void 0===a?"ease":a,s=r.style,c=r.properties,u=r.onAnimationEnd,d=o>0?n[o-1]:r,f=c||Object.keys(s);if("function"==typeof l||"spring"===l)return[].concat(gW(e),[t.runJSAnimation.bind(t,{from:d.style,to:s,duration:i,easing:l}),i]);var p=BU(f,i,l),h=yW(yW(yW({},d.style),s),{},{transition:p});return[].concat(gW(e),[h,i,u]).filter(zU)}),[a,Math.max(s,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=LU());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,s=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(s.length>1)this.runStepAnimation(e);else{var d=r?bW({},r,o):o,f=BU(Object.keys(d),n,i);u.start([a,t,yW(yW({},d),{},{transition:f}),n,l])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,t=e.children;e.begin;var n=e.duration;e.attributeName,e.easing;var r=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var i=hW(e,pW),a=u.count(t),l=this.state.style;if("function"==typeof t)return t(l);if(!r||0===a||n<=0)return t;var s=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,o=t.className;return c(e,yW(yW({},i),{},{style:yW(yW({},r),l),className:o}))};return 1===a?s(u.only(t)):o.createElement("div",null,u.map(t,(function(e){return s(e)})))}}]),n}();function PW(e){return PW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PW(e)}function TW(){return TW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TW.apply(this,arguments)}function AW(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MW(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_W(Object(n),!0).forEach((function(t){LW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LW(e,t,n){return t=function(e){var t=function(e,t){if("object"!=PW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PW(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}DW.displayName="Animate",DW.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},DW.propTypes={from:qH.oneOfType([qH.object,qH.string]),to:qH.oneOfType([qH.object,qH.string]),attributeName:qH.string,duration:qH.number,begin:qH.number,easing:qH.oneOfType([qH.string,qH.func]),steps:qH.arrayOf(qH.shape({duration:qH.number.isRequired,style:qH.object.isRequired,easing:qH.oneOfType([qH.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qH.func]),properties:qH.arrayOf("string"),onAnimationEnd:qH.func})),children:qH.oneOfType([qH.node,qH.func]),isActive:qH.bool,canBegin:qH.bool,onAnimationEnd:qH.func,shouldReAnimate:qH.bool,onAnimationStart:qH.func,onAnimationReStart:qH.func},qH.object,qH.object,qH.object,qH.element,qH.object,qH.object,qH.object,qH.oneOfType([qH.array,qH.element]),qH.any;var RW=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),l=r>=0?1:-1,s=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=o[d]>a?a:o[d];i="M".concat(e,",").concat(t+l*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+s*u[0],",").concat(t)),i+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+l*u[1])),i+="L ".concat(e+n,",").concat(t+r-l*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-s*u[2],",").concat(t+r)),i+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-l*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var f=Math.min(a,o);i="M ".concat(e,",").concat(t+l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+s*f,",").concat(t,"\n L ").concat(e+n-s*f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+n,",").concat(t+l*f,"\n L ").concat(e+n,",").concat(t+r-l*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e+n-s*f,",").concat(t+r,"\n L ").concat(e+s*f,",").concat(t+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(e,",").concat(t+r-l*f," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},IW=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var s=Math.min(o,o+a),c=Math.max(o,o+a),u=Math.min(i,i+l),d=Math.max(i,i+l);return n>=s&&n<=c&&r>=u&&r<=d}return!1},NW={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$W=function(e){var t=jW(jW({},NW),e),n=a(),r=AW(l(-1),2),s=r[0],c=r[1];i((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&c(e)}catch(e){}}),[]);var u=t.x,d=t.y,f=t.width,p=t.height,h=t.radius,g=t.className,m=t.animationEasing,v=t.animationDuration,y=t.animationBegin,b=t.isAnimationActive,w=t.isUpdateAnimationActive;if(u!==+u||d!==+d||f!==+f||p!==+p||0===f||0===p)return null;var C=oo("recharts-rectangle",g);return w?o.createElement(DW,{canBegin:s>0,from:{width:f,height:p,x:u,y:d},to:{width:f,height:p,x:u,y:d},duration:v,animationEasing:m,isActive:w},(function(e){var r=e.width,i=e.height,a=e.x,l=e.y;return o.createElement(DW,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:b,easing:m},o.createElement("path",TW({},XO(t,!0),{className:C,d:RW(a,l,r,i,h),ref:n})))})):o.createElement("path",TW({},XO(t,!0),{className:C,d:RW(u,d,f,p,h)}))},zW=["points","className","baseLinePoints","connectNulls"];function FW(){return FW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FW.apply(this,arguments)}function BW(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function KW(e){return function(e){if(Array.isArray(e))return VW(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return VW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VW(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var HW=function(e){return e&&e.x===+e.x&&e.y===+e.y},UW=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){HW(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),HW(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(KW(e),KW(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},WW=function(e){var t=e.points,n=e.className,r=e.baseLinePoints,i=e.connectNulls,a=BW(e,zW);if(!t||!t.length)return null;var l=oo("recharts-polygon",n);if(r&&r.length){var s=a.stroke&&"none"!==a.stroke,c=function(e,t,n){var r=UW(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(UW(t.reverse(),n).slice(1))}(t,r,i);return o.createElement("g",{className:l},o.createElement("path",FW({},XO(a,!0),{fill:"Z"===c.slice(-1)?a.fill:"none",stroke:"none",d:c})),s?o.createElement("path",FW({},XO(a,!0),{fill:"none",d:UW(t,i)})):null,s?o.createElement("path",FW({},XO(a,!0),{fill:"none",d:UW(r,i)})):null)}var u=UW(t,i);return o.createElement("path",FW({},XO(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:l,d:u}))};function ZW(){return ZW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZW.apply(this,arguments)}var qW=function(e){var t=e.cx,n=e.cy,r=e.r,i=oo("recharts-dot",e.className);return t===+t&&n===+n&&r===+r?o.createElement("circle",ZW({},XO(e,!1),IO(e),{className:i,cx:t,cy:n,r:r})):null};function GW(e){return GW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},GW(e)}var YW=["x","y","top","left","width","height","className"];function XW(){return XW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XW.apply(this,arguments)}function JW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QW(e,t,n){return t=function(e){var t=function(e,t){if("object"!=GW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=GW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==GW(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tZ=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},nZ=function(e){var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,a=e.top,l=void 0===a?0:a,s=e.left,c=void 0===s?0:s,u=e.width,d=void 0===u?0:u,f=e.height,p=void 0===f?0:f,h=e.className,g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JW(Object(n),!0).forEach((function(t){QW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({x:n,y:i,top:l,left:c,width:d,height:p},eZ(e,YW));return xO(n)&&xO(i)&&xO(d)&&xO(p)&&xO(l)&&xO(c)?o.createElement("path",XW({},XO(g,!0),{className:oo("recharts-cross",h),d:tZ(n,i,d,p,l,c)})):null},rZ=oB,oZ=iB,iZ=j_;var aZ=function(e,t){return e&&e.length?rZ(e,iZ(t),oZ):void 0},lZ=ai(aZ),sZ=oB,cZ=j_,uZ=dB;var dZ=function(e,t){return e&&e.length?sZ(e,cZ(t),uZ):void 0},fZ=ai(dZ),pZ=["cx","cy","angle","ticks","axisLine"],hZ=["ticks","tick","angle","tickFormatter","stroke"];function gZ(e){return gZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gZ(e)}function mZ(){return mZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mZ.apply(this,arguments)}function vZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vZ(Object(n),!0).forEach((function(t){EZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bZ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OZ(r.key),r)}}function CZ(e,t,n){return t=SZ(t),function(e,t){if(t&&("object"===gZ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,xZ()?Reflect.construct(t,n||[],SZ(e).constructor):t.apply(e,n))}function xZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xZ=function(){return!!e})()}function SZ(e){return SZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SZ(e)}function kZ(e,t){return kZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kZ(e,t)}function EZ(e,t,n){return(t=OZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OZ(e){var t=function(e,t){if("object"!=gZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=gZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gZ(t)?t:String(t)}var DZ=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),CZ(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kZ(e,t)}(t,v),n=t,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return PV(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=lZ(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:fZ(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,a=e.axisLine,l=bZ(e,pZ),s=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),c=PV(t,n,s[0],r),u=PV(t,n,s[1],r),d=yZ(yZ(yZ({},XO(l,!1)),{},{fill:"none"},XO(a,!1)),{},{x1:c.x,y1:c.y,x2:u.x,y2:u.y});return o.createElement("line",mZ({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.angle,l=n.tickFormatter,s=n.stroke,c=bZ(n,hZ),u=this.getTickTextAnchor(),d=XO(c,!1),f=XO(i,!1),p=r.map((function(n,r){var c=e.getTickValueCoord(n),p=yZ(yZ(yZ(yZ({textAnchor:u,transform:"rotate(".concat(90-a,", ").concat(c.x,", ").concat(c.y,")")},d),{},{stroke:"none",fill:s},f),{},{index:r},c),{},{payload:n});return o.createElement(sD,mZ({className:oo("recharts-polar-radius-axis-tick",jV(i)),key:"tick-".concat(n.coordinate)},NO(e.props,n,r)),t.renderTickItem(i,p,l?l(n.value,r):n.value))}));return o.createElement(sD,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?o.createElement(sD,{className:oo("recharts-polar-radius-axis",this.props.className)},n&&this.renderAxisLine(),r&&this.renderTicks(),qV.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):uk(e)?e(t):o.createElement(wI,mZ({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&wZ(n.prototype,r),i&&wZ(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function PZ(e){return PZ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PZ(e)}function TZ(){return TZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TZ.apply(this,arguments)}function AZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AZ(Object(n),!0).forEach((function(t){NZ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AZ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$Z(r.key),r)}}function jZ(e,t,n){return t=RZ(t),function(e,t){if(t&&("object"===PZ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,LZ()?Reflect.construct(t,n||[],RZ(e).constructor):t.apply(e,n))}function LZ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(LZ=function(){return!!e})()}function RZ(e){return RZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RZ(e)}function IZ(e,t){return IZ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},IZ(e,t)}function NZ(e,t,n){return(t=$Z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Z(e){var t=function(e,t){if("object"!=PZ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PZ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PZ(t)?t:String(t)}EZ(DZ,"displayName","PolarRadiusAxis"),EZ(DZ,"axisType","radiusAxis"),EZ(DZ,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var zZ=Math.PI/180,FZ=1e-5,BZ=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jZ(this,t,arguments)}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IZ(e,t)}(t,v),n=t,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,l=PV(n,r,o,e.coordinate),s=PV(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:l.x,y1:l.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*zZ);return n>FZ?"outer"===t?"start":"end":n<-FZ?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,a=e.axisLineType,l=MZ(MZ({},XO(this.props,!1)),{},{fill:"none"},XO(i,!1));if("circle"===a)return o.createElement(qW,TZ({className:"recharts-polar-angle-axis-line"},l,{cx:t,cy:n,r:r}));var s=this.props.ticks.map((function(e){return PV(t,n,r,e.coordinate)}));return o.createElement(WW,TZ({className:"recharts-polar-angle-axis-line"},l,{points:s}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,i=n.tick,a=n.tickLine,l=n.tickFormatter,s=n.stroke,c=XO(this.props,!1),u=XO(i,!1),d=MZ(MZ({},c),{},{fill:"none"},XO(a,!1)),f=r.map((function(n,r){var f=e.getTickLineCoord(n),p=MZ(MZ(MZ({textAnchor:e.getTickTextAnchor(n)},c),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:f.x2,y:f.y2});return o.createElement(sD,TZ({className:oo("recharts-polar-angle-axis-tick",jV(i)),key:"tick-".concat(n.coordinate)},NO(e.props,n,r)),a&&o.createElement("line",TZ({className:"recharts-polar-angle-axis-tick-line"},d,f)),i&&t.renderTickItem(i,p,l?l(n.value,r):n.value))}));return o.createElement(sD,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:o.createElement(sD,{className:oo("recharts-polar-angle-axis",this.props.className)},r&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):uk(e)?e(t):o.createElement(wI,TZ({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&_Z(n.prototype,r),i&&_Z(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();NZ(BZ,"displayName","PolarAngleAxis"),NZ(BZ,"axisType","angleAxis"),NZ(BZ,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var KZ=zA(Object.getPrototypeOf,Object),VZ=qS,HZ=KZ,UZ=GS,WZ=Function.prototype,ZZ=Object.prototype,qZ=WZ.toString,GZ=ZZ.hasOwnProperty,YZ=qZ.call(Object);var XZ=ai((function(e){if(!UZ(e)||"[object Object]"!=VZ(e))return!1;var t=HZ(e);if(null===t)return!0;var n=GZ.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qZ.call(n)==YZ})),JZ=qS,QZ=GS;var eq=ai((function(e){return!0===e||!1===e||QZ(e)&&"[object Boolean]"==JZ(e)}));function tq(e){return tq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tq(e)}function nq(){return nq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nq.apply(this,arguments)}function rq(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oq(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oq(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iq(Object(n),!0).forEach((function(t){lq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lq(e,t,n){return t=function(e){var t=function(e,t){if("object"!=tq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tq(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sq,cq=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},uq={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dq=function(e){var t=aq(aq({},uq),e),n=a(),r=rq(l(-1),2),s=r[0],c=r[1];i((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&c(e)}catch(e){}}),[]);var u=t.x,d=t.y,f=t.upperWidth,p=t.lowerWidth,h=t.height,g=t.className,m=t.animationEasing,v=t.animationDuration,y=t.animationBegin,b=t.isUpdateAnimationActive;if(u!==+u||d!==+d||f!==+f||p!==+p||h!==+h||0===f&&0===p||0===h)return null;var w=oo("recharts-trapezoid",g);return b?o.createElement(DW,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:d},to:{upperWidth:f,lowerWidth:p,height:h,x:u,y:d},duration:v,animationEasing:m,isActive:b},(function(e){var r=e.upperWidth,i=e.lowerWidth,a=e.height,l=e.x,c=e.y;return o.createElement(DW,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:m},o.createElement("path",nq({},XO(t,!0),{className:w,d:cq(l,c,r,i,a),ref:n})))})):o.createElement("g",null,o.createElement("path",nq({},XO(t,!0),{className:w,d:cq(u,d,f,p,h)})))},fq=["option","shapeType","propTransformer","activeClassName","isActive"];function pq(e){return pq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pq(e)}function hq(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gq(Object(n),!0).forEach((function(t){vq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vq(e,t,n){return t=function(e){var t=function(e,t){if("object"!=pq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pq(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yq(e,t){return mq(mq({},t),e)}function bq(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return o.createElement($W,n);case"trapezoid":return o.createElement(dq,n);case"sector":return o.createElement(yH,n);case"symbols":if(function(e,t){return"symbols"===e}(t))return o.createElement(QP,n);break;default:return null}}function wq(e){var t,n=e.option,r=e.shapeType,i=e.propTransformer,a=void 0===i?yq:i,l=e.activeClassName,s=void 0===l?"recharts-active-shape":l,u=e.isActive,d=hq(e,fq);if(m(n))t=c(n,mq(mq({},d),function(e){return m(e)?e.props:e}(n)));else if(uk(n))t=n(d);else if(XZ(n)&&!eq(n)){var f=a(n,d);t=o.createElement(bq,{shapeType:r,elementProps:f})}else{var p=d;t=o.createElement(bq,{shapeType:r,elementProps:p})}return u?o.createElement(sD,{className:s},t):t}function Cq(e,t){return null!=t&&"trapezoids"in e.props}function xq(e,t){return null!=t&&"sectors"in e.props}function Sq(e,t){return null!=t&&"points"in e.props}function kq(e,t){var n,r,o=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return o&&i}function Eq(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Oq(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function Dq(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=function(e,t){var n;return Cq(e,t)?n="trapezoids":xq(e,t)?n="sectors":Sq(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return Cq(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:xq(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:Sq(e,t)?t.payload:{}}(n,t),a=r.filter((function(e,r){var a=OB(i,e),l=n.props[o].filter((function(e){var r=function(e,t){var n;return Cq(e,t)?n=kq:xq(e,t)?n=Eq:Sq(e,t)&&(n=Oq),n}(n,t);return r(e,t)})),s=n.props[o].indexOf(l[l.length-1]);return a&&r===s}));return r.indexOf(a[a.length-1])}function Pq(e){return Pq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pq(e)}function Tq(){return Tq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tq.apply(this,arguments)}function Aq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aq(Object(n),!0).forEach((function(t){$q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zq(r.key),r)}}function jq(e,t,n){return t=Rq(t),function(e,t){if(t&&("object"===Pq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Iq(e)}(e,Lq()?Reflect.construct(t,n||[],Rq(e).constructor):t.apply(e,n))}function Lq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lq=function(){return!!e})()}function Rq(e){return Rq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rq(e)}function Iq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nq(e,t){return Nq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nq(e,t)}function $q(e,t,n){return(t=zq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zq(e){var t=function(e,t){if("object"!=Pq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pq(t)?t:String(t)}var Fq=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$q(Iq(n=jq(this,t,[e])),"pieRef",null),$q(Iq(n),"sectorRefs",[]),$q(Iq(n),"id",EO("recharts-pie-")),$q(Iq(n),"handleAnimationEnd",(function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),uk(e)&&e()})),$q(Iq(n),"handleAnimationStart",(function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),uk(e)&&e()})),n.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nq(e,t)}(t,v),n=t,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,a=n.dataKey,l=n.valueKey,s=XO(this.props,!1),c=XO(r,!1),u=XO(i,!1),d=r&&r.offsetRadius||20,f=e.map((function(e,n){var f=(e.startAngle+e.endAngle)/2,p=PV(e.cx,e.cy,e.outerRadius+d,f),h=Mq(Mq(Mq(Mq({},s),e),{},{stroke:"none"},c),{},{index:n,textAnchor:t.getTextAnchor(p.x,e.cx)},p),g=Mq(Mq(Mq(Mq({},s),e),{},{fill:"none",stroke:e.fill},u),{},{index:n,points:[PV(e.cx,e.cy,e.outerRadius,f),p],key:"line"}),m=a;return rO(a)&&rO(l)?m="value":rO(a)&&(m=l),o.createElement(sD,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(n)},i&&t.renderLabelLineItem(i,g),t.renderLabelItem(r,h,GK(e,m)))}));return o.createElement(sD,{className:"recharts-pie-labels"},f)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,i=n.blendStroke,a=n.inactiveShape;return e.map((function(n,l){if(0===(null==n?void 0:n.startAngle)&&0===(null==n?void 0:n.endAngle)&&1!==e.length)return null;var s=t.isActiveIndex(l),c=a&&t.hasActiveIndex()?a:null,u=s?r:c,d=Mq(Mq({},n),{},{stroke:i?n.fill:n.stroke,tabIndex:-1});return o.createElement(sD,Tq({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},NO(t.props,n,l),{key:"sector-".concat(null==n?void 0:n.startAngle,"-").concat(null==n?void 0:n.endAngle,"-").concat(n.midAngle,"-").concat(l)}),o.createElement(wq,Tq({option:u,isActive:s,shapeType:"sector"},d)))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,l=t.animationEasing,s=t.animationId,c=this.state,u=c.prevSectors,d=c.prevIsAnimationActive;return o.createElement(DW,{begin:i,duration:a,isActive:r,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,i=[],a=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=u&&u[t],o=t>0?nO(e,"paddingAngle",0):0;if(n){var l=PO(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=Mq(Mq({},e),{},{startAngle:a+o,endAngle:a+l(r)+o});i.push(s),a=s.endAngle}else{var c=e.endAngle,d=e.startAngle,f=PO(0,c-d)(r),p=Mq(Mq({},e),{},{startAngle:a+o,endAngle:a+f+o});i.push(p),a=p.endAngle}})),o.createElement(sD,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&OB(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hide,r=t.sectors,i=t.className,a=t.label,l=t.cx,s=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.isAnimationActive,f=this.state.isAnimationFinished;if(n||!r||!r.length||!xO(l)||!xO(s)||!xO(c)||!xO(u))return null;var p=oo("recharts-pie",i);return o.createElement(sD,{tabIndex:this.props.rootTabIndex,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(r),qV.renderCallByParent(this.props,null,!1),(!d||f)&&cH.renderCallByParent(this.props,r,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){if(o.isValidElement(e))return o.cloneElement(e,t);if(uk(e))return e(t);var n=oo("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return o.createElement(TH,Tq({},t,{type:"linear",className:n}))}},{key:"renderLabelItem",value:function(e,t,n){if(o.isValidElement(e))return o.cloneElement(e,t);var r=n;if(uk(e)&&(r=e(t),o.isValidElement(r)))return r;var i=oo("recharts-pie-label-text","boolean"==typeof e||uk(e)?"":e.className);return o.createElement(wI,Tq({},t,{alignmentBaseline:"middle",className:i}),r)}}],r&&_q(n.prototype,r),i&&_q(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();sq=Fq,$q(Fq,"displayName","Pie"),$q(Fq,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ZL.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),$q(Fq,"parseDeltaAngle",(function(e,t){return wO(t-e)*Math.min(Math.abs(t-e),360)})),$q(Fq,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=XO(e.props,!1),i=ZO(r,NR);return n&&n.length?n.map((function(e,t){return Mq(Mq(Mq({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return Mq(Mq({},o),e.props)})):[]})),$q(Fq,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=TV(o,i);return{cx:r+OO(e.props.cx,o,o/2),cy:n+OO(e.props.cy,i,i/2),innerRadius:OO(e.props.innerRadius,a,0),outerRadius:OO(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),$q(Fq,"getComposedData",(function(e){var t=e.item,n=e.offset,r=sq.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,l=o.endAngle,s=o.paddingAngle,c=o.dataKey,u=o.nameKey,d=o.valueKey,f=o.tooltipType,p=Math.abs(t.props.minAngle),h=sq.parseCoordinateOfPie(t,n),g=sq.parseDeltaAngle(a,l),m=Math.abs(g),v=c;rO(c)&&rO(d)?(uD(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):rO(c)&&(uD(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=d);var y,b,w=r.filter((function(e){return 0!==GK(e,v,0)})).length,C=m-w*p-(m>=360?w:w-1)*s,x=r.reduce((function(e,t){var n=GK(t,v,0);return e+(xO(n)?n:0)}),0);x>0&&(y=r.map((function(e,t){var n,r=GK(e,v,0),o=GK(e,u,t),l=(xO(r)?r:0)/x,c=(n=t?b.endAngle+wO(g)*s*(0!==r?1:0):a)+wO(g)*((0!==r?p:0)+l*C),d=(n+c)/2,m=(h.innerRadius+h.outerRadius)/2,y=[{name:o,value:r,payload:e,dataKey:v,type:f}],w=PV(h.cx,h.cy,m,d);return b=Mq(Mq(Mq({percent:l,cornerRadius:i,name:o,tooltipPayload:y,midAngle:d,middleRadius:m,tooltipPosition:w},e),h),{},{value:GK(e,v),startAngle:n,endAngle:c,payload:e,paddingAngle:wO(g)*s})})));return Mq(Mq({},h),{},{sectors:y,data:r})}));var Bq=Math.ceil,Kq=Math.max;var Vq=bR,Hq=1/0;var Uq=function(e){return e?(e=Vq(e))===Hq||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},Wq=function(e,t,n,r){for(var o=-1,i=Kq(Bq((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},Zq=gL,qq=Uq;var Gq=ai(function(e){return function(t,n,r){return r&&"number"!=typeof r&&Zq(t,n,r)&&(n=r=void 0),t=qq(t),void 0===n?(n=t,t=0):n=qq(n),r=void 0===r?t<n?1:-1:qq(r),Wq(t,n,r,e)}}());function Yq(e){return Yq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yq(e)}function Xq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xq(Object(n),!0).forEach((function(t){Qq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qq(e,t,n){return t=function(e){var t=function(e,t){if("object"!=Yq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yq(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eG=["Webkit","Moz","O","ms"];function tG(e){return tG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tG(e)}function nG(){return nG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nG.apply(this,arguments)}function rG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rG(Object(n),!0).forEach((function(t){dG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fG(r.key),r)}}function aG(e,t,n){return t=sG(t),function(e,t){if(t&&("object"===tG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cG(e)}(e,lG()?Reflect.construct(t,n||[],sG(e).constructor):t.apply(e,n))}function lG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lG=function(){return!!e})()}function sG(e){return sG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sG(e)}function cG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uG(e,t){return uG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uG(e,t)}function dG(e,t,n){return(t=fG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fG(e){var t=function(e,t){if("object"!=tG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=tG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tG(t)?t:String(t)}var pG=function(e){return e.changedTouches&&!!e.changedTouches.length},hG=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),dG(cG(n=aG(this,t,[e])),"handleDrag",(function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)})),dG(cG(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])})),dG(cG(n),"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,o=e.startIndex;null==r||r({endIndex:t,startIndex:o})})),n.detachDragEndListener()})),dG(cG(n),"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),dG(cG(n),"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})})),dG(cG(n),"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),dG(cG(n),"handleSlideDragStart",(function(e){var t=pG(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(cG(n),"startX"),endX:n.handleTravellerDragStart.bind(cG(n),"endX")},n.state={},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uG(e,t)}(t,v),n=t,r=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var n=e.startX,r=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,s=Math.min(n,r),c=Math.max(n,r),u=t.getIndexInRange(o,s),d=t.getIndexInRange(o,c);return{startIndex:u-u%a,endIndex:d===l?l:d-d%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=GK(n[e],o,e);return uk(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,s=i.travellerWidth,c=i.startIndex,u=i.endIndex,d=i.onChange,f=e.pageX-n;f>0?f=Math.min(f,a+l-s-o,a+l-s-r):f<0&&(f=Math.max(f,a-r,a-o));var p=this.getIndex({startX:r+f,endX:o+f});p.startIndex===c&&p.endIndex===u||!d||d(p),this.setState({startX:r+f,endX:o+f,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=pG(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[r],l=this.props,s=l.x,c=l.width,u=l.travellerWidth,d=l.onChange,f=l.gap,p=l.data,h={startX:this.state.startX,endX:this.state.endX},g=e.pageX-n;g>0?g=Math.min(g,s+c-u-a):g<0&&(g=Math.max(g,s-a)),h[r]=a+g;var m=this.getIndex(h),v=m.startIndex,y=m.endIndex;this.setState(dG(dG({},r,a+g),"brushMoveStartX",e.pageX),(function(){var e;d&&(e=p.length-1,("startX"===r&&(o>i?v%f==0:y%f==0)||o<i&&y===e||"endX"===r&&(o>i?y%f==0:v%f==0)||o>i&&y===e)&&d(m))}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,o=r.scaleValues,i=r.startX,a=r.endX,l=this.state[t],s=o.indexOf(l);if(-1!==s){var c=s+e;if(!(-1===c||c>=o.length)){var u=o[c];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(dG({},t,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.fill,l=e.stroke;return o.createElement("rect",{stroke:l,fill:a,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.data,l=e.children,s=e.padding,c=u.only(l);return c?o.cloneElement(c,{x:t,y:n,width:r,height:i,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r,i,a=this,l=this.props,s=l.y,c=l.travellerWidth,u=l.height,d=l.traveller,f=l.ariaLabel,p=l.data,h=l.startIndex,g=l.endIndex,m=Math.max(e,this.props.x),v=oG(oG({},XO(this.props,!1)),{},{x:m,y:s,width:c,height:u}),y=f||"Min value: ".concat(null===(r=p[h])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=p[g])||void 0===i?void 0:i.name);return o.createElement(sD,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,v))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,a=n.stroke,l=n.travellerWidth,s=Math.min(e,t)+l,c=Math.max(Math.abs(t-e)-l,0);return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:s,y:r,width:c,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,a=e.travellerWidth,l=e.stroke,s=this.state,c=s.startX,u=s.endX,d={pointerEvents:"none",fill:l};return o.createElement(sD,{className:"recharts-brush-texts"},o.createElement(wI,nG({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:r+i/2},d),this.getTextOfTick(t)),o.createElement(wI,nG({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+a+5,y:r+i/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,a=e.y,l=e.width,s=e.height,c=e.alwaysShowText,u=this.state,d=u.startX,f=u.endX,p=u.isTextActive,h=u.isSlideMoving,g=u.isTravellerMoving,m=u.isTravellerFocused;if(!t||!t.length||!xO(i)||!xO(a)||!xO(l)||!xO(s)||l<=0||s<=0)return null;var v,y,b,w,C=oo("recharts-brush",n),x=1===o.Children.count(r),S=(y="none",b=(v="userSelect").replace(/(\w)/,(function(e){return e.toUpperCase()})),(w=eG.reduce((function(e,t){return Jq(Jq({},e),{},Qq({},t+b,y))}),{}))[v]=y,w);return o.createElement(sD,{className:C,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(d,f),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||g||m||c)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.stroke,l=Math.floor(n+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:t,y:n,width:r,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:t+1,y1:l,x2:t+r-1,y2:l,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:t+1,y1:l+2,x2:t+r-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return o.isValidElement(e)?o.cloneElement(e,n):uk(e)?e(n):t.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return oG({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var l=t.length,s=GI().domain(Gq(0,l)).range([o,o+i-a]),c=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(r),scale:s,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:l,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&iG(n.prototype,r),i&&iG(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();dG(hG,"displayName","Brush"),dG(hG,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var gG=Aj;var mG=TT,vG=j_,yG=function(e,t){var n;return gG(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},bG=_S,wG=gL;var CG=function(e,t,n){var r=bG(e)?mG:yG;return n&&wG(e,t,n)&&(t=void 0),r(e,vG(t))},xG=ai(CG),SG=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},kG=eL;var EG=function(e,t,n){"__proto__"==t&&kG?kG(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},OG=EG,DG=Pj,PG=j_;var TG=function(e,t){var n={};return t=PG(t),DG(e,(function(e,r,o){OG(n,r,t(e,r,o))})),n},AG=ai(TG);var MG=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},_G=Aj;var jG=MG,LG=function(e,t){var n=!0;return _G(e,(function(e,r,o){return n=!!t(e,r,o)})),n},RG=j_,IG=_S,NG=gL;var $G=function(e,t,n){var r=IG(e)?jG:LG;return n&&NG(e,t,n)&&(t=void 0),r(e,RG(t))},zG=ai($G),FG=["x","y"];function BG(e){return BG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BG(e)}function KG(){return KG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KG.apply(this,arguments)}function VG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VG(Object(n),!0).forEach((function(t){UG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VG(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UG(e,t,n){return t=function(e){var t=function(e,t){if("object"!=BG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=BG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==BG(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZG(e,t){var n=e.x,r=e.y,o=WG(e,FG),i="".concat(n),a=parseInt(i,10),l="".concat(r),s=parseInt(l,10),c="".concat(t.height||o.height),u=parseInt(c,10),d="".concat(t.width||o.width),f=parseInt(d,10);return HG(HG(HG(HG(HG({},t),o),a?{x:a}:{}),s?{y:s}:{}),{},{height:u,width:f,name:t.name,radius:t.radius})}function qG(e){return o.createElement(wq,KG({shapeType:"rectangle",propTransformer:ZG,activeClassName:"recharts-active-bar"},e))}var GG,YG=["value","background"];function XG(e){return XG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XG(e)}function JG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QG.apply(this,arguments)}function eY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eY(Object(n),!0).forEach((function(t){sY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cY(r.key),r)}}function rY(e,t,n){return t=iY(t),function(e,t){if(t&&("object"===XG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return aY(e)}(e,oY()?Reflect.construct(t,n||[],iY(e).constructor):t.apply(e,n))}function oY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oY=function(){return!!e})()}function iY(e){return iY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iY(e)}function aY(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lY(e,t){return lY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lY(e,t)}function sY(e,t,n){return(t=cY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cY(e){var t=function(e,t){if("object"!=XG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=XG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==XG(t)?t:String(t)}var uY=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sY(aY(e=rY(this,t,[].concat(r))),"state",{isAnimationFinished:!1}),sY(aY(e),"id",EO("recharts-bar-")),sY(aY(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),sY(aY(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lY(e,t)}(t,v),n=t,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.dataKey,a=n.activeIndex,l=n.activeBar,s=XO(this.props,!1);return e&&e.map((function(e,n){var c=n===a,u=c?l:r,d=tY(tY(tY({},s),e),{},{isActive:c,option:u,index:n,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return o.createElement(sD,QG({className:"recharts-bar-rectangle"},NO(t.props,e,n),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),o.createElement(qG,d))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,i=t.isAnimationActive,a=t.animationBegin,l=t.animationDuration,s=t.animationEasing,c=t.animationId,u=this.state.prevData;return o.createElement(DW,{begin:a,duration:l,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var i=t.t,a=n.map((function(e,t){var n=u&&u[t];if(n){var o=PO(n.x,e.x),a=PO(n.y,e.y),l=PO(n.width,e.width),s=PO(n.height,e.height);return tY(tY({},e),{},{x:o(i),y:a(i),width:l(i),height:s(i)})}if("horizontal"===r){var c=PO(0,e.height)(i);return tY(tY({},e),{},{y:e.y+e.height-c,height:c})}var d=PO(0,e.width)(i);return tY(tY({},e),{},{width:d})}));return o.createElement(sD,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&OB(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props,n=t.data,r=t.dataKey,i=t.activeIndex,a=XO(this.props.background,!1);return n.map((function(t,n){t.value;var l=t.background,s=JG(t,YG);if(!l)return null;var c=tY(tY(tY(tY(tY({},s),{},{fill:"#eee"},l),a),NO(e.props,t,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return o.createElement(qG,QG({option:e.props.background,isActive:n===i},c))}))}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,s=ZO(n.children,NK);if(!s)return null;var c="vertical"===l?r[0].height/2:r[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:GK(e,t)}},d={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(sD,d,s.map((function(e){return o.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:r,xAxis:i,yAxis:a,layout:l,offset:c,dataPointFormatter:u})})))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,i=e.xAxis,a=e.yAxis,l=e.left,s=e.top,c=e.width,u=e.height,d=e.isAnimationActive,f=e.background,p=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=oo("recharts-bar",r),m=i&&i.allowDataOverflow,v=a&&a.allowDataOverflow,y=m||v,b=rO(p)?this.id:p;return o.createElement(sD,{className:g},m||v?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(b)},o.createElement("rect",{x:m?l:l-c/2,y:v?s:s-u/2,width:m?c:2*c,height:v?u:2*u}))):null,o.createElement(sD,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(b,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,b),(!d||h)&&cH.renderCallByParent(this.props,n))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&nY(n.prototype,r),i&&nY(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function dY(e){return dY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dY(e)}function fY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mY(r.key),r)}}function pY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pY(Object(n),!0).forEach((function(t){gY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gY(e,t,n){return(t=mY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mY(e){var t=function(e,t){if("object"!=dY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=dY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dY(t)?t:String(t)}GG=uY,sY(uY,"displayName","Bar"),sY(uY,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ZL.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),sY(uY,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,f=e.offset,p=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!p)return null;var h=t.layout,g=n.props,m=g.dataKey,v=g.children,y=g.minPointSize,b="horizontal"===h?a:i,w=c?b.scale.domain():null,C=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({numericAxis:b}),x=ZO(v,NR),S=d.map((function(e,t){var r,d,f,g,v,b;c?r=function(e,t){if(!t||2!==t.length||!xO(t[0])||!xO(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!xO(e[0])||e[0]<n)&&(o[0]=n),(!xO(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(c[u+t],w):(r=GK(e,m),Array.isArray(r)||(r=[C,r]));var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var o="number"==typeof n;return o?e(n,r):(o||("production"!==process.env.NODE_ENV?MK(0,"minPointSize callback function received a value with type of ".concat(BG(n),". Currently only numbers are supported.")):MK()),t)}}(y,GG.defaultProps.minPointSize)(r[1],t);if("horizontal"===h){var k,E=[a.scale(r[0]),a.scale(r[1])],O=E[0],D=E[1];d=fV({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),f=null!==(k=null!=D?D:O)&&void 0!==k?k:void 0,g=p.size;var P=O-D;if(v=Number.isNaN(P)?0:P,b={x:d,y:a.y,width:g,height:a.height},Math.abs(S)>0&&Math.abs(v)<Math.abs(S)){var T=wO(v||S)*(Math.abs(S)-Math.abs(v));f-=T,v+=T}}else{var A=[i.scale(r[0]),i.scale(r[1])],M=A[0],_=A[1];if(d=M,f=fV({axis:a,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),g=_-M,v=p.size,b={x:i.x,y:f,width:i.width,height:v},Math.abs(S)>0&&Math.abs(g)<Math.abs(S))g+=wO(g||S)*(Math.abs(S)-Math.abs(g))}return tY(tY(tY({},e),{},{x:d,y:f,width:g,height:v,value:c?r:r[1],payload:e,background:b},x&&x[t]&&x[t].props),{},{tooltipPayload:[bV(n,e)],tooltipPosition:{x:d+g/2,y:f+v/2}})}));return tY({data:S,layout:h},f)}));var vY=function(e,t,n,r,o){var i=e.width,a=e.height,l=e.layout,s=e.children,c=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},d=!!qO(s,uY);return c.reduce((function(i,a){var s,c,f,p,h,g=t[a],m=g.orientation,v=g.domain,y=g.padding,b=void 0===y?{}:y,w=g.mirror,C=g.reversed,x="".concat(m).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var S=v[1]-v[0],k=1/0,E=g.categoricalDomain.sort();if(E.forEach((function(e,t){t>0&&(k=Math.min((e||0)-(E[t-1]||0),k))})),Number.isFinite(k)){var O=k/S,D="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(s=O*D/2),"no-gap"===g.padding){var P=OO(e.barCategoryGap,O*D),T=O*D/2;s=T-P-(T-P)/D*P}}}c="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:g.range,C&&(c=[c[1],c[0]]);var A=iV(g,o,d),M=A.scale,_=A.realScaleType;M.domain(v).range(c),lV(M);var j=uV(M,hY(hY({},g),{},{realScaleType:_}));"xAxis"===r?(h="top"===m&&!w||"bottom"===m&&w,f=n.left,p=u[x]-h*g.height):"yAxis"===r&&(h="left"===m&&!w||"right"===m&&w,f=u[x]-h*g.width,p=n.top);var L=hY(hY(hY({},g),j),{},{realScaleType:_,x:f,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return L.bandSize=vV(L,j),g.hide||"xAxis"!==r?g.hide||(u[x]+=(h?-1:1)*L.width):u[x]+=(h?-1:1)*L.height,hY(hY({},i),{},gY({},a,L))}),{})},yY=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},bY=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&fY(t.prototype,n),r&&fY(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();gY(bY,"EPS",1e-4);var wY=function(e){var t=Object.keys(e).reduce((function(t,n){return hY(hY({},t),{},gY({},n,bY.create(e[n])))}),{});return hY(hY({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return AG(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return zG(e,(function(e,n){return t[n].isInRange(e)}))}})};var CY=function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=r*Math.PI/180,i=Math.atan(n/t),a=o>i&&o<Math.PI-i?n/Math.sin(o):t/Math.cos(o);return Math.abs(a)},xY=j_,SY=ZA,kY=XA;var EY=function(e){return function(t,n,r){var o=Object(t);if(!SY(t)){var i=xY(n);t=kY(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},OY=Uq;var DY=L_,PY=j_,TY=function(e){var t=OY(e),n=t%1;return t==t?n?t-n:t:0},AY=Math.max;var MY=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:TY(n);return o<0&&(o=AY(r+o,0)),DY(e,PY(t),o)},_Y=ai(EY(MY)),jY=TE((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));function LY(e){return LY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},LY(e)}var RY=d(void 0),IY=d(void 0),NY=d(void 0),$Y=d({}),zY=d(void 0),FY=d(0),BY=d(0),KY=function(e){var t=e.state,n=t.xAxisMap,r=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,s=e.width,c=e.height,u=jY(i);return o.createElement(RY.Provider,{value:n},o.createElement(IY.Provider,{value:r},o.createElement($Y.Provider,{value:i},o.createElement(NY.Provider,{value:u},o.createElement(zY.Provider,{value:a},o.createElement(FY.Provider,{value:c},o.createElement(BY.Provider,{value:s},l)))))))};function VY(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var HY=function(e){var t=p(RY);null==t&&("production"!==process.env.NODE_ENV?MK(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):MK());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?MK(0,'Could not find xAxis by id "'.concat(e,'" [').concat(LY(e),"]. ").concat(VY(t))):MK()),n},UY=function(e){var t=p(IY);null==t&&("production"!==process.env.NODE_ENV?MK(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):MK());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?MK(0,'Could not find yAxis by id "'.concat(e,'" [').concat(LY(e),"]. ").concat(VY(t))):MK()),n},WY=function(){return p(BY)},ZY=function(){return p(FY)};function qY(e){return qY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qY(e)}function GY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GY(Object(n),!0).forEach((function(t){XY(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XY(e,t,n){return t=function(e){var t=function(e,t){if("object"!=qY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=qY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qY(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return QY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QY(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eX(){return eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eX.apply(this,arguments)}function tX(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,l=e.shape,s=e.className,c=e.alwaysShow,u=p(zY),d=HY(i),f=UY(a),h=p(NY);if(!u||!h)return null;uD(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=function(e,t,n,r,o,i,a,l,s){var c=o.x,u=o.y,d=o.width,f=o.height;if(n){var p=s.y,h=e.y.apply(p,{position:i});if(SG(s,"discard")&&!e.y.isInRange(h))return null;var g=[{x:c+d,y:h},{x:c,y:h}];return"left"===l?g.reverse():g}if(t){var m=s.x,v=e.x.apply(m,{position:i});if(SG(s,"discard")&&!e.x.isInRange(v))return null;var y=[{x:v,y:u+f},{x:v,y:u}];return"top"===a?y.reverse():y}if(r){var b=s.segment.map((function(t){return e.apply(t,{position:i})}));return SG(s,"discard")&&xG(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(wY({x:d.scale,y:f.scale}),SO(t),SO(n),r&&2===r.length,h,e.position,d.orientation,f.orientation,e);if(!g)return null;var m=JY(g,2),v=m[0],y=v.x,b=v.y,w=m[1],C=w.x,x=w.y,S=YY(YY({clipPath:SG(e,"hidden")?"url(#".concat(u,")"):void 0},XO(e,!0)),{},{x1:y,y1:b,x2:C,y2:x});return o.createElement(sD,{className:oo("recharts-reference-line",s)},function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):uk(e)?e(t):o.createElement("line",eX({},t,{className:"recharts-reference-line-line"}))}(l,S),qV.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return yY({x:t,y:n},{x:r,y:o})}({x1:y,y1:b,x2:C,y2:x})))}function nX(e){return nX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nX(e)}function rX(){return rX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rX.apply(this,arguments)}function oX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oX(Object(n),!0).forEach((function(t){aX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=nX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tX.displayName="ReferenceLine",tX.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function lX(e){var t=e.x,n=e.y,r=e.r,i=e.alwaysShow,a=e.clipPathId,l=SO(t),s=SO(n);if(uD(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var c=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=wY({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return SG(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!c)return null;var u=c.x,d=c.y,f=e.shape,p=e.className,h=iX(iX({clipPath:SG(e,"hidden")?"url(#".concat(a,")"):void 0},XO(e,!0)),{},{cx:u,cy:d});return o.createElement(sD,{className:oo("recharts-reference-dot",p)},lX.renderDot(f,h),qV.renderCallByParent(e,{x:u-r,y:d-r,width:2*r,height:2*r}))}function sX(e){return sX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sX(e)}function cX(){return cX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cX.apply(this,arguments)}function uX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uX(Object(n),!0).forEach((function(t){fX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=sX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=sX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}lX.displayName="ReferenceDot",lX.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},lX.renderDot=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):uk(e)?e(t):o.createElement(qW,rX({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function pX(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.className,l=e.alwaysShow,s=e.clipPathId;uD(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=SO(t),u=SO(n),d=SO(r),f=SO(i),p=e.shape;if(!(c||u||d||f||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,l=o.y1,s=o.y2,c=o.xAxis,u=o.yAxis;if(!c||!u)return null;var d=wY({x:c.scale,y:u.scale}),f={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},p={x:t?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(s,{position:"end"}):d.y.rangeMax};return!SG(o,"discard")||d.isInRange(f)&&d.isInRange(p)?yY(f,p):null}(c,u,d,f,e);if(!h&&!p)return null;var g=SG(e,"hidden")?"url(#".concat(s,")"):void 0;return o.createElement(sD,{className:oo("recharts-reference-area",a)},pX.renderRect(p,dX(dX({clipPath:g},XO(e,!0)),h)),qV.renderCallByParent(e,h))}function hX(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function gX(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function mX(e){return mX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mX(e)}function vX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vX(Object(n),!0).forEach((function(t){bX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=mX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=mX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wX(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,l=e.orientation,s=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(xO(s)||ZL.isSsr)return function(e,t){return hX(e,t+1)}(o,"number"==typeof s&&xO(s)?s:0);var f=[],p="top"===l||"bottom"===l?"width":"height",h=u&&"width"===p?UR(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(e,r){var o=uk(c)?c(e.value,r):e.value;return"width"===p?function(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return CY(r,n)}(UR(o,{fontSize:t,letterSpacing:n}),h,d):UR(o,{fontSize:t,letterSpacing:n})[p]},m=o.length>=2?wO(o[1].coordinate-o[0].coordinate):1,v=function(e,t,n){var r="width"===n,o=e.x,i=e.y,a=e.width,l=e.height;return 1===t?{start:r?o:i,end:r?o+a:i+l}:{start:r?o+a:i+l,end:r?o:i}}(i,m,p);return"equidistantPreserveStart"===s?function(e,t,n,r,o){for(var i,a=(r||[]).slice(),l=t.start,s=t.end,c=0,u=1,d=l,f=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:hX(r,u)};var i,a=c,f=function(){return void 0===i&&(i=n(t,a)),i},p=t.coordinate,h=0===c||gX(e,p,f,d,s);h||(c=0,d=l,u+=1),h&&(d=p+e*(f()/2+o),c+=u)};u<=a.length;)if(i=f())return i.v;return[]}(m,v,g,o,a):(f="preserveStart"===s||"preserveStartEnd"===s?function(e,t,n,r,o,i){var a=(r||[]).slice(),l=a.length,s=t.start,c=t.end;if(i){var u=r[l-1],d=n(u,l-1),f=e*(u.coordinate+e*d/2-c);a[l-1]=u=yX(yX({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),gX(e,u.tickCoord,(function(){return d}),s,c)&&(c=u.tickCoord-e*(d/2+o),a[l-1]=yX(yX({},u),{},{isShow:!0}))}for(var p=i?l-1:l,h=function(t){var r,i=a[t],l=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*l()/2-s);a[t]=i=yX(yX({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else a[t]=i=yX(yX({},i),{},{tickCoord:i.coordinate});gX(e,i.tickCoord,l,s,c)&&(s=i.tickCoord+e*(l()/2+o),a[t]=yX(yX({},i),{},{isShow:!0}))},g=0;g<p;g++)h(g);return a}(m,v,g,o,a,"preserveStartEnd"===s):function(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,l=t.start,s=t.end,c=function(t){var r,c=i[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===a-1){var d=e*(c.coordinate+e*u()/2-s);i[t]=c=yX(yX({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else i[t]=c=yX(yX({},c),{},{tickCoord:c.coordinate});gX(e,c.tickCoord,u,l,s)&&(s=c.tickCoord-e*(u()/2+o),i[t]=yX(yX({},c),{},{isShow:!0}))},u=a-1;u>=0;u--)c(u);return i}(m,v,g,o,a),f.filter((function(e){return e.isShow})))}pX.displayName="ReferenceArea",pX.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},pX.renderRect=function(e,t){return o.isValidElement(e)?o.cloneElement(e,t):uk(e)?e(t):o.createElement($W,cX({},t,{className:"recharts-reference-area-rect"}))};var CX=["viewBox"],xX=["viewBox"],SX=["ticks"];function kX(e){return kX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kX(e)}function EX(){return EX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EX.apply(this,arguments)}function OX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?OX(Object(n),!0).forEach((function(t){LX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PX(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function TX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RX(r.key),r)}}function AX(e,t,n){return t=_X(t),function(e,t){if(t&&("object"===kX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,MX()?Reflect.construct(t,n||[],_X(e).constructor):t.apply(e,n))}function MX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MX=function(){return!!e})()}function _X(e){return _X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_X(e)}function jX(e,t){return jX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jX(e,t)}function LX(e,t,n){return(t=RX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RX(e){var t=function(e,t){if("object"!=kX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kX(t)?t:String(t)}var IX=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=AX(this,t,[e])).state={fontSize:"",letterSpacing:""},n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jX(e,t)}(t,b),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=PX(e,CX),o=this.props,i=o.viewBox,a=PX(o,xX);return!AO(n,i)||!AO(r,a)||!AO(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,l=this.props,s=l.x,c=l.y,u=l.width,d=l.height,f=l.orientation,p=l.tickSize,h=l.mirror,g=l.tickMargin,m=h?-1:1,v=e.tickSize||p,y=xO(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*d)-m*v)-m*g,i=y;break;case"left":r=o=e.coordinate,i=(t=(n=s+ +!h*u)-m*v)-m*g,a=y;break;case"right":r=o=e.coordinate,i=(t=(n=s+ +h*u)+m*v)+m*g,a=y;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*d)+m*v)+m*g,i=y}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,l=e.mirror,s=e.axisLine,c=DX(DX(DX({},XO(this.props,!1)),XO(s,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!l||"bottom"===a&&l);c=DX(DX({},c),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+("left"===a&&!l||"right"===a&&l);c=DX(DX({},c),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return o.createElement("line",EX({},c,{className:oo("recharts-cartesian-axis-line",nO(s,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var i=this,a=this.props,l=a.tickLine,s=a.stroke,c=a.tick,u=a.tickFormatter,d=a.unit,f=wX(DX(DX({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=XO(this.props,!1),m=XO(c,!1),v=DX(DX({},g),{},{fill:"none"},XO(l,!1)),y=f.map((function(e,n){var r=i.getTickLineCoord(e),a=r.line,y=r.tick,b=DX(DX(DX(DX({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:s},m),y),{},{index:n,payload:e,visibleTicksCount:f.length,tickFormatter:u});return o.createElement(sD,EX({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},NO(i.props,e,n)),l&&o.createElement("line",EX({},v,a,{className:oo("recharts-cartesian-axis-tick-line",nO(l,"className"))})),c&&t.renderTickItem(c,b,"".concat(uk(u)?u(e.value,n):e.value).concat(d||"")))}));return o.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,i=t.height,a=t.ticksGenerator,l=t.className;if(t.hide)return null;var s=this.props,c=s.ticks,u=PX(s,SX),d=c;return uk(a)&&(d=c&&c.length>0?a(this.props):a(u)),r<=0||i<=0||!d||!d.length?null:o.createElement(sD,{className:oo("recharts-cartesian-axis",l),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),qV.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,t,n){return o.isValidElement(e)?o.cloneElement(e,t):uk(e)?e(t):o.createElement(wI,EX({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&TX(n.prototype,r),i&&TX(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();LX(IX,"displayName","CartesianAxis"),LX(IX,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var NX=["x1","y1","x2","y2","key"],$X=["offset"];function zX(e){return zX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zX(e)}function FX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function BX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FX(Object(n),!0).forEach((function(t){KX(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FX(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KX(e,t,n){return t=function(e){var t=function(e,t){if("object"!=zX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=zX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zX(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(){return VX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VX.apply(this,arguments)}function HX(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var UX=function(e){var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,l=e.height;return o.createElement("rect",{x:r,y:i,width:a,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function WX(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(uk(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,l=t.y2,s=t.key,c=HX(t,NX),u=XO(c,!1);u.offset;var d=HX(u,$X);n=o.createElement("line",VX({},d,{x1:r,y1:i,x2:a,y2:l,fill:"none",key:s}))}return n}function ZX(e){var t=e.x,n=e.width,r=e.horizontal,i=void 0===r||r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(r,o){var a=BX(BX({},e),{},{x1:t,y1:r,x2:t+n,y2:r,key:"line-".concat(o),index:o});return WX(i,a)}));return o.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function qX(e){var t=e.y,n=e.height,r=e.vertical,i=void 0===r||r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(r,o){var a=BX(BX({},e),{},{x1:r,y1:t,x2:r,y2:t+n,key:"line-".concat(o),index:o});return WX(i,a)}));return o.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function GX(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,l=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!t||!t.length)return null;var u=s.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var d=u.map((function(e,s){var c=!u[s+1]?i+l-e:u[s+1]-e;if(c<=0)return null;var d=s%t.length;return o.createElement("rect",{key:"react-".concat(s),y:e,x:r,height:c,width:a,stroke:"none",fill:t[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function YX(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,i=e.fillOpacity,a=e.x,l=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==d[0]&&d.unshift(0);var f=d.map((function(e,t){var n=!d[t+1]?a+s-e:d[t+1]-e;if(n<=0)return null;var u=t%r.length;return o.createElement("rect",{key:"react-".concat(t),x:e,y:l,width:n,height:c,stroke:"none",fill:r[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return o.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var XX=function(e,t){var n=e.xAxis,r=e.width,o=e.height,i=e.offset;return tV(wX(BX(BX(BX({},IX.defaultProps),n),{},{ticks:nV(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},JX=function(e,t){var n=e.yAxis,r=e.width,o=e.height,i=e.offset;return tV(wX(BX(BX(BX({},IX.defaultProps),n),{},{ticks:nV(n,!0),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},QX={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function eJ(e){var t,n,r,i,a,l,s,c,u=WY(),d=ZY(),f=p($Y),h=BX(BX({},e),{},{stroke:null!==(t=e.stroke)&&void 0!==t?t:QX.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:QX.fill,horizontal:null!==(r=e.horizontal)&&void 0!==r?r:QX.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:QX.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:QX.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:QX.verticalFill,x:xO(e.x)?e.x:f.left,y:xO(e.y)?e.y:f.top,width:xO(e.width)?e.width:f.width,height:xO(e.height)?e.height:f.height}),g=h.x,m=h.y,v=h.width,y=h.height,b=h.syncWithTicks,w=h.horizontalValues,C=h.verticalValues,x=(s=p(RY),DO(s)),S=(c=p(IY),_Y(c,(function(e){return zG(e.domain,Number.isFinite)}))||DO(c));if(!xO(v)||v<=0||!xO(y)||y<=0||!xO(g)||g!==+g||!xO(m)||m!==+m)return null;var k=h.verticalCoordinatesGenerator||XX,E=h.horizontalCoordinatesGenerator||JX,O=h.horizontalPoints,D=h.verticalPoints;if((!O||!O.length)&&uk(E)){var P=w&&w.length,T=E({yAxis:S?BX(BX({},S),{},{ticks:P?w:S.ticks}):void 0,width:u,height:d,offset:f},!!P||b);uD(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(zX(T),"]")),Array.isArray(T)&&(O=T)}if((!D||!D.length)&&uk(k)){var A=C&&C.length,M=k({xAxis:x?BX(BX({},x),{},{ticks:A?C:x.ticks}):void 0,width:u,height:d,offset:f},!!A||b);uD(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(zX(M),"]")),Array.isArray(M)&&(D=M)}return o.createElement("g",{className:"recharts-cartesian-grid"},o.createElement(UX,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height}),o.createElement(ZX,VX({},h,{offset:f,horizontalPoints:O,xAxis:x,yAxis:S})),o.createElement(qX,VX({},h,{offset:f,verticalPoints:D,xAxis:x,yAxis:S})),o.createElement(GX,VX({},h,{horizontalPoints:O})),o.createElement(YX,VX({},h,{verticalPoints:D})))}eJ.displayName="CartesianGrid";var tJ=["type","layout","connectNulls","ref"];function nJ(e){return nJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nJ(e)}function rJ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oJ(){return oJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oJ.apply(this,arguments)}function iJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iJ(Object(n),!0).forEach((function(t){gJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lJ(e){return function(e){if(Array.isArray(e))return sJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return sJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sJ(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mJ(r.key),r)}}function uJ(e,t,n){return t=fJ(t),function(e,t){if(t&&("object"===nJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pJ(e)}(e,dJ()?Reflect.construct(t,n||[],fJ(e).constructor):t.apply(e,n))}function dJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dJ=function(){return!!e})()}function fJ(e){return fJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fJ(e)}function pJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hJ(e,t){return hJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hJ(e,t)}function gJ(e,t,n){return(t=mJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mJ(e){var t=function(e,t){if("object"!=nJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=nJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nJ(t)?t:String(t)}var vJ=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gJ(pJ(e=uJ(this,t,[].concat(r))),"state",{isAnimationFinished:!0,totalLength:0}),gJ(pJ(e),"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),gJ(pJ(e),"getStrokeDasharray",(function(n,r,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(r,n);for(var a=Math.floor(n/i),l=n%i,s=r-n,c=[],u=0,d=0;u<o.length;d+=o[u],++u)if(d+o[u]>l){c=[].concat(lJ(o.slice(0,u)),[l-d]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(lJ(t.repeat(o,a)),lJ(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),gJ(pJ(e),"id",EO("recharts-line-")),gJ(pJ(e),"pathRef",(function(t){e.mainCurve=t})),gJ(pJ(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),gJ(pJ(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hJ(e,t)}(t,v),n=t,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,a=n.yAxis,l=n.layout,s=ZO(n.children,NK);if(!s)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:GK(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(t,")"):null};return o.createElement(sD,u,s.map((function(e){return o.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:r,xAxis:i,yAxis:a,layout:l,dataPointFormatter:c})})))}},{key:"renderDots",value:function(e,n,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,l=i.points,s=i.dataKey,c=XO(this.props,!1),u=XO(a,!0),d=l.map((function(e,n){var r=aJ(aJ(aJ({key:"dot-".concat(n),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:n,payload:e.payload});return t.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return o.createElement(sD,oJ({className:"recharts-line-dots",key:"dots"},f),d)}},{key:"renderCurveStatically",value:function(e,t,n,r){var i=this.props,a=i.type,l=i.layout,s=i.connectNulls;i.ref;var c=rJ(i,tJ),u=aJ(aJ(aJ({},XO(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:a,layout:l,connectNulls:s});return o.createElement(TH,oJ({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,i=r.points,a=r.strokeDasharray,l=r.isAnimationActive,s=r.animationBegin,c=r.animationDuration,u=r.animationEasing,d=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,g=this.state,m=g.prevPoints,v=g.totalLength;return o.createElement(DW,{begin:s,duration:c,isActive:l,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var o=r.t;if(m){var l=m.length/i.length,s=i.map((function(e,t){var n=Math.floor(t*l);if(m[n]){var r=m[n],i=PO(r.x,e.x),a=PO(r.y,e.y);return aJ(aJ({},e),{},{x:i(o),y:a(o)})}if(f){var s=PO(2*p,e.x),c=PO(h/2,e.y);return aJ(aJ({},e),{},{x:s(o),y:c(o)})}return aJ(aJ({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(s,e,t)}var c,u=PO(0,v)(o);if(a){var d="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(u,v,d)}else c=n.generateSimpleStrokeDasharray(v,u);return n.renderCurveStatically(i,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,l=i.totalLength;return o&&r&&r.length&&(!a&&l>0||!OB(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,t=this.props,n=t.hide,r=t.dot,i=t.points,a=t.className,l=t.xAxis,s=t.yAxis,c=t.top,u=t.left,d=t.width,f=t.height,p=t.isAnimationActive,h=t.id;if(n||!i||!i.length)return null;var g=this.state.isAnimationFinished,m=1===i.length,v=oo("recharts-line",a),y=l&&l.allowDataOverflow,b=s&&s.allowDataOverflow,w=y||b,C=rO(h)?this.id:h,x=null!==(e=XO(r,!1))&&void 0!==e?e:{r:3,strokeWidth:2},S=x.r,k=void 0===S?3:S,E=x.strokeWidth,O=void 0===E?2:E,D=(function(e){return e&&"object"===BO(e)&&"cx"in e&&"cy"in e&&"r"in e}(r)?r:{}).clipDot,P=void 0===D||D,T=2*k+O;return o.createElement(sD,{className:v},y||b?o.createElement("defs",null,o.createElement("clipPath",{id:"clipPath-".concat(C)},o.createElement("rect",{x:y?u:u-d/2,y:b?c:c-f/2,width:y?d:2*d,height:b?f:2*f})),!P&&o.createElement("clipPath",{id:"clipPath-dots-".concat(C)},o.createElement("rect",{x:u-T/2,y:c-T/2,width:d+T,height:f+T}))):null,!m&&this.renderCurve(w,C),this.renderErrorBar(w,C),(m||r)&&this.renderDots(w,P,C),(!p||g)&&cH.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(lJ(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(lJ(r),lJ(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(o.isValidElement(e))n=o.cloneElement(e,t);else if(uk(e))n=e(t);else{var r=oo("recharts-line-dot","boolean"!=typeof e?e.className:"");n=o.createElement(qW,oJ({},t,{className:r}))}return n}}],r&&cJ(n.prototype,r),i&&cJ(n,i),Object.defineProperty(n,"prototype",{writable:!1}),t}();function yJ(){return yJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yJ.apply(this,arguments)}gJ(vJ,"displayName","Line"),gJ(vJ,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ZL.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),gJ(vJ,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,l=e.bandSize,s=e.displayedData,c=e.offset,u=t.layout;return aJ({points:s.map((function(e,t){var s=GK(e,a);return"horizontal"===u?{x:dV({axis:n,ticks:o,bandSize:l,entry:e,index:t}),y:rO(s)?null:r.scale(s),value:s,payload:e}:{x:rO(s)?null:n.scale(s),y:dV({axis:r,ticks:i,bandSize:l,entry:e,index:t}),value:s,payload:e}})),layout:u},c)}));var bJ=function(e){var t=e.xAxisId,n=WY(),r=ZY(),i=HY(t);return null==i?null:o.createElement(IX,yJ({},i,{className:oo("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return nV(e,!0)}}))};function wJ(){return wJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wJ.apply(this,arguments)}bJ.displayName="XAxis",bJ.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var CJ=function(e){var t=e.yAxisId,n=WY(),r=ZY(),i=UY(t);return null==i?null:o.createElement(IX,wJ({},i,{className:oo("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(e){return nV(e,!0)}}))};function xJ(e){return function(e){if(Array.isArray(e))return SJ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return SJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SJ(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function SJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}CJ.displayName="YAxis",CJ.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var kJ=function(e,t,n,r,o){var i=ZO(e,tX),a=ZO(e,lX),l=[].concat(xJ(i),xJ(a)),s=ZO(e,pX),c="".concat(r,"Id"),u=r[0],d=t;if(l.length&&(d=l.reduce((function(e,t){if(t.props[c]===n&&SG(t.props,"extendDomain")&&xO(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),d)),s.length){var f="".concat(u,"1"),p="".concat(u,"2");d=s.reduce((function(e,t){if(t.props[c]===n&&SG(t.props,"extendDomain")&&xO(t.props[f])&&xO(t.props[p])){var r=t.props[f],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),d)}return o&&o.length&&(d=o.reduce((function(e,t){return xO(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),d)),d},EJ={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new o(r,i||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,o,i,a){var l=n?n+e:e;if(!this._events[l])return!1;var s,c,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,i),!0;case 6:return u.fn.call(u.context,t,r,o,i,a),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];u[c].fn.apply(u[c].context,s)}}return!0},l.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||r&&l.context!==r||a(this,i);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==t||o&&!l[s].once||r&&l[s].context!==r)&&c.push(l[s]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(EJ);var OJ=new(ai(EJ.exports)),DJ="recharts.syncMouseEvents";function PJ(e){return PJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PJ(e)}function TJ(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MJ(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AJ(e,t,n){return(t=MJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MJ(e){var t=function(e,t){if("object"!=PJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=PJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==PJ(t)?t:String(t)}var _J=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),AJ(this,"activeIndex",0),AJ(this,"coordinateList",[]),AJ(this,"layout","horizontal")}return TJ(e,[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,o=e.container,i=void 0===o?null:o,a=e.layout,l=void 0===a?null:a,s=e.offset,c=void 0===s?null:s,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=l?l:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,o=n.y,i=n.height,a=this.coordinateList[this.activeIndex].coordinate,l=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,s=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+a+l,u=o+this.offset.top+i/2+s;this.mouseHandlerCallback({pageX:c,pageY:u})}}}]),e}();function jJ(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle;return{points:[PV(t,n,r,o),PV(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function LJ(e,t,n){var r,o,i,a;if("horizontal"===e)i=r=t.x,o=n.top,a=n.top+n.height;else if("vertical"===e)a=o=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return jJ(t);var l=t.cx,s=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,f=PV(l,s,c,d),p=PV(l,s,u,d);r=f.x,o=f.y,i=p.x,a=p.y}return[{x:r,y:o},{x:i,y:a}]}function RJ(e){return RJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RJ(e)}function IJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function NJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IJ(Object(n),!0).forEach((function(t){$J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $J(e,t,n){return t=function(e){var t=function(e,t){if("object"!=RJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=RJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==RJ(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zJ(e){var t,n=e.element,r=e.tooltipEventType,o=e.isActive,i=e.activeCoordinate,a=e.activePayload,l=e.offset,s=e.activeTooltipIndex,u=e.tooltipAxisBandSize,d=e.layout,f=e.chartName;if(!n||!n.props.cursor||!o||!i||"ScatterChart"!==f&&"axis"!==r)return null;var p=TH;if("ScatterChart"===f)t=i,p=nZ;else if("BarChart"===f)t=function(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-o,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(d,i,l,u),p=$W;else if("radial"===d){var h=jJ(i),g=h.cx,v=h.cy,b=h.radius;t={cx:g,cy:v,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:b,outerRadius:b},p=yH}else t={points:LJ(d,i,l)},p=TH;var w=NJ(NJ(NJ(NJ({stroke:"#ccc",pointerEvents:"none"},l),t),XO(n.props.cursor,!1)),{},{payload:a,payloadIndex:s,className:oo("recharts-tooltip-cursor",n.props.cursor.className)});return m(n.props.cursor)?c(n.props.cursor,w):y(p,w)}var FJ=["item"],BJ=["children","className","width","height","style","compact","title","desc"];function KJ(e){return KJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KJ(e)}function VJ(){return VJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VJ.apply(this,arguments)}function HJ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||QJ(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function UJ(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WJ(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oQ(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZJ(e,t,n){return t=GJ(t),function(e,t){if(t&&("object"===KJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YJ(e)}(e,qJ()?Reflect.construct(t,n||[],GJ(e).constructor):t.apply(e,n))}function qJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qJ=function(){return!!e})()}function GJ(e){return GJ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GJ(e)}function YJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XJ(e,t){return XJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XJ(e,t)}function JJ(e){return function(e){if(Array.isArray(e))return eQ(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||QJ(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function QJ(e,t){if(e){if("string"==typeof e)return eQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eQ(e,t):void 0}}function eQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tQ(Object(n),!0).forEach((function(t){rQ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tQ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rQ(e,t,n){return(t=oQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oQ(e){var t=function(e,t){if("object"!=KJ(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=KJ(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==KJ(t)?t:String(t)}var iQ={xAxis:["bottom","top"],yAxis:["left","right"]},aQ={width:"100%",height:"100%"},lQ={x:0,y:0};function sQ(e){return e}var cQ=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,o=t.dataEndIndex,i=(null!=n?n:[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(JJ(e),JJ(n)):e}),[]);return i.length>0?i:e&&e.length&&xO(r)&&xO(o)?e.slice(r,o+1):[]};function uQ(e){return"number"===e?[0,"auto"]:void 0}var dQ=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=cQ(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(o,l){var s,c,u=null!==(s=l.props.data)&&void 0!==s?s:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?c=TO(void 0===u?a:u,i.dataKey,r):c=u&&u[n]||a[n];return c?[].concat(JJ(o),[bV(l,c)]):o}),[])},fQ=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,l=e.tooltipAxis,s=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,s=0;s<a;s++){var c=s>0?r[s-1].coordinate:r[a-1].coordinate,u=r[s].coordinate,d=s>=a-1?r[0].coordinate:r[s+1].coordinate,f=void 0;if(wO(u-c)!==wO(d-u)){var p=[];if(wO(d-u)===wO(l[1]-l[0])){f=d;var h=u+l[1]-l[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var g=d+l[1]-l[0];p[0]=Math.min(u,(g+u)/2),p[1]=Math.max(u,(g+u)/2)}var m=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=r[s].index;break}}else{var v=Math.min(c,d),y=Math.max(c,d);if(e>(v+u)/2&&e<=(y+u)/2){i=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}return i}(i,a,s,l);if(c>=0&&s){var u=s[c]&&s[c].value,d=dQ(e,t,c,u),f=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return nQ(nQ(nQ({},r),PV(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,s=r.angle;return nQ(nQ(nQ({},r),PV(r.cx,r.cy,l,s)),{},{angle:s,radius:l})}return lQ}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:f}}return null},pQ=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,f=eV(c,o);return n.reduce((function(t,n){var p,h=n.props,g=h.type,m=h.dataKey,v=h.allowDataOverflow,y=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,C=h.includeHidden,x=n.props[i];if(t[x])return t;var S,k,E,O=cQ(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===x})),dataStartIndex:l,dataEndIndex:s}),D=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&xO(r)&&xO(o))return!0}return!1})(n.props.domain,v,g)&&(S=mV(n.props.domain,null,v),!f||"number"!==g&&"auto"===b||(E=YK(O,m,"category")));var P=uQ(g);if(!S||0===S.length){var T,A=null!==(T=n.props.domain)&&void 0!==T?T:P;if(m){if(S=YK(O,m,g),"category"===g&&f){var M=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(S);y&&M?(k=S,S=Gq(0,D)):y||(S=yV(A,S,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(JJ(e),[t])}),[]))}else if("category"===g)S=y?S.filter((function(e){return""!==e&&!rO(e)})):yV(A,S,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||rO(t)?e:[].concat(JJ(e),[t])}),[]);else if("number"===g){var _=function(e,t,n,r,o){var i=t.map((function(t){return JK(e,t,n,o,r)})).filter((function(e){return!rO(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[i]===x&&(C||!e.props.hide)})),m,o,c);_&&(S=_)}!f||"number"!==g&&"auto"===b||(E=YK(O,m,"category"))}else S=f?Gq(0,D):a&&a[x]&&a[x].hasStack&&"number"===g?"expand"===d?[0,1]:pV(a[x].stackGroups,l,s):QK(O,r.filter((function(e){return e.props[i]===x&&(C||!e.props.hide)})),g,c,!0);if("number"===g)S=kJ(u,S,x,o,w),A&&(S=mV(A,S,v));else if("category"===g&&A){var j=A;S.every((function(e){return j.indexOf(e)>=0}))&&(S=j)}}return nQ(nQ({},t),{},rQ({},x,nQ(nQ({},n.props),{},{axisType:o,domain:S,categoricalDomain:E,duplicateDomain:k,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:P,isCategorical:f,layout:c})))}),{})},hQ=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=ZO(c,o),f={};return d&&d.length?f=pQ(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:l,dataEndIndex:s}):i&&i.length&&(f=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,s=t.dataEndIndex,c=e.layout,u=e.children,d=cQ(e.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:s}),f=d.length,p=eV(c,o),h=-1;return n.reduce((function(e,t){var g,m=t.props[i],v=uQ("number");return e[m]?e:(h++,p?g=Gq(0,f):a&&a[m]&&a[m].hasStack?(g=pV(a[m].stackGroups,l,s),g=kJ(u,g,m,o)):(g=mV(v,QK(d,n.filter((function(e){return e.props[i]===m&&!e.props.hide})),"number",c),r.defaultProps.allowDataOverflow),g=kJ(u,g,m,o)),nQ(nQ({},e),{},rQ({},m,nQ(nQ({axisType:o},r.defaultProps),{},{hide:!0,orientation:nO(iQ,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:l,dataEndIndex:s})),f},gQ=function(e){var t=e.children,n=e.defaultShowTooltip,r=qO(t,hG),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(o=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},mQ=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},vQ=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,l=n.width,s=n.height,c=n.children,u=n.margin||{},d=qO(c,hG),f=qO(c,yj),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:nQ(nQ({},e),{},rQ({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:nQ(nQ({},e),{},rQ({},r,nO(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),g=nQ(nQ({},h),p),m=g.bottom;d&&(g.bottom+=d.props.height||hG.defaultProps.height),f&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,l=i-(a.left||0)-(a.right||0),s=KK({children:o,legendWidth:l});if(s){var c=r||{},u=c.width,d=c.height,f=s.align,p=s.verticalAlign,h=s.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&xO(e[f]))return UK(UK({},e),{},WK({},f,e[f]+(u||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&xO(e[p]))return UK(UK({},e),{},WK({},p,e[p]+(d||0)))}return e}(g,0,n,t));var v=l-g.left-g.right,y=s-g.top-g.bottom;return nQ(nQ({brushBottom:m},g),{},{width:Math.max(v,0),height:Math.max(y,0)})},yQ=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},bQ=function(e){var t,n=e.chartName,r=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,l=e.validateTooltipEventTypes,s=void 0===l?["axis"]:l,u=e.axisComponents,d=e.legendContent,f=e.formatAxisMap,p=e.defaultProps,h=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,d=e.barGap,f=e.barCategoryGap,p=e.maxBarSize,h=mQ(c),g=h.numericAxisName,m=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=VO(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),y=[];return n.forEach((function(n,h){var b=cQ(e.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:l}),w=n.props,C=w.dataKey,x=w.maxBarSize,S=n.props["".concat(g,"Id")],k=n.props["".concat(m,"Id")],E=u.reduce((function(e,r){var o,i,a=t["".concat(r.axisType,"Map")],l=n.props["".concat(r.axisType,"Id")];a&&a[l]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?MK(0,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(o=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==o?o:"")):MK());var s=a[l];return nQ(nQ({},e),{},rQ(rQ({},r.axisType,s),"".concat(r.axisType,"Ticks"),nV(s)))}),{}),O=E[m],D=E["".concat(m,"Ticks")],P=r&&r[S]&&r[S].hasStack&&function(e,t){var n=e.props.stackId;if(SO(n)){var r=t[n];if(r){var o=r.items.indexOf(e);return o>=0?r.stackedData[o]:null}}return null}(n,r[S].stackGroups),T=VO(n.type).indexOf("Bar")>=0,A=vV(O,D),M=[],_=v&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,o=void 0===r?{}:r;if(!o)return{};for(var i={},a=Object.keys(o),l=0,s=a.length;l<s;l++)for(var c=o[a[l]].stackGroups,u=Object.keys(c),d=0,f=u.length;d<f;d++){var p=c[u[d]],h=p.items,g=p.cateAxisId,m=h.filter((function(e){return VO(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[g];i[y]||(i[y]=[]);var b=rO(v)?t:v;i[y].push({item:m[0],stackList:m.slice(1),barSize:rO(b)?void 0:OO(b,n,0)})}}return i}({barSize:s,stackGroups:r,totalSize:yQ(E,m)});if(T){var j,L,R=rO(x)?p:x,I=null!==(j=null!==(L=vV(O,D,!0))&&void 0!==L?L:R)&&void 0!==j?j:0;M=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var s,c=OO(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,f=r/l,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(l-1)*c)>=r&&(p-=(l-1)*c,c=0),p>=r&&f>0&&(d=!0,p=l*(f*=.9));var h={offset:((r-p)/2>>0)-c,size:0};s=i.reduce((function(e,t){var n={item:t.item,position:{offset:h.offset+h.size+c,size:d?f:t.barSize}},r=[].concat(ZK(e),[n]);return h=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:h})})),r}),u)}else{var g=OO(n,r,0,!0);r-2*g-(l-1)*c<=0&&(c=0);var m=(r-2*g-(l-1)*c)/l;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;s=i.reduce((function(e,t,n){var r=[].concat(ZK(e),[{item:t.item,position:{offset:g+(m+c)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),u)}return s}({barGap:d,barCategoryGap:f,bandSize:I!==A?I:A,sizeList:_[k],maxBarSize:R}),I!==A&&(M=M.map((function(e){return nQ(nQ({},e),{},{position:nQ(nQ({},e.position),{},{offset:e.position.offset-I/2})})})))}var N,$,z=n&&n.type&&n.type.getComposedData;z&&y.push({props:nQ(nQ({},z(nQ(nQ({},E),{},{displayedData:b,props:e,dataKey:C,item:n,bandSize:A,barPosition:M,offset:o,stackedData:P,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},rQ(rQ(rQ({key:n.key||"item-".concat(h)},g,E[g]),m,E[m]),"animationId",i)),childIndex:(N=n,$=e.children,WO($).indexOf(N)),item:n})})),y},g=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!GO({props:o}))return null;var s=o.children,c=o.layout,d=o.stackOffset,p=o.data,g=o.reverseStackOrder,m=mQ(c),v=m.numericAxisName,y=m.cateAxisName,b=ZO(s,r),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],l=e[a]||{hasStack:!1,stackGroups:{}};if(SO(i)){var s=l.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),l.hasStack=!0,l.stackGroups[i]=s}else l.stackGroups[EO("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return UK(UK({},e),{},WK({},a,l))}),{});return Object.keys(a).reduce((function(t,i){var l=a[i];return l.hasStack&&(l.stackGroups=Object.keys(l.stackGroups).reduce((function(t,i){var a=l.stackGroups[i];return UK(UK({},t),{},WK({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:cV(e,a.items,o)}))}),{})),UK(UK({},t),{},WK({},i,l))}),{})}(p,b,"".concat(v,"Id"),"".concat(y,"Id"),d,g),C=u.reduce((function(e,t){var n="".concat(t.axisType,"Map");return nQ(nQ({},e),{},rQ({},n,hQ(o,nQ(nQ({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),x=vQ(nQ(nQ({},C),{},{props:o,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(C).forEach((function(e){C[e]=f(o,C[e],x,e.replace("Map",""),n)}));var S,k,E=C["".concat(y,"Map")],O=(S=DO(E),{tooltipTicks:k=nV(S,!1,!0),orderedTooltipTicks:bL(k,(function(e){return e.coordinate})),tooltipAxis:S,tooltipAxisBandSize:vV(S,k)}),D=h(o,nQ(nQ({},C),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:w,offset:x}));return nQ(nQ({formattedGraphicalItems:D,graphicalItems:b,offset:x,stackGroups:w},O),C)};return t=function(e){function t(e){var r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rQ(YJ(a=ZJ(this,t,[e])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),rQ(YJ(a),"accessibilityManager",new _J),rQ(YJ(a),"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,n=t.dataStartIndex,r=t.dataEndIndex,o=t.updateId;a.setState(nQ({legendBBox:e},g({props:a.props,dataStartIndex:n,dataEndIndex:r,updateId:o},nQ(nQ({},a.state),{},{legendBBox:e}))))}})),rQ(YJ(a),"handleReceiveSyncEvent",(function(e,t,n){if(a.props.syncId===e){if(n===a.eventEmitterSymbol&&"function"!=typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),rQ(YJ(a),"handleBrushChange",(function(e){var t=e.startIndex,n=e.endIndex;if(t!==a.state.dataStartIndex||n!==a.state.dataEndIndex){var r=a.state.updateId;a.setState((function(){return nQ({dataStartIndex:t,dataEndIndex:n},g({props:a.props,dataStartIndex:t,dataEndIndex:n,updateId:r},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}})),rQ(YJ(a),"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var n=nQ(nQ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseEnter;uk(r)&&r(n,e)}})),rQ(YJ(a),"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),n=t?nQ(nQ({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(n),a.triggerSyncEvent(n);var r=a.props.onMouseMove;uk(r)&&r(n,e)})),rQ(YJ(a),"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),rQ(YJ(a),"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),rQ(YJ(a),"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),rQ(YJ(a),"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var n=a.props.onMouseLeave;uk(n)&&n(t,e)})),rQ(YJ(a),"handleOuterEvent",(function(e){var t,n=function(e){var t=e&&e.type;return t&&KO[t]?KO[t]:null}(e),r=nO(a.props,"".concat(n));n&&uk(r)&&r(null!==(t=/.*touch.*/i.test(n)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),rQ(YJ(a),"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var n=nQ(nQ({},t),{},{isTooltipActive:!0});a.setState(n),a.triggerSyncEvent(n);var r=a.props.onClick;uk(r)&&r(n,e)}})),rQ(YJ(a),"handleMouseDown",(function(e){var t=a.props.onMouseDown;uk(t)&&t(a.getMouseInfo(e),e)})),rQ(YJ(a),"handleMouseUp",(function(e){var t=a.props.onMouseUp;uk(t)&&t(a.getMouseInfo(e),e)})),rQ(YJ(a),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),rQ(YJ(a),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),rQ(YJ(a),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),rQ(YJ(a),"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&OJ.emit(DJ,a.props.syncId,e,a.eventEmitterSymbol)})),rQ(YJ(a),"applySyncEvent",(function(e){var t=a.props,n=t.layout,r=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(nQ({dataStartIndex:i,dataEndIndex:l},g({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=a.state,f=d.offset,p=d.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var h=0;h<p.length;h++)if(p[h].value===e.activeLabel){u=h;break}}var m=nQ(nQ({},f),{},{x:f.left,y:f.top}),v=Math.min(s,m.x+m.width),y=Math.min(c,m.y+m.height),b=p[u]&&p[u].value,w=dQ(a.state,a.props.data,u),C=p[u]?{x:"horizontal"===n?p[u].coordinate:v,y:"horizontal"===n?y:p[u].coordinate}:lQ;a.setState(nQ(nQ({},e),{},{activeLabel:b,activeCoordinate:C,activePayload:w,activeTooltipIndex:u}))}else a.setState(e)})),rQ(YJ(a),"renderCursor",(function(e){var t,r=a.state,i=r.isTooltipActive,l=r.activeCoordinate,s=r.activePayload,c=r.offset,u=r.activeTooltipIndex,d=r.tooltipAxisBandSize,f=a.getTooltipEventType(),p=null!==(t=e.props.active)&&void 0!==t?t:i,h=a.props.layout,g=e.key||"_recharts-cursor";return o.createElement(zJ,{key:g,activeCoordinate:l,activePayload:s,activeTooltipIndex:u,chartName:n,element:e,isActive:p,layout:h,offset:c,tooltipAxisBandSize:d,tooltipEventType:f})})),rQ(YJ(a),"renderPolarAxis",(function(e,t,n){var r=nO(e,"type.axisType"),o=nO(a.state,"".concat(r,"Map")),i=o&&o[e.props["".concat(r,"Id")]];return c(e,nQ(nQ({},i),{},{className:oo(r,i.className),key:e.key||"".concat(t,"-").concat(n),ticks:nV(i,!0)}))})),rQ(YJ(a),"renderPolarGrid",(function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,o=t.polarRadius,i=a.state,l=i.radiusAxisMap,s=i.angleAxisMap,u=DO(l),d=DO(s),f=d.cx,p=d.cy,h=d.innerRadius,g=d.outerRadius;return c(e,{polarAngles:Array.isArray(r)?r:nV(d,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(o)?o:nV(u,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:n})})),rQ(YJ(a),"renderLegend",(function(){var e=a.state.formattedGraphicalItems,t=a.props,n=t.children,r=t.width,o=t.height,i=a.props.margin||{},l=r-(i.left||0)-(i.right||0),s=KK({children:n,formattedGraphicalItems:e,legendWidth:l,legendContent:d});if(!s)return null;var u=s.item,f=UJ(s,FJ);return c(u,nQ(nQ({},f),{},{chartWidth:r,chartHeight:o,margin:i,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),rQ(YJ(a),"renderTooltip",(function(){var e,t=a.props,n=t.children,r=t.accessibilityLayer,o=qO(n,iR);if(!o)return null;var i=a.state,l=i.isTooltipActive,s=i.activeCoordinate,u=i.activePayload,d=i.activeLabel,f=i.offset,p=null!==(e=o.props.active)&&void 0!==e?e:l;return c(o,{viewBox:nQ(nQ({},f),{},{x:f.left,y:f.top}),active:p,label:d,payload:p?u:[],coordinate:s,accessibilityLayer:r})})),rQ(YJ(a),"renderBrush",(function(e){var t=a.props,n=t.margin,r=t.data,o=a.state,i=o.offset,l=o.dataStartIndex,s=o.dataEndIndex,u=o.updateId;return c(e,{key:e.key||"_recharts-brush",onChange:oV(a.handleBrushChange,e.props.onChange),data:r,x:xO(e.props.x)?e.props.x:i.left,y:xO(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:xO(e.props.width)?e.props.width:i.width,startIndex:l,endIndex:s,updateId:"brush-".concat(u)})})),rQ(YJ(a),"renderReferenceElement",(function(e,t,n){if(!e)return null;var r=YJ(a).clipPathId,o=a.state,i=o.xAxisMap,l=o.yAxisMap,s=o.offset,u=e.props,d=u.xAxisId,f=u.yAxisId;return c(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[d],yAxis:l[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:r})})),rQ(YJ(a),"renderActivePoints",(function(e){var n=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,l=[],s=n.props.key,c=n.item.props,u=c.activeDot,d=nQ(nQ({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:XK(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value,key:"".concat(s,"-activePoint-").concat(i)},XO(u,!1)),IO(u));return l.push(t.renderActiveDot(u,d)),o?l.push(t.renderActiveDot(u,nQ(nQ({},d),{},{cx:o.x,cy:o.y,key:"".concat(s,"-basePoint-").concat(i)}))):a&&l.push(null),l})),rQ(YJ(a),"renderGraphicChild",(function(e,t,n){var r=a.filterFormatItem(e,t,n);if(!r)return null;var o=a.getTooltipEventType(),i=a.state,l=i.isTooltipActive,s=i.tooltipAxis,u=i.activeTooltipIndex,d=i.activeLabel,f=qO(a.props.children,iR),p=r.props,h=p.points,g=p.isRange,m=p.baseLine,v=r.item.props,y=v.activeDot,b=v.hide,w=v.activeBar,C=v.activeShape,x=Boolean(!b&&l&&f&&(y||w||C)),S={};"axis"!==o&&f&&"click"===f.props.trigger?S={onClick:oV(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==o&&(S={onMouseLeave:oV(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:oV(a.handleItemMouseEnter,e.props.onMouseEnter)});var k=c(e,nQ(nQ({},r.props),S));if(x){if(!(u>=0)){var E,O=(null!==(E=a.getItemByXY(a.state.activeCoordinate))&&void 0!==E?E:{graphicalItem:k}).graphicalItem,D=O.item,P=void 0===D?e:D,T=O.childIndex,A=nQ(nQ(nQ({},r.props),S),{},{activeIndex:T});return[c(P,A),null,null]}var M,_;if(s.dataKey&&!s.allowDuplicatedCategory){var j="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());M=TO(h,j,d),_=g&&m&&TO(m,j,d)}else M=null==h?void 0:h[u],_=g&&m&&m[u];if(C||w){var L=void 0!==e.props.activeIndex?e.props.activeIndex:u;return[c(e,nQ(nQ(nQ({},r.props),S),{},{activeIndex:L})),null,null]}if(!rO(M))return[k].concat(JJ(a.renderActivePoints({item:r,activePoint:M,basePoint:_,childIndex:u,isRange:g})))}return g?[k,null,null]:[k,null]})),rQ(YJ(a),"renderCustomized",(function(e,t,n){return c(e,nQ(nQ({key:"recharts-customized-".concat(n)},a.props),a.state))})),rQ(YJ(a),"renderMap",{CartesianGrid:{handler:sQ,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:sQ},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:sQ},YAxis:{handler:sQ},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(r=e.id)&&void 0!==r?r:EO("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=TR(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XJ(e,t)}(t,b),WJ(t,[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,o=e.layout,i=qO(t,iR);if(i){var a=i.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,s=dQ(this.state,n,a,l),c=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===o?{x:c,y:u}:{y:c,x:u},f=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));f&&(d=nQ(nQ({},d),f.props.points[a].tooltipPosition),s=f.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:s,activeCoordinate:d};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;var n,r;(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}});return null}},{key:"componentDidUpdate",value:function(e){JO([qO(e.children,iR)],[qO(this.props.children,iR)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=qO(this.props.children,iR);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return s.indexOf(t)>=0?t:a}return a}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n=this.container,r=n.getBoundingClientRect(),o={top:(t=r).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=r.width/n.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,a);if(!l)return null;var s=this.state,c=s.xAxisMap,u=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&c&&u){var d=DO(c).scale,f=DO(u).scale,p=d&&d.invert?d.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return nQ(nQ({},i),{},{xValue:p,yValue:h})}var g=fQ(this.state,this.props.data,this.props.layout,l);return g?nQ(nQ({},i),g):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,o=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,s=l.angleAxisMap,c=l.radiusAxisMap;if(s&&c){var u=DO(s);return _V({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=qO(e,iR),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),nQ(nQ({},IO(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){OJ.on(DJ,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){OJ.removeListener(DJ,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===VO(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,i=t.height,a=t.width;return o.createElement("defs",null,o.createElement("clipPath",{id:e},o.createElement("rect",{x:n,y:r,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=HJ(t,2),r=n[0],o=n[1];return nQ(nQ({},e),{},rQ({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=HJ(t,2),r=n[0],o=n[1];return nQ(nQ({},e),{},rQ({},r,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var o=0,i=n.length;o<i;o++){var a=n[o],l=a.props,s=a.item,c=VO(s.type);if("Bar"===c){var u=(l.data||[]).find((function(t){return IW(e,t)}));if(u)return{graphicalItem:a,payload:u}}else if("RadialBar"===c){var d=(l.data||[]).find((function(t){return _V(e,t)}));if(d)return{graphicalItem:a,payload:d}}else if(Cq(a,r)||xq(a,r)||Sq(a,r)){var f=Dq({graphicalItem:a,activeTooltipItem:r,itemData:s.props.data}),p=void 0===s.props.activeIndex?f:s.props.activeIndex;return{graphicalItem:nQ(nQ({},a),{},{childIndex:p}),payload:Sq(a,r)?s.props.data[f]:a.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!GO(this))return null;var t,n,r=this.props,i=r.children,a=r.className,l=r.width,s=r.height,c=r.style,u=r.compact,d=r.title,f=r.desc,p=UJ(r,BJ),h=XO(p,!1);if(u)return o.createElement(KY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement(oD,VJ({},h,{width:l,height:s,title:d,desc:f}),this.renderClipPath(),eD(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(t=this.props.tabIndex)&&void 0!==t?t:0,h.role=null!==(n=this.props.role)&&void 0!==n?n:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return o.createElement(KY,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},o.createElement("div",VJ({className:oo("recharts-wrapper",a),style:nQ({position:"relative",cursor:"default",width:l,height:s},c)},g,{ref:function(t){e.container=t}}),o.createElement(oD,VJ({},h,{width:l,height:s,title:d,desc:f,style:aQ}),this.renderClipPath(),eD(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}]),t}(),rQ(t,"displayName",n),rQ(t,"defaultProps",nQ({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),rQ(t,"getDerivedStateFromProps",(function(e,t){var n=e.dataKey,r=e.data,o=e.children,i=e.width,a=e.height,l=e.layout,s=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var f=gQ(e);return nQ(nQ(nQ({},f),{},{updateId:0},g(nQ(nQ({props:e},f),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:c,prevChildren:o})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||l!==t.prevLayout||s!==t.prevStackOffset||!AO(c,t.prevMargin)){var p=gQ(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=nQ(nQ({},fQ(t,r,l)),{},{updateId:t.updateId+1}),v=nQ(nQ(nQ({},p),h),m);return nQ(nQ(nQ({},v),g(nQ({props:e},v),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:s,prevMargin:c,prevChildren:o})}if(!JO(o,t.prevChildren)){var y,b,w,C,x=qO(o,hG),S=x&&null!==(y=null===(b=x.props)||void 0===b?void 0:b.startIndex)&&void 0!==y?y:u,k=x&&null!==(w=null===(C=x.props)||void 0===C?void 0:C.endIndex)&&void 0!==w?w:d,E=S!==u||k!==d,O=!rO(r)&&!E?t.updateId:t.updateId+1;return nQ(nQ({updateId:O},g(nQ(nQ({props:e},t),{},{updateId:O,dataStartIndex:S,dataEndIndex:k}),t)),{},{prevChildren:o,dataStartIndex:S,dataEndIndex:k})}return null})),rQ(t,"renderActiveDot",(function(e,t){var n;return n=m(e)?c(e,t):uk(e)?e(t):o.createElement(qW,t),o.createElement(sD,{className:"recharts-active-dot",key:t.key},n)})),t},wQ=bQ({chartName:"LineChart",GraphicalChild:vJ,axisComponents:[{axisType:"xAxis",AxisComp:bJ},{axisType:"yAxis",AxisComp:CJ}],formatAxisMap:vY}),CQ=bQ({chartName:"BarChart",GraphicalChild:uY,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:bJ},{axisType:"yAxis",AxisComp:CJ}],formatAxisMap:vY}),xQ=bQ({chartName:"PieChart",GraphicalChild:Fq,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:BZ},{axisType:"radiusAxis",AxisComp:DZ}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,l=e.startAngle,s=e.endAngle,c=OO(e.cx,i,i/2),u=OO(e.cy,a,a/2),d=TV(i,a,n),f=OO(e.innerRadius,d,0),p=OO(e.outerRadius,d,.8*d);return Object.keys(t).reduce((function(e,n){var i,a=t[n],d=a.domain,h=a.reversed;if(rO(a.range))"angleAxis"===r?i=[l,s]:"radiusAxis"===r&&(i=[f,p]),h&&(i=[i[1],i[0]]);else{var g=kV(i=a.range,2);l=g[0],s=g[1]}var m=iV(a,o),v=m.realScaleType,y=m.scale;y.domain(d).range(i),lV(y);var b=uV(y,xV(xV({},a),{},{realScaleType:v})),w=xV(xV(xV({},a),b),{},{range:i,radius:p,realScaleType:v,scale:y,cx:c,cy:u,innerRadius:f,outerRadius:p,startAngle:l,endAngle:s});return xV(xV({},e),{},SV({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const SQ=se.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,minWidth:n||8,minHeight:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),wn,Cn);function kQ(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}function EQ(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function OQ(e,t){const n=kQ(e);return isNaN(t)?EQ(e,NaN):t?(n.setDate(n.getDate()+t),n):n}const DQ=6048e5,PQ=864e5;let TQ={};function AQ(){return TQ}function MQ(e,t){const n=AQ(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=kQ(e),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function _Q(e){return MQ(e,{weekStartsOn:1})}function jQ(e){const t=kQ(e),n=t.getFullYear(),r=EQ(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=_Q(r),i=EQ(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);const a=_Q(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function LQ(e){const t=kQ(e);return t.setHours(0,0,0,0),t}function RQ(e){const t=kQ(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function IQ(e,t){const n=LQ(e),r=LQ(t),o=+n-RQ(n),i=+r-RQ(r);return Math.round((o-i)/PQ)}function NQ(e){return EQ(e,Date.now())}function $Q(e,t){return+LQ(e)==+LQ(t)}function zQ(e){if(!(t=e,t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)||"number"==typeof e))return!1;var t;const n=kQ(e);return!isNaN(Number(n))}function FQ(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function BQ(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}function KQ(e,t,n){const r=function(e,t){return+kQ(e)-+kQ(t)}(e,t)/6e4;return BQ(n?.roundingMethod)(r)}function VQ(e,t,n){const r=function(e,t){const n=kQ(e),r=kQ(t),o=FQ(n,r),i=Math.abs(IQ(n,r));n.setDate(n.getDate()-o*i);const a=o*(i-Number(FQ(n,r)===-o));return 0===a?0:a}(e,t)/7;return BQ(n?.roundingMethod)(r)}const HQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function UQ(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const WQ={date:UQ({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UQ({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:UQ({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ZQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function qQ(e){return(t,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const GQ={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:qQ({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:qQ({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:qQ({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:qQ({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:qQ({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function YQ(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(l,(e=>e.test(a)));let c;c=e.valueCallback?e.valueCallback(s):s,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}const XQ={ordinalNumber:(JQ={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(JQ.matchPattern);if(!n)return null;const r=n[0],o=e.match(JQ.parsePattern);if(!o)return null;let i=JQ.valueCallback?JQ.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(r.length)}}),era:YQ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:YQ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:YQ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:YQ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:YQ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var JQ;const QQ={code:"en-US",formatDistance:(e,t,n)=>{let r;const o=HQ[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:WQ,formatRelative:(e,t,n,r)=>ZQ[e],localize:GQ,match:XQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function e1(e){const t=kQ(e),n=IQ(t,function(e){const t=kQ(e),n=EQ(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t));return n+1}function t1(e){const t=kQ(e),n=+_Q(t)-+function(e){const t=jQ(e),n=EQ(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),_Q(n)}(t);return Math.round(n/DQ)+1}function n1(e,t){const n=kQ(e),r=n.getFullYear(),o=AQ(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=EQ(e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=MQ(a,t),s=EQ(e,0);s.setFullYear(r,0,i),s.setHours(0,0,0,0);const c=MQ(s,t);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function r1(e,t){const n=kQ(e),r=+MQ(n,t)-+function(e,t){const n=AQ(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=n1(e,t),i=EQ(e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),MQ(i,t)}(n,t);return Math.round(r/DQ)+1}function o1(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const i1={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return o1("yy"===t?r%100:r,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):o1(n+1,2)},d:(e,t)=>o1(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>o1(e.getHours()%12||12,t.length),H:(e,t)=>o1(e.getHours(),t.length),m:(e,t)=>o1(e.getMinutes(),t.length),s:(e,t)=>o1(e.getSeconds(),t.length),S(e,t){const n=t.length,r=e.getMilliseconds();return o1(Math.trunc(r*Math.pow(10,n-3)),t.length)}},a1="midnight",l1="noon",s1="morning",c1="afternoon",u1="evening",d1="night",f1={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return i1.y(e,t)},Y:function(e,t,n,r){const o=n1(e,r),i=o>0?o:1-o;if("YY"===t){return o1(i%100,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):o1(i,t.length)},R:function(e,t){return o1(jQ(e),t.length)},u:function(e,t){return o1(e.getFullYear(),t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return o1(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return o1(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return i1.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return o1(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=r1(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):o1(o,t.length)},I:function(e,t,n){const r=t1(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):o1(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):i1.d(e,t)},D:function(e,t,n){const r=e1(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):o1(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return o1(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return o1(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return o1(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?l1:0===r?a1:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?u1:r>=12?c1:r>=4?s1:d1,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return i1.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):i1.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):o1(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):o1(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):i1.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):i1.s(e,t)},S:function(e,t){return i1.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return h1(r);case"XXXX":case"XX":return g1(r);default:return g1(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return h1(r);case"xxxx":case"xx":return g1(r);default:return g1(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+p1(r,":");default:return"GMT"+g1(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+p1(r,":");default:return"GMT"+g1(r,":")}},t:function(e,t,n){return o1(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return o1(e.getTime(),t.length)}};function p1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+o1(i,2)}function h1(e,t){if(e%60==0){return(e>0?"-":"+")+o1(Math.abs(e)/60,2)}return g1(e,t)}function g1(e,t=""){const n=e>0?"-":"+",r=Math.abs(e);return n+o1(Math.trunc(r/60),2)+t+o1(r%60,2)}const m1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},v1=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},y1={p:v1,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return m1(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",m1(r,t)).replace("{{time}}",v1(o,t))}},b1=/^D+$/,w1=/^Y+$/,C1=["D","DD","YY","YYYY"];const x1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,k1=/^'([^]*?)'?$/,E1=/''/g,O1=/[a-zA-Z]/;function D1(e,t,n){const r=AQ(),o=r.locale??QQ,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=kQ(e);if(!zQ(l))throw new RangeError("Invalid time value");let s=t.match(S1).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,y1[t])(e,o.formatLong)}return e})).join("").match(x1).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:P1(e)};if(f1[t])return{isToken:!0,value:e};if(t.match(O1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(s=o.localize.preprocessor(l,s));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return s.map((n=>{if(!n.isToken)return n.value;const r=n.value;(function(e){return w1.test(e)}(r)||function(e){return b1.test(e)}(r))&&function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(r),C1.includes(e))throw new RangeError(r)}(r,t,String(e));return(0,f1[r[0]])(l,r,o.localize,c)})).join("")}function P1(e){const t=e.match(k1);return t?t[1].replace(E1,"'"):e}function T1(e){return function(e,t){const n=kQ(e),r=kQ(t);return n.getFullYear()===r.getFullYear()}(e,NQ(e))}function A1(e){return $Q(e,function(e,t){return OQ(e,-t)}(NQ(e),1))}const M1=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,l="relative"===r||!1,s=new Date,c=D1(n,"EEEE"),u=D1(n,"MMM d"),d=D1(n,"MMM d, y"),f=D1(n,"h:mm aaa"),p=T1(n),h=function(e){return+kQ(e)>Date.now()}(n),g=function(e){return $Q(e,NQ(e))}(n),m=A1(n),v=function(e){return $Q(e,OQ(NQ(e),1))}(n),y=KQ(s,n),b=VQ(s,n),w=y>=-10&&y<=10,C=a||l?`, ${f}`:"",x=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return x(f);if(l){if(0===y)return x("Just now");if(w)return x(h?`Today, in ${-1*y} min.`:`${y} min. ago`);if(g)return x(h?`Today${C}`:f)}return x(g?`Today${C}`:m?`Yesterday${C}`:v?`Tomorrow${C}`:0!==b||h?p?`${u}${C}`:`${d}${C}`:`${c}${C}`)},_1=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},j1=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),L1=()=>e(D,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),R1=se.div((({width:e,height:t,maxWidth:n,maxHeight:r,responsive:o})=>({width:e||"100%",height:t||"100%",maxWidth:o?n||"100%":void 0,maxHeight:o?r||"100%":void 0})),wn),I1=({active:t,payload:r,label:o})=>t&&r&&r.length?n(B1,{children:[e(K1,{children:o}),null==r?void 0:r.map((t=>{var r,o;const i=t.color||(null===(r=t.payload)||void 0===r?void 0:r.color),a=`${null===(o=t.payload)||void 0===o?void 0:o.name}-${t.dataKey}-${t.value}`;return n(F1,{children:[i&&e(SQ,{color:i}),t.name,": ",j1(t.value||0)]},a)}))]}):null,N1=()=>{const{elevation1:t}=O();return e(iR,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e(I1,{})})},$1=({payload:t,toggleData:r})=>e(z1,{children:null==t?void 0:t.map((t=>n(F1,{onClick:r?()=>r(t):void 0,clickable:!!r,inactive:t.inactive,children:[e(SQ,{color:t.color}),t.value]},`${t.dataKey}-${t.value}`)))}),z1=se.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),F1=se.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),B1=se.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),K1=se.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),V1=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:l,barCategoryGap:s,barSize:c=16,maxBarSize:u,vertical:d=!1,hideYLabels:f,hideXLabels:p,xAxisHeight:h=22,yAxisWidth:g=45}=t,m=j(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels","xAxisHeight","yAxisWidth"]);const{scale2:v}=O();return n(R1,Object.assign({},m,{children:[e(L1,{}),e(IR,{width:"100%",height:"100%",children:n(CQ,{margin:{top:0,left:0,right:0,bottom:0},data:r,layout:d?"vertical":"horizontal",barSize:c,maxBarSize:u,barGap:l,barCategoryGap:s,children:[e(eJ,{stroke:v,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e(bJ,{stroke:v,tickMargin:4,tickFormatter:e=>d?MS(e):e,tick:!p&&{},height:p?12:h,dataKey:d?void 0:"name",type:d?"number":"category"}),e(CJ,{stroke:v,tickMargin:4,tickFormatter:e=>d?e:MS(e),tick:!f&&{},width:f?5:g,dataKey:d?"name":void 0,type:d?"category":"number"}),N1(),o&&e(yj,{content:e($1,{})}),i.map((({key:t,color:n},r)=>{let o=d?[0,2,2,0]:[2,2,0,0];return a&&r!==i.length-1&&(o=[0,0,0,0]),e(uY,{dataKey:t,fill:n,stackId:a?"stack":void 0,radius:o},`bar-${r+1}`)}))]})})]}))},H1=[({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,width:"min-content",padding:8,backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"})],U1=({range:t,initialDate:r})=>n(Lb,{children:[e(q1,{children:t=>e(G1,{children:t})}),e(W1,{range:t,children:n=>e(Z1,{date:n,current:r?es(n,r):void 0,range:t})})]}),W1=se(Fb)({"& > tr > td":{padding:"2px 4px"},"& > tr > td:first-of-type":{paddingLeft:0},"& > tr > td:last-of-type":{paddingRight:0},"& > tr:first-of-type > td":{paddingTop:0},"& > tr:last-of-type > td":{paddingBottom:0},"& > tr > td[aria-disabled]":{cursor:"default"},"& > tr > td[aria-selected]":{position:"relative"}},(({theme:{calendar:e,color:t},range:n})=>n&&{"& > tr > td[aria-selected]::after":{background:e.background.activeRange,content:'""',height:28,left:0,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",zIndex:0},"& > tr > td[aria-selected][aria-invalid]::after":{backgroundColor:t.errorTint2},"& > tr > td[aria-selected]:has(div[data-selection-start])::after":{left:"50%"},"& > tr > td[aria-selected]:has(div[data-selection-end])::after":{right:"50%"},"& > tr:first-of-type > td[aria-selected]::after":{transform:"translateY(calc(-50% - 1px))"},"& > tr:last-of-type > td[aria-selected]::after":{transform:"translateY(calc(-50% + 1px))"}})),Z1=se(Kb)((({theme:{accent:e,font:t,calendar:n,color:r},range:o=!1})=>({width:28,height:28,lineHeight:"28px",textAlign:"center",borderRadius:"50%",cursor:"pointer",border:"none",fontSize:t.size.md,fontWeight:t.weight.default,color:n.color.default,outline:"none",outlineOffset:-1,position:"relative",zIndex:1,"&[data-disabled]":{color:n.color.disabled,cursor:"default","&:hover":{backgroundColor:"transparent"}},"&[data-hovered]":{backgroundColor:n.background.hover},"&[data-focus-visible]":{outline:`${e} solid 1px`},"&[data-outside-month]":{display:"none"},"&[data-selected]":{backgroundColor:n.background.active,color:n.color.active,"&[data-hovered]":{backgroundColor:n.background.activeHover},"&[data-focus-visible]":{outline:`${e} solid 1px`}},"&[data-selected]:not([data-selection-start]):not([data-selection-end])":{backgroundColor:o?"transparent":void 0,"&[data-hovered]:not([data-invalid])":{backgroundColor:n.background.activeHover}},"&[data-selected][data-invalid]":{backgroundColor:r.error,"&[data-hovered]":{backgroundColor:r.errorShade2}}})),(({theme:{calendar:e},current:t})=>({color:t?e.color.current:void 0}))),q1=se(Ib)((({theme:e})=>({"& > tr > th":{paddingBottom:8,color:e.scale4,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium}}))),G1=se($b)((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),Y1=[({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,isDisabled:a,isInvalid:l,isReadOnly:s,hasLabel:c,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",width:"100%",minHeight:c?48:40,height:c?48:40,padding:"5px 16px",boxSizing:"border-box",color:a?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,border:"none",borderColor:o,borderRadius:null!=r?r:4,cursor:u?"pointer":void 0,outline:"none",outlineOffset:-1,transition:"background-color 0.2s","&:focus-within":{backgroundColor:n||i||a||l?void 0:e.background.focused,outline:`${t} solid 1px`},"&:hover:not(:focus-within)":{backgroundColor:a||s||i||n?void 0:e.background.hover,Label:{color:a?void 0:e.labelColor.hover}}}),({theme:{input:e},isDisabled:t})=>({backgroundColor:t?e.background.disabled:void 0,pointerEvents:t?"none":void 0}),({isReadOnly:e})=>({cursor:e?"default":void 0}),({theme:{color:e},isInvalid:t})=>({backgroundColor:t?e.errorTint2:void 0,"&:hover:not(:focus-within)":{backgroundColor:t?e.errorTint1:void 0},"&[data-invalid]":{backgroundColor:e.errorTint2},"&:hover:not(:focus-within)&[data-invalid]":{backgroundColor:e.errorTint1}}),yn,({theme:e,textOnly:t,isDisabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0}),({backgroundColor:e})=>({backgroundColor:e}),({minHeight:e})=>({minHeight:e}),wn,bn],X1=({description:r,errorMessage:o})=>r||o?n(t,{children:[r&&!o&&e(Q1,{slot:"description",children:r}),o&&e(e0,{children:o})]}):null,J1=({theme:e})=>({position:"absolute",left:0,top:"100%",fontSize:e.font.size.sm,textAlign:"left",lineHeight:`${e.font.size.lg}px`}),Q1=se(_v)((({theme:e})=>({color:e.input.color.description})),J1),e0=se(Ub)((({theme:e})=>({color:e.input.color.descriptionError})),J1),t0=se(kv,{shouldForwardProp:e=>Ex(e,["filled","disablePointerEvents"])})((({theme:{font:e,input:t},filled:n,disablePointerEvents:r})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",boxSizing:"border-box",width:"100%",fontSize:n?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,"&:focus-within":{fontSize:e.size.sm,color:t.labelColor.focused},position:"relative",transition:"all 0.2s",pointerEvents:r?"none":void 0,overflow:"hidden"})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0}))),n0=t=>{var{id:r,value:o,header:i,body:a,leftElement:l,rightElement:s,inline:c,disabled:u}=t,d=j(t,["id","value","header","body","leftElement","rightElement","inline","disabled"]);return n(r0,Object.assign({id:r||o,textValue:o,isDisabled:u},d,{children:[l||null,i&&a?e(Lx,{header:i,body:a,inline:c}):o,s&&e("div",{style:{marginLeft:"auto"},children:s})]}))},r0=se(bw,$x)(zx),o0=se(mw,Ox)(Dx),i0=t=>{var{options:r,children:o,autoWidth:i,width:a}=t,l=j(t,["options","children","autoWidth","width"]);return n(o0,Object.assign({autoWidth:i,shouldFocusWrap:!0,width:i?void 0:a},l,{children:[null==r?void 0:r.map((t=>{if("options"in t){const n=t;return e(Vx,{id:n.id,title:n.title,children:n.options.map((t=>e(n0,Object.assign({},t),t.id||t.value)))},n.id)}const n=t;return e(n0,Object.assign({},n),n.id||n.value)})),o]}))},a0={shouldForwardProp:e=>Ex(e,["textOnly"])},l0=[({width:e,textOnly:t})=>({width:t?"max-content":e||"100%"})],s0=s(((t,r)=>{var{backgroundColor:o,children:a,fontSize:s,fontWeight:c,color:u,disabled:d,invalid:f,required:p,readOnly:h,loading:g,label:m,options:v,placeholder:y="Select",placeholderColor:b,description:w,errorMessage:C,textOnly:x,value:S,defaultValue:k,width:E,maxHeight:O,allowRepeatSelection:D,hideCaret:P,position:T,fixedPosition:A,borderRadius:M,onChange:_,afterShow:L,afterHide:R}=t,I=j(t,["backgroundColor","children","fontSize","fontWeight","color","disabled","invalid","required","readOnly","loading","label","options","placeholder","placeholderColor","description","errorMessage","textOnly","value","defaultValue","width","maxHeight","allowRepeatSelection","hideCaret","position","fixedPosition","borderRadius","onChange","afterShow","afterHide"]);const[N,$]=l(!1),[z,F]=l(S||""),B=vn(S),{padding:K,paddingTop:V,paddingBottom:H,paddingRight:U,paddingLeft:W}=I,{margin:Z,marginTop:q,marginBottom:G,marginRight:Y,marginLeft:X}=I,J={padding:K,paddingTop:V,paddingBottom:H,paddingRight:U,paddingLeft:W},Q={margin:Z,marginTop:q,marginBottom:G,marginRight:Y,marginLeft:X};i((()=>{S&&S!==B&&S!==z&&F(S)}),[S,B,z]);const ee=!(!z&&!k),te=!ee&&m,ne=P?null:e(Sn,{name:N?"caret-up":"caret-down",inheritColor:!u,color:u});return n(d0,Object.assign({placeholder:y,onOpenChange:e=>{$(e),L&&e&&L(),R&&!e&&R()},onSelectionChange:e=>{(D||e!==z)&&(F(e),_&&_(e))},isDisabled:d||h||g,isInvalid:f,isRequired:p,selectedKey:S?z:void 0,defaultSelectedKey:k,textOnly:x,width:E},I,{children:[n(f0,Object.assign({backgroundColor:o,textOnly:x,hasLabel:!!m,isDisabled:d,isReadOnly:h||g,isInvalid:f,borderRadius:M,pointer:!0,ref:r},J,Q,{children:[n(t0,{filled:ee,disabled:d,disablePointerEvents:!0,children:[m,e(p0,{fontSize:s,fontWeight:c,color:u,placeholderColor:b,isDisabled:d,style:({isPlaceholder:e})=>e&&te?{opacity:0,position:"absolute"}:{},children:({selectedText:e})=>e})]}),g?e(Qx,{size:"small"}):ne,e(X1,{description:w,errorMessage:C})]})),e(Ub,{}),e(qx,{offset:2,placement:T,shouldFlip:!A&&void 0,maxHeight:O,children:({isEntering:t,isExiting:n})=>e(i0,{options:v,autoWidth:x,readOnly:t||n,children:a})})]}))})),c0=n0,u0=Vx,d0=se(FC,a0)(l0),f0=se(Tv)(Y1,(({textOnly:e})=>({paddingRight:e?void 0:8})),bn),p0=se(VC)((({theme:{input:e,font:t},fontSize:n,fontWeight:r,color:o,placeholderColor:i,isDisabled:a})=>({color:o||(a?e.color.disabled:e.color.default),fontFamily:t.family.default,fontSize:n||t.size.lg,fontWeight:r||t.weight.default,width:"100%",textAlign:"start",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","&[data-placeholder]":{color:i||(a?e.color.disabled:e.color.placeholder)}})));var h0=Object.assign(s0,{Item:c0,Section:u0});const g0=({date:t,setDate:r})=>{const{calendar:o}=O(),i=At(1900,2100).map((e=>({value:e.toString()}))),{month:a,year:l,day:s}=t||{},c=(null==a?void 0:a.toString())||"",u=(null==l?void 0:l.toString())||"";return n(m0,{children:[e(y0,{slot:"previous",children:e(Sn,{name:"chevron-left",inheritColor:!0})}),n(v0,{children:[e(h0,{options:[{id:"1",value:"January"},{id:"2",value:"February"},{id:"3",value:"March"},{id:"4",value:"April"},{id:"5",value:"May"},{id:"6",value:"June"},{id:"7",value:"July"},{id:"8",value:"August"},{id:"9",value:"September"},{id:"10",value:"October"},{id:"11",value:"November"},{id:"12",value:"December"}],value:c,onChange:e=>{r(new lc(+u,+e,s||1))},textOnly:!0,fontSize:12,color:o.color.monthYear,hideCaret:!0,maxHeight:200,position:"bottom",fixedPosition:!0}),e(h0,{options:i,value:u,onChange:e=>{r(new lc(+e,+c,s||1))},textOnly:!0,fontSize:12,color:o.color.monthYear,hideCaret:!0,maxHeight:200,position:"bottom",fixedPosition:!0})]}),e(y0,{slot:"next",children:e(Sn,{name:"chevron-right",inheritColor:!0})})]})},m0=se.header({display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8}),v0=se.div((({theme:{font:e,calendar:t}})=>({display:"flex",alignItems:"center",gap:4,fontSize:e.size.sm,fontWeight:e.weight.default,color:t.color.monthYear,margin:0}))),y0=se(Ux)((({theme:e})=>({color:e.calendar.color.iconDefault,outline:"none",borderRadius:4,"&:hover":{color:e.calendar.color.iconHover},"&[data-disabled]":{color:e.calendar.color.iconDisabled,cursor:"not-allowed"}}))),b0=()=>os(cs()),w0=e=>e.toDate(cs()),C0=e=>function(e){let t=e.match(Js);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new lc(ec(t[1],0,9999),ec(t[2],1,12),1);return n.day=ec(t[3],0,n.calendar.getDaysInMonth(n)),n}(D1(e,"yyyy-MM-dd")),x0=({past:e,future:t,rel:n})=>({min:f((()=>!0===e?n:e instanceof Date?C0(e):void 0),[e]),max:f((()=>!0===t?n:t instanceof Date?C0(t):void 0),[t])}),S0=b0(),k0=t=>{var{date:r,onChange:o,preventPast:i,preventFuture:s,noShadow:c}=t,u=j(t,["date","onChange","preventPast","preventFuture","noShadow"]);const{current:d}=a(r?C0(r):S0),[f,p]=l(d),[h,g]=l(d),{min:m,max:v}=x0({past:i,future:s,rel:d});return n(E0,Object.assign({value:f,onChange:e=>{const{year:t,month:n,day:r}=e,i=new lc(t,n,r);p(i);const a=w0(e);o&&o(a)},minValue:m,maxValue:v,noShadow:c,focusedValue:h,onFocusChange:g},u,{children:[e(g0,{date:h,setDate:g}),e(U1,{initialDate:d})]}))},E0=se(Tb)(H1);function O0(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=O0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function D0(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=O0(e))&&(r&&(r+=" "),r+=t);return r}var P0,T0,A0=Object.create,M0=Object.defineProperty,_0=Object.defineProperties,j0=Object.getOwnPropertyDescriptor,L0=Object.getOwnPropertyDescriptors,R0=Object.getOwnPropertyNames,I0=Object.getOwnPropertySymbols,N0=Object.getPrototypeOf,$0=Object.prototype.hasOwnProperty,z0=Object.prototype.propertyIsEnumerable,F0=(e,t,n)=>t in e?M0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B0=(e,t)=>{for(var n in t||(t={}))$0.call(t,n)&&F0(e,n,t[n]);if(I0)for(var n of I0(t))z0.call(t,n)&&F0(e,n,t[n]);return e},K0=(e,t)=>_0(e,L0(t)),V0=(e,t)=>{var n={};for(var r in e)$0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&I0)for(var r of I0(e))t.indexOf(r)<0&&z0.call(e,r)&&(n[r]=e[r]);return n},H0=(P0={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var l in i)if(i.hasOwnProperty(l)){if(l==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(l)||(a[l]=i[l])}var c=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var l in t)if(t.hasOwnProperty(l)){n.call(t,l,t[l],o||l);var s=t[l],c=r.util.type(s);"Object"!==c||i[a(s)]?"Array"!==c||i[a(s)]||(i[a(s)]=!0,e(s,n,l,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new l;return s(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,l,u,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(d&&d.cause==f+","+h)return;var g=p[h],m=g.inside,v=!!g.lookbehind,y=!!g.greedy,b=g.alias;if(y&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var C=g.pattern||g,x=l.next,S=u;x!==t.tail&&!(d&&S>=d.reach);S+=x.value.length,x=x.next){var k=x.value;if(t.length>e.length)return;if(!(k instanceof o)){var E,O=1;if(y){if(!(E=i(C,S,e,v))||E.index>=e.length)break;var D=E.index,P=E.index+E[0].length,T=S;for(T+=x.value.length;D>=T;)T+=(x=x.next).value.length;if(S=T-=x.value.length,x.value instanceof o)continue;for(var A=x;A!==t.tail&&(T<P||"string"==typeof A.value);A=A.next)O++,T+=A.value.length;O--,k=e.slice(S,T),E.index-=S}else if(!(E=i(C,0,k,v)))continue;D=E.index;var M=E[0],_=k.slice(0,D),j=k.slice(D+M.length),L=S+k.length;d&&L>d.reach&&(d.reach=L);var R=x.prev;if(_&&(R=s(t,R,_),S+=_.length),c(t,R,O),x=s(t,R,new o(f,m?r.tokenize(M,m):M,b,M)),j&&s(t,x,j),O>1){var I={cause:f+","+h,reach:L};a(e,t,n,x.prev,S,I),d&&I.reach>d.reach&&(d.reach=I.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var l="";for(var s in i.attributes)l+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+l+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return T0||(0,P0[R0(P0)[0]])((T0={exports:{}}).exports,T0),T0.exports}),U0=((e,t,n)=>(n=null!=e?A0(N0(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of R0(t))$0.call(e,o)||o===n||M0(e,o,{get:()=>t[o],enumerable:!(r=j0(t,o))||r.enumerable});return e})(e&&e.__esModule?n:M0(n,"default",{value:e,enumerable:!0}),e)))(H0());U0.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},U0.languages.markup.tag.inside["attr-value"].inside.entity=U0.languages.markup.entity,U0.languages.markup.doctype.inside["internal-subset"].inside=U0.languages.markup,U0.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(U0.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:U0.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:U0.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},U0.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(U0.languages.markup.tag,"addAttribute",{value:function(e,t){U0.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:U0.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),U0.languages.html=U0.languages.markup,U0.languages.mathml=U0.languages.markup,U0.languages.svg=U0.languages.markup,U0.languages.xml=U0.languages.extend("markup",{}),U0.languages.ssml=U0.languages.xml,U0.languages.atom=U0.languages.xml,U0.languages.rss=U0.languages.xml,function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(U0),U0.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},U0.languages.javascript=U0.languages.extend("clike",{"class-name":[U0.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),U0.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,U0.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:U0.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:U0.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:U0.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:U0.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:U0.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),U0.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:U0.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),U0.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),U0.languages.markup&&(U0.languages.markup.tag.addInlined("script","javascript"),U0.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),U0.languages.js=U0.languages.javascript,U0.languages.actionscript=U0.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),U0.languages.actionscript["class-name"].alias="function",delete U0.languages.actionscript.parameter,delete U0.languages.actionscript["literal-property"],U0.languages.markup&&U0.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:U0.languages.markup}}),function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(U0),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var l=0,s=a.length;l<s;l++)a[l]instanceof RegExp&&(a[l]={pattern:a[l]}),r(a[l]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(U0),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(U0),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+t.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[t,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0});e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(U0),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(U0),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var c,u=e.languages[n];u?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):l[t]||e})),u,n):n&&"none"!==n&&e.plugins.autoloader&&(c="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=c,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(c);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),l={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(U0),U0.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:U0.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},U0.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(d(["definition-mutation","punctuation"])&&"("===u(1).content){n+=2;var i=f(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=u(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(d(["punctuation","property-query"])&&"{"===u(0).content&&(n++,p(u(0),"property-mutation"),0<o.length)){var l=f(/^\{$/,/^\}$/);if(-1!==l)for(var s=n;s<l;s++){var c=t[s];"variable"===c.type&&0<=o.indexOf(c.content)&&p(c,"variable-input")}}}}function u(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=u(n+t);if(!r||r.type!==e[n])return}return 1}function f(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],l=a.content;if("punctuation"===a.type&&"string"==typeof l)if(e.test(l))o++;else if(r.test(l)&&0==--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),U0.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function l(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function s(t,n,a){var s=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),c=0,u={},d=(s=l(s.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=c++,n="___"+a.toUpperCase()+"_"+r+"___")););return u[n]=e,n})).join(""),n,a),Object.keys(u));return c=0,function t(n){for(var i=0;i<n.length;i++){if(c>=d.length)return;var a,s,f,p,h,g,m,v=n[i];"string"==typeof v||"string"==typeof v.content?(a=d[c],-1!==(m=(g="string"==typeof v?v:v.content).indexOf(a))&&(++c,s=g.substring(0,m),h=u[a],f=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((f=[1,1]).push.apply(f,l(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,f)),f=new e.Token("interpolation",p,r.alias,h),p=g.substring(m+a.length),h=[],s&&h.push(s),h.push(f),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof v?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):v.content=h)):(m=v.content,Array.isArray(m)?t(m):t([m]))}}(s),new e.Token(a,s,"language-"+a,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function u(e){return"string"==typeof e?e:Array.isArray(e)?e.map(u).join(""):u(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in c&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,l,c=n[r];"string"!=typeof c&&(i=c.content,Array.isArray(i)?"template-string"===c.type?(c=i[1],3===i.length&&"string"!=typeof c&&"embedded-code"===c.type&&(a=u(c),c=c.alias,c=Array.isArray(c)?c[0]:c,l=e.languages[c])&&(i[1]=s(a,l,c))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(U0),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(U0),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(U0),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(U0),U0.languages.n4js=U0.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),U0.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),U0.languages.n4jsd=U0.languages.n4js,function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(U0),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===l(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:l(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=l(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=l(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=l(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(l).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(U0),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(U0),U0.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},U0.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=U0.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(U0),U0.languages.c=U0.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),U0.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),U0.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},U0.languages.c.string],char:U0.languages.c.char,comment:U0.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:U0.languages.c}}}}),U0.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete U0.languages.c.boolean,U0.languages.objectivec=U0.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete U0.languages.objectivec["class-name"],U0.languages.objc=U0.languages.objectivec,U0.languages.reason=U0.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),U0.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete U0.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(U0),U0.languages.go=U0.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),U0.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete U0.languages.go["class-name"],function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(U0),U0.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},U0.languages.python["string-interpolation"].inside.interpolation.inside.rest=U0.languages.python,U0.languages.py=U0.languages.python;var W0={};((e,t)=>{for(var n in t)M0(e,n,{get:t[n],enumerable:!0})})(W0,{dracula:()=>Z0,duotoneDark:()=>q0,duotoneLight:()=>G0,github:()=>Y0,jettwaveDark:()=>c2,jettwaveLight:()=>u2,nightOwl:()=>X0,nightOwlLight:()=>J0,oceanicNext:()=>t2,okaidia:()=>n2,oneDark:()=>d2,oneLight:()=>f2,palenight:()=>r2,shadesOfPurple:()=>o2,synthwave84:()=>i2,ultramin:()=>a2,vsDark:()=>l2,vsLight:()=>s2});var Z0={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},q0={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},G0={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},Y0={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},X0={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},J0={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Q0="#c5a5c5",e2="#8dc891",t2={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Q0}},{types:["attr-value"],style:{color:e2}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:e2}},{types:["punctuation"],style:{color:e2}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:Q0}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},n2={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},r2={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},o2={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},i2={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},a2={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},l2={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},s2={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},c2={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},u2={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},d2={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},f2={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},p2=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=B0(B0({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=K0(B0({},n),{backgroundColor:void 0}),r},h2=/\r\n|\r|\n/,g2=e=>{0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},m2=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},v2=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,l=[];const s=[l];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,c=t[a];const u=n[a][i];if("string"==typeof u?(c=a>0?c:["plain"],e=u):(c=m2(c,u.type),u.alias&&(c=m2(c,u.alias)),e=u.content),"string"!=typeof e){a++,t.push(c),n.push(e),r.push(0),o.push(e.length);continue}const d=e.split(h2),f=d.length;l.push({types:c,content:d[0]});for(let e=1;e<f;e++)g2(l),s.push(l=[]),l.push({types:c,content:d[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return g2(l),s},y2=({children:e,language:t,code:n,theme:r,prism:o})=>{const s=t.toLowerCase(),c=((e,t)=>{const[n,r]=l(p2(t,e)),o=a(),s=a();return i((()=>{t===o.current&&e===s.current||(o.current=t,s.current=e,r(p2(t,e)))}),[e,t]),n})(s,r),u=(e=>h((t=>{var n=t,{className:r,style:o,line:i}=n,a=V0(n,["className","style","line"]);const l=K0(B0({},a),{className:D0("token-line",r)});return"object"==typeof e&&"plain"in e&&(l.style=e.plain),"object"==typeof o&&(l.style=B0(B0({},l.style||{}),o)),l}),[e]))(c),d=(e=>{const t=h((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return h((e=>{var n=e,{token:r,className:o,style:i}=n,a=V0(n,["token","className","style"]);const l=K0(B0({},a),{className:D0("token",...r.types,o),children:r.content,style:t(r)});return null!=i&&(l.style=B0(B0({},l.style||{}),i)),l}),[t])})(c),p=(({prism:e,code:t,grammar:n,language:r})=>{const o=a(e);return f((()=>{if(null==n)return v2([t]);const e={code:t,grammar:n,language:r,tokens:[]};return o.current.hooks.run("before-tokenize",e),e.tokens=o.current.tokenize(t,n),o.current.hooks.run("after-tokenize",e),v2(e.tokens)}),[t,n,r])})({prism:o,language:s,code:n,grammar:o.languages[s]});return e({tokens:p,className:`prism-code language-${s}`,style:null!=c?c.root:{},getLineProps:u,getTokenProps:d})},b2=e=>y(y2,K0(B0({},e),{prism:e.prism||U0,theme:e.theme||l2,code:e.code,language:e.language}));const w2=({content:t})=>{const[n,r]=l(!1),{color:o,scale10:a}=O();i((()=>{n&&setTimeout((()=>{r(!1)}),2e3)}),[n]);return e(C2,{onClick:()=>{_1(t),r(!0)},copied:n,children:e(Sn,n?{name:"check-circle",color:o.success}:{name:"copy",color:a})})},C2=se.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),x2=({method:t,url:r})=>{const o=O(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return n(S2,Object.assign({},i,{children:[e(k2,{backgroundColor:i.borderColor,children:t.toUpperCase()}),e(E2,{children:r}),e(w2,{content:r})]}))},S2=se.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),k2=se.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),E2=se.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),O2=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:l,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f})=>{const{name:p}=O(),h={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[m,v,b]=g;m=m||i||"",v=v||a||"",b=b||l?"nonumbers":"";let w=m?m.replace(/language-/,""):"text",C="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,C=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===b.toLowerCase().trim(),S=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?At(r,o+1):At(o,r+1)}return null}));return function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];r&&t.push(r)}return t}(t.flat())})(v);return t.some((t=>e===t))}return!1},k=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===w?e(x2,{method:C,url:k}):e(b2,{code:k,language:w,theme:"dark"===p?W0.oceanicNext:W0.github,children:({className:t,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>n(D2,Object.assign({className:t,style:Object.assign({},r)},h,{"data-testid":"code",children:[o.map(((t,n,r)=>y(P2,Object.assign({},i({line:t,key:n}),{key:`line-${n+1}`,highlight:S(n+1)}),r.length>1&&!x&&e(T2,{children:n+1}),t.map(((e,t)=>y("span",Object.assign({},a({token:e,key:t}),{key:`token-${t+1}`}))))))),e(w2,{content:k})]}))})},D2=se.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),wn),P2=se.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),T2=se.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),A2={shouldForwardProp:e=>Ex(e,["hide","placeholderColor","isDisabled"])},M2=[({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,isDisabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",cursor:a?"default":"text","&:not(:focus):not(:focus-within)":{opacity:i?0:1,position:i?"absolute":void 0},"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration":{WebkitAppearance:"none"},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})],_2=se(ew,A2)(M2),j2=({value:t,placeholder:n,fontSize:r,active:o=!0})=>{const i=a(null),[s,c]=l(o?50:void 0);w((()=>{if(o&&(null==i?void 0:i.current)){const{current:e}=i;t&&(e.innerHTML=t.replace(/ /g,"&nbsp;"));const n=e.offsetWidth;"number"==typeof n&&c(n+3)}}),[o,t,n,i]);return[s,()=>o?e(L2,{ref:i,fontSize:r,children:t||n}):null]},L2=se.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),R2=(t,n)=>{const r=e=>c(e,n);return"string"==typeof t?e(Sn,Object.assign({name:t,inheritColor:!0},n)):"object"==typeof t&&"props"in t&&"trigger"in t.props?c(t,{trigger:r(t.props.trigger)}):"object"==typeof t&&"props"in t?r(t):e(Sn,Object.assign({},t,n))},I2=s(((t,r)=>{var{backgroundColor:o,children:s,fontSize:c,disabled:u,invalid:d,required:f,readOnly:p,loading:h,label:g,options:m,placeholder:v="Select",placeholderColor:y,description:b,errorMessage:w,textOnly:C,value:x,defaultValue:S,width:k,maxHeight:E,iconLeft:O,allowRepeatSelection:D,position:P,fixedPosition:T,onChange:A,afterShow:M,afterHide:_,onTextChange:L}=t,R=j(t,["backgroundColor","children","fontSize","disabled","invalid","required","readOnly","loading","label","options","placeholder","placeholderColor","description","errorMessage","textOnly","value","defaultValue","width","maxHeight","iconLeft","allowRepeatSelection","position","fixedPosition","onChange","afterShow","afterHide","onTextChange"]);const[I,N]=l(!1),[$,z]=l(x||""),[F,B]=l((null==x?void 0:x.toString())||""),K=vn(x),[V,H]=j2({value:F,placeholder:v,fontSize:c,active:!!C}),U=a(null),{margin:W,marginTop:Z,marginBottom:q,marginRight:G,marginLeft:Y}=R,X={margin:W,marginTop:Z,marginBottom:q,marginRight:G,marginLeft:Y};i((()=>{x&&x!==K&&x!==$&&z(x)}),[x,K,$]),i((()=>{L&&L(F)}),[F]);const J=!!($||S||F),Q=!(J||!g);return n(z2,Object.assign({onOpenChange:e=>{N(e),M&&e&&M(),_&&!e&&_()},menuTrigger:"focus",onInputChange:B,onSelectionChange:e=>{e&&(D||e!==$)&&(z(e),A&&A(e))},isDisabled:u,isReadOnly:p||h,isInvalid:d,isRequired:f,shouldFocusWrap:!0,selectedKey:x?$:void 0,defaultSelectedKey:S,textOnly:C,width:k},R,{children:[n(F2,Object.assign({ref:U,hasLabel:!!g,textOnly:C,backgroundColor:o,isDisabled:u,isReadOnly:p||h,isInvalid:d},X,{children:[O&&R2(O,{marginRight:8}),n(t0,{filled:J,disabled:u,children:[g,e(_2,{placeholder:v,hide:Q,placeholderColor:y,fontSize:c,isDisabled:u,width:V,ref:r}),e(H,{})]}),h?e(Qx,{size:"small"}):e(B2,{disabled:u,readOnly:p,children:e(Sn,{name:I?"caret-up":"caret-down",inheritColor:!0})}),e(X1,{description:b,errorMessage:w})]})),e(Ub,{}),e(qx,{triggerRef:U,offset:2,placement:P,shouldFlip:!T&&void 0,maxHeight:E,children:({isEntering:t,isExiting:n})=>{var r;return e(i0,{options:m,autoWidth:C,width:null===(r=null==U?void 0:U.current)||void 0===r?void 0:r.offsetWidth,readOnly:t||n,children:s})}})]}))})),N2=n0,$2=Vx,z2=se(Bw,a0)(l0),F2=se.div(Y1,{paddingRight:8}),B2=se(Ux)((({theme:e,disabled:t,readOnly:n})=>({color:t||n?e.input.labelColor.disabled:e.input.labelColor.default,cursor:n?"default":void 0})));var K2=Object.assign(I2,{Item:N2,Section:$2}),V2=1,H2=.9,U2=.8,W2=.17,Z2=.1,q2=.999,G2=.9999,Y2=.99,X2=/[\\\/_+.#"@\[\(\{&]/,J2=/[\\\/_+.#"@\[\(\{&]/g,Q2=/[\s-]/,e5=/[\s-]/g;function t5(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?V2:Y2;var l=`${o},${i}`;if(void 0!==a[l])return a[l];for(var s,c,u,d,f=r.charAt(i),p=n.indexOf(f,o),h=0;p>=0;)(s=t5(e,t,n,r,p+1,i+1,a))>h&&(p===o?s*=V2:X2.test(e.charAt(p-1))?(s*=U2,(u=e.slice(o,p-1).match(J2))&&o>0&&(s*=Math.pow(q2,u.length))):Q2.test(e.charAt(p-1))?(s*=H2,(d=e.slice(o,p-1).match(e5))&&o>0&&(s*=Math.pow(q2,d.length))):(s*=W2,o>0&&(s*=Math.pow(q2,p-o))),e.charAt(p)!==t.charAt(i)&&(s*=G2)),(s<Z2&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((c=t5(e,t,n,r,p+1,i+2,a))*Z2>s&&(s=c*Z2)),s>h&&(h=s),p=n.indexOf(f,p+1);return a[l]=h,h}function n5(e){return e.toLowerCase().replace(e5," ")}function r5(e,t,n){return t5(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,n5(e),n5(t),0,0,{})}function o5(){return o5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o5.apply(this,arguments)}function i5(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function a5(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function l5(...e){return h(a5(...e),e)}function s5(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return f((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const c5=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?w:()=>{},u5=r["useId".toString()]||(()=>{});let d5=0;function f5(e){const[t,n]=r.useState(u5());return c5((()=>{e||n((e=>null!=e?e:String(d5++)))}),[e]),e||(t?`radix-${t}`:"")}function p5(e){const t=a(e);return i((()=>{t.current=e})),f((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function h5({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=l(e),[r]=n,o=a(r),s=p5(t);return i((()=>{o.current!==r&&(s(r),o.current=r)}),[r,o,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:r,u=p5(n);return[c,h((t=>{if(s){const n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)}),[s,e,o,u])]}const g5=s(((e,t)=>{const{children:n,...r}=e,o=u.toArray(n),i=o.find(y5);if(i){const e=i.props.children,n=o.map((t=>t===i?u.count(e)>1?u.only(null):m(e)?e.props.children:null:t));return y(m5,o5({},r,{ref:t}),m(e)?c(e,void 0,n):null)}return y(m5,o5({},r,{ref:t}),n)}));g5.displayName="Slot";const m5=s(((e,t)=>{const{children:n,...r}=e;return m(n)?c(n,{...b5(r,n.props),ref:t?a5(t,n.ref):n.ref}):u.count(n)>1?u.only(null):null}));m5.displayName="SlotClone";const v5=({children:e})=>y(C,null,e);function y5(e){return m(e)&&e.type===v5}function b5(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const w5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=s(((e,n)=>{const{asChild:r,...o}=e,a=r?g5:t;return i((()=>{window[Symbol.for("radix-ui")]=!0}),[]),y(a,o5({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});const C5="dismissableLayer.update",x5="dismissableLayer.pointerDownOutside",S5="dismissableLayer.focusOutside";let k5;const E5=d({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),O5=s(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...f}=e,h=p(E5),[g,m]=l(null),v=null!==(n=null==g?void 0:g.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,b]=l({}),w=l5(t,(e=>m(e))),C=Array.from(h.layers),[x]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),S=C.indexOf(x),k=g?C.indexOf(g):-1,E=h.layersWithOutsidePointerEventsDisabled.size>0,O=k>=S,D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=p5(e),r=a(!1),o=a((()=>{}));return i((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){P5(x5,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...h.branches].some((e=>e.contains(t)));O&&!n&&(null==s||s(e),null==u||u(e),e.defaultPrevented||null==d||d())}),v),P=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=p5(e),r=a(!1);return i((()=>{const e=e=>{if(e.target&&!r.current){P5(S5,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...h.branches].some((e=>e.contains(t)))||(null==c||c(e),null==u||u(e),e.defaultPrevented||null==d||d())}),v);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=p5(e);i((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{k===h.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))}),v),i((()=>{if(g)return r&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(k5=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),D5(),()=>{r&&1===h.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=k5)}}),[g,v,r,h]),i((()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),D5())}),[g,h]),i((()=>{const e=()=>b({});return document.addEventListener(C5,e),()=>document.removeEventListener(C5,e)}),[]),y(w5.div,o5({},f,{ref:w,style:{pointerEvents:E?O?"auto":"none":void 0,...e.style},onFocusCapture:i5(e.onFocusCapture,P.onFocusCapture),onBlurCapture:i5(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:i5(e.onPointerDownCapture,D.onPointerDownCapture)}))}));function D5(){const e=new CustomEvent(C5);document.dispatchEvent(e)}function P5(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&M((()=>e.dispatchEvent(t)))}(o,i):o.dispatchEvent(i)}const T5="focusScope.autoFocusOnMount",A5="focusScope.autoFocusOnUnmount",M5={bubbles:!1,cancelable:!0},_5=s(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[u,d]=l(null),f=p5(o),p=p5(s),g=a(null),m=l5(t,(e=>d(e))),v=a({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i((()=>{if(r){function e(e){if(v.paused||!u)return;const t=e.target;u.contains(t)?g.current=t:I5(g.current,{select:!0})}function t(e){if(v.paused||!u)return;const t=e.relatedTarget;null!==t&&(u.contains(t)||I5(g.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&I5(u)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return u&&o.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}}),[r,u,v.paused]),i((()=>{if(u){N5.add(v);const t=document.activeElement;if(!u.contains(t)){const n=new CustomEvent(T5,M5);u.addEventListener(T5,f),u.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(I5(r,{select:t}),document.activeElement!==n)return}((e=j5(u),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&I5(u))}return()=>{u.removeEventListener(T5,f),setTimeout((()=>{const e=new CustomEvent(A5,M5);u.addEventListener(A5,p),u.dispatchEvent(e),e.defaultPrevented||I5(null!=t?t:document.body,{select:!0}),u.removeEventListener(A5,p),N5.remove(v)}),0)}}var e}),[u,f,p,v]);const b=h((e=>{if(!n&&!r)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=j5(e),n=L5(t,e),r=L5(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&I5(i,{select:!0})):(e.preventDefault(),n&&I5(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,v.paused]);return y(w5.div,o5({tabIndex:-1},c,{ref:m,onKeyDown:b}))}));function j5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function L5(e,t){for(const n of e)if(!R5(n,{upTo:t}))return n}function R5(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function I5(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const N5=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=$5(e,t),e.unshift(t)},remove(t){var n;e=$5(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function $5(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const z5=s(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?T.createPortal(y(w5.div,o5({},o,{ref:t})),r):null}));const F5=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=l(),r=a({}),o=a(e),s=a("none"),c=e?"mounted":"unmounted",[u,d]=function(e,t){return x(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i((()=>{const e=B5(r.current);s.current="mounted"===u?e:"none"}),[u]),c5((()=>{const t=r.current,n=o.current;if(n!==e){const r=s.current,i=B5(t);if(e)d("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))d("UNMOUNT");else{d(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,d]),c5((()=>{if(t){const e=e=>{const n=B5(r.current).includes(e.animationName);e.target===t&&n&&M((()=>d("ANIMATION_END")))},n=e=>{e.target===t&&(s.current=B5(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:h((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):u.only(n),s=l5(r.ref,o.ref);return"function"==typeof n||r.isPresent?c(o,{ref:s}):null};function B5(e){return(null==e?void 0:e.animationName)||"none"}F5.displayName="Presence";let K5=0;function V5(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var H5="right-scroll-bar-position",U5="width-before-scroll-bar";function W5(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Z5="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,q5=new WeakMap;function G5(e,t){var n,r,o,i=(n=null,r=function(t){return e.forEach((function(e){return W5(e,t)}))},o=l((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0],o.callback=r,o.facade);return Z5((function(){var t=q5.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach((function(e){r.has(e)||W5(e,null)})),r.forEach((function(e){n.has(e)||W5(e,o)}))}q5.set(i,e)}),[e]),i}function Y5(e){return e}var X5=function(e){var t=e.sideCar,n=j(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,_({},n))};X5.isSideCarExport=!0;var J5=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Y5);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=_({async:!0,ssr:!1},e),t}(),Q5=function(){},e9=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:Q5,onWheelCapture:Q5,onTouchMoveCapture:Q5}),i=o[0],a=o[1],l=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=j(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=p,C=G5([n,t]),x=_(_({},b),i);return r.createElement(r.Fragment,null,d&&r.createElement(w,{sideCar:J5,removeScrollBar:u,shards:f,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!m,lockRef:n}),l?r.cloneElement(r.Children.only(s),_(_({},x),{ref:C})):r.createElement(y,_({},x,{className:c,ref:C}),s))}));e9.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e9.classNames={fullWidth:U5,zeroRight:H5};function t9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var n9=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=t9())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},r9=function(){var e,t=(e=n9(),function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},o9={left:0,top:0,right:0,gap:0},i9=function(e){return parseInt(e||"",10)||0},a9=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return o9;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[i9(n),i9(r),i9(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l9=r9(),s9="data-scroll-locked",c9=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(s9,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(H5," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(U5," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(H5," .").concat(H5," {\n right: 0 ").concat(r,";\n }\n \n .").concat(U5," .").concat(U5," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(s9,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},u9=function(){var e=parseInt(document.body.getAttribute(s9)||"0",10);return isFinite(e)?e:0},d9=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(s9,(u9()+1).toString()),function(){var e=u9()-1;e<=0?document.body.removeAttribute(s9):document.body.setAttribute(s9,e.toString())}}),[]);var a=r.useMemo((function(){return a9(i)}),[i]);return r.createElement(l9,{styles:c9(a,!t,i,n?"":"!important")})},f9=!1;if("undefined"!=typeof window)try{var p9=Object.defineProperty({},"passive",{get:function(){return f9=!0,!0}});window.addEventListener("test",p9,p9),window.removeEventListener("test",p9,p9)}catch(e){f9=!1}var h9=!!f9&&{passive:!1},g9=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},m9=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),v9(e,n)){var r=y9(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},v9=function(e,t){return"v"===e?function(e){return g9(e,"overflowY")}(t):function(e){return g9(e,"overflowX")}(t)},y9=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},b9=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},w9=function(e){return[e.deltaX,e.deltaY]},C9=function(e){return e&&"current"in e?e.current:e},x9=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},S9=0,k9=[];var E9,O9=(E9=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),i=r.useState(S9++)[0],a=r.useState((function(){return r9()}))[0],l=r.useRef(e);r.useEffect((function(){l.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(C9),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var r,i=b9(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=m9(d,u);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=m9(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(s||c)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,s=t.contains(l),c=!1,u=a>0,d=0,f=0;do{var p=y9(e,l),h=p[0],g=p[1]-p[2]-i*h;(h||g)&&v9(e,l)&&(d+=g,f+=h),l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(!u||0!==d&&o)&&(u||0!==f&&o)||(c=!0),c}(p,t,e,"h"===p?s:c,!0)}),[]),c=r.useCallback((function(e){var n=e;if(k9.length&&k9[k9.length-1]===a){var r="deltaY"in n?w9(n):b9(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(l.current.shards||[]).map(C9).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?s(n,i[0]):!l.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=r.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=r.useCallback((function(e){n.current=b9(e),o.current=void 0}),[]),f=r.useCallback((function(t){u(t.type,w9(t),t.target,s(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){u(t.type,b9(t),t.target,s(t,e.lockRef.current))}),[]);r.useEffect((function(){return k9.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,h9),document.addEventListener("touchmove",c,h9),document.addEventListener("touchstart",d,h9),function(){k9=k9.filter((function(e){return e!==a})),document.removeEventListener("wheel",c,h9),document.removeEventListener("touchmove",c,h9),document.removeEventListener("touchstart",d,h9)}}),[]);var h=e.removeScrollBar,g=e.inert;return r.createElement(r.Fragment,null,g?r.createElement(a,{styles:x9(i)}):null,h?r.createElement(d9,{gapMode:"margin"}):null)},J5.useMedium(E9),X5),D9=r.forwardRef((function(e,t){return r.createElement(e9,_({},e,{ref:t,sideCar:O9}))}));D9.classNames=e9.classNames;var P9=new WeakMap,T9=new WeakMap,A9={},M9=0,_9=function(e){return e&&(e.host||_9(e.parentNode))},j9=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=_9(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);A9[n]||(A9[n]=new WeakMap);var i=A9[n],a=[],l=new Set,s=new Set(o),c=function(e){e&&!l.has(e)&&(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!s.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(P9.get(e)||0)+1,c=(i.get(e)||0)+1;P9.set(e,s),i.set(e,c),a.push(e),1===s&&o&&T9.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}}))};return u(t),l.clear(),M9++,function(){a.forEach((function(e){var t=P9.get(e)-1,o=i.get(e)-1;P9.set(e,t),i.set(e,o),t||(T9.has(e)||e.removeAttribute(r),T9.delete(e)),o||e.removeAttribute(n)})),--M9||(P9=new WeakMap,P9=new WeakMap,T9=new WeakMap,A9={})}},L9=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),j9(r,o,n,"aria-hidden")):function(){return null}};const R9="Dialog",[I9,N9]=function(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>d(e)));return function(n){const r=(null==n?void 0:n[e])||t;return f((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=d(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,s=f((()=>a),Object.values(a));return y(l.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,s=p(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},s5(r,...t)]}(R9),[$9,z9]=I9(R9),F9="DialogPortal",[B9,K9]=I9(F9,{forceMount:void 0}),V9="DialogOverlay",H9=s(((e,t)=>{const n=K9(V9,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z9(V9,e.__scopeDialog);return i.modal?y(F5,{present:r||i.open},y(U9,o5({},o,{ref:t}))):null})),U9=s(((e,t)=>{const{__scopeDialog:n,...r}=e,o=z9(V9,n);return y(D9,{as:g5,allowPinchZoom:!0,shards:[o.contentRef]},y(w5.div,o5({"data-state":X9(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),W9="DialogContent",Z9=s(((e,t)=>{const n=K9(W9,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=z9(W9,e.__scopeDialog);return y(F5,{present:r||i.open},i.modal?y(q9,o5({},o,{ref:t})):y(G9,o5({},o,{ref:t})))})),q9=s(((e,t)=>{const n=z9(W9,e.__scopeDialog),r=a(null),o=l5(t,n.contentRef,r);return i((()=>{const e=r.current;if(e)return L9(e)}),[]),y(Y9,o5({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i5(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:i5(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:i5(e.onFocusOutside,(e=>e.preventDefault()))}))})),G9=s(((e,t)=>{const n=z9(W9,e.__scopeDialog),r=a(!1),o=a(!1);return y(Y9,o5({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const l=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),Y9=s(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:l,...s}=e,c=z9(W9,n),u=l5(t,a(null));return i((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:V5()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:V5()),K5++,()=>{1===K5&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),K5--}}),[]),y(C,null,y(_5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:l},y(O5,o5({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":X9(c.open)},s,{ref:u,onDismiss:()=>c.onOpenChange(!1)}))),!1)}));function X9(e){return e?"open":"closed"}const J9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,s=a(null),c=a(null),[u=!1,d]=h5({prop:r,defaultProp:o,onChange:i});return y($9,{scope:t,triggerRef:s,contentRef:c,contentId:f5(),titleId:f5(),descriptionId:f5(),open:u,onOpenChange:d,onOpenToggle:h((()=>d((e=>!e))),[d]),modal:l},n)},Q9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=z9(F9,t);return y(B9,{scope:t,forceMount:n},u.map(r,(e=>y(F5,{present:n||i.open},y(z5,{asChild:!0,container:o},e)))))},e3=H9,t3=Z9;var n3='[cmdk-group=""]',r3='[cmdk-group-items=""]',o3='[cmdk-item=""]',i3=`${o3}:not([aria-disabled="true"])`,a3="cmdk-item-select",l3="data-value",s3=(e,t,n)=>r5(e,t,n),c3=r.createContext(void 0),u3=()=>r.useContext(c3),d3=r.createContext(void 0),f3=()=>r.useContext(d3),p3=r.createContext(void 0),h3=r.forwardRef(((e,t)=>{let n=P3((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),o=P3((()=>new Set)),i=P3((()=>new Map)),a=P3((()=>new Map)),l=P3((()=>new Set)),s=O3(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:h,loop:g,disablePointerSelection:m=!1,vimBindings:v=!0,...y}=e,b=r.useId(),w=r.useId(),C=r.useId(),x=r.useRef(null),S=_3();D3((()=>{if(void 0!==d){let e=d.trim();n.current.value=e,k.emit()}}),[d]),D3((()=>{S(6,A)}),[]);let k=r.useMemo((()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)T(),D(),S(1,P);else if("value"===e&&(r||S(5,A),void 0!==(null==(o=s.current)?void 0:o.value))){let e=null!=t?t:"";return void(null==(a=(i=s.current).onValueChange)||a.call(i,e))}k.emit()}},emit:()=>{l.current.forEach((e=>e()))}})),[]),E=r.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,O(t,r)),S(2,(()=>{D(),k.emit()})))},item:(e,t)=>(o.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),S(3,(()=>{T(),D(),n.current.value||P(),k.emit()})),()=>{a.current.delete(e),o.current.delete(e),n.current.filtered.items.delete(e);let t=M();S(4,(()=>{T(),(null==t?void 0:t.getAttribute("id"))===e&&P(),k.emit()}))}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],disablePointerSelection:m,listId:b,inputId:C,labelId:w,listInnerRef:x})),[]);function O(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:s3;return e?i(e,n.current.search,t):0}function D(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=i.current.get(n),o=0;r.forEach((t=>{let n=e.get(t);o=Math.max(n,o)})),t.push([n,o])}));let r=x.current;_().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(r3);t?t.appendChild(e.parentElement===t?e:e.closest(`${r3} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${r3} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=x.current.querySelector(`${n3}[${l3}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function P(){let e=_().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(l3);k.setState("value",t||void 0)}function T(){var e,t,r,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=o.current.size);n.current.filtered.groups=new Set;let c=0;for(let i of o.current){let o=O(null!=(t=null==(e=a.current.get(i))?void 0:e.value)?t:"",null!=(l=null==(r=a.current.get(i))?void 0:r.keywords)?l:[]);n.current.filtered.items.set(i,o),o>0&&c++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function A(){var e,t,n;let r=M();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(n3))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function M(){var e;return null==(e=x.current)?void 0:e.querySelector(`${o3}[aria-selected="true"]`)}function _(){var e;return Array.from(null==(e=x.current)?void 0:e.querySelectorAll(i3))}function j(e){let t=_()[e];t&&k.setState("value",t.getAttribute(l3))}function L(e){var t;let n=M(),r=_(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=s.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&k.setState("value",i.getAttribute(l3))}function R(e){let t,n=M(),r=null==n?void 0:n.closest(n3);for(;r&&!t;)r=e>0?k3(r,n3):E3(r,n3),t=null==r?void 0:r.querySelector(i3);t?k.setState("value",t.getAttribute(l3)):L(e)}let I=()=>j(_().length-1),N=e=>{e.preventDefault(),e.metaKey?I():e.altKey?R(1):L(1)},$=e=>{e.preventDefault(),e.metaKey?j(0):e.altKey?R(-1):L(-1)};return r.createElement(w5.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=y.onKeyDown)||t.call(y,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&N(e);break;case"ArrowDown":N(e);break;case"p":case"k":v&&e.ctrlKey&&$(e);break;case"ArrowUp":$(e);break;case"Home":e.preventDefault(),j(0);break;case"End":e.preventDefault(),I();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=M();if(t){let e=new Event(a3);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:L3},c),j3(e,(e=>r.createElement(d3.Provider,{value:k},r.createElement(c3.Provider,{value:E},e)))))})),g3=r.forwardRef(((e,t)=>{var n,o;let i=r.useId(),a=r.useRef(null),l=r.useContext(p3),s=u3(),c=O3(e),u=null!=(o=null==(n=c.current)?void 0:n.forceMount)?o:null==l?void 0:l.forceMount;D3((()=>{if(!u)return s.item(i,null==l?void 0:l.id)}),[u]);let d=M3(i,a,[e.value,e.children,a],e.keywords),f=f3(),p=A3((e=>e.value&&e.value===d.current)),h=A3((e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(i)>0)));function g(){var e,t;m(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function m(){f.setState("value",d.current,!0)}if(r.useEffect((()=>{let t=a.current;if(t&&!e.disabled)return t.addEventListener(a3,g),()=>t.removeEventListener(a3,g)}),[h,e.onSelect,e.disabled]),!h)return null;let{disabled:v,value:y,onSelect:b,forceMount:w,keywords:C,...x}=e;return r.createElement(w5.div,{ref:T3([a,t]),...x,id:i,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!p,"data-disabled":!!v,"data-selected":!!p,onPointerMove:v||s.disablePointerSelection?void 0:m,onClick:v?void 0:g},e.children)})),m3=r.forwardRef(((e,t)=>{let{heading:n,children:o,forceMount:i,...a}=e,l=r.useId(),s=r.useRef(null),c=r.useRef(null),u=r.useId(),d=u3(),f=A3((e=>!(!i&&!1!==d.filter())||(!e.search||e.filtered.groups.has(l))));D3((()=>d.group(l)),[]),M3(l,s,[e.value,e.heading,c]);let p=r.useMemo((()=>({id:l,forceMount:i})),[i]);return r.createElement(w5.div,{ref:T3([s,t]),...a,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&r.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),j3(e,(e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},r.createElement(p3.Provider,{value:p},e)))))})),v3=r.forwardRef(((e,t)=>{let{alwaysRender:n,...o}=e,i=r.useRef(null),a=A3((e=>!e.search));return n||a?r.createElement(w5.div,{ref:T3([i,t]),...o,"cmdk-separator":"",role:"separator"}):null})),y3=r.forwardRef(((e,t)=>{let{onValueChange:n,...o}=e,i=null!=e.value,a=f3(),l=A3((e=>e.search)),s=A3((e=>e.value)),c=u3(),u=r.useMemo((()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${o3}[${l3}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return r.useEffect((()=>{null!=e.value&&a.setState("search",e.value)}),[e.value]),r.createElement(w5.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":u,id:c.inputId,type:"text",value:i?e.value:l,onChange:e=>{i||a.setState("search",e.target.value),null==n||n(e.target.value)}})})),b3=r.forwardRef(((e,t)=>{let{children:n,label:o="Suggestions",...i}=e,a=r.useRef(null),l=r.useRef(null),s=u3();return r.useEffect((()=>{if(l.current&&a.current){let e,t=l.current,n=a.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),r.createElement(w5.div,{ref:T3([a,t]),...i,"cmdk-list":"",role:"listbox","aria-label":o,id:s.listId},j3(e,(e=>r.createElement("div",{ref:T3([l,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),w3=r.forwardRef(((e,t)=>{let{open:n,onOpenChange:o,overlayClassName:i,contentClassName:a,container:l,...s}=e;return r.createElement(J9,{open:n,onOpenChange:o},r.createElement(Q9,{container:l},r.createElement(e3,{"cmdk-overlay":"",className:i}),r.createElement(t3,{"aria-label":e.label,"cmdk-dialog":"",className:a},r.createElement(h3,{ref:t,...s}))))})),C3=r.forwardRef(((e,t)=>A3((e=>0===e.filtered.count))?r.createElement(w5.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),x3=r.forwardRef(((e,t)=>{let{progress:n,children:o,label:i="Loading...",...a}=e;return r.createElement(w5.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},j3(e,(e=>r.createElement("div",{"aria-hidden":!0},e))))})),S3=Object.assign(h3,{List:b3,Item:g3,Input:y3,Group:m3,Separator:v3,Dialog:w3,Empty:C3,Loading:x3});function k3(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function E3(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function O3(e){let t=r.useRef(e);return D3((()=>{t.current=e})),t}var D3="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function P3(e){let t=r.useRef();return void 0===t.current&&(t.current=e()),t}function T3(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function A3(e){let t=f3(),n=()=>e(t.snapshot());return r.useSyncExternalStore(t.subscribe,n,n)}function M3(e,t,n,o=[]){let i=r.useRef(),a=u3();return D3((()=>{var r;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():i.current}})(),s=o.map((e=>e.trim()));a.value(e,l,s),null==(r=t.current)||r.setAttribute(l3,l),i.current=l})),i}var _3=()=>{let[e,t]=r.useState(),n=P3((()=>new Map));return D3((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function j3({asChild:e,children:t},n){return e&&r.isValidElement(t)?r.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},n(t.props.children)):n(t)}var L3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const R3=t=>{var{id:r,value:o,header:i,body:a,leftElement:l,rightElement:s,inline:c,disabled:u,onClick:d}=t,f=j(t,["id","value","header","body","leftElement","rightElement","inline","disabled","onClick"]);return n(I3,Object.assign({id:r||o,disabled:u,onSelect:d},f,{children:[l||null,i&&a?e(Lx,{header:i,body:a,inline:c}):o,s&&e("div",{style:{marginLeft:"auto"},children:s})]}))},I3=se(S3.Item,$x)((({theme:{optionItem:e}})=>({'&[data-selected="true"]':{backgroundColor:e.background.active}})),zx),N3=({id:t,title:n,children:r})=>e($3,{id:t,heading:n,children:r}),$3=se(S3.Group)((({theme:e})=>({"& > div[cmdk-group-heading]":{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none"}}))),z3=({options:n,onItemSelect:r})=>e(t,{children:n.map((t=>{if("options"in t){const n=t;return e(N3,{id:n.id,title:n.title,children:n.options.map((t=>e(R3,Object.assign({onClick:()=>r(t)},t),t.id||t.value)))},n.id)}return e(R3,Object.assign({onClick:()=>r(t)},t),t.id||t.value)}))}),F3=t=>{var{options:r,inputProps:o,modalProps:i,triggerRef:s,position:c,offset:u,open:d,onChange:f,setOpen:p}=t,h=j(t,["options","inputProps","modalProps","triggerRef","position","offset","open","onChange","setOpen"]);const[g,m]=l(""),v=a(null),y=a(),{color:b}=O(),{"aria-label":w}=h,C=j(h,["aria-label"]),x=e=>{p(e),e||m("")},S=e(Iw,{"aria-label":w,children:n(B3,Object.assign({},C,{children:[n(K3,{margin:8,width:"auto",children:[e(Sn,{name:"search",inheritColor:!0,marginRight:8}),e(V3,Object.assign({placeholder:"Search",autoFocus:!0,value:g,onValueChange:e=>{m(e),clearTimeout(null==y?void 0:y.current),y.current=setTimeout((()=>{v.current&&(null==v||v.current.scrollTo({top:0}))}),0)}},o)),g&&e(Sn,{name:"close-circle-outline",color:b.brand,onClick:()=>m(""),pointer:!0})]}),n(H3,{ref:v,children:[n(U3,{children:["No results found for ",`"${g}"`,"."]}),r&&e(z3,{options:r,onItemSelect:e=>{f(e),x(!1)}})]})]}))});return s?e(Mw,{triggerRef:s,isOpen:d,onOpenChange:x,placement:c,offset:u,children:S}):e(W3,Object.assign({isDismissable:!0,isOpen:d,onOpenChange:x},i,{children:e(kC,{children:S})}))},B3=se(h3)(Dx,{display:"flex",flexDirection:"column",overflow:"hidden"},(({maxWidth:e,maxHeight:t})=>({maxWidth:e,maxHeight:t})),yn),K3=se.div(Y1),V3=se(y3)(M2),H3=se(b3)({overflowY:"auto"}),U3=se(C3)((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),W3=se(OC)((({overlayColor:e,overlayBlur:t,zIndex:n=100})=>({position:"fixed",top:0,left:0,zIndex:n,width:"100vw",height:"var(--visual-viewport-height)",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),Z3=se.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var q3={exports:{}};q3.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:Z(e)}function r(e){return l(e)?e:q(e)}function o(e){return s(e)?e:G(e)}function i(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[d])}function l(e){return!(!e||!e[f])}function s(e){return!(!e||!e[p])}function c(e){return l(e)||s(e)}function u(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=l,n.isIndexed=s,n.isAssociative=c,n.isOrdered=u,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",f="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",m=5,v=1<<m,y=v-1,b={},w={value:!1},C={value:!1};function x(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function k(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function O(e){return void 0===e.size&&(e.size=e.__iterate(P)),e.size}function D(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function P(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return _(e,t,0)}function M(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j=0,L=1,R=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",$=I||N;function z(e){this.next=e}function F(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function B(){return{value:void 0,done:!0}}function K(e){return!!U(e)}function V(e){return e&&"function"==typeof e.next}function H(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function Z(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function q(e){return null==e?ae().toKeyedSeq():a(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function G(e){return null==e?ae():a(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function Y(e){return(null==e?ae():a(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}z.prototype.toString=function(){return"[Iterator]"},z.KEYS=j,z.VALUES=L,z.ENTRIES=R,z.prototype.inspect=z.prototype.toSource=function(){return this.toString()},z.prototype[$]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return de(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(q,Z),q.prototype.toKeyedSeq=function(){return this},t(G,Z),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return de(this,e,t,!1)},G.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Y,Z),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},Z.isSeq=ie,Z.Keyed=q,Z.Set=Y,Z.Indexed=G;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():K(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=ue(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ue(e){return W(e)?new te(e):V(e)?new oe(e):K(e)?new re(e):void 0}function de(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var l=o[n?i-a:a];if(!1===t(l[1],r?l[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new z((function(){var e=o[n?i-a:a];return a++>i?B():F(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):me(t)?e.call(r,n,q(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():me(e)?q(e).map(ge).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ye(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return d=!1,!1}));return d&&e.size===f}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function Ce(e,t,n){if(!(this instanceof Ce))return new Ce(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function xe(){throw TypeError("Abstract")}function Se(){}function ke(){}function Ee(){}Z.prototype[ee]=!0,t(te,G),te.prototype.get=function(e,t){return this.has(e)?this._array[D(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new z((function(){return o>r?B():F(e,o,n[t?r-o++:o++])}))},t(ne,q),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new z((function(){var a=r[t?o-i:i];return i++>o?B():F(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=H(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=H(this._iterable);if(!V(n))return new z(B);var r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(oe,G),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new z((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return F(e,o,r[o++])}))},t(be,G),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new be(this._value,M(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new z((function(){return r<n.size?F(e,r++,n._value):B()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):ye(e)},t(Ce,G),Ce.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ce.prototype.get=function(e,t){return this.has(e)?this._start+D(this,e)*this._step:t},Ce.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},Ce.prototype.slice=function(e,t){return T(e,t,this.size)?this:(e=A(e,this.size),(t=M(t,this.size))<=e?new Ce(0,0):new Ce(this.get(e,this._end),this.get(t,this._end),this._step))},Ce.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},Ce.prototype.lastIndexOf=function(e){return this.indexOf(e)},Ce.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},Ce.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new z((function(){var a=o;return o+=t?-r:r,i>n?B():F(e,i++,a)}))},Ce.prototype.equals=function(e){return e instanceof Ce?this._start===e._start&&this._end===e._end&&this._step===e._step:ye(this,e)},t(xe,n),t(Se,xe),t(ke,xe),t(Ee,xe),xe.Keyed=Se,xe.Indexed=ke,xe.Set=Ee;var Oe="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function De(e){return e>>>1&1073741824|3221225471&e}function Pe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return De(n)}if("string"===t)return e.length>ze?Te(e):Ae(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Te(e){var t=Ke[e];return void 0===t&&(t=Ae(e),Be===Fe&&(Be=0,Ke={}),Be++,Ke[e]=t),t}function Ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return De(t)}function Me(e){var t;if(Ie&&void 0!==(t=Re.get(e)))return t;if(void 0!==(t=e[$e]))return t;if(!je){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[$e]))return t;if(void 0!==(t=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Re.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(je)Object.defineProperty(e,$e,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[$e]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[$e]=t}}return t}var _e=Object.isExtensible,je=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Ie="function"==typeof WeakMap;Ie&&(Re=new WeakMap);var Ne=0,$e="__immutablehash__";"function"==typeof Symbol&&($e=Symbol($e));var ze=16,Fe=255,Be=0,Ke={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function He(e){return null==e?ot():Ue(e)&&!u(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ue(e){return!(!e||!e[Ze])}t(He,Se),He.prototype.toString=function(){return this.__toString("Map {","}")},He.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},He.prototype.set=function(e,t){return it(this,e,t)},He.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},He.prototype.remove=function(e){return it(this,e,b)},He.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},He.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},He.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,xn(e),t,n);return r===b?void 0:r},He.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},He.prototype.merge=function(){return ft(this,void 0,arguments)},He.prototype.mergeWith=function(t){return ft(this,t,e.call(arguments,1))},He.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},He.prototype.mergeDeep=function(){return ft(this,pt,arguments)},He.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ft(this,ht(t),n)},He.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},He.prototype.sort=function(e){return Kt(dn(this,e))},He.prototype.sortBy=function(e,t){return Kt(dn(this,t,e))},He.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},He.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},He.prototype.asImmutable=function(){return this.__ensureOwner()},He.prototype.wasAltered=function(){return this.__altered},He.prototype.__iterator=function(e,t){return new et(this,e,t)},He.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},He.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},He.isMap=Ue;var We,Ze="@@__IMMUTABLE_MAP__@@",qe=He.prototype;function Ge(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return F(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(qe);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=x(w),a=x(C);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ge(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,l){return e?e.update(t,n,r,o,i,a,l):i===b?e:(S(l),S(a),new Qe(t,r,[o,i]))}function lt(e){return e.constructor===Qe||e.constructor===Je}function st(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&y,l=(0===n?r:r>>>n)&y;return new Ye(t,1<<a|1<<l,a===l?[st(e,t,n+m,r,o)]:(i=new Qe(t,r,o),a<l?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new k);for(var o=new Qe(e,Pe(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function ut(e,t,n,r){for(var o=0,i=0,a=new Array(n),l=0,s=1,c=t.length;l<c;l++,s<<=1){var u=t[l];void 0!==u&&l!==r&&(o|=s,a[i++]=u)}return new Ye(e,o,a)}function dt(e,t,n,r,o){for(var i=0,a=new Array(v),l=0;0!==n;l++,n>>>=1)a[l]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function ft(e,t,n){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=r(l);a(l)||(s=s.map((function(e){return pe(e)}))),o.push(s)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function mt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,l=r(a);return l===a?e:l}we(o||e&&e.set,"invalid keyPath");var s=i.value,c=o?b:e.get(s,b),u=mt(c,t,n,r);return u===c?e:u===b?e.remove(s):(o?ot():e).set(s,u)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function yt(e,t,n,r){var o=r?e:E(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,l=0;l<o;l++)l===t?(i[l]=n,a=-1):i[l]=e[l+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}qe[Ze]=!0,qe[g]=qe.remove,qe.removeIn=qe.deleteIn,Ge.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var l=o===b,s=this.entries,c=0,u=s.length;c<u&&!ve(r,s[c][0]);c++);var d=c<u;if(d?s[c][1]===o:l)return this;if(S(a),(l||!d)&&S(i),!l||1!==s.length){if(!d&&!l&&s.length>=Ct)return ct(e,s,r,o);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Ge(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=Pe(n));var o=1<<((0===e?t:t>>>e)&y),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+m,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Pe(r));var l=(0===t?n:n>>>t)&y,s=1<<l,c=this.bitmap,u=0!=(c&s);if(!u&&o===b)return this;var d=vt(c&s-1),f=this.nodes,p=u?f[d]:void 0,h=at(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!u&&h&&f.length>=xt)return dt(e,f,c,l,h);if(u&&!h&&2===f.length&&lt(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&lt(h))return h;var g=e&&e===this.ownerID,v=u?h?c:c^s:c|s,w=u?h?yt(f,d,h,g):wt(f,d,g):bt(f,d,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Pe(n));var o=(0===e?t:t>>>e)&y,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Pe(r));var l=(0===t?n:n>>>t)&y,s=o===b,c=this.nodes,u=c[l];if(s&&!u)return this;var d=at(u,e,t+m,n,r,o,i,a);if(d===u)return this;var f=this.count;if(u){if(!d&&--f<St)return ut(e,c,f,l)}else f++;var p=e&&e===this.ownerID,h=yt(c,l,d,p);return p?(this.count=f,this.nodes=h,this):new Xe(e,f,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=Pe(r));var l=o===b;if(n!==this.keyHash)return l?this:(S(a),S(i),st(this,e,t,n,[r,o]));for(var s=this.entries,c=0,u=s.length;c<u&&!ve(r,s[c][0]);c++);var d=c<u;if(d?s[c][1]===o:l)return this;if(S(a),(l||!d)&&S(i),l&&2===u)return new Qe(e,this.keyHash,s[1^c]);var f=e&&e===this.ownerID,p=f?s:E(s);return d?l?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var l=o===b,s=ve(r,this.entry[0]);return(s?o===this.entry[1]:l)?this:(S(a),l?void S(i):s?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(S(i),st(this,e,t,Pe(r),[r,o])))},Ge.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,z),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return B()};var Ct=v/4,xt=v/2,St=v/4;function kt(e){var t=Lt();if(null==e)return t;if(Et(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?jt(0,r,m,null,new Pt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ot])}t(kt,ke),kt.of=function(){return this(arguments)},kt.prototype.toString=function(){return this.__toString("List [","]")},kt.prototype.get=function(e,t){if((e=D(this,e))>=0&&e<this.size){var n=$t(this,e+=this._origin);return n&&n.array[e&y]}return t},kt.prototype.set=function(e,t){return Rt(this,e,t)},kt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},kt.prototype.insert=function(e,t){return this.splice(e,0,t)},kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Lt()},kt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){zt(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},kt.prototype.pop=function(){return zt(this,0,-1)},kt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){zt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},kt.prototype.shift=function(){return zt(this,1)},kt.prototype.merge=function(){return Ft(this,void 0,arguments)},kt.prototype.mergeWith=function(t){return Ft(this,t,e.call(arguments,1))},kt.prototype.mergeDeep=function(){return Ft(this,pt,arguments)},kt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ft(this,ht(t),n)},kt.prototype.setSize=function(e){return zt(this,0,e)},kt.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:zt(this,A(e,n),M(t,n))},kt.prototype.__iterator=function(e,t){var n=0,r=_t(this,t);return new z((function(){var t=r();return t===Mt?B():F(e,n++,t)}))},kt.prototype.__iterate=function(e,t){for(var n,r=0,o=_t(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},kt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},kt.isList=Et;var Ot="@@__IMMUTABLE_LIST__@@",Dt=kt.prototype;function Pt(e,t){this.array=e,this.ownerID=t}Dt[Ot]=!0,Dt[g]=Dt.remove,Dt.setIn=qe.setIn,Dt.deleteIn=Dt.removeIn=qe.removeIn,Dt.update=qe.update,Dt.updateIn=qe.updateIn,Dt.mergeIn=qe.mergeIn,Dt.mergeDeepIn=qe.mergeDeepIn,Dt.withMutations=qe.withMutations,Dt.asMutable=qe.asMutable,Dt.asImmutable=qe.asImmutable,Dt.wasAltered=qe.wasAltered,Pt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&y;if(r>=this.array.length)return new Pt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var l=Nt(this,e);if(!i)for(var s=0;s<r;s++)l.array[s]=void 0;return o&&(l.array[r]=o),l},Pt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&y;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var Tt,At,Mt={};function _t(e,t){var n=e._origin,r=e._capacity,o=Bt(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,a){var l=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(s===c)return Mt;var e=t?--c:s++;return l&&l[e]}}function s(e,o,i){var l,s=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);return u>v&&(u=v),function(){for(;;){if(l){var e=l();if(e!==Mt)return e;l=null}if(c===u)return Mt;var n=t?--u:c++;l=a(s&&s[n],o-m,i+(n<<o))}}}}function jt(e,t,n,r,o,i,a){var l=Object.create(Dt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=o,l.__ownerID=i,l.__hash=a,l.__altered=!1,l}function Lt(){return Tt||(Tt=jt(0,0,m))}function Rt(e,t,n){if((t=D(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?zt(e,t).set(0,n):zt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=x(C);return t>=Bt(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):jt(e._origin,e._capacity,e._level,o,r):e}function It(e,t,n,r,o,i){var a,l=r>>>n&y,s=e&&l<e.array.length;if(!s&&void 0===o)return e;if(n>0){var c=e&&e.array[l],u=It(c,t,n-m,r,o,i);return u===c?e:((a=Nt(e,t)).array[l]=u,a)}return s&&e.array[l]===o?e:(S(i),a=Nt(e,t),void 0===o&&l===a.array.length-1?a.array.pop():a.array[l]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new Pt(e?e.array.slice():[],t)}function $t(e,t){if(t>=Bt(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&y],r-=m;return n}}function zt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,o=e._origin,i=e._capacity,a=o+t,l=void 0===n?i:n<0?i+n:o+n;if(a===o&&l===i)return e;if(a>=l)return e.clear();for(var s=e._level,c=e._root,u=0;a+u<0;)c=new Pt(c&&c.array.length?[void 0,c]:[],r),u+=1<<(s+=m);u&&(a+=u,o+=u,l+=u,i+=u);for(var d=Bt(i),f=Bt(l);f>=1<<s+m;)c=new Pt(c&&c.array.length?[c]:[],r),s+=m;var p=e._tail,h=f<d?$t(e,l-1):f>d?new Pt([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var g=c=Nt(c,r),v=s;v>m;v-=m){var b=d>>>v&y;g=g.array[b]=Nt(g.array[b],r)}g.array[d>>>m&y]=p}if(l<i&&(h=h&&h.removeAfter(r,0,l)),a>=f)a-=f,l-=f,s=m,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(u=0;c;){var w=a>>>s&y;if(w!==f>>>s&y)break;w&&(u+=(1<<s)*w),s-=m,c=c.array[w]}c&&a>o&&(c=c.removeBefore(r,s,a-u)),c&&f<d&&(c=c.removeAfter(r,s,f-u)),u&&(a-=u,l-=u)}return e.__ownerID?(e.size=l-a,e._origin=a,e._capacity=l,e._level=s,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):jt(a,l,s,c,h)}function Ft(e,t,n){for(var r=[],i=0,l=0;l<n.length;l++){var s=n[l],c=o(s);c.size>i&&(i=c.size),a(s)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Bt(e){return e<v?0:e-1>>>m<<m}function Kt(e){return null==e?Ut():Vt(e)?e:Ut().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return Ue(e)&&u(e)}function Ht(e,t,n,r){var o=Object.create(Kt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Ut(){return At||(At=Ht(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,l=i.get(t),s=void 0!==l;if(n===b){if(!s)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=l===a.size-1?a.pop():a.set(l,void 0))}else if(s){if(n===a.get(l)[1])return e;r=i,o=a.set(l,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Ht(r,o)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function qt(e){this._iter=e,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===R){var r=e.__iterator(t,n);return new z((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?j:L,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(R,o);return new z((function(){var o=i.next();if(o.done)return o;var a=o.value,l=a[0];return F(r,l,t.call(n,a[1],l,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,l=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return l++,o(e,r?i:l-1,a)}),i),l},o.__iteratorUncached=function(o,i){var a=e.__iterator(R,i),l=0;return new z((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],u=s[1];if(t.call(n,u,c,e))return F(o,r?c:l++,u,i)}}))},o}function tn(e,t,n){var r=He().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),o=(u(e)?Kt():He()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=yn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),T(t,n,o))return e;var i=A(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=a-i;s==s&&(l=s<0?0:s);var c=bn(e);return c.size=0===l?l:e.size&&l||void 0,!r&&ie(e)&&l>=0&&(c.get=function(t,n){return(t=D(this,t))>=0&&t<l?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,s=!0,c=0;return e.__iterate((function(e,n){if(!s||!(s=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==l})),c},c.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var o=0!==l&&e.__iterator(t,n),a=0,s=0;return new z((function(){for(;a++<i;)o.next();if(++s>l)return B();var e=o.next();return r||t===L?e:F(t,s-1,t===j?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,l){return t.call(n,e,o,l)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(R,o),l=!0;return new z((function(){if(!l)return B();var e=a.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,i)?r===R?e:F(r,s,c,e):(l=!1,B())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var l=!0,s=0;return e.__iterate((function(e,i,c){if(!l||!(l=t.call(n,e,i,c)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var l=e.__iterator(R,i),s=!0,c=0;return new z((function(){var e,i,u;do{if((e=l.next()).done)return r||o===L?e:F(o,c++,o===j?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],s&&(s=t.call(n,u,i,a))}while(s);return o===R?e:F(o,i,u,e)}))},o}function ln(e,t){var n=l(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||s(e)&&s(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,l=!1;function s(e,c){var u=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?s(e,c+1):!1===r(e,n?o:i++,u)&&(l=!0),!l}),o)}return s(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),l=[],s=0;return new z((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===R&&(c=c[1]),t&&!(l.length<t)||!a(c))return n?e:F(r,s++,c,e);l.push(i),i=c.__iterator(r,o)}else i=l.pop()}return B()}))},r}function cn(e,t,n){var r=yn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function un(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new z((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?F(n,a++,t):F(n,a++,o.value,o)}))},n}function dn(e,t,n){t||(t=Cn);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?q(i):s(e)?G(i):Y(i)}function fn(e,t,n){if(t||(t=Cn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),H(o?e.reverse():e)})),a=0,l=!1;return new z((function(){var n;return l||(n=i.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?B():F(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),O(e)}function yn(e){return l(e)?r:s(e)?o:i}function bn(e){return Object.create((l(e)?q:s(e)?G:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function Cn(e,t){return e>t?1:e<t?-1:0}function xn(e){var t=H(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=H(n(e))}return t}function Sn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);Dn(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=He(i)},o=r.prototype=Object.create(kn);return o.constructor=r,r}t(Kt,He),Kt.of=function(){return this(arguments)},Kt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Kt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Kt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ut()},Kt.prototype.set=function(e,t){return Wt(this,e,t)},Kt.prototype.remove=function(e){return Wt(this,e,b)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Kt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Kt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Kt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ht(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Kt.isOrderedMap=Vt,Kt.prototype[h]=!0,Kt.prototype[g]=Kt.prototype.remove,t(Zt,q),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?vn(this):0;return new z((function(){var o=n.next();return o.done?o:F(e,t?--r:r++,o.value,o)}))},Zt.prototype[h]=!0,t(qt,G),qt.prototype.includes=function(e){return this._iter.includes(e)},qt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},qt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new z((function(){var t=n.next();return t.done?t:F(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new z((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t(Yt,q),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new z((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var o=a(r);return F(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},qt.prototype.cacheResult=Zt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(On(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,ot()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+On(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var kn=Sn.prototype;function En(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function On(e){return e._name||e.constructor.name||"Record"}function Dn(e,t){try{t.forEach(Pn.bind(void 0,e))}catch(e){}}function Pn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Tn(e){return null==e?In():An(e)&&!u(e)?e:In().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function An(e){return!(!e||!e[_n])}kn[g]=kn.remove,kn.deleteIn=kn.removeIn=qe.removeIn,kn.merge=qe.merge,kn.mergeWith=qe.mergeWith,kn.mergeIn=qe.mergeIn,kn.mergeDeep=qe.mergeDeep,kn.mergeDeepWith=qe.mergeDeepWith,kn.mergeDeepIn=qe.mergeDeepIn,kn.setIn=qe.setIn,kn.update=qe.update,kn.updateIn=qe.updateIn,kn.withMutations=qe.withMutations,kn.asMutable=qe.asMutable,kn.asImmutable=qe.asImmutable,t(Tn,Ee),Tn.of=function(){return this(arguments)},Tn.fromKeys=function(e){return this(r(e).keySeq())},Tn.prototype.toString=function(){return this.__toString("Set {","}")},Tn.prototype.has=function(e){return this._map.has(e)},Tn.prototype.add=function(e){return Ln(this,this._map.set(e,!0))},Tn.prototype.remove=function(e){return Ln(this,this._map.remove(e))},Tn.prototype.clear=function(){return Ln(this,this._map.clear())},Tn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Tn.prototype.merge=function(){return this.union.apply(this,arguments)},Tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Tn.prototype.sort=function(e){return Nn(dn(this,e))},Tn.prototype.sortBy=function(e,t){return Nn(dn(this,t,e))},Tn.prototype.wasAltered=function(){return this._map.wasAltered()},Tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Tn.isSet=An;var Mn,_n="@@__IMMUTABLE_SET__@@",jn=Tn.prototype;function Ln(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Rn(e,t){var n=Object.create(jn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Rn(ot()))}function Nn(e){return null==e?Kn():$n(e)?e:Kn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function $n(e){return An(e)&&u(e)}jn[_n]=!0,jn[g]=jn.remove,jn.mergeDeep=jn.merge,jn.mergeDeepWith=jn.mergeWith,jn.withMutations=qe.withMutations,jn.asMutable=qe.asMutable,jn.asImmutable=qe.asImmutable,jn.__empty=In,jn.__make=Rn,t(Nn,Tn),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=$n;var zn,Fn=Nn.prototype;function Bn(e,t){var n=Object.create(Fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Kn(){return zn||(zn=Bn(Ut()))}function Vn(e){return null==e?Gn():Hn(e)?e:Gn().unshiftAll(e)}function Hn(e){return!(!e||!e[Wn])}Fn[h]=!0,Fn.__empty=Kn,Fn.__make=Bn,t(Vn,ke),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=D(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):qn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gn()},Vn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=A(e,this.size);if(M(t,this.size)!==this.size)return ke.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):qn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new z((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return B()}))},Vn.isStack=Hn;var Un,Wn="@@__IMMUTABLE_STACK__@@",Zn=Vn.prototype;function qn(e,t,n,r){var o=Object.create(Zn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Gn(){return Un||(Un=qn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[Wn]=!0,Zn.withMutations=qe.withMutations,Zn.asMutable=qe.asMutable,Zn.asImmutable=qe.asImmutable,Zn.wasAltered=qe.wasAltered,n.Iterator=z,Yn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new qt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return He(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Kt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(l(this)?this.valueSeq():this)},toSet:function(){return Tn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(l(this)?this.valueSeq():this)},toList:function(){return kt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,ln(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(R)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(j)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,dn(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ye(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(P)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=xn(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return fn(this,e)},maxBy:function(e,t){return fn(this,t,e)},min:function(e){return fn(this,e?nr(e):ir)},minBy:function(e,t){return fn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,dn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[d]=!0,Xn[$]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return E(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=u(e),n=l(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+sr(Pe(e),Pe(t))|0}:function(e,t){r=r+sr(Pe(e),Pe(t))|0}:t?function(e){r=31*r+Pe(e)|0}:function(e){r=r+Pe(e)|0});return lr(o,r)}function lr(e,t){return t=Oe(t,3432918353),t=Oe(t<<15|t>>>-15,461845907),t=Oe(t<<13|t>>>-13,5),t=Oe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=De((t=Oe(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[f]=!0,Jn[$]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,sn(this,e,!1))},get:function(e,t){return(e=D(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=D(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,un(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),G.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(E(arguments))))},zipWith:function(e){var t=E(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(q,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(Se,r.prototype),Yn(ke,o.prototype),Yn(Ee,i.prototype);var cr={Iterable:n,Seq:Z,Collection:xe,Map:He,OrderedMap:Kt,List:kt,Stack:Vn,Set:Tn,OrderedSet:Nn,Record:Sn,Range:Ce,Repeat:be,is:ve,fromJS:pe};return cr}();var G3=q3.exports,Y3=G3.OrderedMap,X3={createFromArray:function(e){return Y3(e.map((function(e){return[e.getKey(),e]})))}};var J3=G3,Q3=J3.Map,e4=J3.OrderedSet,t4=J3.Record,n4=e4(),r4={style:n4,entity:null},o4=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return i4;var t=Q3({style:n4,entity:null}).merge(e),n=a4.get(t);if(n)return n;var o=new r(t);return a4=a4.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?e4(t):t,entity:Array.isArray(n)?e4(n):n})},r}(t4(r4)),i4=new o4,a4=Q3([[Q3(r4),i4]]);o4.EMPTY=i4;var l4=o4;var s4=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var c4=l4,u4=s4,d4=G3,f4=d4.List,p4=d4.Map,h4=d4.OrderedSet,g4=d4.Record,m4=d4.Repeat,v4=h4(),y4=g4({key:"",type:"unstyled",text:"",characterList:f4(),depth:0,data:p4()}),b4=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=f4(m4(c4.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():v4},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){u4(this.getCharacterList(),w4,e,t)},o.findEntityRanges=function(e,t){u4(this.getCharacterList(),C4,e,t)},r}(y4);function w4(e,t){return e.getStyle()===t.getStyle()}function C4(e,t){return e.getEntity()===t.getEntity()}var x4=b4;var S4=l4,k4=s4,E4=G3,O4=E4.List,D4=E4.Map,P4=E4.OrderedSet,T4=E4.Record,A4=E4.Repeat,M4=P4(),_4={parent:null,characterList:O4(),data:D4(),depth:0,key:"",text:"",type:"unstyled",children:O4(),prevSibling:null,nextSibling:null},j4=function(e,t){return e.getStyle()===t.getStyle()},L4=function(e,t){return e.getEntity()===t.getEntity()},R4=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_4;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=O4(A4(S4.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():M4},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){k4(this.getCharacterList(),j4,e,t)},o.findEntityRanges=function(e,t){k4(this.getCharacterList(),L4,e,t)},r}(T4(_4)),I4=R4,N4=l4,$4=G3.Map;function z4(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),l=t.getEndKey(),s=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===l})).concat($4([[l,o.get(l)]])).map((function(e,t){var o,c;i===l?(o=a,c=s):(o=t===i?a:0,c=t===l?s:e.getLength());for(var u,d=e.getCharacterList();o<c;)u=d.get(o),d=d.set(o,r?N4.applyStyle(u,n):N4.removeStyle(u,n)),o++;return e.set("characterList",d)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}var F4={add:function(e,t,n){return z4(e,t,n,!0)},remove:function(e,t,n){return z4(e,t,n,!1)}},B4=l4;var K4=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,B4.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},V4=G3;var H4=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(V4.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,s=t===a?l:e.getLength();return K4(e,r,s,n)}));return e.merge({blockMap:r.merge(s),selectionBefore:t,selectionAfter:t})},U4={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,l=r,s=null,c=null,u=0;u<i.length;u++){if(e<(a=l+i[u].length)&&l<t)null!==s||(s=l),c=a;else if(null!==s)break;l=a}var d=r+n.length,f=s===r,p=c===d;return(!f&&p||f&&!p)&&("forward"===o?c!==d&&c++:s!==r&&s--),{start:s,end:c}}},W4="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var Z4=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(W4(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},q4=Z4;var G4=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?q4(!1,"Entity key not found in this range."):q4(!1)),n},Y4=U4,X4=G4,J4=Z4;function Q4(e,t,n,r,o,i,a){var l=n.getStartOffset(),s=n.getEndOffset(),c=e.__get(o).getMutability(),u=a?l:s;if("MUTABLE"===c)return n;var d=X4(t,o).filter((function(e){return u<=e.end&&u>=e.start}));1!=d.length&&("production"!==process.env.NODE_ENV?J4(!1,"There should only be one entity range within this removal range."):J4(!1));var f=d[0];if("IMMUTABLE"===c)return n.merge({anchorOffset:f.start,focusOffset:f.end,isBackward:!1});i||(a?s=f.end:l=f.start);var p=Y4.getRemovalRange(l,s,t.getText().slice(f.start,f.end),f.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var e6=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),l=t.getEntityAt(i),s=n.getEntityAt(a-1);if(!l&&!s)return r;var c=r;if(l&&l===s)c=Q4(e,t,c,o,l,!0,!0);else if(l&&s){var u=Q4(e,t,c,o,l,!1,!0),d=Q4(e,n,c,o,s,!1,!1);c=c.merge({anchorOffset:u.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(l){var f=Q4(e,t,c,o,l,!1,!0);c=c.merge({anchorOffset:f.getStartOffset(),isBackward:!1})}else if(s){var p=Q4(e,n,c,o,s,!1,!1);c=c.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return c},t6={},n6=Math.pow(2,24);var r6=function(){for(var e;void 0===e||t6.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*n6).toString(32);return t6[e]=!0,e},o6=I4,i6=r6,a6=G3.OrderedMap,l6=function(e){return e.first()instanceof o6?function(e){var t,n={};return a6(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),l=r.getPrevSiblingKey(),s=r.getChildKeys(),c=r.getParentKey(),u=i6();if(n[i]=u,a&&(e.get(a)?e.setIn([a,"prevSibling"],u):e.setIn([i,"nextSibling"],null)),l&&(e.get(l)?e.setIn([l,"nextSibling"],u):e.setIn([i,"prevSibling"],null)),c&&e.get(c)){var d=e.get(c).getChildKeys();e.setIn([c,"children"],d.set(d.indexOf(r.getKey()),u))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],u),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);s.forEach((function(t){e.get(t)?e.setIn([t,"parent"],u):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return a6(e.toArray().map((function(e){var t=i6();return[t,e.set("key",t)]})))}(e)},s6=l4,c6=s4,u6=Z4;function d6(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,l=i?i.getEntity():void 0;if(l&&l===a&&"MUTABLE"!==e.__get(l).getMutability()){for(var s,c=function(e,t,n){var r;return c6(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?u6(!1,"Removal range must exist within character list."):u6(!1)),r}(r,l,n),u=c.start,d=c.end;u<d;)s=r.get(u),r=r.set(u,s6.applyEntity(s,null)),u++;return t.set("characterList",r)}return t}var f6=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),l=n.get(i),s=d6(r,l,a);s!==l&&(o[i]=s);var c=t.getEndKey(),u=t.getEndOffset(),d=n.get(c);i===c&&(d=s);var f=d6(r,d,u);return f!==d&&(o[c]=f),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},p6=l6,h6=f6,g6=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=h6(e,t).getBlockMap(),l=a.keySeq(),s=l.indexOf(n),c=l.indexOf(o)+1;return p6(a.slice(s,c).map((function(e,t){var a=e.getText(),l=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:l.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:l.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:l.slice(0,i)}):e})))};var m6=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},v6=X3,y6=I4,b6=m6,w6=Z4,C6=l6,x6=G3.List,S6=function(e,t,n,r,o,i){var a=n.first()instanceof y6,l=[],s=r.size,c=n.get(o),u=r.first(),d=r.last(),f=d.getLength(),p=d.getKey(),h=a&&(!c.getChildKeys().isEmpty()||!u.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?l.push(e):l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),l=n.first();return e.merge({text:i+l.getText(),characterList:a.concat(l.getCharacterList()),type:i?e.getType():l.getType(),data:l.getData()})}(e,i,r)),r.slice(h?0:1,s-1).forEach((function(e){return l.push(e)})),l.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),l=o.slice(t,i),s=n.last();return s.merge({text:s.getText()+a,characterList:s.getCharacterList().concat(l),data:s.getData()})}(e,i,r))):l.push(e)}));var g=v6.createFromArray(l);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),l=n.getParentKey(),s=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),c=s[s.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var u=e.get(l).getChildKeys(),d=u.indexOf(o)+1,f=u.toArray();f.splice.apply(f,[d,0].concat(s)),t.setIn([l,"children"],x6(f))}}))}(g,0,c,u)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:f,focusKey:p,focusOffset:f,isBackward:!1})})},k6=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?w6(!1,"`insertFragment` should only be called with a collapsed selection state."):w6(!1));var o=e.getBlockMap(),i=C6(n),a=t.getStartKey(),l=t.getStartOffset(),s=o.get(a);return s instanceof y6&&(s.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?w6(!1,"`insertFragment` should not be called when a container node is selected."):w6(!1))),1===i.size?function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",l=n.get(o),s=l.getText(),c=l.getCharacterList(),u=o,d=i+r.getText().length,f=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":f=r.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":f=r.getData()}var p=l.getType();s&&"unstyled"===p&&(p=r.getType());var h=l.merge({text:s.slice(0,i)+r.getText()+s.slice(i),characterList:b6(c,r.getCharacterList(),i),type:p,data:f});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:d,focusKey:u,focusOffset:d,isBackward:!1})})}(e,t,o,i.first(),a,l,r):S6(e,t,o,i,a,l)},E6=m6,O6=Z4,D6=G3.Repeat;var P6=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?O6(!1,"`insertText` should only be called with a collapsed range."):O6(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),l=t.getStartOffset(),s=i.get(a),c=s.getText(),u=s.merge({text:c.slice(0,l)+n+c.slice(l,s.getLength()),characterList:E6(s.getCharacterList(),D6(r,o).toList(),l)}),d=l+o;return e.merge({blockMap:i.set(a,u),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})},T6=G3.Map;var A6=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(T6([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},M6=I4,_6=function(e,t){if(!(e instanceof M6))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},j6=I4,L6=_6,R6=G3;R6.List;var I6=R6.Map,N6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},$6=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},z6=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},F6=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},B6=function(e,t,n,r){return e.withMutations((function(o){if(N6(t.getKey(),o,(function(e){return e.merge({nextSibling:z6(e,o,r),prevSibling:F6(e,o,r)})})),N6(n.getKey(),o,(function(e){return e.merge({nextSibling:z6(e,o,r),prevSibling:F6(e,o,r)})})),$6(t.getKey(),r).forEach((function(e){return N6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:z6(e,o,r),prevSibling:F6(e,o,r)})}))})),N6(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),N6(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:z6(e,o,r)})})),N6(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:F6(e,o,r)})})),N6(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),$6(n.getKey(),r).forEach((function(e){N6(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:z6(e,o,r),prevSibling:F6(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=L6(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?L6(o,t):null}return n}(n,r).forEach((function(e){return N6(e,o,(function(e){return e.merge({nextSibling:z6(e,o,r),prevSibling:F6(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();N6(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),N6(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,l=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){N6(e,o,(function(e){return e.merge({parent:l})}))})),null!=l){var s=e.get(l);N6(l,o,(function(e){return e.merge({children:s.getChildKeys().concat(t.getChildKeys())})}))}N6(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},K6=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},V6=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),l=t.getEndOffset(),s=r.get(o),c=r.get(a),u=s instanceof j6,d=[];if(u){var f=c.getChildKeys(),p=$6(a,r);c.getNextSiblingKey()&&(d=d.concat(p)),f.isEmpty()||(d=d.concat(p.concat([a]))),d=d.concat($6(L6(c,r),r))}n=s===c?K6(s.getCharacterList(),i,l):s.getCharacterList().slice(0,i).concat(c.getCharacterList().slice(l));var h=s.merge({text:s.getText().slice(0,i)+c.getText().slice(l),characterList:n}),g=u&&0===i&&0===l&&c.getParentKey()===o&&null==c.getPrevSiblingKey()?I6([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===d.indexOf(t)})).concat(I6([[a,null]])).map((function(e,t){return t===o?h:null})),m=r.merge(g).filter((function(e){return!!e}));return u&&s!==c&&(m=B6(m,s,c,r)),e.merge({blockMap:m,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},H6=I4,U6=r6,W6=G3,Z6=Z4,q6=A6,G6=W6.List,Y6=W6.Map,X6=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},J6=l4,Q6=F4,e7=H4,t7=e6,n7=g6,r7=k6,o7=P6,i7=Z4,a7=A6,l7=f6,s7=V6,c7=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?Z6(!1,"Selection range must be collapsed."):Z6(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return q6(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var l=t.getAnchorOffset(),s=o.getCharacterList(),c=U6(),u=o instanceof H6,d=o.merge({text:i.slice(0,l),characterList:s.slice(0,l)}),f=d.merge({key:c,text:i.slice(l),characterList:s.slice(l),data:Y6()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,d],[c,f]],h).toOrderedMap();return u&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Z6(!1,"ContentBlockNode must not have children"):Z6(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();X6(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:G6(i)})})),X6(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),X6(r,e,(function(e){return e.merge({nextSibling:o})})),X6(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,d,f)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:0,focusKey:c,focusOffset:0,isBackward:!1})})},u7=G3.OrderedSet,d7={replaceText:function(e,t,n,r,o){var i=l7(e,t),a=s7(i,t),l=J6.create({style:r||u7(),entity:o||null});return o7(a,a.getSelectionAfter(),n,l)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?i7(!1,"Target range must be collapsed for `insertText`."):i7(!1)),d7.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=n7(e,t),o=d7.removeRange(e,t,"backward");return d7.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=l7(e,t),i=s7(o,t);return r7(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var l=t.getStartOffset(),s=t.getEndOffset(),c=i.getEntityAt(l),u=a.getEntityAt(s-1);if(r===o&&c&&c===u){var d=t7(e.getEntityMap(),i,a,t,n);return s7(e,d)}var f=l7(e,t);return s7(f,t)},splitBlock:function(e,t){var n=l7(e,t),r=s7(n,t);return c7(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Q6.add(e,t,n)},removeInlineStyle:function(e,t,n){return Q6.remove(e,t,n)},setBlockType:function(e,t,n){return a7(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return a7(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return a7(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=l7(e,t);return e7(r,t,n)}},f7=d7;var p7=function(e){return Object.keys(e).map((function(t){return e[t]}))};function h7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g7=s4,m7=p7,v7=G3,y7=v7.List,b7=v7.Repeat,w7=v7.Record,C7=function(){return!0},x7=w7({start:null,end:null}),S7=w7({start:null,end:null,decoratorKey:null,leaves:null}),k7={generate:function(e,t,n){var r=t.getLength();if(!r)return y7.of(new S7({start:0,end:0,decoratorKey:null,leaves:y7.of(new x7({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):y7(b7(null,r)),a=t.getCharacterList();return g7(i,O7,C7,(function(e,t){o.push(new S7({start:e,end:t,decoratorKey:i.get(e),leaves:E7(a.slice(e,t).toList(),e)}))})),y7(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new S7(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){h7(e,t,n[t])}))}return e}({},n,{leaves:null!=t?y7(Array.isArray(t)?t:m7(t)).map((function(e){return x7(e)})):null}))}};function E7(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return g7(r,O7,C7,(function(e,r){n.push(new x7({start:e+t,end:r+t}))})),y7(n)}function O7(e,t){return e===t}var D7=k7;var P7=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,G3.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),T7=P7;var A7=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function M7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _7=T7,j7=Z4,L7=A7,R7=(0,G3.Map)(),I7=L7();function N7(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var $7={getLastCreatedEntityKey:function(){return N7("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),$7.__getLastCreatedEntityKey()},create:function(e,t,n){return N7("DraftEntity.create","contentState.createEntity"),$7.__create(e,t,n)},add:function(e){return N7("DraftEntity.add","contentState.addEntity"),$7.__add(e)},get:function(e){return N7("DraftEntity.get","contentState.getEntity"),$7.__get(e)},__getAll:function(){return R7},__loadWithEntities:function(e){R7=e,I7=L7()},mergeData:function(e,t){return N7("DraftEntity.mergeData","contentState.mergeEntityData"),$7.__mergeData(e,t)},replaceData:function(e,t){return N7("DraftEntity.replaceData","contentState.replaceEntityData"),$7.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return I7},__create:function(e,t,n){return $7.__add(new _7({type:e,mutability:t,data:n||{}}))},__add:function(e){return I7=L7(),R7=R7.set(I7,e),I7},__get:function(e){var t=R7.get(e);return t||("production"!==process.env.NODE_ENV?j7(!1,"Unknown DraftEntity key: %s.",e):j7(!1)),t},__mergeData:function(e,t){var n=$7.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){M7(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return R7=R7.set(e,o),o},__replaceData:function(e,t){var n=$7.__get(e).set("data",t);return R7=R7.set(e,n),n}},z7=$7;var F7=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,G3.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),B7=F7,K7=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},V7=new RegExp("\r","g");var H7=function(e){return e.replace(V7,"")};function U7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){W7(e,t,n[t])}))}return e}function W7(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z7=X3,q7=l4,G7=x4,Y7=I4,X7=z7,J7=B7,Q7=r6,e8=p7,t8=K7,n8=G3,r8=H7,o8=n8.List,i8=n8.Record,a8=n8.Repeat,l8=n8.Map,s8=n8.OrderedMap,c8=i8({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),u8=t8("draft_tree_data_support")?Y7:G7,d8=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return X7},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return X7.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return X7.__create(e,t,n),this},o.mergeEntityData=function(e,t){return X7.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return X7.__replaceData(e,t),this},o.addEntity=function(e){return X7.__add(e),this},o.getEntity=function(e){return X7.__get(e)},o.getAllEntities=function(){return X7.__getAll()},o.loadWithEntities=function(e){return X7.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=Z7.createFromArray(n),i=o.isEmpty()?new J7:J7.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||X7,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t).map((function(e){return e=r8(e),new u8({key:Q7(),text:e,type:"unstyled",characterList:o8(a8(q7.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(U7({},e,{blockMap:s8(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new J7(e.selectionBefore),selectionAfter:new J7(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new u8(U7({},e,{data:l8(e.data),characterList:null!=t?o8((Array.isArray(t)?t:e8(t)).map((function(e){return q7.fromJS(e)}))):void 0}))},r}(c8),f8=d8,p8=Z4,h8="LTR",g8="RTL",m8=null;function v8(e){return e===h8||e===g8}function y8(e){return v8(e)||("production"!==process.env.NODE_ENV?p8(!1,"`dir` must be a strong direction to be converted to HTML Direction"):p8(!1)),e===h8?"ltr":"rtl"}function b8(e){m8=e}var w8={NEUTRAL:"NEUTRAL",LTR:h8,RTL:g8,isStrong:v8,getHTMLDir:y8,getHTMLDirIfDifferent:function(e,t){return v8(e)||("production"!==process.env.NODE_ENV?p8(!1,"`dir` must be a strong direction to be converted to HTML Direction"):p8(!1)),v8(t)||("production"!==process.env.NODE_ENV?p8(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):p8(!1)),e===t?null:y8(e)},setGlobalDir:b8,initGlobalDir:function(){b8(h8)},getGlobalDir:function(){return m8||this.initGlobalDir(),m8||("production"!==process.env.NODE_ENV?p8(!1,"Global direction not set."):p8(!1)),m8}},C8=w8,x8=Z4,S8="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",k8="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",E8=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+S8+k8+"]"),O8=new RegExp("["+S8+k8+"]");function D8(e){var t=E8.exec(e);return null==t?null:t[0]}function P8(e){var t=D8(e);return null==t?C8.NEUTRAL:O8.exec(t)?C8.RTL:C8.LTR}function T8(e,t){if(t=t||C8.NEUTRAL,!e.length)return t;var n=P8(e);return n===C8.NEUTRAL?t:n}function A8(e,t){return t||(t=C8.getGlobalDir()),C8.isStrong(t)||("production"!==process.env.NODE_ENV?x8(!1,"Fallback direction must be a strong direction"):x8(!1)),T8(e,t)}var M8={firstStrongChar:D8,firstStrongCharDir:P8,resolveBlockDir:T8,getDirection:A8,isDirectionLTR:function(e,t){return A8(e,t)===C8.LTR},isDirectionRTL:function(e,t){return A8(e,t)===C8.RTL}};function _8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j8,L8=M8,R8=w8,I8=Z4,N8=function(){function e(e){_8(this,"_defaultDir",void 0),_8(this,"_lastDir",void 0),e?R8.isStrong(e)||("production"!==process.env.NODE_ENV?I8(!1,"Default direction must be a strong direction (LTR or RTL)"):I8(!1)):e=R8.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=L8.getDirection(e,this._lastDir),this._lastDir},e}(),$8=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},z8=N8,F8=G3,B8=$8,K8=F8.OrderedMap;function V8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){H8(e,t,n[t])}))}return e}function H8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U8=D7,W8=f8,Z8={getDirectionMap:function(e,t){j8?j8.reset():j8=new z8;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return B8(j8).getDirection(e.getText())})),o=K8(n.keySeq().zip(r));return null!=t&&F8.is(t,o)?t:o}},q8=B7,G8=G3,Y8=G8.OrderedSet,X8=G8.Record,J8=G8.Stack,Q8=G8.OrderedMap,eee=G8.List,tee=X8({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:J8(),selection:null,treeMap:null,undoStack:J8()}),nee=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(W8.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:J8(),redoStack:J8(),decorator:n||null,selection:q8.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=V8({},e,{treeMap:oee(n,e.decorator),directionMap:Z8.getDirectionMap(n)});return new t(new tee(r))},t.fromJS=function(e){return new t(new tee(V8({},e,{directionMap:null!=e.directionMap?Q8(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?Y8(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?W8.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?J8(e.redoStack.map((function(e){return W8.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new q8(e.selection):e.selection,treeMap:null!=e.treeMap?Q8(e.treeMap).map((function(e){return eee(e).map((function(e){return U8.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?J8(e.undoStack.map((function(e){return W8.fromJS(e)}))):e.undoStack,currentContent:W8.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,l=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return U8.generate(e,t,r)})))}(i,i.getBlockMap(),l,o,r):oee(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return U8.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){H8(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return iee(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return iee(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return ree(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),ree(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new q8({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=Z8.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),l=e.getCurrentContent(),s=e.getUndoStack(),c=n;a!==l.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(s=s.push(l),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",l.getSelectionBefore()));var u=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(u=null);var d={currentContent:c,directionMap:i,undoStack:s,redoStack:J8(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:u};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=Z8.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=Z8.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function ree(e,t,n){return nee.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function oee(e,t){return e.getBlockMap().map((function(n){return U8.generate(e,n,t)})).toOrderedMap()}function iee(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):Y8()}var aee=nee,lee=I4,see=_6,cee=G3,uee=Z4,dee=cee.OrderedMap,fee=cee.List,pee=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},hee=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),l=n.getKey(),s=t.getParentKey(),c=t.getNextSiblingKey(),u=t.getPrevSiblingKey(),d=n.getParentKey(),f=i?n.getNextSiblingKey():l,p=i?l:n.getPrevSiblingKey();return e.withMutations((function(e){pee(s,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),pee(u,e,(function(e){return e.merge({nextSibling:c})})),pee(c,e,(function(e){return e.merge({prevSibling:u})})),pee(f,e,(function(e){return e.merge({prevSibling:a})})),pee(p,e,(function(e){return e.merge({nextSibling:a})})),pee(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:fee(o)})})),pee(a,e,(function(e){return e.merge({nextSibling:f,prevSibling:p,parent:d})}))}))};function gee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mee(e,t,n[t])}))}return e}function mee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vee=X3,yee=l4,bee=x4,wee=I4,Cee=f7,xee=aee,See=r6,kee=G3,Eee=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?uee(!1,"Replacing blocks is not supported."):uee(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?uee(!1,"Block cannot be moved next to itself."):uee(!1));var a=e.getBlockMap(),l=t instanceof lee,s=[t],c=a.delete(i);l&&(s=[],c=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=see(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,l=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||l)})).forEach((function(t){s.push(t),e.delete(t.getKey())}))})));var u=c.toSeq().takeUntil((function(e){return e===n})),d=c.toSeq().skipUntil((function(e){return e===n})).skip(1),f=s.map((function(e){return[e.getKey(),e]})),p=dee();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?uee(!1,"Block cannot be moved next to itself."):uee(!1)),p=u.concat([].concat(f,[[o,n]]),d).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?uee(!1,"Block cannot be moved next to itself."):uee(!1)),p=u.concat([[o,n]].concat(f),d).toOrderedMap()}return e.merge({blockMap:hee(p,t,n,r,l),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},Oee=K7("draft_tree_data_support"),Dee=Oee?wee:bee,Pee=kee.List,Tee=kee.Repeat,Aee={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=Cee.removeRange(r,o,"backward"),a=i.getSelectionAfter(),l=Cee.splitBlock(i,a),s=l.getSelectionAfter(),c=Cee.setBlockType(l,s,"atomic"),u=yee.create({entity:t}),d={key:See(),type:"atomic",text:n,characterList:Pee(Tee(u,n.length))},f={key:See(),type:"unstyled"};Oee&&(d=gee({},d,{nextSibling:f.key}),f=gee({},f,{prevSibling:d.key}));var p=[new Dee(d),new Dee(f)],h=vee.createFromArray(p),g=Cee.replaceWithFragment(c,s,h),m=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return xee.push(e,m,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var l=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=Eee(i,t,l,r)}else{var s=Cee.removeRange(i,n,"backward"),c=s.getSelectionAfter(),u=s.getBlockForKey(c.getFocusKey());if(0===c.getStartOffset())o=Eee(s,t,u,"before");else if(c.getEndOffset()===u.getLength())o=Eee(s,t,u,"after");else{var d=Cee.splitBlock(s,c),f=d.getSelectionAfter(),p=d.getBlockForKey(f.getFocusKey());o=Eee(d,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return xee.push(e,h,"move-block")}};var Mee=G3.List,_ee=function(){function e(e){var t,n,r;r=void 0,(n="_decorators")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),Mee(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var jee=_ee;function Lee(e){return e.replace(/\//g,"-")}var Ree,Iee,Nee=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(Lee).join(" "):Array.prototype.map.call(arguments,Lee).join(" ")},$ee=o,zee=Nee,Fee=(0,G3.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:$ee.createElement("ul",{className:zee("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:$ee.createElement("ol",{className:zee("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:$ee.createElement("pre",{className:zee("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),Bee={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},Kee={exports:{}};Ree=Kee,Iee=Kee.exports,function(e,t){var n="function",r="undefined",o="object",i="string",a="major",l="model",s="name",c="type",u="vendor",d="version",f="architecture",p="console",h="mobile",g="tablet",m="smarttv",v="wearable",y="embedded",b="Amazon",w="Apple",C="ASUS",x="BlackBerry",S="Browser",k="Chrome",E="Firefox",O="Google",D="Huawei",P="LG",T="Microsoft",A="Motorola",M="Opera",_="Samsung",j="Sharp",L="Sony",R="Xiaomi",I="Zebra",N="Facebook",$="Chromium OS",z="Mac OS",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},B=function(e,t){return typeof e===i&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},H=function(e,r){for(var i,a,l,s,c,u,d=0;d<r.length&&!c;){var f=r[d],p=r[d+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(l=0;l<p.length;l++)u=c[++a],typeof(s=p[l])===o&&s.length>0?2===s.length?typeof s[1]==n?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==n||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):t:this[s[0]]=u?s[1].call(this,u,s[2]):t:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):t):this[s]=u||t;d+=2}},U=function(e,n){for(var r in n)if(typeof n[r]===o&&n[r].length>0){for(var i=0;i<n[r].length;i++)if(B(n[r][i],e))return"?"===r?t:r}else if(B(n[r],e))return"?"===r?t:r;return e},W={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[s,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[s,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[s,d],[/opios[\/ ]+([\w\.]+)/i],[d,[s,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[d,[s,M]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[d,[s,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[s,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[s,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[d,[s,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[s,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[s,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[d,[s,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[d,[s,"Smart Lenovo "+S]],[/(avast|avg)\/([\w\.]+)/i],[[s,/(.+)/,"$1 Secure "+S],d],[/\bfocus\/([\w\.]+)/i],[d,[s,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[s,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[s,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[s,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[s,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[s,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[d,[s,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[s,"360 "+S]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[s,/(.+)/,"$1 "+S],d],[/samsungbrowser\/([\w\.]+)/i],[d,[s,_+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],d],[/metasr[\/ ]?([\d\.]+)/i],[d,[s,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[s,"Sogou Mobile"],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[s,d],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[s],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[s,N],d],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[s,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[s,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[d,[s,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[s,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[s,k+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[s,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[s,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[s,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,s],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[s,[d,U,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[s,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[s,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[s,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[s,d],[/(cobalt)\/([\w\.]+)/i],[s,[d,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,K]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[u,_],[c,g]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[u,_],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[u,w],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[u,w],[c,g]],[/(macintosh);/i],[l,[u,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[u,j],[c,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[u,D],[c,g]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[u,D],[c,h]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[u,R],[c,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[u,R],[c,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[u,"OPPO"],[c,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[u,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[u,"Realme"],[c,h]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[u,A],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[u,A],[c,g]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[u,P],[c,g]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[u,P],[c,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[u,"Lenovo"],[c,g]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[u,"Nokia"],[c,h]],[/(pixel c)\b/i],[l,[u,O],[c,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[u,O],[c,h]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[u,L],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[u,L],[c,g]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[u,"OnePlus"],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[u,b],[c,g]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[u,b],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[l,u,[c,g]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[u,x],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[u,C],[c,g]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[u,C],[c,h]],[/(nexus 9)/i],[l,[u,"HTC"],[c,g]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[l,/_/g," "],[c,h]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[u,"Acer"],[c,g]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[u,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[u,"Ulefone"],[c,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,l,[c,h]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,l,[c,g]],[/(surface duo)/i],[l,[u,T],[c,g]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[u,"Fairphone"],[c,h]],[/(u304aa)/i],[l,[u,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[l,[u,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[l,[u,"RCA"],[c,g]],[/\b(venue[\d ]{2,7}) b/i],[l,[u,"Dell"],[c,g]],[/\b(q(?:mv|ta)\w+) b/i],[l,[u,"Verizon"],[c,g]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[u,"Barnes & Noble"],[c,g]],[/\b(tm\d{3}\w+) b/i],[l,[u,"NuVision"],[c,g]],[/\b(k88) b/i],[l,[u,"ZTE"],[c,g]],[/\b(nx\d{3}j) b/i],[l,[u,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[l,[u,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[l,[u,"Swiss"],[c,g]],[/\b((zeki)?tb.*\b) b/i],[l,[u,"Zeki"],[c,g]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],l,[c,g]],[/\b(ns-?\w{0,9}) b/i],[l,[u,"Insignia"],[c,g]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[u,"NextBook"],[c,g]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],l,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],l,[c,h]],[/\b(ph-1) /i],[l,[u,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[u,"Envizen"],[c,g]],[/\b(trio[-\w\. ]+) b/i],[l,[u,"MachSpeed"],[c,g]],[/\btu_(1491) b/i],[l,[u,"Rotor"],[c,g]],[/(shield[\w ]+) b/i],[l,[u,"Nvidia"],[c,g]],[/(sprint) (\w+)/i],[u,l,[c,h]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[u,T],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[u,I],[c,g]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[u,I],[c,h]],[/smart-tv.+(samsung)/i],[u,[c,m]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[u,_],[c,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,P],[c,m]],[/(apple) ?tv/i],[u,[l,w+" TV"],[c,m]],[/crkey/i],[[l,k+"cast"],[u,O],[c,m]],[/droid.+aft(\w+)( bui|\))/i],[l,[u,b],[c,m]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[u,j],[c,m]],[/(bravia[\w ]+)( bui|\))/i],[l,[u,L],[c,m]],[/(mitv-\w{5}) bui/i],[l,[u,R],[c,m]],[/Hbbtv.*(technisat) (.*);/i],[u,l,[c,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,V],[l,V],[c,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,l,[c,p]],[/droid.+; (shield) bui/i],[l,[u,"Nvidia"],[c,p]],[/(playstation [345portablevi]+)/i],[l,[u,L],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[u,T],[c,p]],[/((pebble))app/i],[u,l,[c,v]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[u,w],[c,v]],[/droid.+; (glass) \d/i],[l,[u,O],[c,v]],[/droid.+; (wt63?0{2,3})\)/i],[l,[u,I],[c,v]],[/(quest( 2| pro)?)/i],[l,[u,N],[c,v]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[c,y]],[/(aeobc)\b/i],[l,[u,b],[c,y]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[c,g]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,g]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[s,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,s]],os:[[/microsoft (windows) (vista|xp)/i],[s,d],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[s,[d,U,W]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,U,W],[s,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[s,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[s,z],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,s],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[s,d],[/\(bb(10);/i],[d,[s,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[s,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[s,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[s,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[d,[s,"watchOS"]],[/crkey\/([\d\.]+)/i],[d,[s,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[s,$],d],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[s,d],[/(sunos) ?([\w\.\d]*)/i],[[s,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[s,d]]},q=function(p,m){if(typeof p===o&&(m=p,p=t),!(this instanceof q))return new q(p,m).getResult();var v=typeof e!==r&&e.navigator?e.navigator:t,y=p||(v&&v.userAgent?v.userAgent:""),b=v&&v.userAgentData?v.userAgentData:t,w=m?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Z,m):Z,C=v&&v.userAgent==y;return this.getBrowser=function(){var e,r={};return r[s]=t,r[d]=t,H.call(r,y,w.browser),r[a]=typeof(e=r[d])===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t,C&&v&&v.brave&&typeof v.brave.isBrave==n&&(r[s]="Brave"),r},this.getCPU=function(){var e={};return e[f]=t,H.call(e,y,w.cpu),e},this.getDevice=function(){var e={};return e[u]=t,e[l]=t,e[c]=t,H.call(e,y,w.device),C&&!e[c]&&b&&b.mobile&&(e[c]=h),C&&"Macintosh"==e[l]&&v&&typeof v.standalone!==r&&v.maxTouchPoints&&v.maxTouchPoints>2&&(e[l]="iPad",e[c]=g),e},this.getEngine=function(){var e={};return e[s]=t,e[d]=t,H.call(e,y,w.engine),e},this.getOS=function(){var e={};return e[s]=t,e[d]=t,H.call(e,y,w.os),C&&!e[s]&&b&&"Unknown"!=b.platform&&(e[s]=b.platform.replace(/chrome os/i,$).replace(/macos/i,z)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return y},this.setUA=function(e){return y=typeof e===i&&e.length>500?V(e,500):e,this},this.setUA(y),this};q.VERSION="0.7.37",q.BROWSER=F([s,d,a]),q.CPU=F([f]),q.DEVICE=F([l,u,c,p,h,m,g,v,y]),q.ENGINE=q.OS=F([s,d]),Ree.exports&&(Iee=Ree.exports=q),Iee.UAParser=q;var G=typeof e!==r&&(e.jQuery||e.Zepto);if(G&&!G.ua){var Y=new q;G.ua=Y.getResult(),G.ua.get=function(){return Y.getUA()},G.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:ii);var Vee="Unknown",Hee={"Mac OS":"Mac OS X"};var Uee,Wee=(new(0,Kee.exports)).getResult(),Zee=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(Wee.browser.version),qee={browserArchitecture:Wee.cpu.architecture||Vee,browserFullVersion:Wee.browser.version||Vee,browserMinorVersion:Zee.minor||Vee,browserName:Wee.browser.name||Vee,browserVersion:Wee.browser.major||Vee,deviceName:Wee.device.model||Vee,engineName:Wee.engine.name||Vee,engineVersion:Wee.engine.version||Vee,platformArchitecture:Wee.cpu.architecture||Vee,platformName:(Uee=Wee.os.name,Hee[Uee]||Uee||Vee),platformVersion:Wee.os.version||Vee,platformFullVersion:Wee.os.version||Vee},Gee=Z4,Yee=/\./,Xee=/\|\|/,Jee=/\s+\-\s+/,Qee=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,ete=/^(\d*)(.*)/;function tte(e,t){var n=e.split(Xee);return n.length>1?n.some((function(e){return fte.contains(e,t)})):function(e,t){var n=e.split(Jee);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?Gee(!1,'the "-" operator expects exactly 2 operands'):Gee(!1)),1===n.length)return nte(n[0],t);var r=n[0],o=n[1];return lte(r)&&lte(o)||("production"!==process.env.NODE_ENV?Gee(!1,'operands to the "-" operator must be simple (no modifiers)'):Gee(!1)),nte(">="+r,t)&&nte("<="+o,t)}(e=n[0].trim(),t)}function nte(e,t){if(""===(e=e.trim()))return!0;var n=t.split(Yee),r=ite(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return rte(n,i);case"<=":return function(e,t){var n=dte(e,t);return-1===n||0===n}(n,i);case">=":return ote(n,i);case">":return function(e,t){return 1===dte(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);ate(i)&&(r[o]=i+1+"");return ote(e,n)&&rte(e,r)}(n,i);default:return function(e,t){return 0===dte(e,t)}(n,i)}}function rte(e,t){return-1===dte(e,t)}function ote(e,t){var n=dte(e,t);return 1===n||0===n}function ite(e){var t=e.split(Yee),n=t[0].match(Qee);return n||("production"!==process.env.NODE_ENV?Gee(!1,"expected regex to match but it did not"):Gee(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function ate(e){return!isNaN(e)&&isFinite(e)}function lte(e){return!ite(e).modifier}function ste(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function cte(e,t){var n=e.match(ete)[1],r=t.match(ete)[1],o=parseInt(n,10),i=parseInt(r,10);return ate(o)&&ate(i)&&o!==i?ute(o,i):ute(e,t)}function ute(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?Gee(!1,'"a" and "b" must be of the same type'):Gee(!1)),e>t?1:e<t?-1:0}function dte(e,t){for(var n=function(e,t){ste(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return ste(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=cte(r[i],o[i]);if(a)return a}return 0}var fte={contains:function(e,t){return tte(e.trim(),t.trim())}},pte=fte,hte=Object.prototype.hasOwnProperty;var gte=function(e,t,n){if(!e)return null;var r={};for(var o in e)hte.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var mte=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},vte=qee,yte=pte;function bte(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,yte.contains(o,t))}function wte(e){return"Windows"===vte.platformName?e.replace(/^\s*NT/,""):e}var Cte=gte({isBrowser:function(e){return bte(vte.browserName,vte.browserFullVersion,e)},isBrowserArchitecture:function(e){return bte(vte.browserArchitecture,null,e)},isDevice:function(e){return bte(vte.deviceName,null,e)},isEngine:function(e){return bte(vte.engineName,vte.engineVersion,e)},isPlatform:function(e){return bte(vte.platformName,vte.platformFullVersion,e,wte)},isPlatformArchitecture:function(e){return bte(vte.platformArchitecture,null,e)}},mte);var xte=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var Ste=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},kte=Ste;var Ete=function e(t){if(kte(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},Ote=xte,Dte=Ete;var Pte=function(e){for(var t=e;t&&t!==Ote(e).documentElement;){var n=Dte(t);if(null!=n)return n;t=t.parentNode}return null};var Tte=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function Ate(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mte=Cte,_te=Pte,jte=Tte,Lte=Z4,Rte=$8,Ite=G3.Map,Nte={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},$te=Mte.isBrowser("IE <= 11"),zte=function(){function e(e){var t=this;Ate(this,"observer",void 0),Ate(this,"container",void 0),Ate(this,"mutations",void 0),Ate(this,"onCharData",void 0),this.container=e,this.mutations=Ite();var n=jte(e);n.MutationObserver&&!$te?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?Lte(!1,"Expected target to be an instance of Node"):Lte(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,Nte):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=Ite(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return $te?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=Rte(_te(e.target));this.mutations=this.mutations.set(n,t)}},e}(),Fte="-",Bte={encode:function(e,t,n){return e+Fte+t+Fte+n},decode:function(e){var t=e.split(Fte).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(Fte),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},Kte={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},Vte={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var Hte=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},Ute=Z4,Wte=Hte;var Zte=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?Ute(!1,"Missing editorNode"):Ute(!1)),Wte(t.firstChild)||("production"!==process.env.NODE_ENV?Ute(!1,"editorNode.firstChild is not an HTMLElement"):Ute(!1)),t.firstChild},qte=Bte,Gte=$8;var Yte=function(e,t,n,r,o){var i=Gte(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=qte.decode(t),l=a.blockKey,s=e.getBlockTree(l),c=s&&s.getIn([a.decoratorKey,"leaves",a.leafKey]),u=qte.decode(r),d=u.blockKey,f=e.getBlockTree(d),p=f&&f.getIn([u.decoratorKey,"leaves",u.leafKey]);if(!c||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=c.get("start"),g=p.get("start"),m=c?h+n:null,v=p?g+o:null;if(i.getAnchorKey()===l&&i.getAnchorOffset()===m&&i.getFocusKey()===d&&i.getFocusOffset()===v)return i;var y=!1;if(l===d){var b=c.get("end"),w=p.get("end");y=g===h&&w===b?o<n:g<h}else{y=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===l||e===d})).first()===d}return i.merge({anchorKey:l,anchorOffset:m,focusKey:d,focusOffset:v,isBackward:y})},Xte=Pte,Jte=Ete,Qte=Yte,ene=Z4,tne=Ste,nne=$8;function rne(e,t,n){var r=t,o=Xte(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?ene(!1,"Unknown node in selection range."):ene(!1)),e===r)&&(r=r.firstChild,tne(r)||("production"!==process.env.NODE_ENV?ene(!1,"Invalid DraftEditorContents node."):ene(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?ene(!1,"Invalid DraftEditorContents structure."):ene(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(tne(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Jte(e.firstChild));)e=e.firstChild;return e}(r);i=nne(Jte(a))}return{key:i,offset:0}}var l=r.childNodes[n-1],s=null,c=null;if(Jte(l)){var u=function(e){for(;e.lastChild&&(tne(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Jte(e.lastChild));)e=e.lastChild;return e}(l);s=nne(Jte(u)),c=one(u)}else s=nne(o),c=one(l);return{key:s,offset:c}}function one(e){var t=e.textContent;return"\n"===t?0:t.length}var ine=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,l=o.nodeType===Node.TEXT_NODE;if(a&&l)return{selectionState:Qte(e,nne(Xte(n)),r,nne(Xte(o)),i),needsRecovery:!1};var s=null,c=null,u=!0;return a?(s={key:nne(Xte(n)),offset:r},c=rne(t,o,i)):l?(c={key:nne(Xte(o)),offset:i},s=rne(t,n,r)):(s=rne(t,n,r),c=rne(t,o,i),n===o&&r===i&&(u=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Qte(e,s.key,s.offset,c.key,c.offset),needsRecovery:u}},ane=ine;var lne=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:ane(e,t,r,o,i,a)},sne=Vte,cne=aee,une=Zte,dne=lne;var fne=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();sne.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=dne(n,une(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?cne.forceSelection(n,o):cne.acceptSelection(n,o),e.update(n))}};var pne={notEmptyKey:function(e){return null!=e&&""!=e}},hne=pne.notEmptyKey;function gne(e,t){return hne(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var mne=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:gne(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),l=e.getBlockForKey(i);return n=a===l.getLength()?null:l.getEntityAt(a),gne(e.getEntityMap(),n)},vne=zte,yne=f7,bne=Bte,wne=aee,Cne=Kte,xne=fne,Sne=Zte,kne=lne,Ene=mne,One=$8,Dne=Cte.isBrowser("IE"),Pne=!1,Tne=!1,Ane=null;var Mne,_ne,jne={onCompositionStart:function(e){Tne=!0,function(e){Ane||(Ane=new vne(Sne(e))).start()}(e)},onCompositionEnd:function(e){Pne=!1,Tne=!1,setTimeout((function(){Pne||jne.resolveComposition(e)}),20)},onSelect:xne,onKeyDown:function(e,t){if(!Tne)return jne.resolveComposition(e),void e._onKeyDown(t);t.which!==Cne.RIGHT&&t.which!==Cne.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===Cne.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!Tne){var t=One(Ane).stopAndFlushMutations();Ane=null,Pne=!0;var n=wne.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=bne.decode(t),i=o.blockKey,a=o.decoratorKey,l=o.leafKey,s=n.getBlockTree(i).getIn([a,"leaves",l]),c=s.start,u=s.end,d=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:c,focusOffset:u,isBackward:!1}),f=Ene(r,d),p=r.getBlockForKey(i).getInlineStyleAt(c);r=yne.replaceText(r,d,e,p,f),n=wne.set(n,{currentContent:r})}));var o=kne(n,Sne(e)).selectionState;e.restoreEditorDOM();var i=Dne?wne.forceSelection(n,o):wne.acceptSelection(n,o);e.update(wne.push(i,r,"insert-characters"))}else e.update(n)}}},Lne=jne;function Rne(){if(_ne)return Mne;_ne=1;var e=HH;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=Bte,r=o,i=M8,a=w8,l=function(e){var o,l;function s(){return e.apply(this,arguments)||this}return l=e,(o=s).prototype=Object.create(l.prototype),o.prototype.constructor=o,o.__proto__=l,s.prototype.render=function(){var e=this.props,o=e.block,l=e.children,s=e.contentState,c=e.decorator,u=e.decoratorKey,d=e.direction,f=e.leafSet,p=e.text,h=o.getKey(),g=f.get("leaves"),m=c.getComponentForKey(u),v=c.getPropsForKey(u),y=n.encode(h,parseInt(u,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),d);return r.createElement(m,t({},v,{contentState:s,decoratedText:b,dir:w,key:y,entityKey:o.getEntityAt(f.get("start")),offsetKey:y}),l)},s}(r.Component);return Mne=l}function Ine(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $ne=o,zne=Z4,Fne=Ste,Bne=Cte.isBrowser("IE <= 11");var Kne=function(e){var t,n;function r(t){var n;return Nne(Ine(n=e.call(this,t)||this),"_forceFlag",void 0),Nne(Ine(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;Fne(t)||("production"!==process.env.NODE_ENV?zne(!1,"node is not an Element"):zne(!1));var r=t;return n?!function(e){return Bne?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},Bne?$ne.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):$ne.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return Bne?$ne.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):$ne.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):$ne.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}($ne.Component),Vne=Kne,Hne=Ste;var Une=function(e){return!(!e||!e.ownerDocument)&&(Hne(e)&&"BR"===e.nodeName)},Wne={initODS:function(){},handleExtensionCausedError:function(){}};var Zne=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},qne=Zne;var Gne=function(e){return qne(e)&&3==e.nodeType},Yne=Gne;var Xne=function e(t,n){return!(!t||!n)&&(t===n||!Yne(t)&&(Yne(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var Jne=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},Qne=Wne,ere=Vte,tre=Xne,nre=Jne,rre=xte,ore=Z4,ire=Ste,are=Cte.isBrowser("IE");function lre(e,t){if(!e)return"[empty]";var n=sre(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(ire(n)||("production"!==process.env.NODE_ENV?ore(!1,"Node must be an Element if it is not a text node."):ore(!1)),n.outerHTML)}function sre(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return rre(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(sre(i[a],t));return o}function cre(e,t){for(var n=e,r=n;n;){if(ire(n)&&r.hasAttribute("contenteditable"))return lre(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function ure(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function dre(e,t,n,r){var o=nre();if(e.extend&&null!=t&&tre(o,t)){n>ure(t)&&ere.logSelectionStateFailure({anonymizedDom:cre(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw ere.logSelectionStateFailure({anonymizedDom:cre(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function fre(e,t,n,r){var o=rre(t).createRange();if(n>ure(t)&&(ere.logSelectionStateFailure({anonymizedDom:cre(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),Qne.handleExtensionCausedError()),o.setStart(t,n),are)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var pre=function(e,t,n,r,o){var i=rre(t);if(tre(i.documentElement,t)){var a=i.defaultView.getSelection(),l=e.getAnchorKey(),s=e.getAnchorOffset(),c=e.getFocusKey(),u=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var f=l,p=s;l=c,s=u,c=f,u=p,d=!1}var h=l===n&&r<=s&&o>=s,g=c===n&&r<=u&&o>=u;if(h&&g)return a.removeAllRanges(),fre(a,t,s-r,e),void dre(a,t,u-r,e);if(d){if(g&&(a.removeAllRanges(),fre(a,t,u-r,e)),h){var m=a.focusNode,v=a.focusOffset;a.removeAllRanges(),fre(a,t,s-r,e),dre(a,m,v,e)}}else h&&(a.removeAllRanges(),fre(a,t,s-r,e)),g&&dre(a,t,u-r,e)}},hre=HH;var gre,mre,vre=Vne,yre=o,bre=Z4,wre=Une,Cre=pre,xre=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="leaf")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var l=this.leaf;l||("production"!==process.env.NODE_ENV?bre(!1,"Missing node"):bre(!1));var s,c=l.firstChild;c||("production"!==process.env.NODE_ENV?bre(!1,"Missing child"):bre(!1)),c.nodeType===Node.TEXT_NODE?s=c:wre(c)?s=l:(s=c.firstChild)||("production"!==process.env.NODE_ENV?bre(!1,"Missing targetNode"):bre(!1)),Cre(e,s,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?bre(!1,"Missing leafNode"):bre(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,l=r.styleSet,s=l.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),hre(e,r,n)}),{});if(i){var c=i(l,t);s=hre(s,c)}return yre.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:s},yre.createElement(vre,null,n))},r}(yre.Component),Sre=xre;function kre(){if(mre)return gre;mre=1;var e=Rne(),t=Sre,n=Bte,r=o,i=Nee;G3.List;var a=function(o){var a,l;function s(){return o.apply(this,arguments)||this}return l=o,(a=s).prototype=Object.create(l.prototype),a.prototype.constructor=a,a.__proto__=l,s.prototype.render=function(){var o=this.props,a=o.block,l=o.contentState,s=o.customStyleFn,c=o.customStyleMap,u=o.decorator,d=o.direction,f=o.forceSelection,p=o.hasSelection,h=o.selection,g=o.tree,m=a.getKey(),v=a.getText(),y=g.size-1,b=this.props.children||g.map((function(o,i){var g=o.get("decoratorKey"),b=o.get("leaves"),w=b.size-1,C=b.map((function(e,o){var l=n.encode(m,i,o),u=e.get("start"),d=e.get("end");return r.createElement(t,{key:l,offsetKey:l,block:a,start:u,selection:p?h:null,forceSelection:f,text:v.slice(u,d),styleSet:a.getInlineStyleAt(u),customStyleMap:c,customStyleFn:s,isLast:g===y&&o===w})})).toArray();return g&&u?r.createElement(e,{block:a,children:C,contentState:l,decorator:u,decoratorKey:g,direction:d,leafSet:o,text:v,key:i}):C})).toArray();return r.createElement("div",{"data-offset-key":n.encode(m,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===d,"public/DraftStyleDefault/rtl":"RTL"===d})},b)},s}(r.Component);return gre=a}function Ere(e,t){return!!t&&(e===t.documentElement||e===t.body)}var Ore={getTop:function(e){var t=e.ownerDocument;return Ere(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;Ere(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return Ere(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;Ere(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},Dre=/-(.)/g;var Pre=function(e){return e.replace(Dre,(function(e,t){return t.toUpperCase()}))},Tre=/([A-Z])/g;var Are=function(e){return e.replace(Tre,"-$1").toLowerCase()},Mre=Pre,_re=Are;function jre(e){return null==e?e:String(e)}var Lre=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return jre(n.getPropertyValue(_re(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return jre(n.getPropertyValue(_re(t)));if("display"===t)return"none"}return e.currentStyle?jre("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Mre(t)]):jre(e.style&&e.style[Mre(t)])};function Rre(e,t){var n=Ire.get(e,t);return"auto"===n||"scroll"===n}var Ire={get:Lre,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(Rre(e,"overflow")||Rre(e,"overflowY")||Rre(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},Nre=Ire,$re=Xne;var zre=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!$re(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var Fre=function(e){var t=zre(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},Bre="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var Kre=function(e){return(e=e||document).scrollingElement?e.scrollingElement:Bre||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},Vre=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var Hre=function(e){var t=Kre(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=Vre(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function Ure(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function Wre(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function Zre(){return{width:window.innerWidth||Ure(),height:window.innerHeight||Wre()}}Zre.withoutScrollbars=function(){return{width:Ure(),height:Wre()}};var qre,Gre,Yre,Xre,Jre=Zre;function Qre(){if(Gre)return qre;Gre=1;var e=HH;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=kre(),a=Bte,l=o,s=Ore,c=Nre,u=Fre,d=Hre,f=Jre,p=Z4,h=Hte;G3.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},m=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},y=function(e,t,r,o,i,a){var l={"data-block":!0,"data-editor":t,"data-offset-key":r,key:e.getKey(),ref:a},s=o(e);return s&&(l.className=s),void 0!==i.customEditable&&(l=n({},l,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),l},b=function(e){var o,b;function w(){for(var t,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return r(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(o))||this),"wrapperRef",l.createRef()),t}b=e,(o=w).prototype=Object.create(b.prototype),o.prototype.constructor=o,o.__proto__=b;var C=w.prototype;return C.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},C.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=c.getScrollParent(n),i=d(o);if(o===window){var a=u(n);(r=a.y+a.height-f().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var l=n;(r=l.offsetHeight+l.offsetTop-(o.offsetHeight+i.y))>0&&s.setTop(o,s.getTop(o)+r+10)}}}},C.render=function(){var e=this,r=this.props,o=r.block,s=r.blockRenderMap,c=r.blockRendererFn,u=r.blockStyleFn,d=r.contentState,f=r.decorator,p=r.editorKey,h=r.editorState,b=r.customStyleFn,C=r.customStyleMap,x=r.direction,S=r.forceSelection,k=r.selection,E=r.tree,O=null;o.children.size&&(O=o.children.reduce((function(t,r){var o=a.encode(r,0,0),i=d.getBlockForKey(r),f=v(i,c),g=f.CustomComponent||w,b=m(i,s),C=b.Element,x=b.wrapperTemplate,S=y(i,p,o,u,f,null),k=n({},e.props,{tree:h.getBlockTree(r),blockProps:f.customProps,offsetKey:o,block:i});return t.push(l.createElement(C,S,l.createElement(g,k))),!x||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,d)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var c,u=n.reverse()[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var d=c.value;if(d.type!==t)break;r.push(d)}}catch(e){i=!0,s=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var f=r.reverse(),p=f[0].key;n.push(l.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},f))}(x,C,t),t}),[]));var D=o.getKey(),P=a.encode(D,0,0),T=v(o,c),A=T.CustomComponent,M=null!=A?l.createElement(A,t({},this.props,{tree:h.getBlockTree(D),blockProps:T.customProps,offsetKey:P,block:o})):l.createElement(i,{block:o,children:O,contentState:d,customStyleFn:b,customStyleMap:C,decorator:f,direction:x,forceSelection:S,hasSelection:g(k,D),selection:k,tree:E});if(o.getParentKey())return M;var _=m(o,s).Element,j=y(o,p,P,u,T,this.wrapperRef);return l.createElement(_,j,M)},w}(l.Component);return qre=b}var eoe=HH;function toe(){return toe=eoe||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},toe.apply(this,arguments)}var noe,roe,ooe,ioe,aoe=Sre,loe=Bte,soe=o,coe=Ore,uoe=Nre,doe=M8,foe=w8,poe=Nee,hoe=Fre,goe=Hre,moe=Jre,voe=Z4,yoe=Hte,boe=$8,woe=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},Coe=function(e){var t,n;function r(){for(var t,n,r,o,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return t=e.call.apply(e,[this].concat(a))||this,n=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=void 0,(r="_node")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||woe(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=uoe.getScrollParent(n),i=goe(o);if(o===window){var a=hoe(n);(r=a.y+a.height-moe().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{yoe(n)||("production"!==process.env.NODE_ENV?voe(!1,"blockNode is not an HTMLElement"):voe(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&coe.setTop(o,coe.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=woe(this.props.selection,n);return this.props.tree.map((function(a,l){var s=a.get("leaves");if(0===s.size)return null;var c=s.size-1,u=s.map((function(a,s){var u=loe.encode(n,l,s),d=a.get("start"),f=a.get("end");return soe.createElement(aoe,{key:u,offsetKey:u,block:t,start:d,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(d,f),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:l===o&&s===c})})).toArray(),d=a.get("decoratorKey");if(null==d)return u;if(!e.props.decorator)return u;var f=boe(e.props.decorator),p=f.getComponentForKey(d);if(!p)return u;var h=f.getPropsForKey(d),g=loe.encode(n,l,0),m=s.first().get("start"),v=s.last().get("end"),y=r.slice(m,v),b=t.getEntityAt(a.get("start")),w=foe.getHTMLDirIfDifferent(doe.getDirection(y),e.props.direction),C={contentState:e.props.contentState,decoratedText:y,dir:w,start:m,end:v,blockKey:n,entityKey:b,offsetKey:g};return soe.createElement(p,toe({},h,C,{key:g}),u)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=poe({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return soe.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(soe.Component),xoe=Coe;var Soe=K7("draft_tree_data_support")?function(){if(Xre)return Yre;Xre=1;var e=HH;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}var n=Qre(),r=Bte,i=o,a=$8,l=function(e){var o,l;function s(){return e.apply(this,arguments)||this}l=e,(o=s).prototype=Object.create(l.prototype),o.prototype.constructor=o,o.__proto__=l;var c=s.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,o=e.blockRenderMap,l=e.blockRendererFn,s=e.blockStyleFn,c=e.customStyleMap,u=e.customStyleFn,d=e.editorState,f=e.editorKey,p=e.textDirectionality,h=d.getCurrentContent(),g=d.getSelection(),m=d.mustForceSelection(),v=d.getDecorator(),y=a(d.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var C=w.getKey(),x={blockRenderMap:o,blockRendererFn:l,blockStyleFn:s,contentState:h,customStyleFn:u,customStyleMap:c,decorator:v,editorKey:f,editorState:d,forceSelection:m,selection:g,block:w,direction:p||y.get(C),tree:d.getBlockTree(C)},S=(o.get(w.getType())||o.get("unstyled")).wrapper;b.push({block:i.createElement(n,t({key:C},x)),wrapperTemplate:S,key:C,offsetKey:r.encode(C,0,0)});var k=w.getNextSiblingKey();w=k?h.getBlockForKey(k):null}for(var E=[],O=0;O<b.length;){var D=b[O];if(D.wrapperTemplate){var P=[];do{P.push(b[O].block),O++}while(O<b.length&&b[O].wrapperTemplate===D.wrapperTemplate);var T=i.cloneElement(D.wrapperTemplate,{key:D.key+"-wrap","data-offset-key":D.offsetKey},P);E.push(T)}else E.push(D.block),O++}return i.createElement("div",{"data-contents":"true"},E)},s}(i.Component);return Yre=l}():function(){if(ioe)return ooe;ioe=1;var e=HH;function t(){return t=e||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=xoe,a=Bte,l=o,s=Nee,c=(roe||(roe=1,noe=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),noe),u=$8,d=function(e,t,n,r){return s({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},f=function(e){var r,o;function s(){return e.apply(this,arguments)||this}o=e,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,r.__proto__=o;var f=s.prototype;return f.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),l=n.getCurrentContent(),s=t.getDecorator(),c=n.getDecorator();return o!==i||a!==l||s!==c||n.mustForceSelection()},f.render=function(){for(var e=this.props,r=e.blockRenderMap,o=e.blockRendererFn,s=e.blockStyleFn,f=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,m=e.preventScroll,v=e.textDirectionality,y=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),C=h.getDecorator(),x=u(h.getDirectionMap()),S=y.getBlocksAsArray(),k=[],E=null,O=null,D=0;D<S.length;D++){var P=S[D],T=P.getKey(),A=P.getType(),M=o(P),_=void 0,j=void 0,L=void 0;M&&(_=M.component,j=M.props,L=M.editable);var R=v||x.get(T),I=a.encode(T,0,0),N={contentState:y,block:P,blockProps:j,blockStyleFn:s,customStyleMap:f,customStyleFn:p,decorator:C,direction:R,forceSelection:w,offsetKey:I,preventScroll:m,selection:b,tree:h.getBlockTree(T)},$=r.get(A)||r.get("unstyled"),z=$.wrapper,F=$.element||r.get("unstyled").element,B=P.getDepth(),K="";if(s&&(K=s(P)),"li"===F)K=c(K,d(A,B,O!==z||null===E||B>E,R));var V=_||i,H={className:K,"data-block":!0,"data-editor":g,"data-offset-key":I,key:T};void 0!==L&&(H=n({},H,{contentEditable:L,suppressContentEditableWarning:!0}));var U=l.createElement(F,H,l.createElement(V,t({},N,{key:T})));k.push({block:U,wrapperTemplate:z,key:T,offsetKey:I}),E=z?P.getDepth():null,O=z}for(var W=[],Z=0;Z<k.length;){var q=k[Z];if(q.wrapperTemplate){var G=[];do{G.push(k[Z].block),Z++}while(Z<k.length&&k[Z].wrapperTemplate===q.wrapperTemplate);var Y=l.cloneElement(q.wrapperTemplate,{key:q.key+"-wrap","data-offset-key":q.offsetKey},G);W.push(Y)}else W.push(q.block),Z++}return l.createElement("div",{"data-contents":"true"},W)},s}(l.Component);return ooe=f}(),koe={isImage:function(e){return"image"===Eoe(e)[0]},isJpeg:function(e){var t=Eoe(e);return koe.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function Eoe(e){return e.split("/")}var Ooe=koe,Doe=Z4;var Poe=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?Doe(!1,"toArray: Array-like object expected"):Doe(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?Doe(!1,"toArray: Object needs a length property"):Doe(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?Doe(!1,"toArray: Object should have keys for indices"):Doe(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?Doe(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):Doe(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function Toe(e){return function(){return e}}var Aoe=function(){};Aoe.thatReturns=Toe,Aoe.thatReturnsFalse=Toe(!1),Aoe.thatReturnsTrue=Toe(!0),Aoe.thatReturnsNull=Toe(null),Aoe.thatReturnsThis=function(){return this},Aoe.thatReturnsArgument=function(e){return e};var Moe=Aoe,_oe=Ooe,joe=Poe,Loe=Moe,Roe=new RegExp("\r\n","g"),Ioe={"text/rtf":1,"text/html":1};function Noe(e){if("file"==e.kind)return e.getAsFile()}var $oe=function(){function e(e){this.data=e,this.types=e.types?joe(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return Ioe[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(Roe,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!_oe.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(Noe).filter(Loe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),zoe=$oe,Foe=Z4,Boe=/\.textClipping$/,Koe={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Voe=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!ii.FileReader||e.type&&!(e.type in Koe))return void t("");if(""===e.type){var n="";return Boe.test(e.name)&&(n=e.name.replace(Boe,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?Foe(!1,'We should be calling "FileReader.readAsText" which returns a string'):Foe(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Hoe=function(e){return"handled"===e||!0===e},Uoe=zoe,Woe=f7,Zoe=aee,qoe=Pte,Goe=xte,Yoe=Voe,Xoe=Yte,Joe=Tte,Qoe=Hoe,eie=$8;var tie={onDragEnd:function(e){e.exitCurrentMode(),nie(e)},onDrop:function(e,t){var n=new Uoe(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=Goe(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=eie(n),r=eie(r);var a=eie(qoe(n));return Xoe(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Qoe(e.props.handleDroppedFiles(o,i)))return;Yoe(i,(function(t){t&&e.update(rie(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Qoe(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=Woe.moveText(e.getCurrentContent(),e.getSelection(),t);return Zoe.push(e,n,"insert-fragment")}(r,o)):e.update(rie(r,o,n.getText()))),nie(e)}}}};function nie(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Joe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function rie(e,t,n){var r=Woe.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return Zoe.push(e,r,"insert-fragment")}var oie=tie;var iie=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,l=1,s={},c=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,n=function(e){var t=u.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return s[l]=o,n(l),l++},d.clearImmediate=f}function f(e){delete s[e]}function p(e){if(c)setTimeout(p,0,e);else{var n=s[e];if(n){c=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{f(e),c=!1}}}}}("undefined"==typeof self?ii:self);var aie=ii.setImmediate,lie=f7,sie=aee,cie=mne,uie=Hoe,die=iie,fie=$8,pie=aie,hie="'",gie="/",mie=Cte.isBrowser("Firefox");function vie(e,t,n,r,o){var i=lie.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return sie.push(e,i,"insert-characters",o)}var yie=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&uie(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(vie(n,r,n.getCurrentInlineStyle(),cie(n.getCurrentContent(),n.getSelection()),!0));var l,s=vie(n,r,n.getCurrentInlineStyle(),cie(n.getCurrentContent(),n.getSelection()),!1),c=!1;if(c||(c=die(e._latestCommittedEditorState)),!c){var u=n.getBlockTree(a),d=s.getBlockTree(a);c=u.size!==d.size||u.zip(d).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),l=t.get("end"),s=l+(l>=i?r.length:0),c=n.get("start"),u=n.get("end"),d=n.get("decoratorKey");return t.get("decoratorKey")!==d||t.get("leaves").size!==n.get("leaves").size||a!==c||s!==u||null!=d&&u-c!=l-o}))}if(c||(l=r,c=mie&&(l==hie||l==gie)),c||(c=fie(s.getDirectionMap()).get(a)!==fie(n.getDirectionMap()).get(a)),c)return t.preventDefault(),s=sie.set(s,{forceSelection:!0}),void e.update(s);s=sie.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,pie((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},bie=aee,wie=Xne,Cie=Jne;var xie=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&Cie(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&wie(o,r.anchorNode)&&wie(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var l=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(bie.acceptSelection(i,l))}},Sie=aee;var kie=function(e,t){e.setMode("composite"),e.update(Sie.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},Eie=g6;var Oie=function(e){var t=e.getSelection();return t.isCollapsed()?null:Eie(e.getCurrentContent(),t)},Die=Oie;var Pie=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(Die(e._latestEditorState))};var Tie=f7,Aie=aee,Mie=Nre,_ie=Oie,jie=Hre,Lie=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var Rie=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Lie(i)){var a=i;n=jie(Mie.getScrollParent(a))}var l=_ie(r);e.setClipboard(l),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=Tie.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return Aie.push(e,t,"remove-range")}(r))}),0)}};var Iie=function(e,t){e.setMode("drag"),t.preventDefault()};var Nie=function(e){e._internalDrag=!0,e.setMode("drag")},$ie=aee,zie=Cte;var Fie=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),zie.isBrowser("Chrome < 60.0.3081.0")?e.update($ie.forceSelection(n,o)):e.update($ie.acceptSelection(n,o))}},Bie=Z4,Kie=55296,Vie=57343,Hie=/[\uD800-\uDFFF]/;function Uie(e){return Kie<=e&&e<=Vie}function Wie(e){return Hie.test(e)}function Zie(e,t){return 1+Uie(e.charCodeAt(t))}function qie(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!Wie(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=Zie(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=Zie(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=Zie(e,i);return e.substring(o,i)}var Gie={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=Zie(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:Zie,hasSurrogateUnit:Wie,isCodeUnitInSurrogateRange:Uie,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?Bie(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):Bie(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return Kie<=n&&n<=56319&&56320<=r&&r<=Vie},strlen:function(e){if(!Wie(e))return e.length;for(var t=0,n=0;n<e.length;n+=Zie(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return qie(e,t=t<n?t:n,r)},substr:qie},Yie=Gie,Xie=Moe;function Jie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var Qie="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];Jie.apply(void 0,[t].concat(r))}}:Xie,eae=Qie,tae=eae;var nae=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&tae(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,l=0;if(t>i){var s=r.getKeyBefore(o);if(null==s)a=o;else a=s,l=r.getBlockForKey(s).getText().length}else l=i-t;return n.merge({focusKey:a,focusOffset:l,isBackward:!0})},rae=f7,oae=K7("draft_tree_data_support");var iae=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),l=r.getFocusKey(),s=o.getBlockForKey(a);if(oae&&"forward"===n&&a!==l)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(oae)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var c=o.getBlockForKey(s.nextSibling);if(!c||0===c.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return rae.removeRange(o,i,n)},aae=aee,lae=Yie,sae=nae,cae=iae;var uae=function(e){var t=cae(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return sae(e,i?lae.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return aae.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},dae=f7,fae=Bte,pae=aee,hae=pne.notEmptyKey,gae=Pte,mae=uae,vae=$8,yae=Cte.isEngine("Gecko");var bae=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var l=a.firstChild;null!=l;l=l.nextSibling)l!==r&&a.removeChild(l)}var s=r.textContent,c=e._latestEditorState,u=vae(gae(r)),d=fae.decode(u),f=d.blockKey,p=d.decoratorKey,h=d.leafKey,g=c.getBlockTree(f).getIn([p,"leaves",h]),m=g.start,v=g.end,y=c.getCurrentContent(),b=y.getBlockForKey(f),w=b.getText().slice(m,v);if(s.endsWith("\n\n")&&(s=s.slice(0,-1)),s!==w){var C,x,S,k,E=c.getSelection(),O=E.merge({anchorOffset:m,focusOffset:v,isBackward:!1}),D=b.getEntityAt(m),P=hae(D)?y.getEntity(D):null,T="MUTABLE"===(null!=P?P.getMutability():null),A=T?"spellcheck-change":"apply-entity",M=dae.replaceText(y,O,s,b.getInlineStyleAt(m),T?b.getEntityAt(m):null);if(yae)C=n.anchorOffset,x=n.focusOffset,k=(S=m+Math.min(C,x))+Math.abs(C-x),C=S,x=k;else{var _=s.length-w.length;S=E.getStartOffset(),k=E.getEndOffset(),C=o?k+_:S,x=k+_}var j=M.merge({selectionBefore:y.getSelectionAfter(),selectionAfter:E.merge({anchorOffset:C,focusOffset:x})});e.update(pae.push(c,j,A))}else{var L=t.nativeEvent.inputType;if(L){var R=function(e,t){return"deleteContentBackward"===e?mae(t):t}(L,c);if(R!==c)return e.restoreEditorDOM(),void e.update(R)}}}},wae=Kte;var Cae=function(e){return e.which===wae.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},xae=Cae,Sae=Cte.isPlatform("Mac OS X"),kae={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return Sae&&e.altKey},usesMacOSHeuristics:function(){return Sae},hasCommandModifier:function(e){return Sae?!!e.metaKey&&!e.altKey:kae.isCtrlKeyCommand(e)},isSoftNewlineEvent:xae},Eae=kae,Oae=f7,Dae=aee,Pae=g6,Tae=$8,Aae=null,Mae={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=Tae(r),Aae=Pae(t,r);var l=Oae.removeRange(t,r,"forward");return l===t?e:Dae.push(e,l,"remove-range")},paste:function(e){if(!Aae)return e;var t=Oae.replaceWithFragment(e.getCurrentContent(),e.getSelection(),Aae);return Dae.push(e,t,"insert-fragment")}},_ae=Z4;var jae=Cte.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?_ae(!1,"Found an unexpected detached subtree when getting range client rects."):_ae(!1)}:function(e){return Array.from(e.getClientRects())},Lae=jae,Rae=Yie,Iae=xte,Nae=Lae,$ae=Z4;function zae(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var l=e[a];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),o=Math.max(o,l.top),i=Math.max(i,l.bottom))}return o<=r&&o-n<t&&i-r<t}function Fae(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var Bae=function(e){e.collapsed||("production"!==process.env.NODE_ENV?$ae(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):$ae(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=Iae(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?$ae(!1,"Missing document.body"):$ae(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);zae(Nae(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?$ae(!1,"Found unexpected detached subtree when traversing."):$ae(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var l=i.nodeValue,s=a;s>=0;s--)if(!(null!=l&&s>0&&Rae.isSurrogatePair(l,s-1))){if(e.setStart(i,s),!zae(Nae(e),n))break;r=i,o=s}if(-1===s||0===i.childNodes.length)break;a=Fae(i=i.childNodes[s])}return e.setStart(r,o),e},Kae=aee,Vae=Bae,Hae=ine,Uae=nae,Wae=iae;var Zae=function(e,t){var n=Wae(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return Uae(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=Vae(r),Hae(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:Kae.push(e,n,"remove-range")},qae="['‘’]",Gae="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),Yae=new RegExp("^(?:"+Gae+")*(?:"+qae+"|(?!"+Gae+").)*(?:(?!"+Gae+").)"),Xae=new RegExp("(?:(?!"+Gae+").)(?:"+qae+"|(?!"+Gae+").)*(?:"+Gae+")*$");function Jae(e,t){var n=t?Xae.exec(e):Yae.exec(e);return n?n[0]:e}var Qae={getBackward:function(e){return Jae(e,!0)},getForward:function(e){return Jae(e,!1)}},ele=Qae,tle=aee,nle=nae,rle=iae;var ole=eae;var ile=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&ole(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),l=o;return t>a.getBlockForKey(o).getText().length-i?(l=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:l,focusOffset:r})},ale=Qae,lle=aee,sle=ile,cle=iae;var ule=f7,dle=aee;var fle=aee;var ple=aee;var hle=aee,gle=Yie,mle=ile,vle=iae;var yle=f7,ble=aee,wle=g6;var Cle=aee;var xle=function(e,t,n){var r=Cle.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(Cle.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(Cle.set(r,{nativelyRenderedContent:o}))}},Sle=f7,kle=aee,Ele=Kte,Ole=Mae,Dle=Cte,Ple=Hoe,Tle=Zae,Ale=function(e){var t=rle(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return nle(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=ele.getBackward(o);return nle(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:tle.push(e,t,"remove-range")},Mle=function(e){var t=cle(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=ale.getForward(o);return sle(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:lle.push(e,t,"remove-range")},_le=function(e){var t=ule.splitBlock(e.getCurrentContent(),e.getSelection());return dle.push(e,t,"split-block")},jle=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return fle.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},Lle=function(e){var t=e.getSelection(),n=t.getStartKey();return ple.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Rle=uae,Ile=function(e){var t=vle(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return mle(e,i?gle.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return hle.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},Nle=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),l=a.getBlockForKey(i).getLength();if(l<=1)return e;n===l?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var s=wle(a,r),c=yle.removeRange(a,r,"backward"),u=c.getSelectionAfter(),d=u.getAnchorOffset()-1,f=u.merge({anchorOffset:d,focusOffset:d}),p=yle.replaceWithFragment(c,f,s),h=ble.push(e,p,"insert-fragment");return ble.acceptSelection(h,o)},$le=xle,zle=Eae.isOptionKeyCommand,Fle=Dle.isBrowser("Chrome");var Ble=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case Ele.RETURN:if(t.preventDefault(),e.props.handleReturn&&Ple(e.props.handleReturn(t,r)))return;break;case Ele.ESC:if(t.preventDefault(),o("onEscape"))return;break;case Ele.TAB:if(o("onTab"))return;break;case Ele.UP:if(o("onUpArrow"))return;break;case Ele.RIGHT:if(o("onRightArrow"))return;break;case Ele.DOWN:if(o("onDownArrow"))return;break;case Ele.LEFT:if(o("onLeftArrow"))return;break;case Ele.SPACE:Fle&&zle(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!Ple(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return kle.redo(t);case"delete":return Ile(t);case"delete-word":return Mle(t);case"backspace":return Rle(t);case"backspace-word":return Ale(t);case"backspace-to-start-of-line":return Tle(t,n);case"split-block":return _le(t);case"transpose-characters":return Nle(t);case"move-selection-to-start-of-block":return Lle(t);case"move-selection-to-end-of-block":return jle(t);case"secondary-cut":return Ole.cut(t);case"secondary-paste":return Ole.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else $le(t,r,e.update);else if(n===Ele.SPACE&&Fle&&zle(t)){var l=Sle.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(kle.push(r,l,"insert-characters"))}};var Kle=function(){function e(e){var t,n,r;r=void 0,(n="_uri")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),Vle=Kle,Hle=Z4,Ule=Cte.isBrowser("IE <= 9");var Wle=function(e){var t,n=null;return!Ule&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?Hle(!1,"Missing doc.documentElement"):Hle(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},Zle=Ste;var qle=function(e){return!(!e||!e.ownerDocument)&&(Zle(e)&&"A"===e.nodeName)},Gle=Ste;var Yle,Xle=function(e){return!(!e||!e.ownerDocument)&&(Gle(e)&&"IMG"===e.nodeName)};function Jle(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qle(e,t,n[t])}))}return e}function Qle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ese=l4,tse=x4,nse=I4,rse=Fee,ose=z7,ise=Vle,ase=Nee,lse=r6,sse=Wle,cse=K7,use=G3,dse=use.List,fse=use.Map,pse=use.OrderedSet,hse=qle,gse=Une,mse=Hte,vse=Xle,yse=cse("draft_tree_data_support"),bse=new RegExp("\r","g"),wse=new RegExp("\n","g"),Cse=new RegExp("^\n","g"),xse=new RegExp("&nbsp;","g"),Sse=new RegExp("&#13;?","g"),kse=new RegExp("&#8203;?","g"),Ese=["bold","bolder","500","600","700","800","900"],Ose=["light","lighter","normal","100","200","300","400"],Dse=["className","href","rel","target","title"],Pse=["alt","className","height","src","width"],Tse=(Qle(Yle={},ase("public/DraftStyleDefault/depth0"),0),Qle(Yle,ase("public/DraftStyleDefault/depth1"),1),Qle(Yle,ase("public/DraftStyleDefault/depth2"),2),Qle(Yle,ase("public/DraftStyleDefault/depth3"),3),Qle(Yle,ase("public/DraftStyleDefault/depth4"),4),Yle),Ase=fse({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Mse=function(e){if(mse(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},_se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(Tse).some((function(n){e.classList.contains(n)&&(t=Tse[n])})),t},jse=function(e){if(!hse(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new ise(t.href);return!0}catch(e){return!1}},Lse=function(e){if(!vse(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},Rse=function(e,t){if(!mse(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){Ese.indexOf(r)>=0?e.add("BOLD"):Ose.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},Ise=function(e){return"ul"===e||"ol"===e},Nse=function(){function e(e,t){Qle(this,"characterList",dse()),Qle(this,"currentBlockType","unstyled"),Qle(this,"currentDepth",0),Qle(this,"currentEntity",null),Qle(this,"currentText",""),Qle(this,"wrapper",null),Qle(this,"blockConfigs",[]),Qle(this,"contentBlocks",[]),Qle(this,"entityMap",ose),Qle(this,"blockTypeMap",void 0),Qle(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=dse(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=ose,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],pse())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(yse?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Jle({key:e.key||lse(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:dse(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=dse(),this.currentBlockType="unstyled",this.currentText="",t},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||Ise(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,l=this.wrapper;Ise(i)&&(this.wrapper=i,Ise(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=l}else{var s=this.blockTypeMap.get(i);if(void 0===s)if("#text"!==i)if("br"!==i)if(Lse(o))this._addImgNode(o,t);else if(jse(o))this._addAnchorNode(o,n,t);else{var c=t;Ase.has(i)&&(c=c.add(Ase.get(i))),c=Rse(o,c);var u=Mse(o);null!=u&&(c=c.add(u)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var d=this.currentDepth,f=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof s&&(s=this.disambiguate(i,this.wrapper)||s[0]||"unstyled"),!yse&&mse(o)&&("unordered-list-item"===s||"ordered-list-item"===s)){var p=o;this.currentDepth=_se(p,this.currentDepth)}var h=lse(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:s})),this.currentDepth=d,this.wrapper=f}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=ese.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=dse()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(Cse,"")).replace(wse," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){gse(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(vse(e)){var n=e,r={};Pse.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),cse("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(hse(e)){var r=e,o={};Dse.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new ise(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=dse(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new nse(Jle({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return dse(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new tse(Jle({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=dse(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),$se=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rse,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:sse)(e=e.trim().replace(bse,"").replace(xse," ").replace(Sse,"").replace(kse,""));if(!n)return null;var r=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),fse(t)}(t);return new Nse(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function zse(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fse=x4,Bse=I4,Kse=$se,Vse=r6,Hse=Wle,Use=K7,Wse=G3,Zse=H7,qse=Wse.List,Gse=Wse.Repeat,Yse=Use("draft_tree_data_support"),Xse=Yse?Bse:Fse,Jse={processHTML:function(e,t){return Kse(e,Hse,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=Zse(r);var i=Vse(),a={key:i,type:n,text:r,characterList:qse(Gse(t,r.length))};if(Yse&&0!==o){var l=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zse(e,t,n[t])}))}return e}({},a,{prevSibling:(e[l]=e[l].merge({nextSibling:i})).getKey()})}return e.push(new Xse(a)),e}),[])}};var Qse=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),l=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(l),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},ece=f7,tce=aee,nce=Qse,rce=$8,oce={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return oce.toggleInlineStyle(e,"BOLD");case"italic":return oce.toggleInlineStyle(e,"ITALIC");case"underline":return oce.toggleInlineStyle(e,"UNDERLINE");case"code":return oce.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return oce.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return oce.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=ece.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=tce.push(e,t,"insert-characters");return tce.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return tce.push(e,a,"remove-range")}var l=oce.tryToRemoveBlockStyle(e);return l?tce.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),l=ece.removeRange(n,a,"forward");return l!==n?tce.push(e,l,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),l=a.getType();if("unordered-list-item"!==l&&"ordered-list-item"!==l)return t;e.preventDefault();var s=a.getDepth();if(!e.shiftKey&&s===n)return t;var c=nce(i,r,e.shiftKey?-1:1,n);return tce.push(t,c,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var l=rce(i.getBlockBefore(o));o=l.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}var s=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(s)return e;var c=i.getBlockForKey(r).getType()===t?"unstyled":t;return tce.push(e,ece.setBlockType(i,a,c),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?oce.toggleBlockType(e,"code-block"):oce.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return tce.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?ece.removeInlineStyle(i,n,t):ece.applyInlineStyle(i,n,t),tce.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=ece.applyEntity(e.getCurrentContent(),t,n);return tce.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return ece.setBlockType(o,t,"unstyled")}return null}},ice=oce,ace=/\r\n?|\n/g;var lce=X3,sce=l4,cce=zoe,uce=f7,dce=Jse,fce=aee,pce=ice,hce=mne,gce=Voe,mce=Hoe,vce=function(e){return e.split(ace)};function yce(e,t,n){var r=uce.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return fce.push(e,r.set("entityMap",n),"insert-fragment")}var bce=function(e,t){t.preventDefault();var n=new cce(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&mce(e.props.handlePastedFiles(r)))return;return void gce(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=vce(t),i=sce.create({style:n.getCurrentInlineStyle(),entity:hce(n.getCurrentContent(),n.getSelection())}),a=pce.getCurrentBlockType(n),l=dce.processText(r,i,a),s=lce.createFromArray(l),c=uce.replaceWithFragment(n.getCurrentContent(),n.getSelection(),s);e.update(fce.push(n,c,"insert-fragment"))}}))}}var i=[],a=n.getText(),l=n.getHTML(),s=e._latestEditorState;if(e.props.formatPastedText){var c=e.props.formatPastedText(a,l);a=c.text,l=c.html}if(!e.props.handlePastedText||!mce(e.props.handlePastedText(a,l,s))){if(a&&(i=vce(a)),!e.props.stripPastedStyles){var u,d=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&d){if(-1!==(null===(u=l)||void 0===u?void 0:u.indexOf(e.getEditorKey()))||1===i.length&&1===d.size&&d.first().getText()===a)return void e.update(yce(e._latestEditorState,d))}else if(d&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,d))return void e.update(yce(e._latestEditorState,d));if(l){var f=dce.processHTML(l,e.props.blockRenderMap);if(f){var p=f.contentBlocks,h=f.entityMap;if(p){var g=lce.createFromArray(p);return void e.update(yce(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var m=sce.create({style:s.getCurrentInlineStyle(),entity:hce(s.getCurrentContent(),s.getSelection())}),v=pce.getCurrentBlockType(s),y=dce.processText(i,m,v),b=lce.createFromArray(y);e.update(yce(e._latestEditorState,b))}}},wce=Cte,Cce=yie,xce=xie,Sce=kie,kce=Pie,Ece=Rie,Oce=Iie,Dce=Nie,Pce=Fie,Tce=bae,Ace=Ble,Mce=bce,_ce=fne,jce=wce.isBrowser("Chrome"),Lce=wce.isBrowser("Firefox"),Rce=jce||Lce?_ce:function(e){},Ice={onBeforeInput:Cce,onBlur:xce,onCompositionStart:Sce,onCopy:kce,onCut:Ece,onDragOver:Oce,onDragStart:Dce,onFocus:Pce,onInput:Tce,onKeyDown:Ace,onPaste:Mce,onSelect:_ce,onMouseUp:Rce,onKeyUp:Rce},Nce=T.unstable_flushControlled;var $ce=o,zce=Nee,Fce=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=zce({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return $ce.createElement("div",{className:t},$ce.createElement("div",{className:zce("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}($ce.Component),Bce=Fce,Kce=Eae,Vce=Kte,Hce=Cte,Uce=Hce.isPlatform("Mac OS X"),Wce=Uce&&Hce.isBrowser("Firefox < 29"),Zce=Kce.hasCommandModifier,qce=Kce.isCtrlKeyCommand;function Gce(e){return Uce&&e.altKey||qce(e)}var Yce=function(e){switch(e.keyCode){case 66:return Zce(e)?"bold":null;case 68:return qce(e)?"delete":null;case 72:return qce(e)?"backspace":null;case 73:return Zce(e)?"italic":null;case 74:return Zce(e)?"code":null;case 75:return Uce&&qce(e)?"secondary-cut":null;case 77:case 79:return qce(e)?"split-block":null;case 84:return Uce&&qce(e)?"transpose-characters":null;case 85:return Zce(e)?"underline":null;case 87:return Uce&&qce(e)?"backspace-word":null;case 89:return qce(e)?Uce?"secondary-paste":"redo":null;case 90:return function(e){return Zce(e)?e.shiftKey?"redo":"undo":null}(e)||null;case Vce.RETURN:return"split-block";case Vce.DELETE:return function(e){return!Uce&&e.shiftKey?null:Gce(e)?"delete-word":"delete"}(e);case Vce.BACKSPACE:return function(e){return Zce(e)&&Uce?"backspace-to-start-of-line":Gce(e)?"backspace-word":"backspace"}(e);case Vce.LEFT:return Wce&&Zce(e)?"move-selection-to-start-of-block":null;case Vce.RIGHT:return Wce&&Zce(e)?"move-selection-to-end-of-block":null;default:return null}},Xce=HH;function Jce(){return Jce=Xce||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jce.apply(this,arguments)}function Qce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tue(e,t,n[t])}))}return e}function eue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nue(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var rue=Fee,oue=Bee,iue=Lne,aue=Soe,lue=oie,sue=Ice,cue=Nce,uue=Bce,due=Wne,fue=aee,pue=o,hue=Ore,gue=Nre,mue=Nee,vue=r6,yue=Yce,bue=Hre,wue=K7,Cue=Z4,xue=Hte,Sue=$8,kue=Cte.isBrowser("IE"),Eue=!kue,Oue={edit:sue,composite:iue,drag:lue,cut:null,render:null},Due=!1,Pue=function(e){function t(){return e.apply(this,arguments)||this}nue(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(pue.Component),Tue=function(e){function t(t){var n;return tue(eue(n=e.call(this,t)||this),"_blockSelectEvents",void 0),tue(eue(n),"_clipboard",void 0),tue(eue(n),"_handler",void 0),tue(eue(n),"_dragCount",void 0),tue(eue(n),"_internalDrag",void 0),tue(eue(n),"_editorKey",void 0),tue(eue(n),"_placeholderAccessibilityID",void 0),tue(eue(n),"_latestEditorState",void 0),tue(eue(n),"_latestCommittedEditorState",void 0),tue(eue(n),"_pendingStateFromBeforeInput",void 0),tue(eue(n),"_onBeforeInput",void 0),tue(eue(n),"_onBlur",void 0),tue(eue(n),"_onCharacterData",void 0),tue(eue(n),"_onCompositionEnd",void 0),tue(eue(n),"_onCompositionStart",void 0),tue(eue(n),"_onCopy",void 0),tue(eue(n),"_onCut",void 0),tue(eue(n),"_onDragEnd",void 0),tue(eue(n),"_onDragOver",void 0),tue(eue(n),"_onDragStart",void 0),tue(eue(n),"_onDrop",void 0),tue(eue(n),"_onInput",void 0),tue(eue(n),"_onFocus",void 0),tue(eue(n),"_onKeyDown",void 0),tue(eue(n),"_onKeyPress",void 0),tue(eue(n),"_onKeyUp",void 0),tue(eue(n),"_onMouseDown",void 0),tue(eue(n),"_onMouseUp",void 0),tue(eue(n),"_onPaste",void 0),tue(eue(n),"_onSelect",void 0),tue(eue(n),"editor",void 0),tue(eue(n),"editorContainer",void 0),tue(eue(n),"focus",void 0),tue(eue(n),"blur",void 0),tue(eue(n),"setMode",void 0),tue(eue(n),"exitCurrentMode",void 0),tue(eue(n),"restoreEditorDOM",void 0),tue(eue(n),"setClipboard",void 0),tue(eue(n),"getClipboard",void 0),tue(eue(n),"getEditorKey",void 0),tue(eue(n),"update",void 0),tue(eue(n),"onDragEnter",void 0),tue(eue(n),"onDragLeave",void 0),tue(eue(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),tue(eue(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=gue.getScrollParent(o),a=e||bue(i),l=a.x,s=a.y;xue(o)||("production"!==process.env.NODE_ENV?Cue(!1,"editorNode is not an HTMLElement"):Cue(!1)),o.focus(),i===window?window.scrollTo(l,s):hue.setTop(i,s),r||n.update(fue.forceSelection(t,t.getSelection()))}})),tue(eue(n),"blur",(function(){var e=n.editor;e&&(xue(e)||("production"!==process.env.NODE_ENV?Cue(!1,"editorNode is not an HTMLElement"):Cue(!1)),e.blur())})),tue(eue(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=Qce({},Oue.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var l=Qce({},Oue,{edit:a});n._handler=l[e]})),tue(eue(n),"exitCurrentMode",(function(){n.setMode("edit")})),tue(eue(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),tue(eue(n),"setClipboard",(function(e){n._clipboard=e})),tue(eue(n),"getClipboard",(function(){return n._clipboard})),tue(eue(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),tue(eue(n),"onDragEnter",(function(){n._dragCount++})),tue(eue(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||vue(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}nue(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(cue?cue((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:Sue(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return pue.createElement(uue,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,l=e.preventScroll,s=e.readOnly,c=e.textAlignment,u=e.textDirectionality,d=mue({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===c,"DraftEditor/alignRight":"right"===c,"DraftEditor/alignCenter":"center"===c}),f=this.props.role||"textbox",p="combobox"===f?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:Qce({},oue,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:l,textDirectionality:u};return pue.createElement("div",{className:d},this._renderPlaceholder(),pue.createElement("div",{className:mue("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},pue.createElement("div",{"aria-activedescendant":s?null:this.props.ariaActiveDescendantID,"aria-autocomplete":s?null:this.props.ariaAutoComplete,"aria-controls":s?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":s?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":s?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:mue({notranslate:!s,"public/DraftEditor/content":!0}),contentEditable:!s,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:s?null:f,spellCheck:Eue&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},pue.createElement(Pue,{editor:this,editorState:a}),pue.createElement(aue,Jce({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Due&&wue("draft_ods_enabled")&&(Due=!0,due.initODS()),this.setMode("edit"),kue&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ii.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(pue.Component);tue(Tue,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:rue,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:yue,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Aue=Tue,Mue={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},_ue=Mue,jue=Yie.strlen;var Lue=Yie,Rue=s4,Iue=function(e,t){return e===t},Nue=function(e){return!!e},$ue=[];var zue=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return Rue(o,Iue,Nue,(function(t,o){var i=e.getText();r.push({offset:Lue.strlen(i.slice(0,t)),length:Lue.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply($ue,n.toJS())};function Fue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bue=x4,Kue=I4,Vue=Mue,Hue=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:jue(i.slice(0,r)),length:jue(i.slice(r,o)),key:Number(t[_ue.stringify(a)])})})),n},Uue=zue,Wue=Z4,Zue=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:Uue(e),entityRanges:Hue(e,t),data:e.getData().toObject()}},que=function(e,t,n,r){if(e instanceof Bue)n.push(Zue(e,t));else{e instanceof Kue||("production"!==process.env.NODE_ENV?Wue(!1,"block is not a BlockNode"):Wue(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Fue(e,t,n[t])}))}return e}({},Zue(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},Gue=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=Vue.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),que(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(Vue.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function Yue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xue(e,t,n[t])}))}return e}function Xue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jue=r6,Que=Z4,ede=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},tde={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?Que(!1,"Invalid raw state"):Que(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?Que(!1,"Invalid tree raw block"):Que(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=Yue({},e);ede(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?Yue({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,Yue({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=ede(e),o=e.depth||0,i=Yue({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var l={key:Jue(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(l),1===o?t.push(l):null!=a&&a.children.push(l),l.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),Yue({},e,{blocks:t})}},nde=eae,rde={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&nde(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&nde(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&nde(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&nde(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&nde(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&nde(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&nde(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),l=i.getNextSiblingKey();if(a.size>0){null!=l&&o.unshift(l);var s=a.map((function(t){return e.get(t)})),c=s.find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return"production"!==process.env.NODE_ENV&&nde(!0,"%s has no first child",r),!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&nde(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},ode=rde,ide=l4,ade=G3.List;var lde=function(e,t){var n=e.map((function(e,n){var r=t[n];return ide.create({style:e,entity:r})}));return ade(n)},sde=Yie.substr;var cde=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=sde(e,0,t.offset).length,o=r+sde(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},ude=Yie,dde=G3.OrderedSet,fde=ude.substr,pde=dde();var hde=function(e,t){var n=Array(e.length).fill(pde);return t&&t.forEach((function(t){for(var r=fde(e,0,t.offset).length,o=r+fde(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function gde(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mde(e,t,n[t])}))}return e}function mde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vde=x4,yde=I4,bde=f8,wde=z7,Cde=tde,xde=ode,Sde=B7,kde=lde,Ede=cde,Ode=hde,Dde=r6,Pde=G3,Tde=Z4,Ade=K7("draft_tree_data_support"),Mde=Pde.List,_de=Pde.Map,jde=Pde.OrderedMap,Lde=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||Dde(),data:_de(o),characterList:Rde(e,t)}},Rde=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return kde(Ode(n,o||[]),Ede(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return gde({},e,{key:t[e.key]})}))))},Ide=function(e){return gde({},e,{key:e.key||Dde()})},Nde=function(e,t,n){var r=t.map((function(e){return gde({},e,{parentRef:n})}));return e.concat(r.reverse())},$de=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=Ade&&!n?Cde.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Ade)return function(e,t){return jde(e.map((function(e){var n=new vde(Lde(e,t));return[n.getKey(),n]})))}(n?Cde.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(Ide).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?Tde(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Tde(!1));var i=r.children.map(Ide),a=new yde(gde({},Lde(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Mde(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var l=Nde([],i,a);l.length>0;){var s=l.pop(),c=s.parentRef,u=c.getChildKeys(),d=u.indexOf(s.key),f=Array.isArray(s.children);if(!f){f||("production"!==process.env.NODE_ENV?Tde(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):Tde(!1));break}var p=s.children.map(Ide),h=new yde(gde({},Lde(s,t),{parent:c.getKey(),children:Mde(p.map((function(e){return e.key}))),prevSibling:0===d?null:u.get(d-1),nextSibling:d===u.size-1?null:u.get(d+1)}));n=n.set(h.getKey(),h),l=Nde(l,p,h)}return n}),jde())}(r,t);return"production"!==process.env.NODE_ENV&&(xde.isValidTree(o)||("production"!==process.env.NODE_ENV?Tde(!1,"Should be a valid tree"):Tde(!1))),o},zde=Lae;var Fde=function(e){var t=zde(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var l=t[0];n=l.top,r=l.right,o=l.bottom,i=l.left}for(var s=1;s<t.length;s++){var c=t[s];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),r=Math.max(r,c.right),o=Math.max(o,c.bottom),i=Math.min(i,c.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},Bde=Fde;var Kde=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=Bde(n),o=r.top,i=r.right,a=r.bottom,l=r.left;return 0===o&&0===i&&0===a&&0===l?null:r},Vde={Editor:Aue,EditorBlock:xoe,EditorState:aee,CompositeDecorator:jee,Entity:z7,EntityInstance:T7,BlockMapBuilder:X3,CharacterMetadata:l4,ContentBlock:x4,ContentState:f8,RawDraftContentState:{},SelectionState:B7,AtomicBlockUtils:Aee,KeyBindingUtil:Eae,Modifier:f7,RichUtils:ice,DefaultDraftBlockRenderMap:Fee,DefaultDraftInlineStyle:Bee,convertFromHTML:$se,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?Tde(!1,"invalid RawDraftContentState"):Tde(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=wde.__create(o,i,a||{})})),n}(e),n=$de(e,t),r=n.isEmpty()?new Sde:Sde.createEmpty(n.first().getKey());return new bde({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:Gue,genKey:r6,getDefaultKeyBinding:Yce,getVisibleSelectionRect:Kde};const Hde=(e,t,n=!0)=>{const[r,o]=l(!1);return{focused:r,handleFocus:t=>{n&&o(!0),e&&e(t)},handleBlur:e=>{o(!1),t&&t(e)}}},Ude=e=>!!e||null!=e&&""!==e,Wde=se.div((({theme:{input:e,accent:t},backgroundColor:n,borderRadius:r,borderColor:o,textOnly:i,focused:a,invalid:l,disabled:s,hasLabel:c,pointer:u})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:c?48:40,height:c?48:40,padding:"5px 16px",boxSizing:"border-box",color:s?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,border:"none",borderColor:o,borderRadius:null!=r?r:4,cursor:u?"pointer":void 0,outline:"none",outlineOffset:-1,"&:focus-visible":{outline:`${t} solid 1px`},"&:hover":{backgroundColor:s||i||n?void 0:e.background.hover,borderColor:a||s||l?void 0:e.borderColor.hover,Label:{color:a||s?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),yn,wn,bn),Zde=se.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),qde=se.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),Gde=se.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var Yde={Container:Wde,Wrapper:Zde,Label:qde,Description:Gde,useInputFocus:Hde,isInputFilled:Ude};const Xde=/^[\w.]+$/g,Jde=/\\(\\)?/g,Qde=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g");function efe(e){if(Xde.test(e))return e.split(".");const t=[];"."===e[0]&&t.push("");const n=e.matchAll(Qde);for(const e of n){let n=e[0];const r=e[1],o=e[2],i=e[3];o?n=i.replace(Jde,"$1"):r&&(n=r),t.push(n)}return t}function tfe(e,t,n){if(null==e)return n;switch(typeof t){case"string":{const r=e[t];return void 0===r?function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}(t)?tfe(e,efe(t),n):n:r}case"number":case"symbol":{"number"==typeof t&&(r=t,t=Object.is(r,-0)?"-0":r.toString());const o=e[t];return void 0===o?n:o}default:{if(Array.isArray(t))return function(e,t,n){if(0===t.length)return n;let r=e;for(let e=0;e<t.length;e++){if(null==r)return n;r=r[t[e]]}if(void 0===r)return n;return r}(e,t,n);const r=e[t=Object.is(t?.valueOf(),-0)?"-0":String(t)];return void 0===r?n:r}}var r}function nfe(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}const rfe=(e,t,n)=>{if(e!==t){if("string"==typeof e&&"string"==typeof t)return"desc"===n?t.localeCompare(e):e.localeCompare(t);const r=nfe(e),o=nfe(t);if(r===o&&0===r){if(e<t)return"desc"===n?1:-1;if(e>t)return"desc"===n?-1:1}return"desc"===n?o-r:r-o}return 0},ofe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ife=/^\w*$/;function afe(e,t){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!function(e){return"symbol"==typeof e||e instanceof Symbol}(e))||("string"==typeof e&&(ife.test(e)||!ofe.test(e))||null!=t))}function lfe(e,t,n){if(null==e||"number"==typeof e)return[];"object"!=typeof e||Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map((e=>String(e)));const r=(e,t)=>{let n=e;for(let e=0;e<t.length&&null!=n;++e)n=n[t[e]];return n},o=t.map((e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||afe(e)?e:{key:e,path:efe(e)}))),i=e.map((e=>({original:e,criteria:o.map((t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:r(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?r(t,e):"object"==typeof t?t[e]:t)(t,e)))})));return i.slice().sort(((e,t)=>{for(let r=0;r<o.length;r++){const o=rfe(e.criteria[r],t.criteria[r],n[r]);if(0!==o)return o}return 0})).map((e=>e.original))}const sfe="FOUND_FIELD",cfe="NOT_FOUND",ufe="IMMUTABLE",dfe=se.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),ffe=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},pfe=new Vde.CompositeDecorator([{strategy:(e,t,n)=>ffe(e,t,n,sfe),component:({children:t})=>e(dfe,{children:t})},{strategy:(e,t,n)=>ffe(e,t,n,cfe),component:({children:t})=>e(dfe,{error:!0,children:t})}]),hfe=(e,t,n)=>{const r=t.find((({id:t})=>t===e.id)),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,l="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,l=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?l:`{${l}}`,isValid:a}},gfe=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),l=(null==t?void 0:t.find((e=>e.id===i)))||{id:i,label:""},{label:s,isValid:c}=hfe(l,t||[],n);a=s,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:c?sfe:cfe,mutability:ufe,data:{id:i}}}o.text+=a}return Vde.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return Vde.EditorState.createWithContent(r,pfe)},mfe=(e,t=!0)=>{const n=e.getCurrentContent(),r=Vde.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const l=tfe(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${l}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},vfe=e=>{const t=mfe(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},yfe=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new Vde.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return Vde.EditorState.forceSelection(e,o)},bfe=s(((t,r)=>{var{value:o,onChange:s,onEnterKey:c,onFocus:u,onBlur:d,mergeFields:f=[],placeholder:p="Text here...",description:h,invalid:m,width:v,height:y,maxHeight:b,noPadding:w=!1,readOnly:C=!1,displayMergedValues:x=!1,color:S,overflow:k,clampLines:E,label:O,disabled:D,borderRadius:P,backgroundColor:T,fontSize:A,textOnly:M,margin:_,marginLeft:L,marginRight:R,marginTop:I,marginBottom:N}=t,$=j(t,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[z,F]=l((()=>gfe(o,f,x))),{focused:B,handleFocus:K,handleBlur:V}=Hde(u,d),[H,U]=l(!1),W=a(null),Z=a(),q=null!=b?b:y,G=e=>{F(e);const t=(e=>vfe(e).some((e=>e.type===cfe)))(e);U(t);const n=mfe(e),r=e.getLastChangeType();s&&s(n,t,r)},Y=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:l,isValid:s}=hfe(e,t,r),c=s?sfe:cfe,u=i.createEntity(c,ufe,{id:o}).getLastCreatedEntityKey(),d=Vde.Modifier.insertText(i,a,l,void 0,u),f=Vde.EditorState.push(n,d,"insert-characters");return Vde.EditorState.forceSelection(f,d.getSelectionAfter())})(e,f,z,x);G(t)},X=()=>{(null==W?void 0:W.current)&&W.current.focus();const e=yfe(z);F(e)};g(r,(()=>({insertField:Y,focusAtEnd:X})));i((()=>{mfe(z)!==o&&(e=>{const t=z.getSelection(),n=gfe(e,f,x),r=yfe(n),o=t.getHasFocus()?r:n;G(o)})(o)}),[o]),i((()=>{Z.current=f}),[]),i((()=>{const{current:e}=Z,t=cn(e,f),n=vfe(z);if(!t&&n.length>0){Z.current=f;const e=gfe(o,f,x);G(e)}}),[f]);return n(wfe,{onClick:e=>{C||e.stopPropagation();z.getSelection().getHasFocus()||X()},width:v,height:y,editorMaxHeight:q,noPadding:w||M,readOnly:C,color:S,overflow:k,clampLines:E,filled:Ude(o),invalid:m||H,textOnly:M,borderRadius:P,backgroundColor:T,fontSize:A,margin:_,marginLeft:L,marginRight:R,marginTop:I,marginBottom:N,focused:B,disabled:D,hasLabel:!!O,hideEditor:!Ude(o)&&!!O&&!B,children:[n(Zde,{readOnly:C,children:[O&&e(qde,{filled:Ude(o),focused:B,disabled:D,children:O}),e(Vde.Editor,Object.assign({ref:W,editorState:z,onChange:G,placeholder:p,readOnly:C,handleReturn:e=>{const t=Vde.RichUtils.insertSoftNewline(z);return e.shiftKey||!c?G(t):c(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=Vde.convertFromRaw({blocks:[o],entityMap:{}}),a=Vde.EditorState.createWithContent(i,pfe).getCurrentContent().getBlockMap(),l=Vde.Modifier.replaceWithFragment(n,r,a);return Vde.EditorState.push(t,l,"insert-fragment")})(e,n);return G(r),"handled"},onFocus:K,onBlur:V},$))]}),h&&e(Gde,{invalid:m,children:h})]})})),wfe=se(Wde)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:l,noPadding:s,filled:c})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:l||e.font.size.lg,top:!c||n||s?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:l||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}}));var Cfe,xfe={exports:{}},Sfe={};var kfe,Efe={};"production"===process.env.NODE_ENV?xfe.exports=function(){if(Cfe)return Sfe;Cfe=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case p:case f:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Sfe.ContextConsumer=l,Sfe.ContextProvider=a,Sfe.Element=t,Sfe.ForwardRef=c,Sfe.Fragment=r,Sfe.Lazy=p,Sfe.Memo=f,Sfe.Portal=n,Sfe.Profiler=i,Sfe.StrictMode=o,Sfe.Suspense=u,Sfe.SuspenseList=d,Sfe.isAsyncMode=function(){return!1},Sfe.isConcurrentMode=function(){return!1},Sfe.isContextConsumer=function(e){return g(e)===l},Sfe.isContextProvider=function(e){return g(e)===a},Sfe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sfe.isForwardRef=function(e){return g(e)===c},Sfe.isFragment=function(e){return g(e)===r},Sfe.isLazy=function(e){return g(e)===p},Sfe.isMemo=function(e){return g(e)===f},Sfe.isPortal=function(e){return g(e)===n},Sfe.isProfiler=function(e){return g(e)===i},Sfe.isStrictMode=function(e){return g(e)===o},Sfe.isSuspense=function(e){return g(e)===u},Sfe.isSuspenseList=function(e){return g(e)===d},Sfe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Sfe.typeOf=g,Sfe}():xfe.exports=(kfe||(kfe=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case d:return g;default:var m=g&&g.$$typeof;switch(m){case s:case l:case c:case p:case f:case a:return m;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var m=l,v=a,y=t,b=c,w=r,C=p,x=f,S=n,k=i,E=o,O=u,D=d,P=!1,T=!1;Efe.ContextConsumer=m,Efe.ContextProvider=v,Efe.Element=y,Efe.ForwardRef=b,Efe.Fragment=w,Efe.Lazy=C,Efe.Memo=x,Efe.Portal=S,Efe.Profiler=k,Efe.StrictMode=E,Efe.Suspense=O,Efe.SuspenseList=D,Efe.isAsyncMode=function(e){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Efe.isConcurrentMode=function(e){return T||(T=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Efe.isContextConsumer=function(e){return g(e)===l},Efe.isContextProvider=function(e){return g(e)===a},Efe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Efe.isForwardRef=function(e){return g(e)===c},Efe.isFragment=function(e){return g(e)===r},Efe.isLazy=function(e){return g(e)===p},Efe.isMemo=function(e){return g(e)===f},Efe.isPortal=function(e){return g(e)===n},Efe.isProfiler=function(e){return g(e)===i},Efe.isStrictMode=function(e){return g(e)===o},Efe.isSuspense=function(e){return g(e)===u},Efe.isSuspenseList=function(e){return g(e)===d},Efe.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===f||t.$$typeof===a||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Efe.typeOf=g}()),Efe);var Ofe=xfe.exports;function Dfe(e,t=0,n=[]){return u.toArray(e).reduce(((e,r,o)=>(Ofe.isFragment(r)?e.push.apply(e,Dfe(r.props.children,t+1,n.concat(r.key||o))):m(r)?e.push(c(r,{key:n.concat(String(r.key)).join(".")})):"string"!=typeof r&&"number"!=typeof r||e.push(r),e)),[])}for(var Pfe,Tfe=[],Afe=0;Afe<256;++Afe)Tfe.push((Afe+256).toString(16).slice(1));var Mfe=new Uint8Array(16);function _fe(){if(!Pfe&&!(Pfe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pfe(Mfe)}var jfe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Lfe(e,t,n){if(jfe.randomUUID&&!t&&!e)return jfe.randomUUID();var r=(e=e||{}).random||(e.rng||_fe)();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return(Tfe[e[t+0]]+Tfe[e[t+1]]+Tfe[e[t+2]]+Tfe[e[t+3]]+"-"+Tfe[e[t+4]]+Tfe[e[t+5]]+"-"+Tfe[e[t+6]]+Tfe[e[t+7]]+"-"+Tfe[e[t+8]]+Tfe[e[t+9]]+"-"+Tfe[e[t+10]]+Tfe[e[t+11]]+Tfe[e[t+12]]+Tfe[e[t+13]]+Tfe[e[t+14]]+Tfe[e[t+15]]).toLowerCase()}(r)}var Rfe={exports:{}};Rfe.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],u=!1,d=-1;function f(){u&&s&&(u=!1,s.length?c=s.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=l(f);u=!0;for(var t=c.length;t;){for(s=c,c=[];++d<t;)s&&s[d].run();d=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,l,s){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,l,s],d=0;(c=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=c(i),l=c(n(7)),s=n(12);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,s.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,s.isInvalidKey)(t)){var a={start:o,end:i},l=(0,s.update)(r.state.phoneNumber,a,t),c=l.phoneNumber,u=void 0===c?"":c,d=l.cursorPosition,f=void 0===d?0:d;r.setState({phoneNumber:u,cursorPosition:f,key:t}),r.props.onChange(u)}},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,s.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",l=r({},this.props,(u(e={},i,(function(e){return t.textInput=e})),u(e,"type","tel"),u(e,"value",n),u(e,"onKeyDown",this.handleKeyDown),u(e,"onChange",(function(){})),e));return o?a.default.createElement(o,l):a.default.createElement("input",l)}}]),t}(i.Component);f.propTypes={inputComponent:l.default.oneOfType([l.default.instanceOf(i.Component),l.default.func]),onChange:l.default.func,value:l.default.string},f.defaultProps={onChange:function(){}},t.format=s.format,t.normalize=s.normalize,t.default=f},function(e,t){e.exports=o},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),l=n(3),s=n(10);e.exports=function(e,n){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",f={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected an array.");for(var s=0;s<a.length;s++){var c=e(a,s,r,o,i+"["+s+"]",l);if(c instanceof Error)return c}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new h("Invalid "+o+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var l;return null}))},node:g((function(e,t,n,r,o){return v(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],s=y(a);if("object"!==s)return new h("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var u=e(a,c,r,o,i+"."+c,l);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],l=0;l<e.length;l++)if(p(a,e[l]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,l))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],s=y(a);if("object"!==s)return new h("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(a,c,r,o,i+"."+c,l);if(d)return d}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var s=t[n],c=y(s);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var u=a({},t[n],e);for(var d in u){var f=e[d];if(!f)return new h("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=f(s,d,r,o,i+"."+d,l);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function s(s,c,u,f,p,g,m){if(f=f||d,g=g||u,m!==l)if(n)o(!1,"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");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=f+":"+u;!r[v]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,f),r[v]=!0,a++)}return null==c[u]?s?null===c[u]?new h("The "+p+" `"+g+"` is marked as required in `"+f+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(c,u,f,p,g)}var c=s.bind(null,!1);return c.isRequired=s.bind(null,!0),c}function m(e){return g((function(t,n,r,o,i,a){var l=t[n];return y(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(l)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!v(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=s,f.PropTypes=f,f}}).call(t,n(0))},function(e,t,n){var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))o.call(n,c)&&(l[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)i.call(n,a[u])&&(l[a[u]]=n[a[u]])}}return l}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,l,s,c){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{r("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",l,u,typeof e[u]),d=e[u](n,u,s,l,null,i)}catch(e){d=e}if(o(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",l,u,typeof d),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var f=c?c():"";o(!1,"Failed %s type: %s%s",l,d.message,null!=f?f:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,l){l!==i&&o(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?l(e,t):function(e,t,n){return!(10===c(e).length&&!n||i(t))}(e,n,r)?s(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var l=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var l=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+l+i.substring(r)}var s=f(e,i,t,o);return{phoneNumber:d(i),cursorPosition:s}},s=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=u(e,n,t)),a(t)||(o=u(e,n,t));var i=f(e,o,t,r);return{phoneNumber:d(o),cursorPosition:i}},c=t.normalize=function(e){return e.replace(/\D/g,"")},u=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},d=t.format=function(e){var t=c(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},f=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return d(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var l=/[^0-9]/g;if(a(n)&&l.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&l.test(e[n.start-1]))return n.start-1}var s=e.substring(n.end).match(/[0-9]/g),c=s?s.length:0,u=d(t),f=p(u,c);return u.length-f},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var Ife=Rfe.exports;
2
2
  /**
3
3
  * @deprecated Use the other input variant components instead (TextInput, NumberInput, SearchInput, PhoneInput).
4
- */const Nfe=s(((t,r)=>{var{id:o,label:s,placeholder:c,placeholderColor:u,description:d,isLoading:f,search:p,phone:h,textOnly:m,iconLeft:v,iconRight:y,invalid:b,borderRadius:C,borderColor:x,backgroundColor:S,fontSize:k,width:E,height:D,margin:P,marginLeft:T,marginRight:A,marginTop:M,marginBottom:_,padding:L,paddingLeft:R,paddingRight:I,paddingTop:N,paddingBottom:$,containerRef:z,value:F,disabled:B,readOnly:K,preventFocus:V,pointer:H,hideControls:U,onChange:W,onClick:Z,onClear:q,onFocus:G,onBlur:Y}=t,X=j(t,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:J,handleFocus:Q,handleBlur:ee}=Hde(G,Y,!V&&!K),te=a(null),{color:ne}=O(),[re,oe]=l(m?50:void 0),ie=a(null),ae={margin:P,marginTop:M,marginBottom:_,marginRight:A,marginLeft:T},le={padding:L,paddingTop:N,paddingBottom:$,paddingRight:I,paddingLeft:R};w((()=>{if(m&&(null==ie?void 0:ie.current)){const{current:e}=ie;F&&(e.innerHTML=F.toString().replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&oe(t+3)}}),[m,F,c,ie]);const se=m?F||c:F,ce=(!!F||"number"==typeof F)&&q&&!f;i((()=>{var e,t;if(h&&"string"==typeof F&&10===F.length&&F===Ife.normalize(F)){const{current:n}=te;if(n){const r=Ife.format(F),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[F]);const ue=()=>{J||Q()},de=()=>{J&&ee()},fe=()=>{ue(),(null==te?void 0:te.current)&&te.current.select()};g(r,(()=>({focus:ue,blur:de,hasFocus:J,select:fe}))),i((()=>{var e;J&&(null===(e=te.current)||void 0===e||e.focus())}),[J]);return n(Wde,Object.assign({ref:z,invalid:b,textOnly:m,borderRadius:C,borderColor:x,backgroundColor:S,width:E,height:D,focused:J,disabled:B,hasLabel:!!s,onClick:e=>{V||K||ue(),Z&&Z(e)},pointer:H,readOnly:K},ae,le,{children:[p&&e(Sn,{name:"search",marginRight:8,inheritColor:!0}),v&&R2(v,{marginRight:8}),n(Zde,{readOnly:K||V,children:[m&&e(Ffe,{ref:ie,fontSize:k,children:se}),s&&!m&&e(qde,{htmlFor:o||s,filled:Ude(F),focused:J,disabled:B,children:s}),e($fe,Object.assign({id:o||s,ref:te,value:F,placeholder:c,placeholderColor:u,onChange:e=>{if(h){const{value:t}=e.target,n=Ife.normalize(t);if(n.length>10)return;const r=Ife.format(n);W&&W(e,r,n)}else W&&W(e)},onFocus:Q,onBlur:ee,disabled:B,hide:!(Ude(F)||!s||J||m),width:re,fontSize:k,hideControls:U},X))]}),y&&R2(y),f&&e(Qx,{}),ce&&e(zfe,{onClick:q,children:e(Sn,{name:"close-circle-outline",color:ne.brand})}),d&&e(Gde,{invalid:b,children:d})]}))})),$fe=se.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),zfe=se.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),Ffe=se.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Bfe=se("div",{shouldForwardProp:e=>Ex(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Kfe=se("div",{shouldForwardProp:e=>Ex(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Vfe=({id:t,children:n,containerRef:r,parentSelector:o,width:i,maxHeight:s=200,offsetY:c,offsetX:u,centerY:d,centerX:f,direction:p})=>{const[h,g]=l(),m=a(null);w((()=>{const{current:e}=r||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?u:c)||4))}}),[r,p]);const v=e(Hfe,{id:t,ref:r||m,offsetX:u,offsetY:c,width:i,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:n});if(o){const e=document.querySelector(o);return e?T.createPortal(v,e):v}return v};Vfe.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:s,accented:c,section:u}=t,d=j(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e(Kfe,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:u,noSelect:u||a,contentPosition:l,color:s,accented:c,tabIndex:a?-1:0},d,{children:n}))};const Hfe=se(Bfe)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Ufe=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Wfe=r=>n(t,{children:[r.leftElement||null,r.header&&r.body?n("div",{style:{display:"flex",flexDirection:"column"},children:[e(qfe,{children:r.header}),e(Gfe,{children:r.body})]}):r.label,r.rightElement&&e("div",{style:{marginLeft:"auto"},children:r.rightElement})]}),Zfe=(t,n,r,o,i)=>{const{selected:a}=i,l=((t,n,r,o)=>{if(t&&t.length>0)return Ufe(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e(Vfe.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Wfe(t)},t.id)}));return[]})(t,r,o,j(i,["selected"])),s=((e,t,n)=>e?Dfe(e).map((e=>e?c(e,{setValue:t,close:n}):null)):[])(n,r,o);return Dfe([...l,...s]).map(((e,t)=>e?c(e,{selected:a===t}):null))},qfe=se.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Gfe=se.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Yfe=e=>u.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Xfe=t=>{var{onChange:r,onTextChange:o,afterShow:s,afterHide:c,onFocus:u,onBlur:d,onError:f,placeholder:p,placeholderColor:h,value:g,options:m,children:v,borderColor:y,backgroundColor:b,hideIcon:w,clearOnSelect:C,textOnly:x,width:S,height:k,isLoading:E,margin:D,marginTop:P,marginBottom:T,marginRight:A,marginLeft:M,label:_,id:L,name:R,trigger:I,centerY:N,centerX:$,offsetY:z,offsetX:F,direction:B,fontSize:K,description:V,disabled:H,invalid:U,search:W,filter:Z,restrictInput:q,inputRef:G,optionsParent:Y}=t,X=j(t,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[J,Q]=l(""),[ee,te]=l(""),[ne,re]=l(!1),[oe,ie]=l(!1),[ae,le]=l(!1),se=a(null),{input:ce}=O(),ue={margin:D,marginTop:P,marginBottom:T,marginRight:A,marginLeft:M},de=e=>{e&&e.stopPropagation(),!ne&&s&&s(),ne&&c&&c(),re((e=>!e))};i((()=>{var e;if(ne&&W){null===(e=(G||se).current)||void 0===e||e.focus()}}),[ne,W]),i((()=>{f&&f(ae)}),[ae]),i((()=>{o&&o(ee)}),[ee]);const fe=Et(de,ne,Y?[Y,`${Y} *`]:void 0),pe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},he=e=>{const t=ye().find((t=>{let n=pe(t.label,e);return!n&&"id"in t&&(n=pe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=pe(t.value,e)),n}));return t},ge=e=>"function"==typeof q?!q(e):q,me=e=>ve(null,e),ve=(e,t)=>{let n,o=!1;if("string"==typeof e){n=(e=>{if(ge(e))return he(e)||null;return{id:Lfe(),label:e,value:e}})(e);const t=ge(e);null===n&&t&&(o=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}ne&&de(t),Q((null==n?void 0:n.label)||""),r&&void 0!==n&&r(n),o?le(!0):(ae&&le(!1),C&&Q(""),te(""))};i((()=>{""!==g&&null!=g||me()}),[g]);const ye=()=>{const e=Dfe(v).map((e=>{const t=e;let n=t.props.displayText||"";return!_&&t.props.children&&(n=Yfe(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Ufe(m||[],{search:W,filter:Z,inputText:ee}),...e]},be={options:ye(),select:ve,open:de,close:de,searchText:W?ee:void 0,isOpen:ne,isFocused:oe},[we,Ce]=un(be),xe=Zfe(m||[],v,ve,de,{selected:we,search:W,filter:Z,inputText:ee}),Se=ne?"caret-up":"caret-down",ke=x&&!H?h||ce.color.default:void 0,Ee=j(X,["onClear","phone"]);return e(Jfe,Object.assign({textOnly:x,altTrigger:!!I,width:S,height:k,focused:oe,search:W},ue,{children:n(Qfe,{ref:fe,children:[I?e(epe,{id:L,onClick:de,tabIndex:0,onFocus:()=>ie(!0),onBlur:()=>ie(!1),children:I}):e(npe,{shake:ae,children:e(Nfe,Object.assign({},Ee,{ref:G||se,id:L,name:R,label:_,fontSize:K,pointer:!0,preventFocus:!W,value:ee||g||J,placeholder:p||"Select",placeholderColor:ke,iconRight:w||E?void 0:Se,borderColor:y,backgroundColor:b,isLoading:E,textOnly:x,description:V,disabled:H,invalid:ae||U,onClick:de,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(G||se).current)||void 0===t?void 0:t.hasFocus;W?(te(n),!ne&&r&&re(!0),ae&&le(!1)):n||me(e);const o=he(n),i=ge(n),a=""===n||i&&!r;o&&!(W&&(!i||r))?ve(o,e):W&&!a||me(e)},onFocus:e=>{ie(!0),u&&u(e)},onBlur:e=>{var t;if(ie(!1),d&&d(e),W&&ee&&e){const{relatedTarget:n}=e;(null===(t=null==Ce?void 0:Ce.current)||void 0===t?void 0:t.contains(n))||ve(ee,e)}}}))}),ne&&xe.length>0&&e(Vfe,{containerRef:Ce,parentSelector:Y,width:!I&&!x||Y?"100%":void 0,centerY:N,centerX:$,offsetY:z,offsetX:F,direction:B,children:xe})]})}))};Xfe.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:c,id:u,section:d})=>e(Vfe.Item,{id:u,contentPosition:a,color:l,onClick:c?e=>{c&&c(e),o&&o()}:e=>{const o={id:u,label:n||Yfe(i)||"",value:t};r&&r(o,e)},accented:s,section:d,children:i});const Jfe=se.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),yn,wn),Qfe=se.div({position:"relative",width:"100%",height:"inherit"}),epe=se.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`,outlineOffset:-1}}))),tpe=E({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),npe=se.div((({shake:e})=>({"& input":{animation:e?`${tpe} .5s linear`:void 0}}))),rpe=(e,t)=>{if(!t||!e)return!0;return new RegExp(t).test(e)},ope=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:C,onInput:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const{color:k}=O(),[E,D]=l("");i((()=>{null!=o&&E!==o&&D(o)}),[o]);return n(ipe,Object.assign({value:E,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:e=>{rpe(e,w)&&(D(e),C&&C(e))},onInput:x?e=>{const{value:t}=e.target;x&&rpe(t,w)&&x(e)}:void 0},S,{children:[c&&R2(c,{marginRight:8}),e(Sn,{name:"search",inheritColor:!0,marginRight:8}),n(t0,{filled:!!E,disabled:h,children:[a,e(_2,{ref:r,placeholder:s,hide:!(E||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e(Qx,{}),!!E&&!d&&e(Ux,{children:e(Sn,{name:"close-circle-outline",color:k.brand})}),e(X1,{description:y,errorMessage:b})]}))})),ipe=se(RC)(Y1),ape=(e,t)=>{const n=e=>{if(!e)return!1;const n=t.toLowerCase();return e.toString().toLowerCase().includes(n)};return e.reduce(((e,r)=>{if("options"in r){const n=ape(r.options,t);n.length>0&&e.push(Object.assign(Object.assign({},r),{options:n}))}else{let t=n(r.value);!t&&"id"in r&&(t=n(r.id)),!t&&"body"in r&&(t=n(r.body)),!t&&"header"in r&&(t=n(r.header)),t&&e.push(r)}return e}),[])},lpe=t=>{var{label:r,options:o,width:i,search:s,onChange:c}=t,u=j(t,["label","options","width","search","onChange"]);const[d,f]=l(new Set),[p,h]=l(!1),[g,m]=l(""),[v,y]=l(!1),[b,w]=l(!1),[C,x]=l(0),[S,k]=l("menu"),E=a(null),O=a(null),D=(e=>e.map((e=>"options"in e?e.options:e)).flat())(o),P=ape(o,g),T=e=>{f(e);const t=D.length,n="all"===e||e.size===t,r=!n&&e.size>0;y(n),w(r),x(n?t:e.size);const o=n?D:D.filter((t=>e.has(t.id)));c&&c(o)};return n(spe,Object.assign({width:i,ref:E,tabIndex:-1},u,{children:[n(dpe,{children:[e(_x,{partial:b,checked:v,onChange:()=>T(v?new Set:"all")}),e(upe,{children:r})]}),n(dpe,{gap:8,children:[(b||v)&&e(fpe,{children:b?C:"All"}),n(fC,{onOpenChange:e=>{h(e),e||(m(""),k("menu"))},children:[e(Ux,{children:e(Sn,{name:p?"caret-up":"caret-down",inheritColor:!0})}),e(qx,{triggerRef:E,offset:2,children:({isEntering:t,isExiting:r})=>{var o;return n(cpe,{width:i||(null===(o=null==E?void 0:E.current)||void 0===o?void 0:o.offsetWidth),readOnly:t||r,children:[s&&e(ope,{value:g,onChange:m,placeholder:"Search",padding:"2px 4px",margin:8,minHeight:"unset",height:"auto",width:"auto",onFocus:()=>k("input"),onKeyDown:e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||null===(t=O.current)||void 0===t||t.focus()}}),g&&0===P.length&&e(ppe,{children:"No results found"}),e(Hx,{options:P,selectionMode:"multiple",width:"100%",selectedKeys:d,onSelectionChange:T,autoFocus:"menu"===S,menuRef:O,itemProps:{checkbox:!0},readOnly:t||r})]})}})]})]})]}))},spe=se.div(Y1),cpe=se.div(Dx),upe=se.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t}))),dpe=se.div((({gap:e})=>({display:"flex",alignItems:"center",gap:e||4}))),fpe=se.div((({theme:e})=>({color:e.scale10}))),ppe=se.div((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),hpe=se.div((({clampLines:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:e?void 0:"nowrap",WebkitLineClamp:e,display:e?"-webkit-box":void 0,WebkitBoxOrient:e?"vertical":void 0,wordBreak:e?"break-word":void 0})),(({width:e})=>({width:e||"auto"})),bn,wn),gpe=se.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:c,width:u,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:c,alignContent:a,justifyContent:s,width:u,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),bn,wn);gpe.Item=se.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})),bn,wn);const mpe=e=>{var{children:t,iconLeft:r,iconRight:o,disabled:i,pill:a}=e,l=j(e,["children","iconLeft","iconRight","disabled","pill"]);return n(vpe,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&R2(r,{marginRight:4,size:"small"}),t,o&&R2(o,{marginLeft:4,size:"small"})]}))},vpe=se.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),wn),ype=t=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f}=t,p=j(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===i,g={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};return n(Tx,Object.assign({htmlFor:r,labelRight:h,disabled:l},g,{children:[o&&e(Mx,{children:o}),e(Ax,Object.assign({id:r,type:"radio",checked:a,disabled:l},p)),e(Sn,{name:"radio-button",marginLeft:o&&!h?8:0,marginRight:o&&h?8:0,pointer:!l})]}))},bpe=t=>{var{id:r,label:o,labelPosition:a,checked:s,disabled:c,onChange:u,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g}=t,m=j(t,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=l("toggle-off"),[b,w]=l(s||!1),C="right"===a,x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g};return i((()=>{y(b?"toggle-on":"toggle-off")}),[b]),i((()=>{w("boolean"==typeof s?s:b)}),[s,b]),n(Tx,Object.assign({htmlFor:r,labelRight:C,disabled:c},x,{children:[o&&e(Mx,{children:o}),e(Ax,Object.assign({id:r,type:"checkbox",checked:b,disabled:c,onChange:()=>{const e=!b;w(e),u(e)}},m)),e(Sn,{name:v,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!c,size:40})]}))},wpe=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,s=j(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(Cpe,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{e.preventDefault(),l&&l(e)}},s,{children:n}))};wpe.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,s=j(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(xpe,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},s,{children:n}))},wpe.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=j(t,["children","inline","align","disabled"]);return e(Spe,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},wpe.Radio=ype,wpe.Toggle=bpe,wpe.Checkbox=_x,wpe.Label=mpe;const Cpe=se(gpe)({boxSizing:"border-box"}),xpe=se(gpe)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),Spe=se.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),wn),kpe=({visible:t,close:r,images:o,startIndex:a,alt:s,maxWidth:c,maxHeight:u,opacity:d})=>{const[f,p]=l(a),h=Et(r,t,["#prev","#next","#prev *","#next *"]);i((()=>{p(a)}),[a]);const g=()=>p(f>0?f-1:o.length-1),m=()=>f<o.length-1?p(f+1):p(0),v=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),g();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),m();break;case"Escape":e.preventDefault(),r()}};return i((()=>{const e="undefined"==typeof window,n=e?()=>null:()=>window.removeEventListener("keydown",v);return t&&!e&&window.addEventListener("keydown",v),n}),[t,f]),t?n(Epe,{opacity:d,prevNext:o.length>1,children:[e(Ope,{onClick:r,children:e(Sn,{name:"close",size:25,color:"white"})}),o.length>1&&e(Dpe,{id:"prev",onClick:g,children:e(Sn,{name:"chevron-left",size:35,color:"white"})}),e(Ppe,{ref:h,src:o[f],alt:s,maxWidth:c,maxHeight:u}),o.length>1&&e(Dpe,{next:!0,id:"next",onClick:m,children:e(Sn,{name:"chevron-right",size:35,color:"white"})})]}):null},Epe=se.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),Ope=se.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Dpe=se.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),Ppe=se.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Tpe=se.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),Ape=se(Qw)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder},'&[data-type="literal"]':{padding:0,color:t||e.input.color.placeholder},'&[data-type="dayPeriod"]':{textTransform:"lowercase"}}))),Mpe=se(Ux)((({theme:{input:e},isDisabled:t})=>({color:t?e.labelColor.disabled:e.labelColor.default}))),_pe=b0(),jpe=s(((t,r)=>{var{value:o,label:i,iconLeft:s,iconRight:c,loading:u,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=t,C=j(t,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:x}=a(o?C0(o):void 0),[S,k]=l(x),E=a(null),{min:O,max:D}=x0({past:m,future:v,rel:x||_pe}),P=e=>{const{year:t,month:n,day:r}=e,o=new lc(t,n,r);k(o);const i=w0(e);y&&y(i)},T=!(S||!i);return n(Lpe,Object.assign({value:S,hasLabel:!!i,isDisabled:p,minValue:O,maxValue:D,onChange:P,onOpenChange:e=>{b&&e&&b(),w&&!e&&w()},ref:E},C,{children:[s&&R2(s,{marginRight:8}),n(t0,{filled:!!S,disabled:p,children:[i,e(Rpe,{ref:r,hide:T,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e(Ape,{placeholderColor:f,segment:t})})]}),e(Mpe,{isDisabled:p,children:e(Sn,{size:18,name:"calendar",inheritColor:!0})}),c&&R2(c),u&&e(Qx,{}),e(X1,{description:h,errorMessage:g}),e(Mw,{triggerRef:E,children:e(Iw,{children:e(k0,{date:S?w0(S):void 0,onChange:e=>{P(C0(e))},preventPast:m,preventFuture:v})})})]}))})),Lpe=se(iC)(Y1),Rpe=se(Xw,A2)({display:"flex"},M2),Ipe=b0(),Npe=t=>{var{startDate:r,endDate:o,onChange:i,preventPast:s,preventFuture:c,noShadow:u}=t,d=j(t,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:f}=a(r?C0(r):Ipe),{current:p}=a(o?C0(o):f),[h,g]=l(f),[m,v]=l(p),[y,b]=l(f),{min:w,max:C}=x0({past:s,future:c,rel:f});return n($pe,Object.assign({value:{start:h,end:m},onChange:e=>{if(!e)return;const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:c}=n,u=new lc(r,o,a);g(u);const d=new lc(l,s,c);v(d);const f=w0(t),p=w0(n);i&&i(f,p)},minValue:w,maxValue:C,noShadow:u,focusedValue:y,onFocusChange:b},d,{children:[e(g0,{date:y,setDate:b}),e(U1,{range:!0})]}))},$pe=se(Mb)(H1),zpe=b0(),Fpe=s(((t,r)=>{var{startValue:o,endValue:i,label:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,description:g,errorMessage:m,preventPast:v,preventFuture:y,onChange:b,afterShow:w,afterHide:C}=t,x=j(t,["startValue","endValue","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:S}=a(o?C0(o):void 0),{current:k}=a(i?C0(i):void 0),[E,O]=l(S),[D,P]=l(k),T=a(null),{min:A,max:M}=x0({past:v,future:y,rel:S||zpe}),_=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,c=new lc(r,o,i);O(c);const u=new lc(a,l,s);P(u);const d=w0(t),f=w0(n);b&&b(d,f)},L=!(!E&&!D),R=!(L||!s);return n(Bpe,Object.assign({value:E&&D?{start:E,end:D}:void 0,hasLabel:!!s,isDisabled:h,minValue:A,maxValue:M,onChange:_,onOpenChange:e=>{w&&e&&w(),C&&!e&&C()},ref:T},x,{children:[c&&R2(c,{marginRight:8}),n(t0,{filled:L,disabled:h,children:[s,n(Vpe,{fontSize:f,hide:R,isDisabled:h,children:[e(Kpe,{slot:"start",ref:r,fontSize:f,placeholderColor:p,isDisabled:h,children:t=>e(Ape,{placeholderColor:p,segment:t})}),e("span",{"aria-hidden":"true",children:"–"}),e(Kpe,{slot:"end",fontSize:f,placeholderColor:p,isDisabled:h,children:t=>e(Ape,{placeholderColor:p,segment:t})})]})]}),e(Mpe,{isDisabled:h,children:e(Sn,{size:18,name:"calendar",inheritColor:!0})}),u&&R2(u),d&&e(Qx,{}),e(X1,{description:g,errorMessage:m}),e(Mw,{triggerRef:T,children:e(Iw,{children:e(Npe,{startDate:E?w0(E):void 0,endDate:D?w0(D):void 0,onChange:(e,t)=>{const n=C0(e),r=C0(t);_({start:n,end:r})},preventPast:v,preventFuture:y})})})]}))})),Bpe=se(lC)(Y1),Kpe=se(Xw,A2)(M2,{display:"flex","&:first-of-type":{marginRight:0}}),Vpe=se(Ew,A2)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),Hpe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:C,onInput:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[k,E]=l(""),[O,D]=j2({value:k,placeholder:s,fontSize:f});i((()=>{null!=o&&k!==o&&E(o)}),[o]);return n(Upe,Object.assign({value:k,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:e=>{rpe(e,w)&&(E(e),C&&C(e))},onInput:x?e=>{const{value:t}=e.target;x&&rpe(t,w)&&x(e)}:void 0,textOnly:!0},S,{children:[c&&R2(c,{marginRight:8}),e(_2,{ref:r,placeholder:s,hide:!(k||!a),fontSize:f,placeholderColor:p,isDisabled:h,width:O}),e(D,{}),u&&R2(u),d&&e(Qx,{}),e(X1,{description:y,errorMessage:b})]}))})),Upe=se(yx)(Y1),Wpe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,hideControls:w,separator:C=!0,onChange:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","hideControls","separator","onChange"]);const[k,E]=l(NaN);i((()=>{null!=o&&k!==o&&E(o)}),[o]);const O=!Number.isNaN(k)&&null!=k;return n(Zpe,Object.assign({value:k,onChange:e=>{E(e),x&&x(e)},hasLabel:!!a,paddingRight:0,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,formatOptions:{useGrouping:C}},S,{children:[c&&R2(c,{marginRight:8}),n(t0,{filled:O,disabled:h,children:[a,e(_2,{ref:r,placeholder:s,hide:!(O||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e(Qx,{}),!w&&n(qpe,{children:[e(Gpe,{slot:"increment",isDisabled:h||g,children:e(Sn,{size:a?23.5:19.5,name:"caret-up",inheritColor:!0})}),e(Ype,{}),e(Gpe,{slot:"decrement",isDisabled:h||g,children:e(Sn,{size:a?23.5:19.5,name:"caret-down",inheritColor:!0})})]}),e(X1,{description:y,errorMessage:b})]}))})),Zpe=se(_C)(Y1),qpe=se.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder,overflow:"hidden",borderTopRightRadius:4,borderBottomRightRadius:4}))),Gpe=se(Ux)((({theme:e,isDisabled:t})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",borderRadius:0,color:t?e.scale4:void 0,pointerEvents:t?"none":void 0,"&:hover":{backgroundColor:t?void 0:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Ype=se.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),Xpe=s(((t,r)=>{var{value:o,label:s,placeholder:c,iconLeft:u,iconRight:d,loading:f,fontSize:p,placeholderColor:h,disabled:m,readOnly:v,invalid:y,required:b,description:w,errorMessage:C,onChange:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[k,E]=l(""),O=a(null);g(r,(()=>O.current)),i((()=>{var e,t;if(null!=o&&k!==o){const n=Ife.normalize(o),r=Ife.format(n);E(r);const{current:i}=O;if(i&&o===Ife.normalize(o)){const n=new Event("change",{bubbles:!0}),{prototype:o}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(o,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(i,r),i.dispatchEvent(n)}}}),[o]);return n(Jpe,Object.assign({value:k,hasLabel:!!s,isDisabled:m,isReadOnly:v||f,isInvalid:y,isRequired:b,onChange:e=>{const t=Ife.normalize(e);if(t.length>10||e&&!t)return;const n=Ife.format(t);k!==n&&(E(n),x&&x(n,t))},type:"tel"},S,{children:[u&&R2(u,{marginRight:8}),n(t0,{filled:!!k,disabled:m,children:[s,e(_2,{ref:O,placeholder:c,hide:!(k||!s),fontSize:p,placeholderColor:h,isDisabled:m})]}),d&&R2(d),f&&e(Qx,{}),e(X1,{description:w,errorMessage:C})]}))})),Jpe=se(yx)(Y1),Qpe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:C,onInput:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[k,E]=l("");i((()=>{null!=o&&k!==o&&E(o)}),[o]);return n(ehe,Object.assign({value:k,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:e=>{rpe(e,w)&&(E(e),C&&C(e))},onInput:x?e=>{const{value:t}=e.target;x&&rpe(t,w)&&x(e)}:void 0},S,{children:[c&&R2(c,{marginRight:8}),n(t0,{filled:!!k,disabled:h,children:[a,e(_2,{ref:r,placeholder:s,hide:!(k||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e(Qx,{}),e(X1,{description:y,errorMessage:b})]}))})),ehe=se(yx)(Y1),the=s(((t,r)=>{var{value:o,label:a,iconLeft:s,iconRight:c,loading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,onChange:b}=t,w=j(t,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[C,x]=l(o?Qs(o):null);i((()=>{if(o){`${null==C?void 0:C.hour}:${null==C?void 0:C.minute}`!==o&&x(Qs(o))}}),[o]);const S=!(C||!a);return n(nhe,Object.assign({value:C,hasLabel:!!a,isDisabled:p,isReadOnly:h||u,isInvalid:g,isRequired:m,onChange:e=>{const{hour:t,minute:n,second:r}=e,o=new cc(t,n,r);x(o),b&&b(e.toString())}},w,{children:[s&&R2(s,{marginRight:8}),n(t0,{filled:!!C,disabled:p,children:[a,e(rhe,{ref:r,hide:S,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e(Ape,{placeholderColor:f,segment:t})})]}),c&&R2(c),u&&e(Qx,{}),e(X1,{description:v,errorMessage:y})]}))})),nhe=se(Zw)(Y1),rhe=se(Xw,A2)({display:"flex"},M2),ohe=t=>{var{data:r,legend:o,keys:i}=t,a=j(t,["data","legend","keys"]);const[s,c]=l(i),{scale2:u}=O();return n(R1,Object.assign({},a,{children:[e(L1,{}),e(IR,{width:"100%",height:"100%",children:n(wQ,{margin:{top:8,left:-14,right:5,bottom:-8},data:r,children:[e(eJ,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e(bJ,{stroke:u,dataKey:"name",tickMargin:4}),e(CJ,{stroke:u,tickMargin:4,tickFormatter:e=>MS(e)}),N1(),o&&e(yj,{content:e($1,{toggleData:i.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),s.map((({key:t,color:n,hidden:r},o)=>e(vJ,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},ihe=({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e(ahe,{vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?Dfe(w).map((e=>e?c(e,{vertical:t,backgroundColor:b}):null)):null}),ahe=se.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})),bn),lhe=se.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`,outlineOffset:-1}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),she=se.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),che=se.div({marginLeft:"auto",marginRight:8});ihe.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e(lhe,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),ihe.Group=({label:t,defaultOpen:r,vertical:i,selected:a,disabled:s,contentPosition:u,onClick:d,id:f,children:p,indent:h=1,backgroundColor:g})=>{const[m,v]=l(r||a),y=e=>Dfe(e).map((e=>{if(o.isValidElement(e)){const t=e;return t.props.selected&&!m&&v(!0),Array.isArray(t.props.children)&&y(t.props.children),c(e,{vertical:i,indent:h+1,backgroundColor:g})}return null})),b=y(p),w=()=>v((e=>!e));return n(she,{backgroundColor:g,children:[n(lhe,{vertical:i,selected:a||!1,disabled:s,contentPosition:u,onClick:e=>{d?(d(e),m||w()):w()},id:f,role:"menuitem",indent:h,children:[t,e(che,{onClick:e=>{e.stopPropagation(),w()},children:e(Sn,{name:m?"chevron-up":"chevron-down",pointer:!0})})]}),m&&b]})};const uhe=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d,children:f})=>{const p=O(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d};return n(phe,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e(Sn,{name:h,style:{marginRight:10},color:g}),e(hhe,{children:r||f}),o&&e(Sn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},dhe=se.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),fhe=se.div((({theme:e})=>({fontWeight:e.font.weight.default})));uhe.Header=dhe,uhe.Body=fhe;const phe=se.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),wn),hhe=se.div({width:"100%"}),ghe=({text:t,color:r,style:o})=>n(yhe,{children:[e(vhe,{}),e(mhe,{color:r,style:o,children:t}),e(vhe,{})]}),mhe=se.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),vhe=se.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),yhe=se.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),bhe=({children:t,rootSelector:r,visible:o,width:i,height:a,onClose:l,closeIcon:s,preventOverlayClose:u,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:C,left:x,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:P})=>{const A=Et(u?()=>null:l,o),M={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},_=Dfe(t).map((e=>e?c(e,{inline:h}):null)),j=e(xhe,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:C,left:x,zIndex:P,blur:d,children:n(whe,Object.assign({ref:A,width:i,height:a,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},M,{children:[_,s&&e(Che,{inline:h,children:e(Sn,{name:"close",onClick:l,pointer:!0})})]}))}),L=document.querySelector(r||"#root");return o&&L?T.createPortal(j,L):null};bhe.Header=se.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),bhe.Text=se.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),bhe.Body=se.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),wn),bhe.Footer=se.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),wn);const whe=se.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),bn),Che=se.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),xhe=se.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:c,zIndex:u})=>({position:i||"absolute",top:a||(c||l||s?void 0:0),left:c||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:u||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),She=t=>{var{trigger:r,children:o,content:i,position:a,offset:l=6,zIndex:s,width:c,maxWidth:u,textAlign:d,open:f,disabled:p,bgColor:h,color:g,isTriggerButton:m,inheritWidth:v,afterShow:y,afterHide:b}=t,w=j(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","bgColor","color","isTriggerButton","inheritWidth","afterShow","afterHide"]);const C=m?r:e(Dhe,{inheritWidth:v,children:r});return n(Cx,Object.assign({delay:0,onOpenChange:e=>{y&&e&&y(),b&&!e&&b()},isDisabled:p,isOpen:f},w,{children:[C,n(Ohe,{placement:a,offset:l,zIndex:s,width:c,maxWidth:u,textAlign:d,bgColor:h,textColor:g,children:[e(Pw,{children:e("svg",{width:8,height:8,viewBox:"0 0 8 8",children:e("path",{d:"M0 0 L4 4 L8 0"})})}),i||o]})]}))},khe=E({from:{transform:"var(--origin)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Ehe="300ms cubic-bezier(0.860, 0.000, 0.070, 1.000)",Ohe=se(Sx,{shouldForwardProp:e=>Ex(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,c=l.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& .react-aria-OverlayArrow svg":{display:"block",fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},"&[data-placement=top]":{"--origin":"translateY(4px)"},"&[data-placement=bottom]":{"--origin":"translateY(-4px)",boxShadow:"0px -1px 4px 2px rgba(0, 0, 0, 0.1)","& .react-aria-OverlayArrow svg":{transform:"rotate(180deg)"}},"&[data-placement=right]":{"--origin":"translateX(-4px)",boxShadow:"2px 0px 4px 2px rgba(0, 0, 0, 0.1)","& .react-aria-OverlayArrow svg":{transform:"rotate(90deg)",filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}},"&[data-placement=left]":{"--origin":"translateX(4px)",boxShadow:"-2px 0px 4px 2px rgba(0, 0, 0, 0.1)","& .react-aria-OverlayArrow svg":{transform:"rotate(-90deg)",filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}},"&[data-entering]":{animation:`${khe} ${Ehe}`},"&[data-exiting]":{animation:`${khe} ${Ehe} reverse`}}})),Dhe=se(Ux)((({inheritWidth:e})=>({width:e?"inherit":void 0,textAlign:e?"left":void 0}))),Phe=se.div((({theme:e})=>({color:e.tooltip.color.default}))),The=se.div((({theme:e})=>({color:e.tooltip.color.subtext})));She.Header=Phe,She.Body=The;const Ahe=t=>{var{children:r,id:o,value:i,iconLeft:a,iconRight:l,tooltip:s,removable:c,disabled:u,onRemove:d}=t,f=j(t,["children","id","value","iconLeft","iconRight","tooltip","removable","disabled","onRemove"]);const{scale10:p}=O(),h=r||i;return n(Mhe,Object.assign({id:o,disabled:u,rightIcon:!!(l||c&&!u)},f,{children:[a&&R2(a,{marginRight:4,size:"small"}),s?e(She,Object.assign({trigger:h,zIndex:100},s)):h,c&&!u&&e(Sn,{name:"close-circle",size:"small",marginLeft:4,pointer:!0,onClick:!u&&o?()=>{return e=o,void(d&&d(e));var e}:void 0,color:u?void 0:p,inheritColor:u}),l&&R2(l,{marginLeft:4,size:"small"})]}))},Mhe=se.div((({theme:e,disabled:t,invalid:n,rightIcon:r})=>({display:"flex",alignItems:"center",width:"max-content",color:t||n?e.scale4:e.scale10,cursor:"default",fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,fontFamily:e.font.family.default,borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t||n?e.scale0:e.scale1,"&:hover":{backgroundColor:t||n?void 0:e.scale2},"&:focus-visible":{outline:`${e.accent} solid 1px`,outlineOffset:-1}})),wn,bn),_he=s(((t,r)=>{var{options:o,items:a,triggerRef:s,placeholder:c,placeholderColor:u,fontSize:d,position:p,fixedPosition:h,maxHeight:g,disabled:m,accepts:v,addItem:y,removeItem:b,afterShow:w,afterHide:C,onTextChange:x,onValidChange:S}=t,k=j(t,["options","items","triggerRef","placeholder","placeholderColor","fontSize","position","fixedPosition","maxHeight","disabled","accepts","addItem","removeItem","afterShow","afterHide","onTextChange","onValidChange"]);const[E,O]=l(!1),[D,P]=l([]),[T,A]=l(""),[M,_]=l(!1),[L,R]=j2({value:T,placeholder:c,fontSize:d});i((()=>{if(a.length>0){const e=o.filter((e=>!a.some((t=>t.id===e.id))));P(e)}else P(o)}),[a]);const I=e=>{S&&S(e),_(!e)},N=f((()=>(e=>e.map((e=>"options"in e?e.options:e)).flat())(o)),[o]),$=()=>{if(E)return;if(!v||!T)return void A("");("function"==typeof v?v(T):rpe(T,v))?(y({id:T,value:T}),A(""),I(!0)):I(!1)};return n(jhe,Object.assign({onOpenChange:e=>{O(e),w&&e&&w(),C&&!e&&C()},menuTrigger:"focus",inputValue:T,onInputChange:e=>{x&&x(e),A(e),I(!0)},onSelectionChange:e=>{if(!e)return;const t=N.find((t=>t.id===e));t&&(y(t),A(""),I(!0))},onBlur:$,isDisabled:m,shouldFocusWrap:!0,selectedKey:"",allowsCustomValue:!!v},k,{children:[e(Rhe,{shake:M,children:e(_2,{placeholder:c,placeholderColor:u,fontSize:d,isDisabled:m,onKeyDown:e=>{const{key:t,target:n,altKey:r,ctrlKey:o,metaKey:i}=e,{value:l}=n;if(!(r||o||i)&&t)switch(t){case"Backspace":if(!l&&a.length>0){const e=a[a.length-1];b(e)}break;case"Enter":$()}},ref:r,width:L})}),e(R,{}),e(qx,{triggerRef:s,offset:2,placement:p,shouldFlip:!h&&void 0,maxHeight:g,children:({isEntering:t,isExiting:n})=>{var r;return e(i0,{options:D,width:null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.offsetWidth,readOnly:t||n})}})]}))})),jhe=se(Bw)({width:"auto"}),Lhe=E({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Rhe=se.div((({shake:e})=>({"& input":{animation:e?`${Lhe} .5s linear`:void 0}}))),Ihe=s(((r,o)=>{var{options:s,items:c,listLabel:u,listText:d,itemsTitle:f,maxItems:p,placeholder:h,width:m,accepts:v,disabled:y,hideItemsInfo:b,compact:w,backgroundColor:C,borderless:x,autoFocus:S,addItem:k,removeItem:E,onTextChange:D}=r,P=j(r,["options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","accepts","disabled","hideItemsInfo","compact","backgroundColor","borderless","autoFocus","addItem","removeItem","onTextChange"]);const[T,A]=l(S||!1),[M,_]=l(!1),{color:L,font:R,input:I}=O(),N=Et((()=>A(!1)),T),$=a(null),z=a(null),F=w&&!!u,B=()=>{const{current:e}=z;T||u||A(!0),null==e||e.focus()},K=()=>{const{current:e}=z;e&&e.blur()};g(o,(()=>({focus:B,blur:K})));i((()=>{T||K(),_(!1)}),[T]);const V=p?c.length>=p:void 0,H=y||V,U=()=>n(Fhe,{expanded:T,labeled:!!u,children:[d&&e(Bhe,{expanded:T,labeled:!!u,children:d}),c.map((t=>e(Ahe,Object.assign({},t,{removable:T,onRemove:()=>E(t),disabled:y}),t.id))),e(_he,{"aria-label":"MultiSelect search",options:s,items:c,triggerRef:$,placeholder:y||c.length>0?" ":h||"Search...",placeholderColor:I.color.placeholder,fontSize:R.size.md,addItem:k,removeItem:E,onTextChange:D,disabled:H,autoFocus:S,ref:z,accepts:v,onValidChange:e=>_(!e)})]});return n(Nhe,Object.assign({width:m,ref:N,labeled:!!u,disabled:y,collapse:F,onClick:e=>{e.stopPropagation(),B()}},P,{children:[n($he,{collapse:F,ref:$,expanded:T&&c.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:x,children:[u?e(zhe,{collapse:F,children:u}):U(),n(Khe,{children:[p&&!b&&e(Hhe,{children:n(t,y&&f?{children:[c.length," ",f]}:{children:[e(Vhe,{error:c.length>=p,children:c.length}),"/",p," ",f]})}),c.length>0&&e(Sn,{name:T?"chevron-up":"chevron-down",color:L.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!T)}})]})]}),u&&T&&U()]}))})),Nhe=se.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"})),wn),$he=se.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),zhe=se.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Fhe=se.div((({theme:e,expanded:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%",overflow:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,gap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),Bhe=se.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),Khe=se.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Vhe=se.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),Hhe=se.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),Uhe=e=>e?+e:0,Whe=t=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=t,c=j(t,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,d]=l(Uhe(o)||1),[f,p]=l(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,Uhe(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},v=0!==f,y=f!==g.length-1;return n(Zhe,Object.assign({width:s},c,{children:[e(Ghe,{disabled:1===u,onClick:()=>m(1),children:e(Sn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e(Ghe,{disabled:1===u,onClick:()=>m(u-1),children:e(Sn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((t,r,o)=>n(C,{children:[0===r&&v?e(Xhe,{children:"... "}):"",e(Yhe,{selected:t===u,onClick:()=>m(t),children:t}),r===o.length-1&&y?e(Xhe,{children:" ..."}):""]},`pageIndex-${t}`))),e(Ghe,{disabled:u===i,onClick:()=>m(u+1),children:e(Sn,{name:"chevron-right",title:"next",inheritColor:!0})}),e(Ghe,{disabled:u===i,onClick:()=>m(i),children:e(Sn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},Zhe=se.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),wn),qhe=se.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`,outlineOffset:-1}}))),Ghe=se(qhe)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),Yhe=se(qhe)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),Xhe=se.span((({theme:e})=>({color:e.scale6}))),Jhe=t=>{var{size:r=200,data:o,innerRadius:i,showWhenEmpty:a}=t,l=j(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==o?void 0:o.length)>0,c=s?o:a?[{name:"1",value:1,color:"#999"}]:void 0,u=r/2-1;return e(R1,Object.assign({width:r,height:r},l,{children:n(xQ,{width:r,height:r,children:[e(Fq,{dataKey:"value",data:c,innerRadius:i,outerRadius:u,children:null==c?void 0:c.map((t=>e(NR,{fill:t.color||"#999"},t.name)))}),s&&N1()]})}))},Qhe=({percent:t,size:r=24,thickness:o=2,color:i,margin:a,marginTop:l,marginBottom:s,marginRight:c,marginLeft:u})=>{const d={margin:a,marginTop:l,marginBottom:s,marginRight:c,marginLeft:u},f=(r-o)/2,p=f*Math.PI*2,h=p-p*t/100,g=r/2;return n(ege,Object.assign({size:r},d,{children:[e(tge,{cx:g,cy:g,r:f,thickness:o}),e(nge,{color:i,cx:g,cy:g,r:f,thickness:o,transform:`rotate(-90 ${g} ${g})`,circ:p,complete:h})]}))},ege=se.svg((({size:e})=>({display:"block",width:e,height:e})),wn),tge=se.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),nge=se(tge)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),rge=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e(Qhe,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e(oge,Object.assign({width:o,height:i||l},p,{children:e(ige,{color:n,width:h})}))},oge=se.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),wn),ige=se.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),age=se.div(yn),lge=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,sge=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(lge);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=lge(r)),void 0!==o&&(t.right=lge(o)),void 0!==i&&(t.bottom=lge(i)),void 0!==a&&(t.left=lge(a)),t},cge=d({}),uge=t=>{var{children:n,onClick:r,disabled:o,padding:a,paddingTop:l,paddingRight:s,paddingBottom:c,paddingLeft:u}=t,d=j(t,["children","onClick","disabled","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);const{setRowPadding:f}=p(cge);return i((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=a?a:l)&&void 0!==e?e:s)&&void 0!==t?t:c)&&void 0!==n?n:u)&&f){const e=sge({padding:a,paddingTop:l,paddingRight:s,paddingBottom:c,paddingLeft:u});f(e)}}),[a,l,s,c,u,f]),e(dge,Object.assign({isDisabled:o,onAction:r&&!o?r:void 0,hoverEffect:!!r&&!o},d,{children:n}))},dge=se(cx)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:void 0,backgroundColor:t,outline:"none",transition:"background-color 0.2s",position:"relative"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,emphasis:t})=>{let n;return!0===t?n=e.color.brand:"string"==typeof t&&(n=t),{height:"100%","& > td:first-of-type > div":{borderLeft:"2px solid transparent",borderLeftColor:n},"&:not(:first-of-type) > td > div":{borderTop:`1px solid ${e.table.borderColor}`},"&.fetching-row":{borderTop:`1px solid ${e.table.borderColor}`,"& > td > div":{borderTop:"none"}}}}),(({height:e})=>({height:e}))),fge=({spinnerSize:t})=>{const n="small"===t;return e(uge,{height:n?49:57,className:n?"fetching-row":void 0,children:e(pge,{children:e(Qx,{size:t,center:!0})})})},pge=se(ux)((({theme:e})=>({color:e.scale6}))),hge=se(sx)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),gge=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},mge=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:gge(t),alignItems:gge(n),flexDirection:e,width:"100%",height:"100%",gap:r}),bn],vge=se(ux)((({theme:e})=>({padding:0,outline:"none",outlineOffset:-1,"&:focus-visible":{outline:`${e.accent} solid 1px`}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o,parentPadding:i})=>{var a,l,s,c;const{top:u,right:d,bottom:f,left:p}=i||{};return{"& > div":{paddingTop:null!==(a=null!=t?t:u)&&void 0!==a?a:16,paddingBottom:null!==(l=null!=n?n:f)&&void 0!==l?l:16,paddingLeft:o,paddingRight:r,padding:e},"&:first-of-type > div":{paddingLeft:null!==(s=null!=o?o:void 0!==p?p-2:void 0)&&void 0!==s?s:24},"&:last-of-type > div":{paddingRight:null!==(c=null!=r?r:d)&&void 0!==c?c:24}}})),yge=se.div(mge,(({showDefault:e})=>e&&{"& > *":{opacity:.3}})),bge=se(lx)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),wge=({sortDirection:t})=>{const{color:r,scale4:o}=O(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return n("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},Cge=se(ox)((({theme:e,width:t,maxWidth:n,minWidth:r})=>({textAlign:"left",verticalAlign:"middle",color:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,padding:0,outline:"none",outlineOffset:-1,width:t||void 0,maxWidth:n||void 0,minWidth:r||void 0,"&:focus-visible":{outline:`${e.accent} solid 1px`}})),(({theme:e,padding:t,paddingTop:n,paddingBottom:r,paddingRight:o,paddingLeft:i,parentPadding:a})=>{var l,s,c,u;return{"& > div":{paddingTop:null!==(l=null!=n?n:null==a?void 0:a.top)&&void 0!==l?l:8,paddingBottom:null!==(s=null!=r?r:null==a?void 0:a.bottom)&&void 0!==s?s:8,paddingLeft:i,paddingRight:o,padding:t,borderBottom:`1px solid ${e.table.borderColor}`},"&:first-of-type > div":{paddingLeft:null!==(c=null!=i?i:null==a?void 0:a.left)&&void 0!==c?c:24},"&:last-of-type > div":{paddingRight:null!==(u=null!=o?o:null==a?void 0:a.right)&&void 0!==u?u:24}}})),xge=se.div(mge,(({theme:e,sorting:t,active:n})=>({"& > div:first-of-type, & > span":{cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,"&:hover":{color:t?e.scale8:void 0}}}))),Sge=se(nx)((({theme:e,backgroundColor:t})=>({position:"sticky",top:0,zIndex:1,"& > tr > th":{backgroundColor:t||e.background0}}))),kge=t=>{var{children:n,data:r,backgroundColor:o,maxHeight:a,resizable:s,onScrollEnd:c}=t,u=j(t,["children","data","backgroundColor","maxHeight","resizable","onScrollEnd"]);const[d,p]=l(r),[h,g]=l(),[m,v]=l(),[y,b]=l(),w=r&&"function"==typeof n?n(d):n;i((()=>{if(r){let e=r;if(h){const{key:t,dir:n}=h;e=lfe(r,[t],[n])}cn(e,d)||p(e)}}),[r,h]);const C=f((()=>({activeColumn:h,setActiveColumn:g,backgroundColor:o,headerPadding:m,rowPadding:y,setHeaderPadding:v,setRowPadding:b})),[h,g,o,m,y,v,b]);return e(cge.Provider,{value:C,children:e(Ege,{as:s?ZC:void 0,onScroll:c?e=>{const t=e.target,{scrollHeight:n,scrollTop:r,clientHeight:o}=t;n-r===o&&c&&c()}:void 0,backgroundColor:o,maxHeight:a,children:e(Oge,Object.assign({},u,{children:w}))})})};kge.Header=({children:t,backgroundColor:n,padding:r,paddingTop:o,paddingRight:a,paddingBottom:l,paddingLeft:s})=>{const{backgroundColor:c,setHeaderPadding:u}=p(cge);return i((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=r?r:o)&&void 0!==e?e:a)&&void 0!==t?t:l)&&void 0!==n?n:s)&&u){const e=sge({padding:r,paddingTop:o,paddingRight:a,paddingBottom:l,paddingLeft:s});u(e)}}),[r,o,a,l,s,u]),e(Sge,{backgroundColor:n||c,children:t})},kge.Column=t=>{var{children:r,sortKey:o,sorted:a,onClick:s,resize:c,direction:u,justify:d,align:f,gap:h}=t,g=j(t,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[m,v]=l(a||"inactive"),{activeColumn:y,setActiveColumn:b,headerPadding:w}=p(cge),C=o||a,x="asc"===m||"desc"===m,S={direction:u,justify:d,align:f,gap:h},k=e=>{if(v(e),b&&o){b("inactive"===e?void 0:{key:o,dir:e})}};i((()=>{!o||"asc"!==a&&"desc"!==a||k(a)}),[]),i((()=>{a&&v(a)}),[a]),i((()=>{const e=!y&&a;o&&y&&y.key!==o&&"inactive"!==m&&!e&&v("inactive")}),[y,m]);const E=C||s?e=>{o?k("inactive"===m?"asc":"asc"===m?"desc":"inactive"):s&&s(e)}:void 0;return e(Cge,Object.assign({parentPadding:w},g,{children:n(xge,Object.assign({sorting:!!C,active:x},S,{children:["string"==typeof r?e(hpe,{onClick:E,children:r}):r,C&&e("span",{"aria-hidden":"true",onClick:E,children:e(Sn,{svg:e(wge,{sortDirection:m}),marginLeft:-8})}),c&&e(bge,{})]}))}))},kge.Body=({children:t,emptyFallback:r,fetching:o,loading:i})=>n(hge,{renderEmptyState:({isEmpty:e})=>e&&r?r:null,children:[i&&e(fge,{}),!i&&t,o&&e(fge,{spinnerSize:"small"})]}),kge.Row=uge,kge.Cell=t=>{var{children:n,defaultValue:r,direction:o,justify:i,align:a,gap:l,clampLines:s}=t,c=j(t,["children","defaultValue","direction","justify","align","gap","clampLines"]);const{rowPadding:u}=p(cge),d={direction:o,justify:i,align:a,gap:l},f=n||r;return e(vge,Object.assign({parentPadding:u},c,{children:e(yge,Object.assign({showDefault:!!r&&!n},d,{children:"string"==typeof f?e(hpe,{paddingRight:2,clampLines:s,children:f}):f}))}))};const Ege=se.div((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",borderRadius:4,backgroundColor:t||e.background0}))),Oge=se(QC)({height:"fit-content",width:"100%"},wn,bn),Dge=t=>{var{items:r,activeItem:o,itemWidth:i,itemGap:a,onChange:l}=t,s=j(t,["items","activeItem","itemWidth","itemGap","onChange"]);const c=r.filter((e=>!1!==e.visible));return e(Pge,Object.assign({gap:a},s,{children:c.map((t=>{const{id:r,label:a,icon:s,iconColor:c,iconPosition:u}=t,d=j(t,["id","label","icon","iconColor","iconPosition"]);return n(Tge,Object.assign({active:r===o,itemWidth:i,reverse:"right"===u,onClick:()=>(e=>{l(e)})(t),gap:s?4:void 0},d,{children:[s&&e(Sn,{name:s,size:"small",color:c,inheritColor:!c}),a]}),r)}))}))},Pge=se.div((({gap:e=8})=>({display:"flex",gap:e})),wn),Tge=se.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"}))),Age=({items:t,onChange:r,beforeItemChange:o,listTitle:s,noItemsMessage:c="No items",hideSelectAll:u,hideRemoveAll:d,readOnly:f,width:p,margin:h,marginTop:g,marginBottom:m,marginRight:v,marginLeft:y})=>{const b=a(),[w,C]=l([]),[x,S]=l([]),k={margin:h,marginTop:g,marginBottom:m,marginRight:v,marginLeft:y},E=e=>{const t=Object.assign({},e);return delete t.selected,t};i((()=>{if(!cn(t,b.current)){b.current=t;const e=t.filter((e=>e.selected)).map(E),n=t.filter((e=>!e.selected)).map(E);S(e),C(n)}}),[t,b]),i((()=>{r(x)}),[x]);const O=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?S:C;(n?C:S)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},D=e=>{const t="select"===e?C:S,n="select"===e?w:x;("select"===e?S:C)((e=>[...e,...n])),t([])},P=t=>n("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?n("div",{style:{display:"flex",flexDirection:"column"},children:[e($ge,{children:t.header}),e(zge,{children:t.body})]}):t.label,t.rightElement&&e("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),T=!(u&&d);return n(Mge,Object.assign({width:p,readOnly:f},k,{children:[s&&e(_ge,{children:s}),n(jge,{children:[!f&&n(Lge,{children:[T&&e(Rge,{children:w.length>0&&!u&&e(hS,{small:!0,outline:!0,onClick:()=>D("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e(Ige,{children:w.map((t=>n(Nge,{onClick:()=>O(t,"select"),color:t.color,children:[P(t),e(Sn,{name:"chevron-right"})]},t.id)))})]}),n(Lge,{children:[T&&!f&&e(Rge,{children:x.length>0&&!d&&!f&&e(hS,{small:!0,outline:!0,secondary:!0,onClick:()=>D("remove"),icon:"arrow-left",children:"All"})}),f&&0===x.length?e("div",{children:c}):e(Ige,{children:x.map((t=>n(Nge,{onClick:()=>O(t,"remove"),color:t.color,children:[P(t),e(Sn,{name:"chevron-left"})]},t.id)))})]})]})]}))},Mge=se.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),wn),_ge=se.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),jge=se.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),Lge=se.div({display:"flex",flexDirection:"column"}),Rge=se.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Ige=se.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),Nge=se.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),$ge=se.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),zge=se.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Fge={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function l(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function f(e,t,n){function r(){u&&o&&i&&(u(c),u=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,c=null,u=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=l(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function m(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function S(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function k(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function E(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function D(){this.c={}}function P(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function T(e){s(e.c,"body",e.a)}function A(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function M(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function _(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new P(this.c,this.s),this.h=new P(this.c,this.s),this.j=new P(this.c,this.s),this.m=new P(this.c,this.s),e=A(e=new b(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=A(e=new b(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=A(e=new b("serif",C(this.a))),this.j.a.style.cssText=e,e=A(e=new b("sans-serif",C(this.a))),this.m.a.style.cssText=e,T(this.g),T(this.h),T(this.j),T(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},M.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var j={D:"serif",C:"sans-serif"},L=null;function R(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function I(e,t,n){for(var r in j)if(j.hasOwnProperty(r)&&t===e.f[j[r]]&&n===e.f[j[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&I(e,n,i)),t?o()-e.A>=e.w?R()&&I(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?$(e,e.v):$(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):$(e,e.v)}function $(e,t){setTimeout(r((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}_.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var F=null;function B(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):E(e.a))}function K(e){this.j=e,this.a=new D,this.h=0,this.f=this.g=!0}function V(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===n.length&&a)E(t.a);else{t.f+=n.length,a&&(t.j=a);var s,c=[];for(s=0;s<n.length;s++){var d=n[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,C(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===F)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new M(r(t.g,t),r(t.h,t),t.c,d,t.s,f):new _(r(t.g,t),r(t.h,t),t.c,d,t.s,e,f),c.push(p)}for(s=0;s<c.length;s++)c[s].start()}}),0)}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||Z,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,B(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),u(t.f,r,o)}O(t,"fontinactive",e),B(this)},K.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new z(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new k(this.c,e),e)},H.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new b(s,n))):a.push(new b(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},U.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],g(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),c=0;c<s.length;c+=1)l.push(new b(r[0],s[c]));else l.push(new b(r[0]));m(a,(function(){e(l,i)}))};var Z="https://fonts.googleapis.com/css";function q(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new q(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,c=0;c<s;c++){var u;if((u=l[c]).match(/^[\w-]+$/))if(null==(d=J.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":X[u],null==(d=d[1])||""==d)d="4";else var d=Y[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),m(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new b(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,S("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new K(window);re.a.c.custom=function(e,t){return new U(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new H(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(Fge);var Bge=ai(Fge.exports);const Kge=({families:t,fontFamily:n})=>(i((()=>{var e;e=t,Bge.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(D,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),Vge=()=>{const{scale1:t}=O();return e(D,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},Hge=()=>{const{font:t,toast:n}=O();return e(D,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},Uge="#0074F4",Wge="#FF6068",Zge="#FF9900",qge="#F0BB00",Gge="#00C242",Yge="#001D32",Xge="#FFFFFF",Jge={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Uge,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:kr(.95,Uge),brandTint1:kr(.9,Uge),brandTint2:kr(.8,Uge),brandTint3:kr(.7,Uge),brandTint4:kr(.6,Uge),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Wge,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:kr(.95,Wge),errorTint1:kr(.9,Wge),errorTint2:kr(.8,Wge),warning:Zge,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:kr(.95,Zge),warningTint1:kr(.9,Zge),warningTint2:kr(.8,Zge),alert:qge,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:kr(.95,qge),alertTint1:kr(.9,qge),alertTint2:kr(.8,qge),success:Gge,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:kr(.95,Gge),successTint1:kr(.9,Gge),successTint2:kr(.8,Gge),grayscale0:kr(.95,Yge),grayscale1:kr(.9,Yge),grayscale2:kr(.8,Yge),grayscale3:kr(.7,Yge),grayscale4:kr(.6,Yge),grayscale5:kr(.5,Yge),grayscale6:kr(.4,Yge),grayscale7:kr(.3,Yge),grayscale8:kr(.2,Yge),grayscale9:kr(.1,Yge),grayscale10:Yge,contrast0:kr(.95,Xge),contrast1:kr(.9,Xge),contrast2:kr(.8,Xge),contrast3:kr(.7,Xge),contrast4:kr(.6,Xge),contrast5:kr(.5,Xge),contrast6:kr(.4,Xge),contrast7:kr(.3,Xge),contrast8:kr(.2,Xge),contrast9:kr(.1,Xge),contrast10:Xge};var Qge={color:Jge,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:eme}=Qge;var tme={small:{height:28,iconSize:18,font:eme.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:eme.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:eme.size.lg,padding:14,iconOnlyPadding:6}};const nme="#FFFFFF",rme={scale0:Jge.grayscale0,scale1:Jge.grayscale1,scale2:Jge.grayscale2,scale3:Jge.grayscale3,scale4:Jge.grayscale4,scale5:Jge.grayscale5,scale6:Jge.grayscale6,scale7:Jge.grayscale7,scale8:Jge.grayscale8,scale9:Jge.grayscale9,scale10:Jge.grayscale10,accent:Jge.brand,accentShade:Jge.brandShade1,background0:nme,background1:nme,background2:nme,background3:nme,background4:nme,background5:nme},ome="#FFFFFF",ime=Jge.grayscale0,ame=Jge.grayscale1,lme=Jge.grayscale2,sme=Jge.grayscale3,cme=Jge.grayscale4,ume=Jge.grayscale6,dme=Jge.grayscale8,fme=Jge.grayscale9,pme=Jge.grayscale10,hme=Object.assign(Object.assign(Object.assign({},Qge),rme),{name:"light",button:Object.assign(Object.assign({},tme),{primary:{color:{default:ome,hover:ome,active:ome},outlineColor:{default:pme,hover:pme,active:pme},background:{default:Jge.brand,hover:Jge.brandShade1,active:Jge.brandShade2},outlineBackground:{default:Jge.brandTint0,hover:Jge.brandTint1,active:Jge.brandTint2},border:{default:Jge.brand,hover:Jge.brandShade1,active:Jge.brandShade2},divider:lme},secondary:{color:{default:pme,hover:pme,active:pme},outlineColor:{default:pme,hover:pme,active:pme},background:{default:ame,hover:lme,active:sme},outlineBackground:{default:ame,hover:lme,active:sme},border:{default:lme,hover:lme,active:lme},divider:lme},positive:{color:{default:ome,hover:ome,active:ome},outlineColor:{default:pme,hover:pme,active:pme},background:{default:Jge.success,hover:Jge.successShade1,active:Jge.successShade2},outlineBackground:{default:Jge.successTint0,hover:Jge.successTint1,active:Jge.successTint2},border:{default:Jge.success,hover:Jge.successShade1,active:Jge.successShade2},divider:lme},negative:{color:{default:ome,hover:ome,active:ome},outlineColor:{default:pme,hover:pme,active:pme},background:{default:Jge.error,hover:Jge.errorShade1,active:Jge.errorShade2},outlineBackground:{default:Jge.errorTint0,hover:Jge.errorTint1,active:Jge.errorTint2},border:{default:Jge.error,hover:Jge.errorShade1,active:Jge.errorShade2},divider:lme},caution:{color:{default:ome,hover:ome,active:ome},outlineColor:{default:pme,hover:pme,active:pme},background:{default:Jge.warning,hover:Jge.warningShade1,active:Jge.warningShade2},outlineBackground:{default:Jge.warningTint0,hover:Jge.warningTint1,active:Jge.warningTint2},border:{default:Jge.warning,hover:Jge.warningShade1,active:Jge.warningShade2},divider:lme},subtle:{color:{default:Jge.brand,hover:Jge.brand,active:Jge.brand},outlineColor:{default:Jge.brand,hover:Jge.brand,active:Jge.brand},secondaryColor:{default:pme,hover:pme,active:pme},positiveColor:{default:Jge.success,hover:Jge.success,active:Jge.success},negativeColor:{default:Jge.error,hover:Jge.error,active:Jge.error},cautionColor:{default:Jge.warning,hover:Jge.warning,active:Jge.warning},background:{default:"transparent",hover:ame,active:lme},outlineBackground:{default:"transparent",hover:ame,active:lme},border:{default:"transparent",hover:lme,active:lme},divider:lme},link:{color:{default:Jge.brand,hover:Jge.brandShade1,active:Jge.brandShade2},outlineColor:{default:Jge.brand,hover:Jge.brandShade1,active:Jge.brandShade2},secondaryColor:{default:dme,hover:fme,active:pme},positiveColor:{default:Jge.success,hover:Jge.successShade1,active:Jge.successShade2},negativeColor:{default:Jge.error,hover:Jge.errorShade1,active:Jge.errorShade2},cautionColor:{default:Jge.warning,hover:Jge.warningShade1,active:Jge.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:cme,hover:cme,active:cme},outlineColor:{default:cme,hover:cme,active:cme},background:{default:ame,hover:ame,active:ame},outlineBackground:{default:ime,hover:ime,active:ime},border:{default:ame,hover:ame,active:ame},divider:ame},color:{default:ome}}),calendar:{background:{container:Jge.contrast10,hover:ame,active:Jge.brand,activeHover:Jge.brandShade1,activeRange:Jge.brandTint4},color:{disabled:cme,default:pme,active:Jge.contrast10,current:Jge.brand,outside:ume,weekday:dme,monthYear:dme,iconDefault:ume,iconDisabled:lme,iconHover:pme}},defaultBorder:`1px solid ${ame}`,formControl:{color:{default:dme,hover:pme,active:Jge.brand,activeHover:Jge.brandShade1,disabled:cme}},input:{borderRadius:4,background:{default:ime,hover:ame,focused:ame,disabled:ime},color:{default:pme,disabled:cme,placeholder:ume,description:ume,descriptionError:Jge.error},borderColor:{default:ume,hover:dme,focused:Jge.brand,disabled:cme,error:Jge.error},labelColor:{default:dme,hover:dme,filled:ume,focused:Jge.brand,disabled:cme}},menu:{background:ome},menuItem:{borderColor:Jge.brand,background:{active:ime,hover:ame,inactive:"transparent"},color:{active:pme,hover:pme,inactive:ume}},modal:{background:Jge.contrast10,color:{header:pme,body:ume}},options:{background:Jge.contrast10,backdropFilter:void 0},optionItem:{background:{active:ame,inactive:"transparent"},color:{active:pme,inactive:pme,accent:Jge.brand}},table:{color:{header:ume,body:pme},borderColor:ame},toast:{color:pme,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:dme,info:Jge.brand,success:Jge.success,warning:Jge.warning,error:Jge.error}},toggle:{slider:Jge.contrast10},tooltip:{background:"#FFF",color:{default:pme,subtext:ume}}}),gme={scale0:Jge.contrast0,scale1:Jge.contrast1,scale2:Jge.contrast2,scale3:Jge.contrast3,scale4:Jge.contrast4,scale5:Jge.contrast5,scale6:Jge.contrast6,scale7:Jge.contrast7,scale8:Jge.contrast8,scale9:Jge.contrast9,scale10:Jge.contrast10,accent:Jge.brandDark,accentShade:Jge.brandDarkShade1,background0:Jge.brandBackground0,background1:Jge.brandBackground1,background2:Jge.brandBackground2,background3:Jge.brandBackground3,background4:Jge.brandBackground4,background5:Jge.brandBackground5},mme=Jge.contrast0,vme=Jge.contrast1,yme=Jge.contrast2,bme=Jge.contrast3,wme=Jge.contrast4,Cme=Jge.contrast6,xme=Jge.contrast8,Sme=Jge.contrast9,kme=Jge.contrast10,Eme=Jge.brandDark,Ome={light:hme,dark:Object.assign(Object.assign(Object.assign({},Qge),gme),{name:"dark",button:Object.assign(Object.assign({},tme),{primary:{color:{default:kme,hover:kme,active:kme},outlineColor:{default:kme,hover:kme,active:kme},background:{default:Jge.brand,hover:Jge.brandShade1,active:Jge.brandShade2},outlineBackground:{default:Jge.brandTint0,hover:Jge.brandTint1,active:Jge.brandTint2},border:{default:Jge.brand,hover:Jge.brandShade1,active:Jge.brandShade2},divider:yme},secondary:{color:{default:kme,hover:kme,active:kme},outlineColor:{default:kme,hover:kme,active:kme},background:{default:vme,hover:yme,active:bme},outlineBackground:{default:vme,hover:yme,active:bme},border:{default:yme,hover:yme,active:yme},divider:yme},positive:{color:{default:kme,hover:kme,active:kme},outlineColor:{default:kme,hover:kme,active:kme},background:{default:Jge.success,hover:Jge.successShade1,active:Jge.successShade2},outlineBackground:{default:Jge.successTint0,hover:Jge.successTint1,active:Jge.successTint2},border:{default:Jge.success,hover:Jge.successShade1,active:Jge.successShade2},divider:yme},negative:{color:{default:kme,hover:kme,active:kme},outlineColor:{default:kme,hover:kme,active:kme},background:{default:Jge.error,hover:Jge.errorShade1,active:Jge.errorShade2},outlineBackground:{default:Jge.errorTint0,hover:Jge.errorTint1,active:Jge.errorTint2},border:{default:Jge.error,hover:Jge.errorShade1,active:Jge.errorShade2},divider:yme},caution:{color:{default:kme,hover:kme,active:kme},outlineColor:{default:kme,hover:kme,active:kme},background:{default:Jge.warning,hover:Jge.warningShade1,active:Jge.warningShade2},outlineBackground:{default:Jge.warningTint0,hover:Jge.warningTint1,active:Jge.warningTint2},border:{default:Jge.warning,hover:Jge.warningShade1,active:Jge.warningShade2},divider:yme},subtle:{color:{default:Jge.brand,hover:Jge.brand,active:Jge.brand},outlineColor:{default:Jge.brand,hover:Jge.brand,active:Jge.brand},secondaryColor:{default:kme,hover:kme,active:kme},positiveColor:{default:Jge.success,hover:Jge.success,active:Jge.success},negativeColor:{default:Jge.error,hover:Jge.error,active:Jge.error},cautionColor:{default:Jge.warning,hover:Jge.warning,active:Jge.warning},background:{default:"transparent",hover:vme,active:yme},outlineBackground:{default:"transparent",hover:vme,active:yme},border:{default:"transparent",hover:yme,active:yme},divider:yme},link:{color:{default:Jge.brandShade2,hover:Jge.brandShade1,active:Jge.brand},outlineColor:{default:Jge.brandShade2,hover:Jge.brandShade1,active:Jge.brand},secondaryColor:{default:xme,hover:Sme,active:kme},positiveColor:{default:Jge.successShade2,hover:Jge.successShade1,active:Jge.success},negativeColor:{default:Jge.errorShade2,hover:Jge.errorShade1,active:Jge.error},cautionColor:{default:Jge.warningShade2,hover:Jge.warningShade1,active:Jge.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:wme,hover:wme,active:wme},outlineColor:{default:wme,hover:wme,active:wme},background:{default:vme,hover:vme,active:vme},outlineBackground:{default:mme,hover:mme,active:mme},border:{default:vme,hover:vme,active:vme},divider:vme},color:{default:"#FFFFFF"}}),calendar:{background:{container:Jge.brandBackground3,hover:vme,active:Jge.brand,activeHover:Jge.brandShade1,activeRange:Jge.brandTint4},color:{disabled:wme,default:kme,active:kme,current:Eme,outside:Cme,weekday:xme,monthYear:xme,iconDefault:Cme,iconDisabled:yme,iconHover:kme}},defaultBorder:`1px solid ${vme}`,formControl:{color:{default:xme,hover:kme,active:Jge.brand,activeHover:Jge.brandShade1,disabled:wme}},input:{borderRadius:4,background:{default:mme,hover:vme,focused:vme,disabled:mme},color:{default:kme,disabled:wme,placeholder:Cme,description:Cme,descriptionError:Jge.error},borderColor:{default:Cme,hover:xme,focused:Eme,disabled:wme,error:Jge.error},labelColor:{default:xme,hover:xme,filled:Cme,focused:Eme,disabled:wme}},menu:{background:Jge.brandBackground2},menuItem:{borderColor:Jge.brand,background:{active:mme,hover:vme,inactive:"transparent"},color:{active:kme,hover:kme,inactive:Cme}},modal:{background:Jge.brandBackground3,color:{header:kme,body:Cme}},options:{background:Jge.brandBackground2,backdropFilter:void 0},optionItem:{background:{active:vme,inactive:"transparent"},color:{active:kme,inactive:kme,accent:Eme}},table:{color:{header:Cme,body:kme},borderColor:vme},toast:{color:kme,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:xme,info:Jge.brand,success:Jge.success,warning:Jge.warning,error:Jge.error}},toggle:{slider:Jge.brandBackground0},tooltip:{background:Jge.brandBackground4,color:{default:kme,subtext:Cme}}})},Dme=({header:t="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:a="Okay",negative:s,input:c,inputLabel:u,inputPlaceholder:d,inputValue:f}={})=>{const[p,h]=l(f||""),[g,m]=l(null),v=()=>m(null);i((()=>{c&&"string"==typeof f&&p!==f&&h(f)}),[g]);const y=()=>{null==g||g.resolve(!c||p),v()},b=()=>{null==g||g.resolve(!1),v()};kt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":b()}}),!!g,[p]);return[()=>new Promise((e=>{m({resolve:e})})),()=>n(bhe,{visible:!!g,onClose:v,width:400,children:[t&&e(bhe.Header,{children:t}),r&&e(bhe.Text,{children:r}),c&&e(bhe.Body,{marginTop:4,marginBottom:8,children:e(Nfe,{autoFocus:!0,label:u,placeholder:d,value:p,onChange:({target:e})=>h(e.value)})}),n(bhe.Footer,{children:[e(hS,{secondary:!0,marginRight:8,onClick:b,children:o}),e(hS,{negative:s,onClick:y,children:a})]})]})]};export{On as Accordion,yS as Audio,V1 as BarChart,hS as Button,k0 as Calendar,_x as Checkbox,O2 as Code,K2 as ComboBox,F3 as CommandMenu,jpe as DatePicker,Fpe as DateRangePicker,Z3 as DocTable,bfe as DraftEditor,Xfe as Dropdown,Gx as DropdownMenu,lpe as DropdownSelect,hpe as Ellipsis,wpe as Form,gpe as Grid,Sn as Icon,kpe as ImageViewer,Tpe as InlineCode,Hpe as InlineInput,Nfe as Input,Yde as InputUtils,mpe as Label,ohe as LineChart,ihe as Menu,uhe as Message,ghe as MessageHr,bhe as Modal,Ihe as MultiSelect,SQ as Notification,Wpe as NumberInput,Vfe as Options,Whe as Pagination,Xpe as PhoneInput,Jhe as PieChart,rge as Progress,ype as Radio,Npe as RangeCalendar,Kge as ResetStyles,Vge as ScrollbarStyles,ope as SearchInput,h0 as Select,gS as Slider,age as Spacer,Qx as Spinner,kge as Table,Dge as Tabs,Ahe as Tag,Qpe as TextInput,the as TimeInput,Hge as ToastStyles,bpe as Toggle,She as Tooltip,Age as TransferList,Jge as colors,_1 as copyToClipboard,gme as darkScale,M1 as formatDate,rme as lightScale,wn as marginProps,j1 as numberWithCommas,bn as paddingProps,Cn as positionProps,Ome as theme,Dme as useConfirm,mn as useElementObserver,kt as useEventListener,Et as useOnClickOutside,vn as usePrevious,un as useSelect,Dt as useSelectAll,Ot as useWindowSize,yn as widthHeightProps};
4
+ */const Nfe=s(((t,r)=>{var{id:o,label:s,placeholder:c,placeholderColor:u,description:d,isLoading:f,search:p,phone:h,textOnly:m,iconLeft:v,iconRight:y,invalid:b,borderRadius:C,borderColor:x,backgroundColor:S,fontSize:k,width:E,height:D,margin:P,marginLeft:T,marginRight:A,marginTop:M,marginBottom:_,padding:L,paddingLeft:R,paddingRight:I,paddingTop:N,paddingBottom:$,containerRef:z,value:F,disabled:B,readOnly:K,preventFocus:V,pointer:H,hideControls:U,onChange:W,onClick:Z,onClear:q,onFocus:G,onBlur:Y}=t,X=j(t,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","hideControls","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:J,handleFocus:Q,handleBlur:ee}=Hde(G,Y,!V&&!K),te=a(null),{color:ne}=O(),[re,oe]=l(m?50:void 0),ie=a(null),ae={margin:P,marginTop:M,marginBottom:_,marginRight:A,marginLeft:T},le={padding:L,paddingTop:N,paddingBottom:$,paddingRight:I,paddingLeft:R};w((()=>{if(m&&(null==ie?void 0:ie.current)){const{current:e}=ie;F&&(e.innerHTML=F.toString().replace(/ /g,"&nbsp;"));const t=e.offsetWidth;"number"==typeof t&&oe(t+3)}}),[m,F,c,ie]);const se=m?F||c:F,ce=(!!F||"number"==typeof F)&&q&&!f;i((()=>{var e,t;if(h&&"string"==typeof F&&10===F.length&&F===Ife.normalize(F)){const{current:n}=te;if(n){const r=Ife.format(F),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[F]);const ue=()=>{J||Q()},de=()=>{J&&ee()},fe=()=>{ue(),(null==te?void 0:te.current)&&te.current.select()};g(r,(()=>({focus:ue,blur:de,hasFocus:J,select:fe}))),i((()=>{var e;J&&(null===(e=te.current)||void 0===e||e.focus())}),[J]);return n(Wde,Object.assign({ref:z,invalid:b,textOnly:m,borderRadius:C,borderColor:x,backgroundColor:S,width:E,height:D,focused:J,disabled:B,hasLabel:!!s,onClick:e=>{V||K||ue(),Z&&Z(e)},pointer:H,readOnly:K},ae,le,{children:[p&&e(Sn,{name:"search",marginRight:8,inheritColor:!0}),v&&R2(v,{marginRight:8}),n(Zde,{readOnly:K||V,children:[m&&e(Ffe,{ref:ie,fontSize:k,children:se}),s&&!m&&e(qde,{htmlFor:o||s,filled:Ude(F),focused:J,disabled:B,children:s}),e($fe,Object.assign({id:o||s,ref:te,value:F,placeholder:c,placeholderColor:u,onChange:e=>{if(h){const{value:t}=e.target,n=Ife.normalize(t);if(n.length>10)return;const r=Ife.format(n);W&&W(e,r,n)}else W&&W(e)},onFocus:Q,onBlur:ee,disabled:B,hide:!(Ude(F)||!s||J||m),width:re,fontSize:k,hideControls:U},X))]}),y&&R2(y),f&&e(Qx,{}),ce&&e(zfe,{onClick:q,children:e(Sn,{name:"close-circle-outline",color:ne.brand})}),d&&e(Gde,{invalid:b,children:d})]}))})),$fe=se.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:l,placeholderColor:s})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:l||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:s||t.color.placeholder,opacity:1}})),(({hideControls:e})=>e&&{"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0},"&[type=number]":{MozAppearance:"textfield"}})),zfe=se.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),Ffe=se.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Bfe=se("div",{shouldForwardProp:e=>Ex(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Kfe=se("div",{shouldForwardProp:e=>Ex(e,["selected","noSelect","contentPosition","color","accented","section"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const l=r?e.color.accent:e.color.inactive;return{color:i?t:n||l,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e})),(({theme:e,section:t})=>t&&{backgroundColor:e.scale0,padding:"0 16px",color:e.scale6,fontWeight:e.font.weight.medium,pointerEvents:"none","&:hover":{backgroundColor:e.scale0}})),Vfe=({id:t,children:n,containerRef:r,parentSelector:o,width:i,maxHeight:s=200,offsetY:c,offsetX:u,centerY:d,centerX:f,direction:p})=>{const[h,g]=l(),m=a(null);w((()=>{const{current:e}=r||m;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<s?n:s)+((r?u:c)||4))}}),[r,p]);const v=e(Hfe,{id:t,ref:r||m,offsetX:u,offsetY:c,width:i,maxHeight:s,centerY:d,centerX:f,optionsPosition:{direction:p,amount:h},children:n});if(o){const e=document.querySelector(o);return e?T.createPortal(v,e):v}return v};Vfe.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:l,color:s,accented:c,section:u}=t,d=j(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented","section"]);return e(Kfe,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,section:u,noSelect:u||a,contentPosition:l,color:s,accented:c,tabIndex:a?-1:0},d,{children:n}))};const Hfe=se(Bfe)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Ufe=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Wfe=r=>n(t,{children:[r.leftElement||null,r.header&&r.body?n("div",{style:{display:"flex",flexDirection:"column"},children:[e(qfe,{children:r.header}),e(Gfe,{children:r.body})]}):r.label,r.rightElement&&e("div",{style:{marginLeft:"auto"},children:r.rightElement})]}),Zfe=(t,n,r,o,i)=>{const{selected:a}=i,l=((t,n,r,o)=>{if(t&&t.length>0)return Ufe(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e(Vfe.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,section:"section"===t.type,children:Wfe(t)},t.id)}));return[]})(t,r,o,j(i,["selected"])),s=((e,t,n)=>e?Dfe(e).map((e=>e?c(e,{setValue:t,close:n}):null)):[])(n,r,o);return Dfe([...l,...s]).map(((e,t)=>e?c(e,{selected:a===t}):null))},qfe=se.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Gfe=se.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),Yfe=e=>u.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Xfe=t=>{var{onChange:r,onTextChange:o,afterShow:s,afterHide:c,onFocus:u,onBlur:d,onError:f,placeholder:p,placeholderColor:h,value:g,options:m,children:v,borderColor:y,backgroundColor:b,hideIcon:w,clearOnSelect:C,textOnly:x,width:S,height:k,isLoading:E,margin:D,marginTop:P,marginBottom:T,marginRight:A,marginLeft:M,label:_,id:L,name:R,trigger:I,centerY:N,centerX:$,offsetY:z,offsetX:F,direction:B,fontSize:K,description:V,disabled:H,invalid:U,search:W,filter:Z,restrictInput:q,inputRef:G,optionsParent:Y}=t,X=j(t,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[J,Q]=l(""),[ee,te]=l(""),[ne,re]=l(!1),[oe,ie]=l(!1),[ae,le]=l(!1),se=a(null),{input:ce}=O(),ue={margin:D,marginTop:P,marginBottom:T,marginRight:A,marginLeft:M},de=e=>{e&&e.stopPropagation(),!ne&&s&&s(),ne&&c&&c(),re((e=>!e))};i((()=>{var e;if(ne&&W){null===(e=(G||se).current)||void 0===e||e.focus()}}),[ne,W]),i((()=>{f&&f(ae)}),[ae]),i((()=>{o&&o(ee)}),[ee]);const fe=Et(de,ne,Y?[Y,`${Y} *`]:void 0),pe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},he=e=>{const t=ye().find((t=>{let n=pe(t.label,e);return!n&&"id"in t&&(n=pe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=pe(t.value,e)),n}));return t},ge=e=>"function"==typeof q?!q(e):q,me=e=>ve(null,e),ve=(e,t)=>{let n,o=!1;if("string"==typeof e){n=(e=>{if(ge(e))return he(e)||null;return{id:Lfe(),label:e,value:e}})(e);const t=ge(e);null===n&&t&&(o=!0)}else{if("section"===(null==e?void 0:e.type))return;n=e}ne&&de(t),Q((null==n?void 0:n.label)||""),r&&void 0!==n&&r(n),o?le(!0):(ae&&le(!1),C&&Q(""),te(""))};i((()=>{""!==g&&null!=g||me()}),[g]);const ye=()=>{const e=Dfe(v).map((e=>{const t=e;let n=t.props.displayText||"";return!_&&t.props.children&&(n=Yfe(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Ufe(m||[],{search:W,filter:Z,inputText:ee}),...e]},be={options:ye(),select:ve,open:de,close:de,searchText:W?ee:void 0,isOpen:ne,isFocused:oe},[we,Ce]=un(be),xe=Zfe(m||[],v,ve,de,{selected:we,search:W,filter:Z,inputText:ee}),Se=ne?"caret-up":"caret-down",ke=x&&!H?h||ce.color.default:void 0,Ee=j(X,["onClear","phone"]);return e(Jfe,Object.assign({textOnly:x,altTrigger:!!I,width:S,height:k,focused:oe,search:W},ue,{children:n(Qfe,{ref:fe,children:[I?e(epe,{id:L,onClick:de,tabIndex:0,onFocus:()=>ie(!0),onBlur:()=>ie(!1),children:I}):e(npe,{shake:ae,children:e(Nfe,Object.assign({},Ee,{ref:G||se,id:L,name:R,label:_,fontSize:K,pointer:!0,preventFocus:!W,value:ee||g||J,placeholder:p||"Select",placeholderColor:ke,iconRight:w||E?void 0:Se,borderColor:y,backgroundColor:b,isLoading:E,textOnly:x,description:V,disabled:H,invalid:ae||U,onClick:de,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(G||se).current)||void 0===t?void 0:t.hasFocus;W?(te(n),!ne&&r&&re(!0),ae&&le(!1)):n||me(e);const o=he(n),i=ge(n),a=""===n||i&&!r;o&&!(W&&(!i||r))?ve(o,e):W&&!a||me(e)},onFocus:e=>{ie(!0),u&&u(e)},onBlur:e=>{var t;if(ie(!1),d&&d(e),W&&ee&&e){const{relatedTarget:n}=e;(null===(t=null==Ce?void 0:Ce.current)||void 0===t?void 0:t.contains(n))||ve(ee,e)}}}))}),ne&&xe.length>0&&e(Vfe,{containerRef:Ce,parentSelector:Y,width:!I&&!x||Y?"100%":void 0,centerY:N,centerX:$,offsetY:z,offsetX:F,direction:B,children:xe})]})}))};Xfe.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:l,accented:s,onClick:c,id:u,section:d})=>e(Vfe.Item,{id:u,contentPosition:a,color:l,onClick:c?e=>{c&&c(e),o&&o()}:e=>{const o={id:u,label:n||Yfe(i)||"",value:t};r&&r(o,e)},accented:s,section:d,children:i});const Jfe=se.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),yn,wn),Qfe=se.div({position:"relative",width:"100%",height:"inherit"}),epe=se.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`,outlineOffset:-1}}))),tpe=E({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),npe=se.div((({shake:e})=>({"& input":{animation:e?`${tpe} .5s linear`:void 0}}))),rpe=(e,t,n)=>{if(!n)return;e.stopPropagation(),e.preventDefault();const{clipboardData:r}=e,o=((e,t)=>{if(!t||!e)return e;const n=new RegExp(t);let r="";for(const t of e)n.test(r+t)&&(r+=t);return r})(r.getData("text"),n);o&&t(o)},ope=(e,t)=>{if(!t||!e)return!0;return new RegExp(t).test(e)},ipe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:C,onInput:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const{color:k}=O(),[E,D]=l("");i((()=>{null!=o&&E!==o&&D(o)}),[o]);const P=e=>{ope(e,w)&&(D(e),C&&C(e))};return n(ape,Object.assign({value:E,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:P,onInput:x?e=>{const{value:t}=e.target;x&&ope(t,w)&&x(e)}:void 0,onPaste:e=>rpe(e,P,w)},S,{children:[c&&R2(c,{marginRight:8}),e(Sn,{name:"search",inheritColor:!0,marginRight:8}),n(t0,{filled:!!E,disabled:h,children:[a,e(_2,{ref:r,placeholder:s,hide:!(E||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e(Qx,{}),!!E&&!d&&e(Ux,{children:e(Sn,{name:"close-circle-outline",color:k.brand})}),e(X1,{description:y,errorMessage:b})]}))})),ape=se(RC)(Y1),lpe=(e,t)=>{const n=e=>{if(!e)return!1;const n=t.toLowerCase();return e.toString().toLowerCase().includes(n)};return e.reduce(((e,r)=>{if("options"in r){const n=lpe(r.options,t);n.length>0&&e.push(Object.assign(Object.assign({},r),{options:n}))}else{let t=n(r.value);!t&&"id"in r&&(t=n(r.id)),!t&&"body"in r&&(t=n(r.body)),!t&&"header"in r&&(t=n(r.header)),t&&e.push(r)}return e}),[])},spe=t=>{var{label:r,options:o,width:i,search:s,onChange:c}=t,u=j(t,["label","options","width","search","onChange"]);const[d,f]=l(new Set),[p,h]=l(!1),[g,m]=l(""),[v,y]=l(!1),[b,w]=l(!1),[C,x]=l(0),[S,k]=l("menu"),E=a(null),O=a(null),D=(e=>e.map((e=>"options"in e?e.options:e)).flat())(o),P=lpe(o,g),T=e=>{f(e);const t=D.length,n="all"===e||e.size===t,r=!n&&e.size>0;y(n),w(r),x(n?t:e.size);const o=n?D:D.filter((t=>e.has(t.id)));c&&c(o)};return n(cpe,Object.assign({width:i,ref:E,tabIndex:-1},u,{children:[n(fpe,{children:[e(_x,{partial:b,checked:v,onChange:()=>T(v?new Set:"all")}),e(dpe,{children:r})]}),n(fpe,{gap:8,children:[(b||v)&&e(ppe,{children:b?C:"All"}),n(fC,{onOpenChange:e=>{h(e),e||(m(""),k("menu"))},children:[e(Ux,{children:e(Sn,{name:p?"caret-up":"caret-down",inheritColor:!0})}),e(qx,{triggerRef:E,offset:2,children:({isEntering:t,isExiting:r})=>{var o;return n(upe,{width:i||(null===(o=null==E?void 0:E.current)||void 0===o?void 0:o.offsetWidth),readOnly:t||r,children:[s&&e(ipe,{value:g,onChange:m,placeholder:"Search",padding:"2px 4px",margin:8,minHeight:"unset",height:"auto",width:"auto",onFocus:()=>k("input"),onKeyDown:e=>{var t;"ArrowDown"!==e.key&&"ArrowUp"!==e.key||null===(t=O.current)||void 0===t||t.focus()}}),g&&0===P.length&&e(hpe,{children:"No results found"}),e(Hx,{options:P,selectionMode:"multiple",width:"100%",selectedKeys:d,onSelectionChange:T,autoFocus:"menu"===S,menuRef:O,itemProps:{checkbox:!0},readOnly:t||r})]})}})]})]})]}))},cpe=se.div(Y1),upe=se.div(Dx),dpe=se.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t}))),fpe=se.div((({gap:e})=>({display:"flex",alignItems:"center",gap:e||4}))),ppe=se.div((({theme:e})=>({color:e.scale10}))),hpe=se.div((({theme:e})=>({textAlign:"center",color:e.scale8,paddingTop:4,paddingBottom:8}))),gpe=se.div((({clampLines:e})=>({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:e?void 0:"nowrap",WebkitLineClamp:e,display:e?"-webkit-box":void 0,WebkitBoxOrient:e?"vertical":void 0,wordBreak:e?"break-word":void 0})),(({width:e})=>({width:e||"auto"})),bn,wn),mpe=se.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:l,justifyContent:s,justifyItems:c,width:u,height:d})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:l,justifyItems:c,alignContent:a,justifyContent:s,width:u,height:d})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),bn,wn);mpe.Item=se.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:l,justifySelf:s,placeSelf:c,border:u})),bn,wn);const vpe=e=>{var{children:t,iconLeft:r,iconRight:o,disabled:i,pill:a}=e,l=j(e,["children","iconLeft","iconRight","disabled","pill"]);return n(ype,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},l,{children:[r&&R2(r,{marginRight:4,size:"small"}),t,o&&R2(o,{marginLeft:4,size:"small"})]}))},ype=se.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),wn),bpe=t=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:l,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f}=t,p=j(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===i,g={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};return n(Tx,Object.assign({htmlFor:r,labelRight:h,disabled:l},g,{children:[o&&e(Mx,{children:o}),e(Ax,Object.assign({id:r,type:"radio",checked:a,disabled:l},p)),e(Sn,{name:"radio-button",marginLeft:o&&!h?8:0,marginRight:o&&h?8:0,pointer:!l})]}))},wpe=t=>{var{id:r,label:o,labelPosition:a,checked:s,disabled:c,onChange:u,margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g}=t,m=j(t,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,y]=l("toggle-off"),[b,w]=l(s||!1),C="right"===a,x={margin:d,marginTop:f,marginBottom:p,marginRight:h,marginLeft:g};return i((()=>{y(b?"toggle-on":"toggle-off")}),[b]),i((()=>{w("boolean"==typeof s?s:b)}),[s,b]),n(Tx,Object.assign({htmlFor:r,labelRight:C,disabled:c},x,{children:[o&&e(Mx,{children:o}),e(Ax,Object.assign({id:r,type:"checkbox",checked:b,disabled:c,onChange:()=>{const e=!b;w(e),u(e)}},m)),e(Sn,{name:v,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!c,size:40})]}))},Cpe=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:l}=t,s=j(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e(xpe,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{e.preventDefault(),l&&l(e)}},s,{children:n}))};Cpe.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:l}=t,s=j(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e(Spe,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:l},s,{children:n}))},Cpe.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=j(t,["children","inline","align","disabled"]);return e(kpe,Object.assign({},a,{inline:r,align:o,disabled:i,children:n}))},Cpe.Radio=bpe,Cpe.Toggle=wpe,Cpe.Checkbox=_x,Cpe.Label=vpe;const xpe=se(mpe)({boxSizing:"border-box"}),Spe=se(mpe)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),kpe=se.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"}),wn),Epe=({visible:t,close:r,images:o,startIndex:a,alt:s,maxWidth:c,maxHeight:u,opacity:d})=>{const[f,p]=l(a),h=Et(r,t,["#prev","#next","#prev *","#next *"]);i((()=>{p(a)}),[a]);const g=()=>p(f>0?f-1:o.length-1),m=()=>f<o.length-1?p(f+1):p(0),v=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),g();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),m();break;case"Escape":e.preventDefault(),r()}};return i((()=>{const e="undefined"==typeof window,n=e?()=>null:()=>window.removeEventListener("keydown",v);return t&&!e&&window.addEventListener("keydown",v),n}),[t,f]),t?n(Ope,{opacity:d,prevNext:o.length>1,children:[e(Dpe,{onClick:r,children:e(Sn,{name:"close",size:25,color:"white"})}),o.length>1&&e(Ppe,{id:"prev",onClick:g,children:e(Sn,{name:"chevron-left",size:35,color:"white"})}),e(Tpe,{ref:h,src:o[f],alt:s,maxWidth:c,maxHeight:u}),o.length>1&&e(Ppe,{next:!0,id:"next",onClick:m,children:e(Sn,{name:"chevron-right",size:35,color:"white"})})]}):null},Ope=se.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),Dpe=se.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),Ppe=se.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),Tpe=se.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),Ape=se.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),Mpe=se(Qw)((({theme:e,placeholderColor:t})=>({outline:"none",borderRadius:4,padding:"0 2px","&[data-focused]":{backgroundColor:e.calendar.background.activeRange},"&[data-placeholder]":{color:t||e.input.color.placeholder},'&[data-type="literal"]':{padding:0,color:t||e.input.color.placeholder},'&[data-type="dayPeriod"]':{textTransform:"lowercase"}}))),_pe=se(Ux)((({theme:{input:e},isDisabled:t})=>({color:t?e.labelColor.disabled:e.labelColor.default}))),jpe=b0(),Lpe=s(((t,r)=>{var{value:o,label:i,iconLeft:s,iconRight:c,loading:u,fontSize:d,placeholderColor:f,disabled:p,description:h,errorMessage:g,preventPast:m,preventFuture:v,onChange:y,afterShow:b,afterHide:w}=t,C=j(t,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:x}=a(o?C0(o):void 0),[S,k]=l(x),E=a(null),{min:O,max:D}=x0({past:m,future:v,rel:x||jpe}),P=e=>{const{year:t,month:n,day:r}=e,o=new lc(t,n,r);k(o);const i=w0(e);y&&y(i)},T=!(S||!i);return n(Rpe,Object.assign({value:S,hasLabel:!!i,isDisabled:p,minValue:O,maxValue:D,onChange:P,onOpenChange:e=>{b&&e&&b(),w&&!e&&w()},ref:E},C,{children:[s&&R2(s,{marginRight:8}),n(t0,{filled:!!S,disabled:p,children:[i,e(Ipe,{ref:r,hide:T,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e(Mpe,{placeholderColor:f,segment:t})})]}),e(_pe,{isDisabled:p,children:e(Sn,{size:18,name:"calendar",inheritColor:!0})}),c&&R2(c),u&&e(Qx,{}),e(X1,{description:h,errorMessage:g}),e(Mw,{triggerRef:E,children:e(Iw,{children:e(k0,{date:S?w0(S):void 0,onChange:e=>{P(C0(e))},preventPast:m,preventFuture:v})})})]}))})),Rpe=se(iC)(Y1),Ipe=se(Xw,A2)({display:"flex"},M2),Npe=b0(),$pe=t=>{var{startDate:r,endDate:o,onChange:i,preventPast:s,preventFuture:c,noShadow:u}=t,d=j(t,["startDate","endDate","onChange","preventPast","preventFuture","noShadow"]);const{current:f}=a(r?C0(r):Npe),{current:p}=a(o?C0(o):f),[h,g]=l(f),[m,v]=l(p),[y,b]=l(f),{min:w,max:C}=x0({past:s,future:c,rel:f});return n(zpe,Object.assign({value:{start:h,end:m},onChange:e=>{if(!e)return;const{start:t,end:n}=e,{year:r,month:o,day:a}=t,{year:l,month:s,day:c}=n,u=new lc(r,o,a);g(u);const d=new lc(l,s,c);v(d);const f=w0(t),p=w0(n);i&&i(f,p)},minValue:w,maxValue:C,noShadow:u,focusedValue:y,onFocusChange:b},d,{children:[e(g0,{date:y,setDate:b}),e(U1,{range:!0})]}))},zpe=se(Mb)(H1),Fpe=b0(),Bpe=s(((t,r)=>{var{startValue:o,endValue:i,label:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,description:g,errorMessage:m,preventPast:v,preventFuture:y,onChange:b,afterShow:w,afterHide:C}=t,x=j(t,["startValue","endValue","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","description","errorMessage","preventPast","preventFuture","onChange","afterShow","afterHide"]);const{current:S}=a(o?C0(o):void 0),{current:k}=a(i?C0(i):void 0),[E,O]=l(S),[D,P]=l(k),T=a(null),{min:A,max:M}=x0({past:v,future:y,rel:S||Fpe}),_=e=>{const{start:t,end:n}=e,{year:r,month:o,day:i}=t,{year:a,month:l,day:s}=n,c=new lc(r,o,i);O(c);const u=new lc(a,l,s);P(u);const d=w0(t),f=w0(n);b&&b(d,f)},L=!(!E&&!D),R=!(L||!s);return n(Kpe,Object.assign({value:E&&D?{start:E,end:D}:void 0,hasLabel:!!s,isDisabled:h,minValue:A,maxValue:M,onChange:_,onOpenChange:e=>{w&&e&&w(),C&&!e&&C()},ref:T},x,{children:[c&&R2(c,{marginRight:8}),n(t0,{filled:L,disabled:h,children:[s,n(Hpe,{fontSize:f,hide:R,isDisabled:h,children:[e(Vpe,{slot:"start",ref:r,fontSize:f,placeholderColor:p,isDisabled:h,children:t=>e(Mpe,{placeholderColor:p,segment:t})}),e("span",{"aria-hidden":"true",children:"–"}),e(Vpe,{slot:"end",fontSize:f,placeholderColor:p,isDisabled:h,children:t=>e(Mpe,{placeholderColor:p,segment:t})})]})]}),e(_pe,{isDisabled:h,children:e(Sn,{size:18,name:"calendar",inheritColor:!0})}),u&&R2(u),d&&e(Qx,{}),e(X1,{description:g,errorMessage:m}),e(Mw,{triggerRef:T,children:e(Iw,{children:e($pe,{startDate:E?w0(E):void 0,endDate:D?w0(D):void 0,onChange:(e,t)=>{const n=C0(e),r=C0(t);_({start:n,end:r})},preventPast:v,preventFuture:y})})})]}))})),Kpe=se(lC)(Y1),Vpe=se(Xw,A2)(M2,{display:"flex","&:first-of-type":{marginRight:0}}),Hpe=se(Ew,A2)((({theme:{input:e,font:t},hide:n,fontSize:r,isDisabled:o})=>({display:"flex",alignItems:"center",gap:4,"& > span":{color:o?e.color.disabled:e.color.default,fontSize:r||t.size.lg},"&:not(:focus):not(:focus-within)":{opacity:n?0:1,position:n?"absolute":void 0}}))),Upe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:C,onInput:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[k,E]=l(""),[O,D]=j2({value:k,placeholder:s,fontSize:f});i((()=>{null!=o&&k!==o&&E(o)}),[o]);const P=e=>{ope(e,w)&&(E(e),C&&C(e))};return n(Wpe,Object.assign({value:k,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:P,onInput:x?e=>{const{value:t}=e.target;x&&ope(t,w)&&x(e)}:void 0,onPaste:e=>rpe(e,P,w),textOnly:!0},S,{children:[c&&R2(c,{marginRight:8}),e(_2,{ref:r,placeholder:s,hide:!(k||!a),fontSize:f,placeholderColor:p,isDisabled:h,width:O}),e(D,{}),u&&R2(u),d&&e(Qx,{}),e(X1,{description:y,errorMessage:b})]}))})),Wpe=se(yx)(Y1),Zpe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,hideControls:w,separator:C=!0,onChange:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","hideControls","separator","onChange"]);const[k,E]=l(NaN);i((()=>{null!=o&&k!==o&&E(o)}),[o]);const O=!Number.isNaN(k)&&null!=k;return n(qpe,Object.assign({value:k,onChange:e=>{E(e),x&&x(e)},hasLabel:!!a,paddingRight:0,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,formatOptions:{useGrouping:C}},S,{children:[c&&R2(c,{marginRight:8}),n(t0,{filled:O,disabled:h,children:[a,e(_2,{ref:r,placeholder:s,hide:!(O||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e(Qx,{}),!w&&n(Gpe,{children:[e(Ype,{slot:"increment",isDisabled:h||g,children:e(Sn,{size:a?23.5:19.5,name:"caret-up",inheritColor:!0})}),e(Xpe,{}),e(Ype,{slot:"decrement",isDisabled:h||g,children:e(Sn,{size:a?23.5:19.5,name:"caret-down",inheritColor:!0})})]}),e(X1,{description:y,errorMessage:b})]}))})),qpe=se(_C)(Y1),Gpe=se.div((({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",borderLeft:e.defaultBorder,overflow:"hidden",borderTopRightRadius:4,borderBottomRightRadius:4}))),Ype=se(Ux)((({theme:e,isDisabled:t})=>({height:"100%",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",borderRadius:0,color:t?e.scale4:void 0,pointerEvents:t?"none":void 0,"&:hover":{backgroundColor:t?void 0:e.scale1},"&:active":{backgroundColor:e.scale0}}))),Xpe=se.div((({theme:e})=>({height:1,width:"100%",backgroundColor:e.scale1}))),Jpe=s(((t,r)=>{var{value:o,label:s,placeholder:c,iconLeft:u,iconRight:d,loading:f,fontSize:p,placeholderColor:h,disabled:m,readOnly:v,invalid:y,required:b,description:w,errorMessage:C,onChange:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[k,E]=l(""),O=a(null);g(r,(()=>O.current)),i((()=>{var e,t;if(null!=o&&k!==o){const n=Ife.normalize(o),r=Ife.format(n);E(r);const{current:i}=O;if(i&&o===Ife.normalize(o)){const n=new Event("change",{bubbles:!0}),{prototype:o}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(o,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(i,r),i.dispatchEvent(n)}}}),[o]);return n(Qpe,Object.assign({value:k,hasLabel:!!s,isDisabled:m,isReadOnly:v||f,isInvalid:y,isRequired:b,onChange:e=>{const t=Ife.normalize(e);if(t.length>10||e&&!t)return;const n=Ife.format(t);k!==n&&(E(n),x&&x(n,t))},type:"tel"},S,{children:[u&&R2(u,{marginRight:8}),n(t0,{filled:!!k,disabled:m,children:[s,e(_2,{ref:O,placeholder:c,hide:!(k||!s),fontSize:p,placeholderColor:h,isDisabled:m})]}),d&&R2(d),f&&e(Qx,{}),e(X1,{description:w,errorMessage:C})]}))})),Qpe=se(yx)(Y1),ehe=s(((t,r)=>{var{value:o,label:a,placeholder:s,iconLeft:c,iconRight:u,loading:d,fontSize:f,placeholderColor:p,disabled:h,readOnly:g,invalid:m,required:v,description:y,errorMessage:b,accepts:w,onChange:C,onInput:x}=t,S=j(t,["value","label","placeholder","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","accepts","onChange","onInput"]);const[k,E]=l("");i((()=>{null!=o&&k!==o&&E(o)}),[o]);const O=e=>{ope(e,w)&&(E(e),C&&C(e))};return n(the,Object.assign({value:k,hasLabel:!!a,isDisabled:h,isReadOnly:g||d,isInvalid:m,isRequired:v,onChange:O,onInput:x?e=>{const{value:t}=e.target;x&&ope(t,w)&&x(e)}:void 0,onPaste:e=>rpe(e,O,w)},S,{children:[c&&R2(c,{marginRight:8}),n(t0,{filled:!!k,disabled:h,children:[a,e(_2,{ref:r,placeholder:s,hide:!(k||!a),fontSize:f,placeholderColor:p,isDisabled:h})]}),u&&R2(u),d&&e(Qx,{}),e(X1,{description:y,errorMessage:b})]}))})),the=se(yx)(Y1),nhe=s(((t,r)=>{var{value:o,label:a,iconLeft:s,iconRight:c,loading:u,fontSize:d,placeholderColor:f,disabled:p,readOnly:h,invalid:g,required:m,description:v,errorMessage:y,onChange:b}=t,w=j(t,["value","label","iconLeft","iconRight","loading","fontSize","placeholderColor","disabled","readOnly","invalid","required","description","errorMessage","onChange"]);const[C,x]=l(o?Qs(o):null);i((()=>{if(o){`${null==C?void 0:C.hour}:${null==C?void 0:C.minute}`!==o&&x(Qs(o))}}),[o]);const S=!(C||!a);return n(rhe,Object.assign({value:C,hasLabel:!!a,isDisabled:p,isReadOnly:h||u,isInvalid:g,isRequired:m,onChange:e=>{const{hour:t,minute:n,second:r}=e,o=new cc(t,n,r);x(o),b&&b(e.toString())}},w,{children:[s&&R2(s,{marginRight:8}),n(t0,{filled:!!C,disabled:p,children:[a,e(ohe,{ref:r,hide:S,fontSize:d,placeholderColor:f,isDisabled:p,children:t=>e(Mpe,{placeholderColor:f,segment:t})})]}),c&&R2(c),u&&e(Qx,{}),e(X1,{description:v,errorMessage:y})]}))})),rhe=se(Zw)(Y1),ohe=se(Xw,A2)({display:"flex"},M2),ihe=t=>{var{data:r,legend:o,keys:i}=t,a=j(t,["data","legend","keys"]);const[s,c]=l(i),{scale2:u}=O();return n(R1,Object.assign({},a,{children:[e(L1,{}),e(IR,{width:"100%",height:"100%",children:n(wQ,{margin:{top:8,left:-14,right:5,bottom:-8},data:r,children:[e(eJ,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e(bJ,{stroke:u,dataKey:"name",tickMargin:4}),e(CJ,{stroke:u,tickMargin:4,tickFormatter:e=>MS(e)}),N1(),o&&e(yj,{content:e($1,{toggleData:i.length>1?e=>{c((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),s.map((({key:t,color:n,hidden:r},o)=>e(vJ,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]})})]}))},ahe=({vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,children:w})=>e(lhe,{vertical:t,width:n,height:r,padding:o,paddingTop:i,paddingBottom:a,paddingLeft:l,paddingRight:s,border:u,borderTop:d,borderBottom:f,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:m,borderBottomLeftRadius:v,borderBottomRightRadius:y,backgroundColor:b,role:"menu",children:w?Dfe(w).map((e=>e?c(e,{vertical:t,backgroundColor:b}):null)):null}),lhe=se.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:l,borderBottomLeftRadius:s,borderBottomRightRadius:c})),bn),she=se.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`,outlineOffset:-1}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),che=se.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),uhe=se.div({marginLeft:"auto",marginRight:8});ahe.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:l,indent:s=1})=>e(she,{vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:s,children:l}),ahe.Group=({label:t,defaultOpen:r,vertical:i,selected:a,disabled:s,contentPosition:u,onClick:d,id:f,children:p,indent:h=1,backgroundColor:g})=>{const[m,v]=l(r||a),y=e=>Dfe(e).map((e=>{if(o.isValidElement(e)){const t=e;return t.props.selected&&!m&&v(!0),Array.isArray(t.props.children)&&y(t.props.children),c(e,{vertical:i,indent:h+1,backgroundColor:g})}return null})),b=y(p),w=()=>v((e=>!e));return n(che,{backgroundColor:g,children:[n(she,{vertical:i,selected:a||!1,disabled:s,contentPosition:u,onClick:e=>{d?(d(e),m||w()):w()},id:f,role:"menuitem",indent:h,children:[t,e(uhe,{onClick:e=>{e.stopPropagation(),w()},children:e(Sn,{name:m?"chevron-up":"chevron-down",pointer:!0})})]}),m&&b]})};const dhe=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d,children:f})=>{const p=O(),{iconName:h,borderColor:g,backgroundColor:m}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:l,marginTop:s,marginBottom:c,marginRight:u,marginLeft:d};return n(hhe,Object.assign({borderColor:g,backgroundColor:m,width:a,showingClose:o},v,{children:[e(Sn,{name:h,style:{marginRight:10},color:g}),e(ghe,{children:r||f}),o&&e(Sn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},fhe=se.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),phe=se.div((({theme:e})=>({fontWeight:e.font.weight.default})));dhe.Header=fhe,dhe.Body=phe;const hhe=se.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),wn),ghe=se.div({width:"100%"}),mhe=({text:t,color:r,style:o})=>n(bhe,{children:[e(yhe,{}),e(vhe,{color:r,style:o,children:t}),e(yhe,{})]}),vhe=se.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),yhe=se.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),bhe=se.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),whe=({children:t,rootSelector:r,visible:o,width:i,height:a,onClose:l,closeIcon:s,preventOverlayClose:u,overlayBlur:d,overlayColor:f,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:C,left:x,padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D,zIndex:P})=>{const A=Et(u?()=>null:l,o),M={padding:S,paddingTop:k,paddingBottom:E,paddingRight:O,paddingLeft:D},_=Dfe(t).map((e=>e?c(e,{inline:h}):null)),j=e(She,{color:f,noOverlay:g,centerX:m,centerY:v,position:y,top:b,bottom:w,right:C,left:x,zIndex:P,blur:d,children:n(Che,Object.assign({ref:A,width:i,height:a,backgroundColor:p,small:h,noOverlay:g,centerX:m,centerY:v},M,{children:[_,s&&e(xhe,{inline:h,children:e(Sn,{name:"close",onClick:l,pointer:!0})})]}))}),L=document.querySelector(r||"#root");return o&&L?T.createPortal(j,L):null};whe.Header=se.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),whe.Text=se.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),whe.Body=se.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),wn),whe.Footer=se.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),wn);const Che=se.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),bn),xhe=se.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),She=se.div((({color:e,blur:t,noOverlay:n,centerX:r,centerY:o,position:i,top:a,bottom:l,right:s,left:c,zIndex:u})=>({position:i||"absolute",top:a||(c||l||s?void 0:0),left:c||(a||l||s?void 0:0),bottom:l,right:s,width:n&&!r?void 0:"100%",height:n&&!o?void 0:"100%",zIndex:u||100,backgroundColor:n?void 0:e||"rgba(0, 0, 0, 0.2)",backdropFilter:"number"==typeof t&&`blur(${t}px)`||!0===t&&"blur(5px)"||"none"}))),khe=t=>{var{trigger:r,children:o,content:i,position:a,offset:l=6,zIndex:s,width:c,maxWidth:u,textAlign:d,open:f,disabled:p,bgColor:h,color:g,isTriggerButton:m,inheritWidth:v,afterShow:y,afterHide:b}=t,w=j(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","bgColor","color","isTriggerButton","inheritWidth","afterShow","afterHide"]);const C=m?r:e(Phe,{inheritWidth:v,children:r});return n(Cx,Object.assign({delay:0,onOpenChange:e=>{y&&e&&y(),b&&!e&&b()},isDisabled:p,isOpen:f},w,{children:[C,n(Dhe,{placement:a,offset:l,zIndex:s,width:c,maxWidth:u,textAlign:d,bgColor:h,textColor:g,children:[e(Pw,{children:e("svg",{width:8,height:8,viewBox:"0 0 8 8",children:e("path",{d:"M0 0 L4 4 L8 0"})})}),i||o]})]}))},Ehe=E({from:{transform:"var(--origin)",opacity:0},to:{transform:"translateY(0)",opacity:1}}),Ohe="300ms cubic-bezier(0.860, 0.000, 0.070, 1.000)",Dhe=se(Sx,{shouldForwardProp:e=>Ex(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:l,font:s}=e,c=l.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||l.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& .react-aria-OverlayArrow svg":{display:"block",fill:u,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},"&[data-placement=top]":{"--origin":"translateY(4px)"},"&[data-placement=bottom]":{"--origin":"translateY(-4px)",boxShadow:"0px -1px 4px 2px rgba(0, 0, 0, 0.1)","& .react-aria-OverlayArrow svg":{transform:"rotate(180deg)"}},"&[data-placement=right]":{"--origin":"translateX(-4px)",boxShadow:"2px 0px 4px 2px rgba(0, 0, 0, 0.1)","& .react-aria-OverlayArrow svg":{transform:"rotate(90deg)",filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}},"&[data-placement=left]":{"--origin":"translateX(4px)",boxShadow:"-2px 0px 4px 2px rgba(0, 0, 0, 0.1)","& .react-aria-OverlayArrow svg":{transform:"rotate(-90deg)",filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}},"&[data-entering]":{animation:`${Ehe} ${Ohe}`},"&[data-exiting]":{animation:`${Ehe} ${Ohe} reverse`}}})),Phe=se(Ux)((({inheritWidth:e})=>({width:e?"inherit":void 0,textAlign:e?"left":void 0}))),The=se.div((({theme:e})=>({color:e.tooltip.color.default}))),Ahe=se.div((({theme:e})=>({color:e.tooltip.color.subtext})));khe.Header=The,khe.Body=Ahe;const Mhe=t=>{var{children:r,id:o,value:i,iconLeft:a,iconRight:l,tooltip:s,removable:c,disabled:u,onRemove:d}=t,f=j(t,["children","id","value","iconLeft","iconRight","tooltip","removable","disabled","onRemove"]);const{scale10:p}=O(),h=r||i;return n(_he,Object.assign({id:o,disabled:u,rightIcon:!!(l||c&&!u)},f,{children:[a&&R2(a,{marginRight:4,size:"small"}),s?e(khe,Object.assign({trigger:h,zIndex:100},s)):h,c&&!u&&e(Sn,{name:"close-circle",size:"small",marginLeft:4,pointer:!0,onClick:!u&&o?()=>{return e=o,void(d&&d(e));var e}:void 0,color:u?void 0:p,inheritColor:u}),l&&R2(l,{marginLeft:4,size:"small"})]}))},_he=se.div((({theme:e,disabled:t,invalid:n,rightIcon:r})=>({display:"flex",alignItems:"center",width:"max-content",color:t||n?e.scale4:e.scale10,cursor:"default",fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,fontFamily:e.font.family.default,borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t||n?e.scale0:e.scale1,"&:hover":{backgroundColor:t||n?void 0:e.scale2},"&:focus-visible":{outline:`${e.accent} solid 1px`,outlineOffset:-1}})),wn,bn),jhe=s(((t,r)=>{var{options:o,items:a,triggerRef:s,placeholder:c,placeholderColor:u,fontSize:d,position:p,fixedPosition:h,maxHeight:g,disabled:m,accepts:v,addItem:y,removeItem:b,afterShow:w,afterHide:C,onTextChange:x,onValidChange:S}=t,k=j(t,["options","items","triggerRef","placeholder","placeholderColor","fontSize","position","fixedPosition","maxHeight","disabled","accepts","addItem","removeItem","afterShow","afterHide","onTextChange","onValidChange"]);const[E,O]=l(!1),[D,P]=l([]),[T,A]=l(""),[M,_]=l(!1),[L,R]=j2({value:T,placeholder:c,fontSize:d});i((()=>{if(a.length>0){const e=o.filter((e=>!a.some((t=>t.id===e.id))));P(e)}else P(o)}),[a]);const I=e=>{S&&S(e),_(!e)},N=f((()=>(e=>e.map((e=>"options"in e?e.options:e)).flat())(o)),[o]),$=()=>{if(E)return;if(!v||!T)return void A("");("function"==typeof v?v(T):ope(T,v))?(y({id:T,value:T}),A(""),I(!0)):I(!1)};return n(Lhe,Object.assign({onOpenChange:e=>{O(e),w&&e&&w(),C&&!e&&C()},menuTrigger:"focus",inputValue:T,onInputChange:e=>{x&&x(e),A(e),I(!0)},onSelectionChange:e=>{if(!e)return;const t=N.find((t=>t.id===e));t&&(y(t),A(""),I(!0))},onBlur:$,isDisabled:m,shouldFocusWrap:!0,selectedKey:"",allowsCustomValue:!!v},k,{children:[e(Ihe,{shake:M,children:e(_2,{placeholder:c,placeholderColor:u,fontSize:d,isDisabled:m,onKeyDown:e=>{const{key:t,target:n,altKey:r,ctrlKey:o,metaKey:i}=e,{value:l}=n;if(!(r||o||i)&&t)switch(t){case"Backspace":if(!l&&a.length>0){const e=a[a.length-1];b(e)}break;case"Enter":$()}},ref:r,width:L})}),e(R,{}),e(qx,{triggerRef:s,offset:2,placement:p,shouldFlip:!h&&void 0,maxHeight:g,children:({isEntering:t,isExiting:n})=>{var r;return e(i0,{options:D,width:null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.offsetWidth,readOnly:t||n})}})]}))})),Lhe=se(Bw)({width:"auto"}),Rhe=E({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Ihe=se.div((({shake:e})=>({"& input":{animation:e?`${Rhe} .5s linear`:void 0}}))),Nhe=s(((r,o)=>{var{options:s,items:c,listLabel:u,listText:d,itemsTitle:f,maxItems:p,placeholder:h,width:m,accepts:v,disabled:y,hideItemsInfo:b,compact:w,backgroundColor:C,borderless:x,autoFocus:S,addItem:k,removeItem:E,onTextChange:D}=r,P=j(r,["options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","accepts","disabled","hideItemsInfo","compact","backgroundColor","borderless","autoFocus","addItem","removeItem","onTextChange"]);const[T,A]=l(S||!1),[M,_]=l(!1),{color:L,font:R,input:I}=O(),N=Et((()=>A(!1)),T),$=a(null),z=a(null),F=w&&!!u,B=()=>{const{current:e}=z;T||u||A(!0),null==e||e.focus()},K=()=>{const{current:e}=z;e&&e.blur()};g(o,(()=>({focus:B,blur:K})));i((()=>{T||K(),_(!1)}),[T]);const V=p?c.length>=p:void 0,H=y||V,U=()=>n(Bhe,{expanded:T,labeled:!!u,children:[d&&e(Khe,{expanded:T,labeled:!!u,children:d}),c.map((t=>e(Mhe,Object.assign({},t,{removable:T,onRemove:()=>E(t),disabled:y}),t.id))),e(jhe,{"aria-label":"MultiSelect search",options:s,items:c,triggerRef:$,placeholder:y||c.length>0?" ":h||"Search...",placeholderColor:I.color.placeholder,fontSize:R.size.md,addItem:k,removeItem:E,onTextChange:D,disabled:H,autoFocus:S,ref:z,accepts:v,onValidChange:e=>_(!e)})]});return n($he,Object.assign({width:m,ref:N,labeled:!!u,disabled:y,collapse:F,onClick:e=>{e.stopPropagation(),B()}},P,{children:[n(zhe,{collapse:F,ref:$,expanded:T&&c.length>0,error:M,labeled:!!u,backgroundColor:C,borderless:x,children:[u?e(Fhe,{collapse:F,children:u}):U(),n(Vhe,{children:[p&&!b&&e(Uhe,{children:n(t,y&&f?{children:[c.length," ",f]}:{children:[e(Hhe,{error:c.length>=p,children:c.length}),"/",p," ",f]})}),c.length>0&&e(Sn,{name:T?"chevron-up":"chevron-down",color:L.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!T)}})]})]}),u&&T&&U()]}))})),$he=se.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"})),wn),zhe=se.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),Fhe=se.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),Bhe=se.div((({theme:e,expanded:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%",overflow:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,gap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),Khe=se.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),Vhe=se.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),Hhe=se.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),Uhe=se.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),Whe=e=>e?+e:0,Zhe=t=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=t,c=j(t,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[u,d]=l(Whe(o)||1),[f,p]=l(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,Whe(a)||h.length),m=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),d(e),r(e)}},v=0!==f,y=f!==g.length-1;return n(qhe,Object.assign({width:s},c,{children:[e(Yhe,{disabled:1===u,onClick:()=>m(1),children:e(Sn,{name:"double-arrow-left",title:"first",inheritColor:!0})}),e(Yhe,{disabled:1===u,onClick:()=>m(u-1),children:e(Sn,{name:"chevron-left",title:"prev",inheritColor:!0})}),g[f].map(((t,r,o)=>n(C,{children:[0===r&&v?e(Jhe,{children:"... "}):"",e(Xhe,{selected:t===u,onClick:()=>m(t),children:t}),r===o.length-1&&y?e(Jhe,{children:" ..."}):""]},`pageIndex-${t}`))),e(Yhe,{disabled:u===i,onClick:()=>m(u+1),children:e(Sn,{name:"chevron-right",title:"next",inheritColor:!0})}),e(Yhe,{disabled:u===i,onClick:()=>m(i),children:e(Sn,{name:"double-arrow-right",title:"last",inheritColor:!0})})]}))},qhe=se.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),wn),Ghe=se.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`,outlineOffset:-1}}))),Yhe=se(Ghe)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),Xhe=se(Ghe)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),Jhe=se.span((({theme:e})=>({color:e.scale6}))),Qhe=t=>{var{size:r=200,data:o,innerRadius:i,showWhenEmpty:a}=t,l=j(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==o?void 0:o.length)>0,c=s?o:a?[{name:"1",value:1,color:"#999"}]:void 0,u=r/2-1;return e(R1,Object.assign({width:r,height:r},l,{children:n(xQ,{width:r,height:r,children:[e(Fq,{dataKey:"value",data:c,innerRadius:i,outerRadius:u,children:null==c?void 0:c.map((t=>e(NR,{fill:t.color||"#999"},t.name)))}),s&&N1()]})}))},ege=({percent:t,size:r=24,thickness:o=2,color:i,margin:a,marginTop:l,marginBottom:s,marginRight:c,marginLeft:u})=>{const d={margin:a,marginTop:l,marginBottom:s,marginRight:c,marginLeft:u},f=(r-o)/2,p=f*Math.PI*2,h=p-p*t/100,g=r/2;return n(tge,Object.assign({size:r},d,{children:[e(nge,{cx:g,cy:g,r:f,thickness:o}),e(rge,{color:i,cx:g,cy:g,r:f,thickness:o,transform:`rotate(-90 ${g} ${g})`,circ:p,complete:h})]}))},tge=se.svg((({size:e})=>({display:"block",width:e,height:e})),wn),nge=se.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),rge=se(nge)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),oge=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:l=8,margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f})=>{const p={margin:s,marginTop:c,marginBottom:u,marginRight:d,marginLeft:f};let h=t;return t>100?h=100:t<0&&(h=0),r?e(ege,Object.assign({percent:h,size:a,thickness:l,color:n},p)):e(ige,Object.assign({width:o,height:i||l},p,{children:e(age,{color:n,width:h})}))},ige=se.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,overflow:"hidden"})),wn),age=se.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,width:`${n}%`,height:"100%",transition:"width 0.5s"}))),lge=se.div(yn),sge=e=>"number"==typeof e?e:"string"==typeof e?parseInt(e.replace("px",""),10):0,cge=e=>{const t={top:0,right:0,bottom:0,left:0},{padding:n,paddingTop:r,paddingRight:o,paddingBottom:i,paddingLeft:a}=e;if(n){const e=("string"==typeof n?n:n.toString()).split(" ").map(sge);switch(e.length){case 1:t.top=t.right=t.bottom=t.left=e[0];break;case 2:t.top=t.bottom=e[0],t.right=t.left=e[1];break;case 3:t.top=e[0],t.right=t.left=e[1],t.bottom=e[2];break;case 4:t.top=e[0],t.right=e[1],t.bottom=e[2],t.left=e[3]}}return void 0!==r&&(t.top=sge(r)),void 0!==o&&(t.right=sge(o)),void 0!==i&&(t.bottom=sge(i)),void 0!==a&&(t.left=sge(a)),t},uge=d({}),dge=t=>{var{children:n,onClick:r,disabled:o,padding:a,paddingTop:l,paddingRight:s,paddingBottom:c,paddingLeft:u}=t,d=j(t,["children","onClick","disabled","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"]);const{setRowPadding:f}=p(uge);return i((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=a?a:l)&&void 0!==e?e:s)&&void 0!==t?t:c)&&void 0!==n?n:u)&&f){const e=cge({padding:a,paddingTop:l,paddingRight:s,paddingBottom:c,paddingLeft:u});f(e)}}),[a,l,s,c,u,f]),e(fge,Object.assign({isDisabled:o,onAction:r&&!o?r:void 0,hoverEffect:!!r&&!o},d,{children:n}))},fge=se(cx)((({theme:e,backgroundColor:t,isDisabled:n})=>({color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",opacity:n?.3:void 0,backgroundColor:t,outline:"none",transition:"background-color 0.2s",position:"relative"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"},"&:focus-visible":{backgroundColor:e.scale1}}),(({theme:e,emphasis:t})=>{let n;return!0===t?n=e.color.brand:"string"==typeof t&&(n=t),{height:"100%","& > td:first-of-type > div":{borderLeft:"2px solid transparent",borderLeftColor:n},"&:not(:first-of-type) > td > div":{borderTop:`1px solid ${e.table.borderColor}`},"&.fetching-row":{borderTop:`1px solid ${e.table.borderColor}`,"& > td > div":{borderTop:"none"}}}}),(({height:e})=>({height:e}))),pge=({spinnerSize:t})=>{const n="small"===t;return e(dge,{height:n?49:57,className:n?"fetching-row":void 0,children:e(hge,{children:e(Qx,{size:t,center:!0})})})},hge=se(ux)((({theme:e})=>({color:e.scale6}))),gge=se(sx)((({theme:e})=>({"&[data-empty]":{textAlign:"center",color:e.table.color.body,fontSize:e.font.size.sm,"& > tr:first-of-type > td:first-of-type":{paddingTop:16}}}))),mge=e=>{if(e)return"start"===e||"end"===e?`flex-${e}`:e},vge=[({direction:e,justify:t,align:n="center",gap:r=8})=>({display:"flex",justifyContent:mge(t),alignItems:mge(n),flexDirection:e,width:"100%",height:"100%",gap:r}),bn],yge=se(ux)((({theme:e})=>({padding:0,outline:"none",outlineOffset:-1,"&:focus-visible":{outline:`${e.accent} solid 1px`}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o,parentPadding:i})=>{var a,l,s,c;const{top:u,right:d,bottom:f,left:p}=i||{};return{"& > div":{paddingTop:null!==(a=null!=t?t:u)&&void 0!==a?a:16,paddingBottom:null!==(l=null!=n?n:f)&&void 0!==l?l:16,paddingLeft:o,paddingRight:r,padding:e},"&:first-of-type > div":{paddingLeft:null!==(s=null!=o?o:void 0!==p?p-2:void 0)&&void 0!==s?s:24},"&:last-of-type > div":{paddingRight:null!==(c=null!=r?r:d)&&void 0!==c?c:24}}})),bge=se.div(vge,(({showDefault:e})=>e&&{"& > *":{opacity:.3}})),wge=se(lx)((({theme:e})=>({width:9,height:18,backgroundColor:e.scale4,marginLeft:"auto",backgroundClip:"content-box",border:"4px transparent",borderStyle:"none solid","&[data-resizable-direction=both]":{cursor:"col-resize"},"&[data-resizable-direction=left]":{cursor:"e-resize"},"&[data-resizable-direction=right]":{cursor:"w-resize"},"&[data-focus-visible]":{backgroundColor:e.accent}}))),Cge=({sortDirection:t})=>{const{color:r,scale4:o}=O(),i="asc"===t?r.brand:o,a="desc"===t?r.brand:o;return n("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M8.71005 14.71L11.3001 17.3C11.6901 17.69 12.3201 17.69 12.7101 17.3L15.3001 14.71C15.9301 14.08 15.4801 13 14.5901 13H9.41005C8.52005 13 8.08005 14.08 8.71005 14.71Z",fill:a}),e("path",{d:"M8.71005 8.88253L11.3001 6.29253C11.6901 5.90253 12.3201 5.90253 12.7101 6.29253L15.3001 8.88253C15.9301 9.51253 15.4801 10.5925 14.5901 10.5925H9.41005C8.52005 10.5925 8.08005 9.51253 8.71005 8.88253Z",fill:i})]})},xge=se(ox)((({theme:e,width:t,maxWidth:n,minWidth:r})=>({textAlign:"left",verticalAlign:"middle",color:e.table.color.header,fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,padding:0,outline:"none",outlineOffset:-1,width:t||void 0,maxWidth:n||void 0,minWidth:r||void 0,"&:focus-visible":{outline:`${e.accent} solid 1px`}})),(({theme:e,padding:t,paddingTop:n,paddingBottom:r,paddingRight:o,paddingLeft:i,parentPadding:a})=>{var l,s,c,u;return{"& > div":{paddingTop:null!==(l=null!=n?n:null==a?void 0:a.top)&&void 0!==l?l:8,paddingBottom:null!==(s=null!=r?r:null==a?void 0:a.bottom)&&void 0!==s?s:8,paddingLeft:i,paddingRight:o,padding:t,borderBottom:`1px solid ${e.table.borderColor}`},"&:first-of-type > div":{paddingLeft:null!==(c=null!=i?i:null==a?void 0:a.left)&&void 0!==c?c:24},"&:last-of-type > div":{paddingRight:null!==(u=null!=o?o:null==a?void 0:a.right)&&void 0!==u?u:24}}})),Sge=se.div(vge,(({theme:e,sorting:t,active:n})=>({"& > div:first-of-type, & > span":{cursor:t?"pointer":void 0,color:n?e.scale10:e.table.color.header,"&:hover":{color:t?e.scale8:void 0}}}))),kge=se(nx)((({theme:e,backgroundColor:t})=>({position:"sticky",top:0,zIndex:1,"& > tr > th":{backgroundColor:t||e.background0}}))),Ege=t=>{var{children:n,data:r,backgroundColor:o,maxHeight:a,resizable:s,onScrollEnd:c}=t,u=j(t,["children","data","backgroundColor","maxHeight","resizable","onScrollEnd"]);const[d,p]=l(r),[h,g]=l(),[m,v]=l(),[y,b]=l(),w=r&&"function"==typeof n?n(d):n;i((()=>{if(r){let e=r;if(h){const{key:t,dir:n}=h;e=lfe(r,[t],[n])}cn(e,d)||p(e)}}),[r,h]);const C=f((()=>({activeColumn:h,setActiveColumn:g,backgroundColor:o,headerPadding:m,rowPadding:y,setHeaderPadding:v,setRowPadding:b})),[h,g,o,m,y,v,b]);return e(uge.Provider,{value:C,children:e(Oge,{as:s?ZC:void 0,onScroll:c?e=>{const t=e.target,{scrollHeight:n,scrollTop:r,clientHeight:o}=t;n-r===o&&c&&c()}:void 0,backgroundColor:o,maxHeight:a,children:e(Dge,Object.assign({},u,{children:w}))})})};Ege.Header=({children:t,backgroundColor:n,padding:r,paddingTop:o,paddingRight:a,paddingBottom:l,paddingLeft:s})=>{const{backgroundColor:c,setHeaderPadding:u}=p(uge);return i((()=>{var e,t,n;if(null!=(null!==(n=null!==(t=null!==(e=null!=r?r:o)&&void 0!==e?e:a)&&void 0!==t?t:l)&&void 0!==n?n:s)&&u){const e=cge({padding:r,paddingTop:o,paddingRight:a,paddingBottom:l,paddingLeft:s});u(e)}}),[r,o,a,l,s,u]),e(kge,{backgroundColor:n||c,children:t})},Ege.Column=t=>{var{children:r,sortKey:o,sorted:a,onClick:s,resize:c,direction:u,justify:d,align:f,gap:h}=t,g=j(t,["children","sortKey","sorted","onClick","resize","direction","justify","align","gap"]);const[m,v]=l(a||"inactive"),{activeColumn:y,setActiveColumn:b,headerPadding:w}=p(uge),C=o||a,x="asc"===m||"desc"===m,S={direction:u,justify:d,align:f,gap:h},k=e=>{if(v(e),b&&o){b("inactive"===e?void 0:{key:o,dir:e})}};i((()=>{!o||"asc"!==a&&"desc"!==a||k(a)}),[]),i((()=>{a&&v(a)}),[a]),i((()=>{const e=!y&&a;o&&y&&y.key!==o&&"inactive"!==m&&!e&&v("inactive")}),[y,m]);const E=C||s?e=>{o?k("inactive"===m?"asc":"asc"===m?"desc":"inactive"):s&&s(e)}:void 0;return e(xge,Object.assign({parentPadding:w},g,{children:n(Sge,Object.assign({sorting:!!C,active:x},S,{children:["string"==typeof r?e(gpe,{onClick:E,children:r}):r,C&&e("span",{"aria-hidden":"true",onClick:E,children:e(Sn,{svg:e(Cge,{sortDirection:m}),marginLeft:-8})}),c&&e(wge,{})]}))}))},Ege.Body=({children:t,emptyFallback:r,fetching:o,loading:i})=>n(gge,{renderEmptyState:({isEmpty:e})=>e&&r?r:null,children:[i&&e(pge,{}),!i&&t,o&&e(pge,{spinnerSize:"small"})]}),Ege.Row=dge,Ege.Cell=t=>{var{children:n,defaultValue:r,direction:o,justify:i,align:a,gap:l,clampLines:s}=t,c=j(t,["children","defaultValue","direction","justify","align","gap","clampLines"]);const{rowPadding:u}=p(uge),d={direction:o,justify:i,align:a,gap:l},f=n||r;return e(yge,Object.assign({parentPadding:u},c,{children:e(bge,Object.assign({showDefault:!!r&&!n},d,{children:"string"==typeof f?e(gpe,{paddingRight:2,clampLines:s,children:f}):f}))}))};const Oge=se.div((({theme:e,backgroundColor:t,maxHeight:n})=>({overflow:"auto",position:"relative",width:"100%",maxHeight:n||"100%",borderRadius:4,backgroundColor:t||e.background0}))),Dge=se(QC)({height:"fit-content",width:"100%"},wn,bn),Pge=t=>{var{items:r,activeItem:o,itemWidth:i,itemGap:a,onChange:l}=t,s=j(t,["items","activeItem","itemWidth","itemGap","onChange"]);const c=r.filter((e=>!1!==e.visible));return e(Tge,Object.assign({gap:a},s,{children:c.map((t=>{const{id:r,label:a,icon:s,iconColor:c,iconPosition:u}=t,d=j(t,["id","label","icon","iconColor","iconPosition"]);return n(Age,Object.assign({active:r===o,itemWidth:i,reverse:"right"===u,onClick:()=>(e=>{l(e)})(t),gap:s?4:void 0},d,{children:[s&&e(Sn,{name:s,size:"small",color:c,inheritColor:!c}),a]}),r)}))}))},Tge=se.div((({gap:e=8})=>({display:"flex",gap:e})),wn),Age=se.div((({theme:e,active:t,itemWidth:n="fill",reverse:r,gap:o})=>({display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:"center",alignItems:"center",gap:o,padding:"8px 16px",width:"fit"===n?"max-content":"100%",borderRadius:8,background:t?e.scale1:"transparent",border:"1px solid",borderColor:t?"transparent":e.scale0,color:t?e.scale10:e.scale6,fontSize:e.font.size.md,fontWeight:e.font.weight.medium,cursor:"pointer"}))),Mge=({items:t,onChange:r,beforeItemChange:o,listTitle:s,noItemsMessage:c="No items",hideSelectAll:u,hideRemoveAll:d,readOnly:f,width:p,margin:h,marginTop:g,marginBottom:m,marginRight:v,marginLeft:y})=>{const b=a(),[w,C]=l([]),[x,S]=l([]),k={margin:h,marginTop:g,marginBottom:m,marginRight:v,marginLeft:y},E=e=>{const t=Object.assign({},e);return delete t.selected,t};i((()=>{if(!cn(t,b.current)){b.current=t;const e=t.filter((e=>e.selected)).map(E),n=t.filter((e=>!e.selected)).map(E);S(e),C(n)}}),[t,b]),i((()=>{r(x)}),[x]);const O=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?S:C;(n?C:S)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},D=e=>{const t="select"===e?C:S,n="select"===e?w:x;("select"===e?S:C)((e=>[...e,...n])),t([])},P=t=>n("div",{style:{display:"flex",alignItems:"center",columnGap:8},children:[t.leftElement||null,t.header&&t.body?n("div",{style:{display:"flex",flexDirection:"column"},children:[e(zge,{children:t.header}),e(Fge,{children:t.body})]}):t.label,t.rightElement&&e("div",{style:{marginLeft:"auto"},children:t.rightElement})]}),T=!(u&&d);return n(_ge,Object.assign({width:p,readOnly:f},k,{children:[s&&e(jge,{children:s}),n(Lge,{children:[!f&&n(Rge,{children:[T&&e(Ige,{children:w.length>0&&!u&&e(hS,{small:!0,outline:!0,onClick:()=>D("select"),icon:"arrow-right",iconPosition:"right",children:"All"})}),e(Nge,{children:w.map((t=>n($ge,{onClick:()=>O(t,"select"),color:t.color,children:[P(t),e(Sn,{name:"chevron-right"})]},t.id)))})]}),n(Rge,{children:[T&&!f&&e(Ige,{children:x.length>0&&!d&&!f&&e(hS,{small:!0,outline:!0,secondary:!0,onClick:()=>D("remove"),icon:"arrow-left",children:"All"})}),f&&0===x.length?e("div",{children:c}):e(Nge,{children:x.map((t=>n($ge,{onClick:()=>O(t,"remove"),color:t.color,children:[P(t),e(Sn,{name:"chevron-left"})]},t.id)))})]})]})]}))},_ge=se.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),wn),jge=se.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),Lge=se.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),Rge=se.div({display:"flex",flexDirection:"column"}),Ige=se.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),Nge=se.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),$ge=se.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),zge=se.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),Fge=se.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var Bge={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function l(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function s(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function f(e,t,n){function r(){u&&o&&i&&(u(c),u=null)}t=l(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,c=null,u=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),s(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=l(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function m(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function C(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function S(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function k(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function E(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),u(e.f,n,r)}O(e,"inactive")}function O(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,C(n)):e.h[t]())}function D(){this.c={}}function P(e,t){this.c=e,this.f=t,this.a=l(this.c,"span",{"aria-hidden":"true"},this.f)}function T(e){s(e.c,"body",e.a)}function A(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function M(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function _(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new P(this.c,this.s),this.h=new P(this.c,this.s),this.j=new P(this.c,this.s),this.m=new P(this.c,this.s),e=A(e=new b(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=e,e=A(e=new b(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=e,e=A(e=new b("serif",C(this.a))),this.j.a.style.cssText=e,e=A(e=new b("sans-serif",C(this.a))),this.m.a.style.cssText=e,T(this.g),T(this.h),T(this.j),T(this.m)}y.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},M.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var j={D:"serif",C:"sans-serif"},L=null;function R(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function I(e,t,n){for(var r in j)if(j.hasOwnProperty(r)&&t===e.f[j[r]]&&n===e.f[j[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=R()&&I(e,n,i)),t?o()-e.A>=e.w?R()&&I(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?$(e,e.v):$(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):$(e,e.v)}function $(e,t){setTimeout(r((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}_.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var F=null;function B(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),O(e,"active")):E(e.a))}function K(e){this.j=e,this.a=new D,this.h=0,this.f=this.g=!0}function V(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,l=o||{};if(0===n.length&&a)E(t.a);else{t.f+=n.length,a&&(t.j=a);var s,c=[];for(s=0;s<n.length;s++){var d=n[s],f=l[d.c],p=t.a,h=d;if(p.g&&u(p.f,[p.a.c("wf",h.c,C(h).toString(),"loading")]),O(p,"fontloading",h),p=null,null===F)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);F=h?42<parseInt(h[1],10):!g}else F=!1;p=F?new M(r(t.g,t),r(t.h,t),t.c,d,t.s,f):new _(r(t.g,t),r(t.h,t),t.c,d,t.s,e,f),c.push(p)}for(s=0;s<c.length;s++)c[s].start()}}),0)}function H(e,t){this.c=e,this.a=t}function U(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||Z,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,C(e).toString(),"active")],[t.a.c("wf",e.c,C(e).toString(),"loading"),t.a.c("wf",e.c,C(e).toString(),"inactive")]),O(t,"fontactive",e),this.m=!0,B(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=d(t.f,t.a.c("wf",e.c,C(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,C(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,C(e).toString(),"inactive")),u(t.f,r,o)}O(t,"fontinactive",e),B(this)},K.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),O(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new z(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new k(this.c,e),e)},H.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new b(s,n))):a.push(new b(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},U.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)f(this.c,r[t],g(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),c=0;c<s.length;c+=1)l.push(new b(r[0],s[c]));else l.push(new b(r[0]));m(a,(function(){e(l,i)}))};var Z="https://fonts.googleapis.com/css";function q(e){this.f=e,this.a=[],this.c={}}var G={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new q(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,c=0;c<s;c++){var u;if((u=l[c]).match(/^[\w-]+$/))if(null==(d=J.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":X[u],null==(d=d[1])||""==d)d="4";else var d=Y[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),f(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),m(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new b(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,S("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new K(window);re.a.c.custom=function(e,t){return new U(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new H(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(Bge);var Kge=ai(Bge.exports);const Vge=({families:t,fontFamily:n})=>(i((()=>{var e;e=t,Kge.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[t]),e(D,{styles:{"html,body":{margin:0,fontFamily:n||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),Hge=()=>{const{scale1:t}=O();return e(D,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},Uge=()=>{const{font:t,toast:n}=O();return e(D,{styles:{".Toastify__toast":{color:n.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:n.color},".Toastify__toast--default":{background:n.background.deafult,border:`1px solid ${n.border.deafult}`},".Toastify__toast--info":{background:n.background.info,border:`1px solid ${n.border.info}`,"& .Toastify__toast-icon > svg":{fill:n.border.info}},".Toastify__toast--success":{background:n.background.success,border:`1px solid ${n.border.success}`,"& .Toastify__toast-icon > svg":{fill:n.border.success}},".Toastify__toast--warning":{background:n.background.warning,border:`1px solid ${n.border.warning}`,"& .Toastify__toast-icon > svg":{fill:n.border.warning}},".Toastify__toast--error":{background:n.background.error,border:`1px solid ${n.border.error}`,"& .Toastify__toast-icon > svg":{fill:n.border.error}},".Toastify__progress-bar--default":{background:n.border.deafult},".Toastify__progress-bar--info":{background:n.border.info},".Toastify__progress-bar--success":{background:n.border.success},".Toastify__progress-bar--warning":{background:n.border.warning},".Toastify__progress-bar--error":{background:n.border.error}}})},Wge="#0074F4",Zge="#FF6068",qge="#FF9900",Gge="#F0BB00",Yge="#00C242",Xge="#001D32",Jge="#FFFFFF",Qge={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:Wge,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:kr(.95,Wge),brandTint1:kr(.9,Wge),brandTint2:kr(.8,Wge),brandTint3:kr(.7,Wge),brandTint4:kr(.6,Wge),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Zge,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:kr(.95,Zge),errorTint1:kr(.9,Zge),errorTint2:kr(.8,Zge),warning:qge,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:kr(.95,qge),warningTint1:kr(.9,qge),warningTint2:kr(.8,qge),alert:Gge,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:kr(.95,Gge),alertTint1:kr(.9,Gge),alertTint2:kr(.8,Gge),success:Yge,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:kr(.95,Yge),successTint1:kr(.9,Yge),successTint2:kr(.8,Yge),grayscale0:kr(.95,Xge),grayscale1:kr(.9,Xge),grayscale2:kr(.8,Xge),grayscale3:kr(.7,Xge),grayscale4:kr(.6,Xge),grayscale5:kr(.5,Xge),grayscale6:kr(.4,Xge),grayscale7:kr(.3,Xge),grayscale8:kr(.2,Xge),grayscale9:kr(.1,Xge),grayscale10:Xge,contrast0:kr(.95,Jge),contrast1:kr(.9,Jge),contrast2:kr(.8,Jge),contrast3:kr(.7,Jge),contrast4:kr(.6,Jge),contrast5:kr(.5,Jge),contrast6:kr(.4,Jge),contrast7:kr(.3,Jge),contrast8:kr(.2,Jge),contrast9:kr(.1,Jge),contrast10:Jge};var eme={color:Qge,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:tme}=eme;var nme={small:{height:28,iconSize:18,font:tme.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:tme.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:tme.size.lg,padding:14,iconOnlyPadding:6}};const rme="#FFFFFF",ome={scale0:Qge.grayscale0,scale1:Qge.grayscale1,scale2:Qge.grayscale2,scale3:Qge.grayscale3,scale4:Qge.grayscale4,scale5:Qge.grayscale5,scale6:Qge.grayscale6,scale7:Qge.grayscale7,scale8:Qge.grayscale8,scale9:Qge.grayscale9,scale10:Qge.grayscale10,accent:Qge.brand,accentShade:Qge.brandShade1,background0:rme,background1:rme,background2:rme,background3:rme,background4:rme,background5:rme},ime="#FFFFFF",ame=Qge.grayscale0,lme=Qge.grayscale1,sme=Qge.grayscale2,cme=Qge.grayscale3,ume=Qge.grayscale4,dme=Qge.grayscale6,fme=Qge.grayscale8,pme=Qge.grayscale9,hme=Qge.grayscale10,gme=Object.assign(Object.assign(Object.assign({},eme),ome),{name:"light",button:Object.assign(Object.assign({},nme),{primary:{color:{default:ime,hover:ime,active:ime},outlineColor:{default:hme,hover:hme,active:hme},background:{default:Qge.brand,hover:Qge.brandShade1,active:Qge.brandShade2},outlineBackground:{default:Qge.brandTint0,hover:Qge.brandTint1,active:Qge.brandTint2},border:{default:Qge.brand,hover:Qge.brandShade1,active:Qge.brandShade2},divider:sme},secondary:{color:{default:hme,hover:hme,active:hme},outlineColor:{default:hme,hover:hme,active:hme},background:{default:lme,hover:sme,active:cme},outlineBackground:{default:lme,hover:sme,active:cme},border:{default:sme,hover:sme,active:sme},divider:sme},positive:{color:{default:ime,hover:ime,active:ime},outlineColor:{default:hme,hover:hme,active:hme},background:{default:Qge.success,hover:Qge.successShade1,active:Qge.successShade2},outlineBackground:{default:Qge.successTint0,hover:Qge.successTint1,active:Qge.successTint2},border:{default:Qge.success,hover:Qge.successShade1,active:Qge.successShade2},divider:sme},negative:{color:{default:ime,hover:ime,active:ime},outlineColor:{default:hme,hover:hme,active:hme},background:{default:Qge.error,hover:Qge.errorShade1,active:Qge.errorShade2},outlineBackground:{default:Qge.errorTint0,hover:Qge.errorTint1,active:Qge.errorTint2},border:{default:Qge.error,hover:Qge.errorShade1,active:Qge.errorShade2},divider:sme},caution:{color:{default:ime,hover:ime,active:ime},outlineColor:{default:hme,hover:hme,active:hme},background:{default:Qge.warning,hover:Qge.warningShade1,active:Qge.warningShade2},outlineBackground:{default:Qge.warningTint0,hover:Qge.warningTint1,active:Qge.warningTint2},border:{default:Qge.warning,hover:Qge.warningShade1,active:Qge.warningShade2},divider:sme},subtle:{color:{default:Qge.brand,hover:Qge.brand,active:Qge.brand},outlineColor:{default:Qge.brand,hover:Qge.brand,active:Qge.brand},secondaryColor:{default:hme,hover:hme,active:hme},positiveColor:{default:Qge.success,hover:Qge.success,active:Qge.success},negativeColor:{default:Qge.error,hover:Qge.error,active:Qge.error},cautionColor:{default:Qge.warning,hover:Qge.warning,active:Qge.warning},background:{default:"transparent",hover:lme,active:sme},outlineBackground:{default:"transparent",hover:lme,active:sme},border:{default:"transparent",hover:sme,active:sme},divider:sme},link:{color:{default:Qge.brand,hover:Qge.brandShade1,active:Qge.brandShade2},outlineColor:{default:Qge.brand,hover:Qge.brandShade1,active:Qge.brandShade2},secondaryColor:{default:fme,hover:pme,active:hme},positiveColor:{default:Qge.success,hover:Qge.successShade1,active:Qge.successShade2},negativeColor:{default:Qge.error,hover:Qge.errorShade1,active:Qge.errorShade2},cautionColor:{default:Qge.warning,hover:Qge.warningShade1,active:Qge.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:ume,hover:ume,active:ume},outlineColor:{default:ume,hover:ume,active:ume},background:{default:lme,hover:lme,active:lme},outlineBackground:{default:ame,hover:ame,active:ame},border:{default:lme,hover:lme,active:lme},divider:lme},color:{default:ime}}),calendar:{background:{container:Qge.contrast10,hover:lme,active:Qge.brand,activeHover:Qge.brandShade1,activeRange:Qge.brandTint4},color:{disabled:ume,default:hme,active:Qge.contrast10,current:Qge.brand,outside:dme,weekday:fme,monthYear:fme,iconDefault:dme,iconDisabled:sme,iconHover:hme}},defaultBorder:`1px solid ${lme}`,formControl:{color:{default:fme,hover:hme,active:Qge.brand,activeHover:Qge.brandShade1,disabled:ume}},input:{borderRadius:4,background:{default:ame,hover:lme,focused:lme,disabled:ame},color:{default:hme,disabled:ume,placeholder:dme,description:dme,descriptionError:Qge.error},borderColor:{default:dme,hover:fme,focused:Qge.brand,disabled:ume,error:Qge.error},labelColor:{default:fme,hover:fme,filled:dme,focused:Qge.brand,disabled:ume}},menu:{background:ime},menuItem:{borderColor:Qge.brand,background:{active:ame,hover:lme,inactive:"transparent"},color:{active:hme,hover:hme,inactive:dme}},modal:{background:Qge.contrast10,color:{header:hme,body:dme}},options:{background:Qge.contrast10,backdropFilter:void 0},optionItem:{background:{active:lme,inactive:"transparent"},color:{active:hme,inactive:hme,accent:Qge.brand}},table:{color:{header:dme,body:hme},borderColor:lme},toast:{color:hme,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:fme,info:Qge.brand,success:Qge.success,warning:Qge.warning,error:Qge.error}},toggle:{slider:Qge.contrast10},tooltip:{background:"#FFF",color:{default:hme,subtext:dme}}}),mme={scale0:Qge.contrast0,scale1:Qge.contrast1,scale2:Qge.contrast2,scale3:Qge.contrast3,scale4:Qge.contrast4,scale5:Qge.contrast5,scale6:Qge.contrast6,scale7:Qge.contrast7,scale8:Qge.contrast8,scale9:Qge.contrast9,scale10:Qge.contrast10,accent:Qge.brandDark,accentShade:Qge.brandDarkShade1,background0:Qge.brandBackground0,background1:Qge.brandBackground1,background2:Qge.brandBackground2,background3:Qge.brandBackground3,background4:Qge.brandBackground4,background5:Qge.brandBackground5},vme=Qge.contrast0,yme=Qge.contrast1,bme=Qge.contrast2,wme=Qge.contrast3,Cme=Qge.contrast4,xme=Qge.contrast6,Sme=Qge.contrast8,kme=Qge.contrast9,Eme=Qge.contrast10,Ome=Qge.brandDark,Dme={light:gme,dark:Object.assign(Object.assign(Object.assign({},eme),mme),{name:"dark",button:Object.assign(Object.assign({},nme),{primary:{color:{default:Eme,hover:Eme,active:Eme},outlineColor:{default:Eme,hover:Eme,active:Eme},background:{default:Qge.brand,hover:Qge.brandShade1,active:Qge.brandShade2},outlineBackground:{default:Qge.brandTint0,hover:Qge.brandTint1,active:Qge.brandTint2},border:{default:Qge.brand,hover:Qge.brandShade1,active:Qge.brandShade2},divider:bme},secondary:{color:{default:Eme,hover:Eme,active:Eme},outlineColor:{default:Eme,hover:Eme,active:Eme},background:{default:yme,hover:bme,active:wme},outlineBackground:{default:yme,hover:bme,active:wme},border:{default:bme,hover:bme,active:bme},divider:bme},positive:{color:{default:Eme,hover:Eme,active:Eme},outlineColor:{default:Eme,hover:Eme,active:Eme},background:{default:Qge.success,hover:Qge.successShade1,active:Qge.successShade2},outlineBackground:{default:Qge.successTint0,hover:Qge.successTint1,active:Qge.successTint2},border:{default:Qge.success,hover:Qge.successShade1,active:Qge.successShade2},divider:bme},negative:{color:{default:Eme,hover:Eme,active:Eme},outlineColor:{default:Eme,hover:Eme,active:Eme},background:{default:Qge.error,hover:Qge.errorShade1,active:Qge.errorShade2},outlineBackground:{default:Qge.errorTint0,hover:Qge.errorTint1,active:Qge.errorTint2},border:{default:Qge.error,hover:Qge.errorShade1,active:Qge.errorShade2},divider:bme},caution:{color:{default:Eme,hover:Eme,active:Eme},outlineColor:{default:Eme,hover:Eme,active:Eme},background:{default:Qge.warning,hover:Qge.warningShade1,active:Qge.warningShade2},outlineBackground:{default:Qge.warningTint0,hover:Qge.warningTint1,active:Qge.warningTint2},border:{default:Qge.warning,hover:Qge.warningShade1,active:Qge.warningShade2},divider:bme},subtle:{color:{default:Qge.brand,hover:Qge.brand,active:Qge.brand},outlineColor:{default:Qge.brand,hover:Qge.brand,active:Qge.brand},secondaryColor:{default:Eme,hover:Eme,active:Eme},positiveColor:{default:Qge.success,hover:Qge.success,active:Qge.success},negativeColor:{default:Qge.error,hover:Qge.error,active:Qge.error},cautionColor:{default:Qge.warning,hover:Qge.warning,active:Qge.warning},background:{default:"transparent",hover:yme,active:bme},outlineBackground:{default:"transparent",hover:yme,active:bme},border:{default:"transparent",hover:bme,active:bme},divider:bme},link:{color:{default:Qge.brandShade2,hover:Qge.brandShade1,active:Qge.brand},outlineColor:{default:Qge.brandShade2,hover:Qge.brandShade1,active:Qge.brand},secondaryColor:{default:Sme,hover:kme,active:Eme},positiveColor:{default:Qge.successShade2,hover:Qge.successShade1,active:Qge.success},negativeColor:{default:Qge.errorShade2,hover:Qge.errorShade1,active:Qge.error},cautionColor:{default:Qge.warningShade2,hover:Qge.warningShade1,active:Qge.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:Cme,hover:Cme,active:Cme},outlineColor:{default:Cme,hover:Cme,active:Cme},background:{default:yme,hover:yme,active:yme},outlineBackground:{default:vme,hover:vme,active:vme},border:{default:yme,hover:yme,active:yme},divider:yme},color:{default:"#FFFFFF"}}),calendar:{background:{container:Qge.brandBackground3,hover:yme,active:Qge.brand,activeHover:Qge.brandShade1,activeRange:Qge.brandTint4},color:{disabled:Cme,default:Eme,active:Eme,current:Ome,outside:xme,weekday:Sme,monthYear:Sme,iconDefault:xme,iconDisabled:bme,iconHover:Eme}},defaultBorder:`1px solid ${yme}`,formControl:{color:{default:Sme,hover:Eme,active:Qge.brand,activeHover:Qge.brandShade1,disabled:Cme}},input:{borderRadius:4,background:{default:vme,hover:yme,focused:yme,disabled:vme},color:{default:Eme,disabled:Cme,placeholder:xme,description:xme,descriptionError:Qge.error},borderColor:{default:xme,hover:Sme,focused:Ome,disabled:Cme,error:Qge.error},labelColor:{default:Sme,hover:Sme,filled:xme,focused:Ome,disabled:Cme}},menu:{background:Qge.brandBackground2},menuItem:{borderColor:Qge.brand,background:{active:vme,hover:yme,inactive:"transparent"},color:{active:Eme,hover:Eme,inactive:xme}},modal:{background:Qge.brandBackground3,color:{header:Eme,body:xme}},options:{background:Qge.brandBackground2,backdropFilter:void 0},optionItem:{background:{active:yme,inactive:"transparent"},color:{active:Eme,inactive:Eme,accent:Ome}},table:{color:{header:xme,body:Eme},borderColor:yme},toast:{color:Eme,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:Sme,info:Qge.brand,success:Qge.success,warning:Qge.warning,error:Qge.error}},toggle:{slider:Qge.brandBackground0},tooltip:{background:Qge.brandBackground4,color:{default:Eme,subtext:xme}}})},Pme=({header:t="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:a="Okay",negative:s,input:c,inputLabel:u,inputPlaceholder:d,inputValue:f}={})=>{const[p,h]=l(f||""),[g,m]=l(null),v=()=>m(null);i((()=>{c&&"string"==typeof f&&p!==f&&h(f)}),[g]);const y=()=>{null==g||g.resolve(!c||p),v()},b=()=>{null==g||g.resolve(!1),v()};kt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":b()}}),!!g,[p]);return[()=>new Promise((e=>{m({resolve:e})})),()=>n(whe,{visible:!!g,onClose:v,width:400,children:[t&&e(whe.Header,{children:t}),r&&e(whe.Text,{children:r}),c&&e(whe.Body,{marginTop:4,marginBottom:8,children:e(Nfe,{autoFocus:!0,label:u,placeholder:d,value:p,onChange:({target:e})=>h(e.value)})}),n(whe.Footer,{children:[e(hS,{secondary:!0,marginRight:8,onClick:b,children:o}),e(hS,{negative:s,onClick:y,children:a})]})]})]};export{On as Accordion,yS as Audio,V1 as BarChart,hS as Button,k0 as Calendar,_x as Checkbox,O2 as Code,K2 as ComboBox,F3 as CommandMenu,Lpe as DatePicker,Bpe as DateRangePicker,Z3 as DocTable,bfe as DraftEditor,Xfe as Dropdown,Gx as DropdownMenu,spe as DropdownSelect,gpe as Ellipsis,Cpe as Form,mpe as Grid,Sn as Icon,Epe as ImageViewer,Ape as InlineCode,Upe as InlineInput,Nfe as Input,Yde as InputUtils,vpe as Label,ihe as LineChart,ahe as Menu,dhe as Message,mhe as MessageHr,whe as Modal,Nhe as MultiSelect,SQ as Notification,Zpe as NumberInput,Vfe as Options,Zhe as Pagination,Jpe as PhoneInput,Qhe as PieChart,oge as Progress,bpe as Radio,$pe as RangeCalendar,Vge as ResetStyles,Hge as ScrollbarStyles,ipe as SearchInput,h0 as Select,gS as Slider,lge as Spacer,Qx as Spinner,Ege as Table,Pge as Tabs,Mhe as Tag,ehe as TextInput,nhe as TimeInput,Uge as ToastStyles,wpe as Toggle,khe as Tooltip,Mge as TransferList,Qge as colors,_1 as copyToClipboard,mme as darkScale,M1 as formatDate,ome as lightScale,wn as marginProps,j1 as numberWithCommas,bn as paddingProps,Cn as positionProps,Dme as theme,Pme as useConfirm,mn as useElementObserver,kt as useEventListener,Et as useOnClickOutside,vn as usePrevious,un as useSelect,Dt as useSelectAll,Ot as useWindowSize,yn as widthHeightProps};
5
5
  //# sourceMappingURL=index.js.map